[PATCH 1/6] include: Added definitions used by GetFileInformationByHandleEx for FileIdBothDirectoryInfo. (try 2)

Vincas Miliūnas vincas.miliunas at gmail.com
Wed Oct 10 11:37:32 CDT 2012


Sorry for the previous email, forgot the try/resend game tags.

Another important notice is that the FileIdBothDirectoryInfo class is
implemented by using the NtQueryDirectoryFile function, which returns
FILE_ID_BOTH_DIR_INFORMATION struct, while GetFileInformationByHandleEx
is meant to return FILE_ID_BOTH_DIR_INFO.

The difference between FILE_ID_BOTH_DIR_INFO and
FILE_ID_BOTH_DIR_INFORMATION structs is that the latter uses DWORDs,
while the former uses ULONGs. DWORD and ULONG are defined as unsigned
long both in WINE and windows, thus the two structures are binary
compatible, their sizes are 4 bytes both in 32bit and 64bit compiled code.

Changelog:

[PATCH 1/6] include: Added definitions used by
GetFileInformationByHandleEx for FileIdBothDirectoryInfo.
[PATCH 4/6] include: Added definitions used by OpenFileById.
* Removed unused definitions and split it into two patches.
* Renamed DUMMYUNIONNAME to u.

[PATCH 2/6] kernel32/tests: Added tests of FileIdBothDirectoryInfo for
GetFileInformationByHandleEx.
* No changes.

[PATCH 3/6] kernel32: Added implementation of FileIdBothDirectoryInfo
for GetFileInformationByHandleEx.
* No changes.

[PATCH 5/6] kernel32/tests: Added tests for OpenFileById.
* Fixed an error to identify the temp file by its name rather then to
expect it to be the first non-directory entry returned.
* Fixed an error where the handle returned by OpenFileById wasn't used
to read the contents of the temp file.

[PATCH 6/6] kernel32: Added implementation for OpenFileById.
* Removed an unnecessary result handle check after NtCreateFile returned
success.
* Removed an unnecessary else statement.
* Removed unnecessary curly braces.

---
 include/winbase.h | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-Added-definitions-used-by-GetFileInformation.patch
Type: text/x-patch
Size: 1682 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20121010/50d30c9d/attachment-0001.bin>


More information about the wine-patches mailing list