[PATCH] initialize lpwSystem
Marcus Meissner
marcus at jet.franken.de
Tue Oct 2 04:28:52 CDT 2007
Coverity spotted we might HeapFree() lpwSystem even if not initialized,
so freeing a bad pointer.
Fixed.
Ciao, Marcus
---
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 16ac984..2fc8792 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -1319,7 +1319,7 @@ DWORD WINAPI WNetGetResourceInformationA
}
if (ret == WN_SUCCESS)
{
- LPWSTR lpSystemW;
+ LPWSTR lpSystemW = NULL;
LPVOID lpBufferW;
size = 1024;
lpBufferW = HeapAlloc(GetProcessHeap(), 0, size);
--
1.4.3.4
More information about the wine-patches
mailing list