mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no providers available.
This commit is contained in:
parent
38ca35fe57
commit
80b1c5e072
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue