wininet-FtpFindFirstFile: Replace HeapFree with heap_free.

... which is the same, but makes the coding style look more similar to existing code.
This commit is contained in:
Sebastian Lackner 2014-12-16 02:40:28 +01:00
parent 71a0838ac3
commit 1de37be8c1

View File

@ -1,4 +1,4 @@
From c86309d8f87a4ceb1f22fdb5ca678dc3f720d9ce Mon Sep 17 00:00:00 2001
From dd5f4680aa8ee8f8e354f0d389a87441cf2a5c65 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Tue, 16 Dec 2014 01:37:12 +0100
Subject: wininet: Fix handling of subdirectory in FtpFindFirstFile.
@ -10,7 +10,7 @@ Based on a patch by Mike Ruprecht.
2 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index f45e495..dbe9dd8 100644
index f45e495..64c06c3 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -831,6 +831,7 @@ static HINTERNET FTP_FtpFindFirstFileW(ftp_session_t *lpwfs,
@ -47,7 +47,7 @@ index f45e495..dbe9dd8 100644
}
lend:
+ HeapFree(GetProcessHeap(), 0, lpszSearchPath);
+ heap_free(lpszSearchPath);
+
if (lpwfs->lstnSocket != -1)
{