[wininet/ftp #1] Remove unneeded check
Paul Vriens
paul.vriens.wine at gmail.com
Wed Mar 21 11:55:56 CDT 2007
Hi,
the legality of the handle is already checked in it's only caller.
Changelog
Remove unneeded check
Cheers,
Paul.
-------------- next part --------------
>From e5f950a8ae4741c6e9f0fcb8c4dcbd15d3260b38 Mon Sep 17 00:00:00 2001
From: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed, 21 Mar 2007 17:45:14 +0100
Subject: [PATCH] Remove unneeded check
---
dlls/wininet/ftp.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 526c65e..73d51e8 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -2801,9 +2801,6 @@ static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DW
TRACE("\n");
- if (INVALID_HANDLE_VALUE == hFile)
- return FALSE;
-
lpszBuffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CHAR)*DATA_PACKET_SIZE);
if (NULL == lpszBuffer)
{
--
1.4.4.2
More information about the wine-patches
mailing list