Fix drive->serial_conf

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun Dec 22 10:54:23 CST 2002


Changelog:
	file/drive.c: DRIVE_Init
	Use strtoulW to initialize the drive serial number

Drive numbers like "87654321" where clipped to 7ffffff when using strtolW 

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/files/drive.c
===================================================================
RCS file: /home/wine/wine/files/drive.c,v
retrieving revision 1.80
diff -u -r1.80 drive.c
--- wine/files/drive.c	7 Dec 2002 23:47:01 -0000	1.80
+++ wine/files/drive.c	22 Dec 2002 16:50:30 -0000
@@ -270,7 +270,7 @@
 
             /* Get the serial number */
             PROFILE_GetWineIniString( name, SerialW, def_serialW, buffer, 80 );
-            drive->serial_conf = strtolW( buffer, NULL, 16 );
+            drive->serial_conf = strtoulW( buffer, NULL, 16 );
 
             /* Get the filesystem type */
             PROFILE_GetWineIniString( name, FilesystemW, win95W, buffer, 80 );



More information about the wine-patches mailing list