From 312f4ee410de718aaf20030d22a93f1c258faa37 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 24 May 2010 12:30:19 -0400 Subject: [PATCH] Make pointer types correct in WinCE patch --- src/common/compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {