ntdll: Don't set error status if volume serial number is missing.
Fixes regression fromb14eee69c7
. 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 commitdabba3cc86
) Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
b403116243
commit
1f09409052
|
@ -4068,7 +4068,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io,
|
|||
FILE_ID_INFORMATION *info = ptr;
|
||||
|
||||
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;
|
||||
memset( &info->FileId, 0, sizeof(info->FileId) );
|
||||
*(ULONGLONG *)&info->FileId = st.st_ino;
|
||||
|
|
Loading…
Reference in New Issue