Module: wine Branch: master Commit: d4fc2fd746e9bf6e0f6cfecef22ffac1181208b5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d4fc2fd746e9bf6e0f6cfecef2... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Nov 19 11:41:26 2009 +0100 kernel32: Also accept STATUS_BUFFER_OVERFLOW as a valid return code in GetFileInformationByHandle(). FileAllInformation is supposed to also return the file name. If it did, "all_info" would be too small for the returned data, but since it would still return as much information as fits in the buffer, we don't need a larger buffer either. --- dlls/kernel32/file.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c index e6d83bc..8932dea 100644 --- a/dlls/kernel32/file.c +++ b/dlls/kernel32/file.c @@ -821,6 +821,7 @@ BOOL WINAPI GetFileInformationByHandle( HANDLE hFile, BY_HANDLE_FILE_INFORMATION NTSTATUS status; status = NtQueryInformationFile( hFile, &io, &all_info, sizeof(all_info), FileAllInformation ); + if (status == STATUS_BUFFER_OVERFLOW) status = STATUS_SUCCESS; if (status == STATUS_SUCCESS) { info->dwFileAttributes = all_info.BasicInformation.FileAttributes;