odbccp32: Initialize the usage count in SQLRemoveDriverManager and SQLRemoveDriver (valgrind).
Hans Leidekker
hans at codeweavers.com
Thu Mar 10 05:45:17 CST 2011
---
dlls/odbccp32/odbccp32.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c
index ba4962d..cbad02e 100644
--- a/dlls/odbccp32/odbccp32.c
+++ b/dlls/odbccp32/odbccp32.c
@@ -845,6 +845,7 @@ BOOL WINAPI SQLRemoveDriverW(LPCWSTR lpszDriver, BOOL fRemoveDSN,
{
clear_errors();
FIXME("stub\n");
+ if (lpdwUsageCount) *lpdwUsageCount = 1;
return TRUE;
}
@@ -853,6 +854,7 @@ BOOL WINAPI SQLRemoveDriver(LPCSTR lpszDriver, BOOL fRemoveDSN,
{
clear_errors();
FIXME("stub\n");
+ if (lpdwUsageCount) *lpdwUsageCount = 1;
return TRUE;
}
@@ -860,6 +862,7 @@ BOOL WINAPI SQLRemoveDriverManager(LPDWORD pdwUsageCount)
{
clear_errors();
FIXME("stub\n");
+ if (lpdwUsageCount) *lpdwUsageCount = 1;
return TRUE;
}
--
1.7.1
More information about the wine-patches
mailing list