kernel32-SetFileInformationByHandle: Fix compile error.

This commit is contained in:
Sebastian Lackner 2015-06-09 06:16:22 +02:00
parent 945ec28ec8
commit 2b90f82b6a
5 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1 @@
Fixes: Ensure console InsertMode changes take effect immediately

View File

@ -0,0 +1,27 @@
From 1866952edae5d4adabfc2fc32c2bde930af8cbe3 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Tue, 9 Jun 2015 06:14:49 +0200
Subject: include: Fix definition of FILE_DISPOSITION_INFO.
A member called DeleteFile cannot be accessed because its defined as
DeleteFile_must_be_suffixed_with_W_or_A_in_this_context.
---
include/winbase.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/winbase.h b/include/winbase.h
index 4795d87..44ecc92 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -860,7 +860,7 @@ typedef struct _FILE_ALLOCATION_INFO {
} FILE_ALLOCATION_INFO, *PFILE_ALLOCATION_INFO;
typedef struct _FILE_DISPOSITION_INFO {
- BOOLEAN DeleteFile;
+ BOOLEAN DoDeleteFile;
} FILE_DISPOSITION_INFO, *PFILE_DISPOSITION_INFO;
typedef struct _FILE_END_OF_FILE_INFO {
--
2.4.2

View File

@ -3018,9 +3018,11 @@ fi
# | * dlls/kernel32/file.c, include/winbase.h
# |
if test "$enable_kernel32_SetFileInformationByHandle" -eq 1; then
patch_apply kernel32-SetFileInformationByHandle/0001-include-Declare-a-couple-more-file-information-class.patch
patch_apply kernel32-SetFileInformationByHandle/0002-kernel32-Implement-SetFileInformationByHandle.patch
patch_apply kernel32-SetFileInformationByHandle/0001-include-Fix-definition-of-FILE_DISPOSITION_INFO.patch
patch_apply kernel32-SetFileInformationByHandle/0002-include-Declare-a-couple-more-file-information-class.patch
patch_apply kernel32-SetFileInformationByHandle/0003-kernel32-Implement-SetFileInformationByHandle.patch
(
echo '+ { "Sebastian Lackner", "include: Fix definition of FILE_DISPOSITION_INFO.", 1 },';
echo '+ { "Michael Müller", "include: Declare a couple more file information class structures.", 1 },';
echo '+ { "Michael Müller", "kernel32: Implement SetFileInformationByHandle.", 1 },';
) >> "$patchlist"