From: Nick Mathewson Date: Mon, 24 May 2010 16:30:19 +0000 (-0400) Subject: Make pointer types correct in WinCE patch X-Git-Tag: tor-0.2.2.14-alpha~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=312f4ee410de718aaf20030d22a93f1c258faa37;p=thirdparty%2Ftor.git Make pointer types correct in WinCE patch --- diff --git a/src/common/compat.c b/src/common/compat.c index 066623b832..7b79c5cc3e 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1724,7 +1724,7 @@ get_uname(void) }; memset(&info, 0, sizeof(info)); info.dwOSVersionInfoSize = sizeof(info); - if (! GetVersionExW((LPOSVERSIONINFO)&info)) { + if (! GetVersionExW((LPOSVERSIONINFOW)&info)) { strlcpy(uname_result, "Bizarre version of Windows where GetVersionEx" " doesn't work.", sizeof(uname_result)); uname_result_is_set = 1; @@ -2540,7 +2540,7 @@ format_win32_error(DWORD err) FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPTSTR) &str, + (LPWSTR) &str, 0, NULL); if (str) {