[Mplayer-cvslog] CVS: main/loader win32.c,1.55,1.56

Alex Beregszaszi alex at mplayerhq.hu
Tue Apr 23 17:12:25 CEST 2002


Update of /cvsroot/mplayer/main/loader
In directory mail:/var/tmp.root/cvs-serv25518

Modified Files:
	win32.c 
Log Message:
workaround: force PF table setup in IsProcessorFeaturePresent

Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- win32.c	21 Apr 2002 16:36:36 -0000	1.55
+++ win32.c	23 Apr 2002 15:12:22 -0000	1.56
@@ -784,12 +784,18 @@
     return (void *)ret;
 }
 
+static int pf_set = 0;
 static BYTE PF[64] = {0,};
 
 static WIN_BOOL WINAPI expIsProcessorFeaturePresent(DWORD v)
 {
     WIN_BOOL result;
     if(v>63)result=0;
+    if (!pf_set)
+    {
+	SYSTEM_INFO si;
+	expGetSystemInfo(&si);
+    }
     else result=PF[v];
     dbgprintf("IsProcessorFeaturePresent(0x%x) => 0x%x\n", v, result);
     return result;
@@ -823,6 +829,7 @@
 	return;
     }
     memset(PF,0,sizeof(PF));
+    pf_set = 1;
 
     cachedsi.u.s.wProcessorArchitecture     = PROCESSOR_ARCHITECTURE_INTEL;
     cachedsi.dwPageSize 			= getpagesize();




More information about the MPlayer-cvslog mailing list