summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/module.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/loader/module.c b/loader/module.c
index 875546b804..206fb7435a 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -422,6 +422,17 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags)
if (!wm)
printf("Win32 LoadLibrary failed to load: %s\n", checked);
+ if (strstr(libname,"vp31vfw.dll") && wm)
+ {
+ int i;
+
+ // sse hack moved from patch dll into runtime patching
+ if (PE_FindExportedFunction(wm, "DriverProc", TRUE)==(void*)0x10001000) {
+ fprintf(stderr, "VP3 DLL found\n");
+ for (i=0;i<18;i++) ((char*)0x10004bd6)[i]=0x90;
+ }
+ }
+
// remove a few divs in the VP codecs that make trouble
if (strstr(libname,"vp5vfw.dll") && wm)
{