krnl386.exe: Fix drive spec in get_media_id call.

This commit is contained in:
Oleksij Rempel 2012-05-29 23:10:08 +02:00 committed by Alexandre Julliard
parent 83196d0cb3
commit fa3038c6bd
1 changed files with 2 additions and 1 deletions

View File

@ -2609,8 +2609,9 @@ static void INT21_Ioctl_Block( CONTEXT *context )
{
WCHAR label[12],fsname[9];
DWORD serial;
TRACE( "GENERIC IOCTL - Get media id - %c:\n",
'A' + drive );
drivespec[0] += drive;
GetVolumeInformationW(drivespec, label, 12, &serial, NULL, NULL, fsname, 9);
*(WORD*)dataptr = 0;
memcpy(dataptr+2,&serial,4);