Hans Leidekker : odbccp32: Initialize the usage count in SQLRemoveDriverManager and SQLRemoveDriver ( valgrind).

Alexandre Julliard julliard at winehq.org
Thu Mar 10 11:30:25 CST 2011


Module: wine
Branch: master
Commit: 92405a2d988115b6ddacf07dd716275cd6052799
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=92405a2d988115b6ddacf07dd716275cd6052799

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Mar 10 12:45:17 2011 +0100

odbccp32: Initialize the usage count in SQLRemoveDriverManager and SQLRemoveDriver (valgrind).

---

 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..fb4ea2c 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 (pdwUsageCount) *pdwUsageCount = 1;
     return TRUE;
 }
 




More information about the wine-cvs mailing list