Mathew Hodson : kernel32: Remove dead code.
Alexandre Julliard
julliard at winehq.org
Tue Nov 26 16:21:23 CST 2019
Module: wine
Branch: master
Commit: 2fec865945ef5617037187b9d33af86d189dc81c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2fec865945ef5617037187b9d33af86d189dc81c
Author: Mathew Hodson <mathew.hodson at gmail.com>
Date: Tue Nov 26 00:09:37 2019 -0500
kernel32: Remove dead code.
Signed-off-by: Mathew Hodson <mathew.hodson at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/file.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index c3be67cc3c..ef94741093 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -801,13 +801,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
}
info->data_len = io.Information;
- if (!has_wildcard)
- {
- if (has_wildcard) /* release unused buffer space */
- HeapReAlloc( GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY,
- info, offsetof( FIND_FIRST_INFO, data[info->data_len] ));
- info->data_size = 0; /* we read everything */
- }
+ if (!has_wildcard) info->data_size = 0; /* we read everything */
if (!FindNextFileW( info, data ))
{
More information about the wine-cvs
mailing list