From 92405a2d988115b6ddacf07dd716275cd6052799 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 10 Mar 2011 12:45:17 +0100 Subject: [PATCH] odbccp32: Initialize the usage count in SQLRemoveDriverManager and SQLRemoveDriver (valgrind). --- dlls/odbccp32/odbccp32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c index ba4962d06a5..fb4ea2c7ea1 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; }