Commit 80b1c5e0 authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no…

mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no providers available.
parent 38ca35fe
...@@ -638,7 +638,7 @@ DWORD WINAPI WNetOpenEnumA( DWORD dwScope, DWORD dwType, DWORD dwUsage, ...@@ -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, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment