Module: wine
Branch: master
Commit: 6b1256b2de67689d319c613e29ad957f2a2ad14c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b1256b2de67689d319c613e2…
Author: Andrey Turkin <andrey.turkin(a)gmail.com>
Date: Fri Oct 17 09:42:47 2008 +0400
mpr: Fix NULL pointer dereference in WNetGetResourceInformationW.
---
dlls/mpr/wnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index bf4ddb8..959efb3 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -1418,7 +1418,7 @@ DWORD WINAPI WNetGetResourceInformationW( LPNETRESOURCEW lpNetResource,
if (!(lpBuffer))
ret = WN_OUT_OF_MEMORY;
- else
+ else if (providerTable != NULL)
{
/* FIXME: For function value of a variable is indifferent, it does
* search of all providers in a network.