mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no providers available.

This commit is contained in:
Andrew Nguyen 2010-08-03 13:19:30 -05:00 committed by Alexandre Julliard
parent 38ca35fe57
commit 80b1c5e072
1 changed files with 2 additions and 2 deletions

View File

@ -638,7 +638,7 @@ DWORD WINAPI WNetOpenEnumA( DWORD dwScope, DWORD dwType, DWORD dwUsage,
ret = WN_BAD_POINTER; ret = WN_BAD_POINTER;
else if (!providerTable || providerTable->numProviders == 0) else if (!providerTable || providerTable->numProviders == 0)
{ {
lphEnum = NULL; *lphEnum = NULL;
ret = WN_NO_NETWORK; ret = WN_NO_NETWORK;
} }
else else
@ -730,7 +730,7 @@ DWORD WINAPI WNetOpenEnumW( DWORD dwScope, DWORD dwType, DWORD dwUsage,
ret = WN_BAD_POINTER; ret = WN_BAD_POINTER;
else if (!providerTable || providerTable->numProviders == 0) else if (!providerTable || providerTable->numProviders == 0)
{ {
lphEnum = NULL; *lphEnum = NULL;
ret = WN_NO_NETWORK; ret = WN_NO_NETWORK;
} }
else else