GetSystemInfo: brown paper bag

Andreas Mohr a.mohr at mailto.de
Tue Jun 26 20:48:26 CDT 2001


Hi all,

one should have learnt how to treat switch()es properly...

- fix misleading P4 warning message appearing even in case of match

Andreas Mohr
-------------- next part --------------
Determining best CVS host...
Using CVSROOT :pserver:cvs at rhlx01.fht-esslingen.de:/home/wine
Index: misc/cpu.c
===================================================================
RCS file: /home/wine/wine/misc/cpu.c,v
retrieving revision 1.21
diff -u -r1.21 cpu.c
--- misc/cpu.c	2001/06/22 23:21:20	1.21
+++ misc/cpu.c	2001/06/26 23:46:19
@@ -126,8 +126,11 @@
 					  cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
 					  cachedsi.wProcessorLevel= 5;
 					  break;
-					} /* fall through to prev. default */
+					default: goto cpu_warn; /* yeah, ugly */
+					}
+					break;
 				default:
+				cpu_warn:
 					FIXME("unknown cpu family '%s', please report ! (-> setting to 386)\n", value);
 					break;
 				}


More information about the wine-patches mailing list