Module: wine Branch: master Commit: 6de3c8f1a8428d45849c89637956ac87ef7a7691 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6de3c8f1a8428d45849c896379...
Author: Zebediah Figura z.figura12@gmail.com Date: Thu Jul 20 23:21:09 2017 -0500
krnl386.exe16: Fail int 21, 4e if the volume label is an empty string.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 );