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>
oldstable
Zebediah Figura 2017-07-20 23:21:09 -05:00 committed by Alexandre Julliard
parent b06dd7d804
commit 6de3c8f1a8
1 changed files with 1 additions and 0 deletions

View File

@ -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 );