Mercurial > mplayer.hg
view loader/win32.h @ 10624:cdfd4a43c406
I've juste found a bug which prevent to load a file whose name contain
a quote ('). The menu simply execute a "loadfile '%p'" but when the %p
is replaced by the actual value, quotes in it are not escaped !
Moreover, mp_input_parse_cmd contain some code to unescape strings but
this code was placed after the string was copied in his final buffer.
So this patch correct this issue.
By Aurlien Jacobs
author | albeu |
---|---|
date | Fri, 15 Aug 2003 18:45:35 +0000 |
parents | 174e2a58b4cd |
children | 792eec413bd5 |
line wrap: on
line source
#ifndef loader_win32_h #define loader_win32_h #include <time.h> #include "wine/windef.h" #include "wine/winbase.h" #include "com.h" #ifdef AVIFILE #ifdef __GNUC__ #include "avm_output.h" #ifndef __cplusplus #define printf(a, ...) avm_printf("Win32 plugin", a, ## __VA_ARGS__) #endif #endif #endif extern void my_garbagecollection(void); typedef struct { UINT uDriverSignature; HINSTANCE hDriverModule; DRIVERPROC DriverProc; DWORD dwDriverID; } DRVR; typedef DRVR *PDRVR; typedef DRVR *NPDRVR; typedef DRVR *LPDRVR; typedef struct tls_s tls_t; extern void* LookupExternal(const char* library, int ordinal); extern void* LookupExternalByName(const char* library, const char* name); extern int expRegisterClassA(const void/*WNDCLASSA*/ *wc); extern int expUnregisterClassA(const char *className, HINSTANCE hInstance); #endif