wininet: Avoid accessing uninitialized memory.

Found by valgrind.
This commit is contained in:
Hans Leidekker 2009-10-23 10:49:22 +02:00 committed by Alexandre Julliard
parent 394a437723
commit 0f127fc7a1
1 changed files with 2 additions and 2 deletions

View File

@ -716,9 +716,9 @@ HINTERNET WINAPI FtpFindFirstFileA(HINTERNET hConnect,
ret = FtpFindFirstFileW(hConnect, lpwzSearchFile, lpFindFileDataW, dwFlags, dwContext);
HeapFree(GetProcessHeap(), 0, lpwzSearchFile);
if(lpFindFileData) {
if (ret && lpFindFileData)
WININET_find_data_WtoA(lpFindFileDataW, lpFindFileData);
}
return ret;
}