[PATCH] krnl386.exe16: Fail int 21, 4e if the volume label is an empty string.
Zebediah Figura
z.figura12 at gmail.com
Thu Jul 20 23:21:09 CDT 2017
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/krnl386.exe16/int21.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/krnl386.exe16/int21.c b/dlls/krnl386.exe16/int21.c
index 308fc49..6455b13 100644
--- a/dlls/krnl386.exe16/int21.c
+++ b/dlls/krnl386.exe16/int21.c
@@ -3876,6 +3876,7 @@ static unsigned INT21_FindHelper(LPCWSTR fullPath, unsigned drive, unsigned coun
if (count) return 0;
path[0] = drive + 'A';
if (!GetVolumeInformationW(path, entry->cAlternateFileName, 13, NULL, NULL, NULL, NULL, 0)) return 0;
+ if (!entry->cAlternateFileName[0]) return 0;
RtlSecondsSince1970ToTime( 0, (LARGE_INTEGER *)&entry->ftCreationTime );
RtlSecondsSince1970ToTime( 0, (LARGE_INTEGER *)&entry->ftLastAccessTime );
RtlSecondsSince1970ToTime( 0, (LARGE_INTEGER *)&entry->ftLastWriteTime );
--
2.7.4
More information about the wine-patches
mailing list