Commit c54cad85 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

odbccp32: Enable compilation with long types.

parent 773bdcf7
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = odbccp32.dll MODULE = odbccp32.dll
IMPORTLIB = odbccp32 IMPORTLIB = odbccp32
IMPORTS = uuid advapi32 IMPORTS = uuid advapi32
......
...@@ -108,7 +108,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str) ...@@ -108,7 +108,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str)
BOOL WINAPI ODBCCPlApplet( LONG i, LONG j, LONG * p1, LONG * p2) BOOL WINAPI ODBCCPlApplet( LONG i, LONG j, LONG * p1, LONG * p2)
{ {
clear_errors(); clear_errors();
FIXME( "( %d %d %p %p) : stub!\n", i, j, p1, p2); FIXME( "( %ld %ld %p %p) : stub!\n", i, j, p1, p2);
return FALSE; return FALSE;
} }
...@@ -977,7 +977,7 @@ static void write_registry_values(const WCHAR *regkey, const WCHAR *driver, cons ...@@ -977,7 +977,7 @@ static void write_registry_values(const WCHAR *regkey, const WCHAR *driver, cons
/* Store Usage */ /* Store Usage */
size = sizeof(usagecount); size = sizeof(usagecount);
RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size); RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size);
TRACE("Usage count %d\n", usagecount); TRACE("Usage count %ld\n", usagecount);
for (; *p; p += lstrlenW(p) + 1) for (; *p; p += lstrlenW(p) + 1)
{ {
...@@ -1399,14 +1399,14 @@ BOOL WINAPI SQLManageDataSources(HWND hwnd) ...@@ -1399,14 +1399,14 @@ BOOL WINAPI SQLManageDataSources(HWND hwnd)
SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD fErrorCode, LPCWSTR szErrorMsg) SQLRETURN WINAPI SQLPostInstallerErrorW(DWORD fErrorCode, LPCWSTR szErrorMsg)
{ {
FIXME("%u %s\n", fErrorCode, debugstr_w(szErrorMsg)); FIXME("%lu %s\n", fErrorCode, debugstr_w(szErrorMsg));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE; return FALSE;
} }
SQLRETURN WINAPI SQLPostInstallerError(DWORD fErrorCode, LPCSTR szErrorMsg) SQLRETURN WINAPI SQLPostInstallerError(DWORD fErrorCode, LPCSTR szErrorMsg)
{ {
FIXME("%u %s\n", fErrorCode, debugstr_a(szErrorMsg)); FIXME("%lu %s\n", fErrorCode, debugstr_a(szErrorMsg));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE; return FALSE;
} }
...@@ -1460,7 +1460,7 @@ BOOL WINAPI SQLRemoveDriverW(LPCWSTR drivername, BOOL remove_dsn, LPDWORD usage_ ...@@ -1460,7 +1460,7 @@ BOOL WINAPI SQLRemoveDriverW(LPCWSTR drivername, BOOL remove_dsn, LPDWORD usage_
size = sizeof(usagecount); size = sizeof(usagecount);
RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size); RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size);
TRACE("Usage count %d\n", usagecount); TRACE("Usage count %ld\n", usagecount);
count = usagecount - 1; count = usagecount - 1;
if (count) if (count)
{ {
...@@ -1584,7 +1584,7 @@ BOOL WINAPI SQLRemoveTranslatorW(const WCHAR *translator, DWORD *usage_count) ...@@ -1584,7 +1584,7 @@ BOOL WINAPI SQLRemoveTranslatorW(const WCHAR *translator, DWORD *usage_count)
size = sizeof(usagecount); size = sizeof(usagecount);
RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size); RegGetValueA(hkeydriver, NULL, "UsageCount", RRF_RT_DWORD, &type, &usagecount, &size);
TRACE("Usage count %d\n", usagecount); TRACE("Usage count %ld\n", usagecount);
count = usagecount - 1; count = usagecount - 1;
if (count) if (count)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment