Andrew Nguyen : mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/ W with no providers available.
Alexandre Julliard
julliard at winehq.org
Wed Aug 4 12:27:20 CDT 2010
Module: wine
Branch: master
Commit: 80b1c5e072cb26edd7046ed5a4b9a5bd53793c0a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=80b1c5e072cb26edd7046ed5a4b9a5bd53793c0a
Author: Andrew Nguyen <anguyen at codeweavers.com>
Date: Tue Aug 3 13:19:30 2010 -0500
mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no providers available.
---
dlls/mpr/wnet.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index 66d165f..2c57aaa 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -638,7 +638,7 @@ DWORD WINAPI WNetOpenEnumA( DWORD dwScope, DWORD dwType, DWORD dwUsage,
ret = WN_BAD_POINTER;
else if (!providerTable || providerTable->numProviders == 0)
{
- lphEnum = NULL;
+ *lphEnum = NULL;
ret = WN_NO_NETWORK;
}
else
@@ -730,7 +730,7 @@ DWORD WINAPI WNetOpenEnumW( DWORD dwScope, DWORD dwType, DWORD dwUsage,
ret = WN_BAD_POINTER;
else if (!providerTable || providerTable->numProviders == 0)
{
- lphEnum = NULL;
+ *lphEnum = NULL;
ret = WN_NO_NETWORK;
}
else
More information about the wine-cvs
mailing list