PATCH: shlwapi

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

 



Hi,

Ciao, Karcus

Changelog:
	Numbers without prefix are int (32bit signed). If you
	want long long (64bit signed), append LL.

Index: dlls/shlwapi/string.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/string.c,v
retrieving revision 1.33
diff -u -r1.33 string.c
--- dlls/shlwapi/string.c	18 Mar 2003 18:35:49 -0000	1.33
+++ dlls/shlwapi/string.c	19 Jul 2003 13:40:16 -0000
@@ -2199,22 +2199,22 @@
 
   static const SHLWAPI_BYTEFORMATS bfFormats[] =
   {
-    { 10240, 10.24, 100.0, sz3_2, 'K' }, /* 10 KB */
-    { 102400, 102.4, 10.0, sz3_1, 'K' }, /* 100 KB */
-    { 1024000, 1024.0, 1.0, sz3_0, 'K' }, /* 1000 KB */
-    { 10485760, 10485.76, 100.0, sz3_2, 'M' }, /* 10 MB */
-    { 104857600, 104857.6, 10.0, sz3_1, 'M' }, /* 100 MB */
-    { 1048576000, 1048576.0, 1.0, sz3_0, 'M' }, /* 1000 MB */
-    { 10737418240, 10737418.24, 100.0, sz3_2, 'G' }, /* 10 GB */
-    { 107374182400, 107374182.4, 10.0, sz3_1, 'G' }, /* 100 GB */
-    { 1073741824000, 1073741824.0, 1.0, sz3_0, 'G' }, /* 1000 GB */
-    { 10995116277760, 10485.76, 100.0, sz3_2, 'T' }, /* 10 TB */
-    { 109951162777600, 104857.6, 10.0, sz3_1, 'T' }, /* 100 TB */
-    { 1099511627776000, 1048576.0, 1.0, sz3_0, 'T' }, /* 1000 TB */
-    { 11258999068426240, 10737418.24, 100.00, sz3_2, 'P' }, /* 10 PB */
-    { 112589990684262400, 107374182.4, 10.00, sz3_1, 'P' }, /* 100 PB */
-    { 1125899906842624000, 1073741824.0, 1.00, sz3_0, 'P' }, /* 1000 PB */
-    { 0, 10995116277.76, 100.00, sz3_2, 'E' } /* EB's, catch all */
+    { 10240LL, 10.24, 100.0, sz3_2, 'K' }, /* 10 KB */
+    { 102400LL, 102.4, 10.0, sz3_1, 'K' }, /* 100 KB */
+    { 1024000LL, 1024.0, 1.0, sz3_0, 'K' }, /* 1000 KB */
+    { 10485760LL, 10485.76, 100.0, sz3_2, 'M' }, /* 10 MB */
+    { 104857600LL, 104857.6, 10.0, sz3_1, 'M' }, /* 100 MB */
+    { 1048576000LL, 1048576.0, 1.0, sz3_0, 'M' }, /* 1000 MB */
+    { 10737418240LL, 10737418.24, 100.0, sz3_2, 'G' }, /* 10 GB */
+    { 107374182400LL, 107374182.4, 10.0, sz3_1, 'G' }, /* 100 GB */
+    { 1073741824000LL, 1073741824.0, 1.0, sz3_0, 'G' }, /* 1000 GB */
+    { 10995116277760LL, 10485.76, 100.0, sz3_2, 'T' }, /* 10 TB */
+    { 109951162777600LL, 104857.6, 10.0, sz3_1, 'T' }, /* 100 TB */
+    { 1099511627776000LL, 1048576.0, 1.0, sz3_0, 'T' }, /* 1000 TB */
+    { 11258999068426240LL, 10737418.24, 100.00, sz3_2, 'P' }, /* 10 PB */
+    { 112589990684262400LL, 107374182.4, 10.00, sz3_1, 'P' }, /* 100 PB */
+    { 1125899906842624000LL, 1073741824.0, 1.00, sz3_0, 'P' }, /* 1000 PB */
+    { 0LL, 10995116277.76, 100.00, sz3_2, 'E' } /* EB's, catch all */
   };
   char szBuff[32];
   char szAdd[4];


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

  Powered by Linux