[mpr] Fix typo (Coverity)
Paul Vriens
paul.vriens.wine at gmail.com
Sun Jan 14 06:23:45 CST 2007
Hi,
When the functions were fleshed out in 2004, WNetEnumResourceA had the 'if'
instead of the 'else if' as in WNetEnumResourceW.
Should fix Coverity CID-73.
Changelog:
Fix typo
Cheers,
Paul.
-------------- next part --------------
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index c894c55..3f57caf 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -819,7 +819,7 @@ DWORD WINAPI WNetEnumResourceA( HANDLE hEnum, LPDWORD lpcCount,
ret = WN_BAD_POINTER;
else if (!lpcCount)
ret = WN_BAD_POINTER;
- if (!lpBuffer)
+ else if (!lpBuffer)
ret = WN_BAD_POINTER;
else if (!lpBufferSize)
ret = WN_BAD_POINTER;
--
1.4.4.4
More information about the wine-patches
mailing list