[Mplayer-cvslog] CVS: main/loader module.c,1.11,1.12
Arpi of Ize
arpi at mplayerhq.hu
Sun Nov 24 23:27:04 CET 2002
Update of /cvsroot/mplayer/main/loader
In directory mail:/var/tmp.root/cvs-serv10022
Modified Files:
module.c
Log Message:
patching quicktime.qts runtime
Index: module.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/module.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- module.c 24 Nov 2002 21:45:23 -0000 1.11
+++ module.c 24 Nov 2002 22:26:43 -0000 1.12
@@ -311,16 +311,22 @@
/* decrement the dependencies through the MODULE_FreeLibrary call. */
pwm->refCount++;
-#ifdef EMU_QTX_API
if(strstr(libname,"QuickTime.qts")){
void** ptr=0x62b75ca4;
- fprintf(stderr,"QuickTime.qts entrypoint patched!!! old=%p\n",ptr[0]);
+ int i;
+ fprintf(stderr,"QuickTime.qts patched!!! old entry=%p\n",ptr[0]);
+ // NOP out directx, fontmanager and some other init calls:
+ for(i=0;i<5;i++) ((char*)0x6299e842)[i]=0x90;
+ for(i=0;i<28;i++) ((char*)0x6299e86d)[i]=0x90;
+ for(i=0;i<5;i++) ((char*)0x6299e898)[i]=0x90;
+ for(i=0;i<9;i++) ((char*)0x6299e8ac)[i]=0x90;
+#ifdef EMU_QTX_API
report_entry = report_func;
report_ret = report_func_ret;
wrapper_target=ptr[0];
ptr[0]=wrapper;
- }
#endif
+ }
SetLastError( err ); /* restore last error */
return pwm;
More information about the MPlayer-cvslog
mailing list