Commit 6de3c8f1 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

krnl386.exe16: Fail int 21, 4e if the volume label is an empty string.

parent b06dd7d8
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment