mirror of
https://github.com/frida/tinycc
synced 2024-11-23 16:19:35 +03:00
Explicitly use Windows ANSI APIs
To avoid issues when building with unicode as the default character set.
This commit is contained in:
parent
2f72e38d60
commit
d5c1aee8f1
2
libtcc.c
2
libtcc.c
@ -102,7 +102,7 @@ static void tcc_set_lib_path_w32(TCCState *s)
|
||||
static void tcc_add_systemdir(TCCState *s)
|
||||
{
|
||||
char buf[1000];
|
||||
GetSystemDirectory(buf, sizeof buf);
|
||||
GetSystemDirectoryA(buf, sizeof buf);
|
||||
tcc_add_library_path(s, normalize_slashes(buf));
|
||||
}
|
||||
#endif
|
||||
|
2
tccpe.c
2
tccpe.c
@ -857,7 +857,7 @@ static void pe_build_imports(struct pe_info *pe)
|
||||
if (pe->type == PE_RUN) {
|
||||
if (dllref) {
|
||||
if ( !dllref->handle )
|
||||
dllref->handle = LoadLibrary(dllref->name);
|
||||
dllref->handle = LoadLibraryA(dllref->name);
|
||||
v = (ADDR3264)GetProcAddress(dllref->handle, ordinal?(char*)0+ordinal:name);
|
||||
}
|
||||
if (!v)
|
||||
|
Loading…
Reference in New Issue
Block a user