Author: cwittich
Date: Sun Oct 25 09:52:54 2009
New Revision: 43733
URL:
http://svn.reactos.org/svn/reactos?rev=43733&view=rev
Log:
partial wine sync to 1.1.32:
wininet: Avoid accessing uninitialized memory.
Modified:
trunk/reactos/dll/win32/wininet/ftp.c
Modified: trunk/reactos/dll/win32/wininet/ftp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wininet/ftp.c?re…
==============================================================================
--- trunk/reactos/dll/win32/wininet/ftp.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wininet/ftp.c [iso-8859-1] Sun Oct 25 09:52:54 2009
@@ -708,9 +708,9 @@
ret = FtpFindFirstFileW(hConnect, lpwzSearchFile, lpFindFileDataW, dwFlags,
dwContext);
HeapFree(GetProcessHeap(), 0, lpwzSearchFile);
- if(lpFindFileData) {
+ if (ret && lpFindFileData)
WININET_find_data_WtoA(lpFindFileDataW, lpFindFileData);
- }
+
return ret;
}