[Mplayer-cvslog] CVS: main/loader win32.c,1.84,1.85

Roberto Togni CVS syncmail at mplayerhq.hu
Tue Mar 23 21:08:30 CET 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/loader
In directory mail:/var2/tmp/cvs-serv19195/loader

Modified Files:
	win32.c 
Log Message:
Add support for Lead MCMW 2.0 wavelet codec eval version
Requires LCODCCMW2E.dll and LCMW2.dll
Patch by adland <adland123 (at) yahoo (dot) com>


Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- win32.c	25 Jan 2004 20:29:31 -0000	1.84
+++ win32.c	23 Mar 2004 20:08:28 -0000	1.85
@@ -1837,6 +1837,15 @@
     if(data && count)dbgprintf("  read %d bytes: '%s'\n", *count, data);
     return result;
 }
+
+//from wine source dlls/advapi32/registry.c
+static long WINAPI expRegCreateKeyA(long hkey, const char* name, int *retkey)
+{
+    dbgprintf("RegCreateKeyA(key 0x%x, name 0x%x='%s',newkey=0x%x)\n",hkey,name,retkey);
+    return RegCreateKeyExA( hkey, name, 0, NULL,REG_OPTION_NON_VOLATILE,
+                            KEY_ALL_ACCESS , NULL, retkey, NULL );
+}
+
 static long WINAPI expRegCreateKeyExA(long key, const char* name, long reserved,
 				      void* classs, long options, long security,
 				      void* sec_attr, int* newkey, int* status)
@@ -4914,6 +4923,7 @@
 };
 struct exports exp_advapi32[]={
     FF(RegCloseKey, -1)
+    FF(RegCreateKeyA, -1)
     FF(RegCreateKeyExA, -1)
     FF(RegEnumKeyExA, -1)
     FF(RegEnumValueA, -1)
@@ -5149,7 +5159,7 @@
 
 #ifndef LOADLIB_TRY_NATIVE
   /* hack for truespeech and vssh264*/
-  if (!strcmp(library, "tsd32.dll") || !strcmp(library,"vssh264dec.dll"))
+  if (!strcmp(library, "tsd32.dll") || !strcmp(library,"vssh264dec.dll") || !strcmp(library,"LCMW2.dll"))
 #endif
     /* ok, this is a hack, and a big memory leak. should be fixed. - alex */
     {




More information about the MPlayer-cvslog mailing list