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:
Nick Mathewson 2010-02-03 23:49:22 -05:00
parent 000a33ec83
commit a7a943106c
2 changed files with 9 additions and 9 deletions

View File

@ -3415,7 +3415,7 @@ evdns_get_default_hosts_filename(void)
char *path_out; char *path_out;
int len_out; int len_out;
if (! SHGetSpecialFolderPath(NULL, path, CSIDL_SYSTEM, 0)) if (! SHGetSpecialFolderPathA(NULL, path, CSIDL_SYSTEM, 0))
return NULL; return NULL;
len_out = strlen(path)+strlen(hostfile); len_out = strlen(path)+strlen(hostfile);
path_out = mm_malloc(len_out+1); path_out = mm_malloc(len_out+1);

View File

@ -107,7 +107,7 @@ _testcase_run_forked(const struct testgroup_t *group,
*/ */
int ok; int ok;
char buffer[LONGEST_TEST_NAME+256]; char buffer[LONGEST_TEST_NAME+256];
STARTUPINFO si; STARTUPINFOA si;
PROCESS_INFORMATION info; PROCESS_INFORMATION info;
DWORD exitcode; DWORD exitcode;
@ -126,7 +126,7 @@ _testcase_run_forked(const struct testgroup_t *group,
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
si.cb = sizeof(si); si.cb = sizeof(si);
ok = CreateProcess(commandname, buffer, NULL, NULL, 0, ok = CreateProcessA(commandname, buffer, NULL, NULL, 0,
0, NULL, NULL, &si, &info); 0, NULL, NULL, &si, &info);
if (!ok) { if (!ok) {
printf("CreateProcess failed!\n"); printf("CreateProcess failed!\n");