wininet: Avoid accessing uninitialized memory.
Found by valgrind.
This commit is contained in:
parent
394a437723
commit
0f127fc7a1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue