[PATCH 1/2] ntdll: Return a unique volume number from NtQueryInformationFile(FileIdInformation).

Zebediah Figura z.figura12 at gmail.com
Wed Mar 4 18:54:34 CST 2020


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
I haven't been able to find any other APIs that return an 8-byte serial number;
I suspect it is unique to this information class.

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

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 7dfb0a4800e..5966b1ce648 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -2508,7 +2508,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE hFile, PIO_STATUS_BLOCK io,
         else
         {
             FILE_ID_INFORMATION *info = ptr;
-            info->VolumeSerialNumber = 0;  /* FIXME */
+            info->VolumeSerialNumber = st.st_dev;
             memset( &info->FileId, 0, sizeof(info->FileId) );
             *(ULONGLONG *)&info->FileId = st.st_ino;
         }
-- 
2.25.1




More information about the wine-devel mailing list