Make pointer types correct in WinCE patch

This commit is contained in:
Nick Mathewson 2010-05-24 12:30:19 -04:00
parent 2dce01982a
commit 312f4ee410

View File

@ -1724,7 +1724,7 @@ get_uname(void)
}; };
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
info.dwOSVersionInfoSize = sizeof(info); info.dwOSVersionInfoSize = sizeof(info);
if (! GetVersionExW((LPOSVERSIONINFO)&info)) { if (! GetVersionExW((LPOSVERSIONINFOW)&info)) {
strlcpy(uname_result, "Bizarre version of Windows where GetVersionEx" strlcpy(uname_result, "Bizarre version of Windows where GetVersionEx"
" doesn't work.", sizeof(uname_result)); " doesn't work.", sizeof(uname_result));
uname_result_is_set = 1; uname_result_is_set = 1;
@ -2540,7 +2540,7 @@ format_win32_error(DWORD err)
FORMAT_MESSAGE_IGNORE_INSERTS, FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, err, NULL, err,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &str, (LPWSTR) &str,
0, NULL); 0, NULL);
if (str) { if (str) {