mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix some additional -DUNICODE issues on win32.
Brodie's patch didn't catch the ones that were new since 1.4.
This commit is contained in:
parent
000a33ec83
commit
a7a943106c
2
evdns.c
2
evdns.c
@ -3415,7 +3415,7 @@ evdns_get_default_hosts_filename(void)
|
||||
char *path_out;
|
||||
int len_out;
|
||||
|
||||
if (! SHGetSpecialFolderPath(NULL, path, CSIDL_SYSTEM, 0))
|
||||
if (! SHGetSpecialFolderPathA(NULL, path, CSIDL_SYSTEM, 0))
|
||||
return NULL;
|
||||
len_out = strlen(path)+strlen(hostfile);
|
||||
path_out = mm_malloc(len_out+1);
|
||||
|
@ -107,7 +107,7 @@ _testcase_run_forked(const struct testgroup_t *group,
|
||||
*/
|
||||
int ok;
|
||||
char buffer[LONGEST_TEST_NAME+256];
|
||||
STARTUPINFO si;
|
||||
STARTUPINFOA si;
|
||||
PROCESS_INFORMATION info;
|
||||
DWORD exitcode;
|
||||
|
||||
@ -126,7 +126,7 @@ _testcase_run_forked(const struct testgroup_t *group,
|
||||
memset(&info, 0, sizeof(info));
|
||||
si.cb = sizeof(si);
|
||||
|
||||
ok = CreateProcess(commandname, buffer, NULL, NULL, 0,
|
||||
ok = CreateProcessA(commandname, buffer, NULL, NULL, 0,
|
||||
0, NULL, NULL, &si, &info);
|
||||
if (!ok) {
|
||||
printf("CreateProcess failed!\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user