Mike McCormack : wininet: Make sure hIC is valid before trying to use
it. ( Coverity)
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 16 13:54:22 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 8dcb4479f3e278a407501ad027040a9976217de4
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8dcb4479f3e278a407501ad027040a9976217de4
Author: Mike McCormack <mike at codeweavers.com>
Date: Tue May 16 18:53:00 2006 +0900
wininet: Make sure hIC is valid before trying to use it. (Coverity)
---
dlls/wininet/ftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 5fde83d..c19cef9 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -252,6 +252,7 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTP
/* Clear any error information */
INTERNET_SetLastError(0);
+ hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent;
/* Open file to be uploaded */
if (INVALID_HANDLE_VALUE ==
@@ -261,7 +262,6 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTP
goto lend;
}
- hIC = (LPWININETAPPINFOW) lpwfs->hdr.lpwhparent;
SendAsyncCallback(&lpwfs->hdr, lpwfs->hdr.dwContext, INTERNET_STATUS_SENDING_REQUEST, NULL, 0);
if (FTP_SendStore(lpwfs, lpszNewRemoteFile, dwFlags))
More information about the wine-cvs
mailing list