Andrew Talbot : odbc32: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 21 13:18:23 CST 2007
Module: wine
Branch: master
Commit: 138a88321b2ee786facbe5e51aca691897e953fd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=138a88321b2ee786facbe5e51aca691897e953fd
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Wed Feb 21 14:45:21 2007 +0000
odbc32: Constify some variables.
---
dlls/odbc32/proxyodbc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
index 3351cfd..eeae263 100644
--- a/dlls/odbc32/proxyodbc.c
+++ b/dlls/odbc32/proxyodbc.c
@@ -347,7 +347,7 @@ static void ODBC_ReplicateODBCToRegistry (int is_user, SQLHENV hEnv)
KEY_ALL_ACCESS, NULL, &hDSN, NULL))
== ERROR_SUCCESS)
{
- static const char *DRIVERKEY = "Driver";
+ static const char DRIVERKEY[] = "Driver";
if ((reg_ret = RegQueryValueExA (hDSN, DRIVERKEY,
NULL, NULL, NULL, NULL))
== ERROR_FILE_NOT_FOUND)
@@ -2108,7 +2108,7 @@ SQLRETURN WINAPI SQLSetScrollOptions(
static int SQLColAttributes_KnownStringAttribute(SQLUSMALLINT fDescType)
{
- static SQLUSMALLINT attrList[] =
+ static const SQLUSMALLINT attrList[] =
{
SQL_COLUMN_OWNER_NAME,
SQL_COLUMN_QUALIFIER_NAME,
More information about the wine-cvs
mailing list