Mercurial > mplayer.hg
changeset 130:39ceb7a5a9e2
crtdll/memcpy added (req for MJPEG)
author | arpi_esp |
---|---|
date | Sun, 18 Mar 2001 02:01:32 +0000 |
parents | 02d5e36e81de |
children | b58a0827732c |
files | loader/win32.c |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Sun Mar 18 02:00:18 2001 +0000 +++ b/loader/win32.c Sun Mar 18 02:01:32 2001 +0000 @@ -1575,7 +1575,7 @@ { char qq[256]; int result; - printf("They want library %s\n", def_path, name); + printf("They want library [%s] %s\n", def_path, name); if(strncmp(name, "c:\\windows\\", 11)==0)name+=11; if(name[0]!='/') { @@ -1586,9 +1586,9 @@ else strcat(qq, name); } - dbgprintf("Entering LoadLibraryA(%s)\n", name); + printf("Entering LoadLibraryA(%s)\n", name); result=LoadLibraryA(qq); - dbgprintf("Returned LoadLibraryA(0x%x='%s'), def_path=%s => 0x%x\n", name, name, def_path, result); + printf("Returned LoadLibraryA(0x%x='%s'), def_path=%s => 0x%x\n", name, name, def_path, result); return result; } int WINAPI expFreeLibrary(int module) @@ -1874,6 +1874,12 @@ dbgprintf("memcmp(0x%x, 0x%x, %d) => %d\n", dest, src, n, result); return result; } +int expmemcpy(void* dest, void* src, int n) +{ + int result=memcpy(dest, src, n); + dbgprintf("memcpy(0x%x, 0x%x, %d) => %x\n", dest, src, n, result); + return result; +} time_t exptime(time_t* t) { time_t result=time(t); @@ -2480,6 +2486,7 @@ FF(strcat, -1) FF(memmove, -1) FF(memcmp, -1) +//FF(memcpy, -1) FF(time, -1) }; struct exports exp_winmm[]={ @@ -2522,6 +2529,10 @@ FF(CoCreateInstance, -1) FF(StringFromGUID2, -1) }; +struct exports exp_crtdll[]={ +FF(memcpy, -1) +}; + #define LL(X) \ {#X".dll", sizeof(exp_##X)/sizeof(struct exports), exp_##X}, @@ -2534,6 +2545,7 @@ LL(gdi32) LL(version) LL(ole32) +LL(crtdll) }; void* LookupExternal(const char* library, int ordinal)