search for: call_dllimport

Displaying 3 results from an estimated 3 matches for "call_dllimport".

2013 Mar 19
2
Patch to add Unicode filename support for win32 flac
On 18.3.2013 12:25, Erik de Castro Lopo wrote: > JonY wrote: > >> Before anyone does anything, see __wgetmainargs >> <http://msdn.microsoft.com/en-us/library/ff770599.aspx>. >> >> It can expand wildcards. Since it already provides argc/argv/env, it is >> more a less a drop-in replacement for the main() arguments. > +1 > > Erik Alright, here's
2013 Mar 19
3
Patch to add Unicode filename support for win32 flac
...s, if you can place malicious replacement c-runtime dll in the exe's path you have already won. > > I think it is best to link it directly, please use the following > prototype and call it directly: > > ============================================= > #ifdef _DLL > #define CALL_DLLIMPORT __declspec(dllimport) > #else > #define CALL_DLLIMPORT > #endif > int __cdecl CALL_DLLIMPORT __wgetmainargs(int*, wchar_t***, wchar_t***, > int, int*); > ============================================= > > This should simplify the error handling logic and help against > Loa...
2013 Mar 19
0
Patch to add Unicode filename support for win32 flac
...e some concerns about the security implications: LoadLibrary("msvcrt.dll") <- Which msvcrt? Theoretical security exploit. I think it is best to link it directly, please use the following prototype and call it directly: ============================================= #ifdef _DLL #define CALL_DLLIMPORT __declspec(dllimport) #else #define CALL_DLLIMPORT #endif int __cdecl CALL_DLLIMPORT __wgetmainargs(int*, wchar_t***, wchar_t***, int, int*); ============================================= This should simplify the error handling logic and help against LoadLibrary handle leaks, though the leak shoul...