Fix drive->serial_conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux