ntdll: Don't set error status if volume serial number is missing.

Fixes regression from b14eee69c7.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50781
Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit dabba3cc86)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Roman Pišl 2021-03-07 11:50:11 +01:00 committed by Michael Stefaniuc
parent b403116243
commit 1f09409052
1 changed files with 1 additions and 1 deletions

View File

@ -4068,7 +4068,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io,
FILE_ID_INFORMATION *info = ptr; FILE_ID_INFORMATION *info = ptr;
info->VolumeSerialNumber = 0; info->VolumeSerialNumber = 0;
if (!(io->u.Status = get_mountmgr_fs_info( handle, fd, &drive, sizeof(drive) ))) if (!get_mountmgr_fs_info( handle, fd, &drive, sizeof(drive) ))
info->VolumeSerialNumber = drive.serial; info->VolumeSerialNumber = drive.serial;
memset( &info->FileId, 0, sizeof(info->FileId) ); memset( &info->FileId, 0, sizeof(info->FileId) );
*(ULONGLONG *)&info->FileId = st.st_ino; *(ULONGLONG *)&info->FileId = st.st_ino;