Roman Pišl : ntdll: Don't set error status if volume serial number is missing.

Alexandre Julliard julliard at winehq.org
Mon Jun 7 15:02:06 CDT 2021


Module: wine
Branch: stable
Commit: 1f0940905213fc65c1071147e62aa061f61a4759
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1f0940905213fc65c1071147e62aa061f61a4759

Author: Roman Pišl <rpisl at seznam.cz>
Date:   Sun Mar  7 11:50:11 2021 +0100

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

Fixes regression from b14eee69c7240658252bc96b6302e98948f2c62c.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50781
Signed-off-by: Roman Pišl <rpisl at seznam.cz>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit dabba3cc86aa3ba6e7ba1d0863fb378828fef9f3)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/ntdll/unix/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index d6533fedfdd..955b0e0dff6 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -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;




More information about the wine-cvs mailing list