[PATCH 4/5] win16/int21: fix bug in get_media_id call

Oleksij Rempel bug-track at fisher-privat.net
Tue May 29 16:10:08 CDT 2012

There was a long standing bug. Each time get_media_id
was called it silently returned garbrage.
The reason was in additional drivespec change.
At the beginning of this function we already do needed changes
to drivespec. After get_media_id call was made we added extra
drive count. This coused wrong GetVolumeInformationW check.

Fixes Bug: http://bugs.winehq.org/show_bug.cgi?id=30795
Signed-off-by: Oleksij Rempel <bug-track at fisher-privat.net>
 dlls/krnl386.exe16/int21.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/krnl386.exe16/int21.c b/dlls/krnl386.exe16/int21.c
index 5f86567..841080b 100644
--- a/dlls/krnl386.exe16/int21.c
+++ b/dlls/krnl386.exe16/int21.c
@@ -2610,7 +2610,6 @@ static void INT21_Ioctl_Block( CONTEXT *context )
                 WCHAR	label[12],fsname[9];
                 DWORD	serial;
-                drivespec[0] += drive;
                 GetVolumeInformationW(drivespec, label, 12, &serial, NULL, NULL, fsname, 9);
                 *(WORD*)dataptr	= 0;

More information about the wine-patches mailing list