diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-05-24 12:30:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-05-24 12:30:19 -0400 |
commit | 312f4ee410de718aaf20030d22a93f1c258faa37 (patch) | |
tree | 7c7099ce3d2fbdfa5760278cb5603511a0f7f438 /src/common/compat.c | |
parent | 2dce01982a46ee2558dd7a8fb5f8ac1b86d900bf (diff) | |
download | tor-312f4ee410de718aaf20030d22a93f1c258faa37.tar.gz tor-312f4ee410de718aaf20030d22a93f1c258faa37.zip |
Make pointer types correct in WinCE patch
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 4 |
1 files 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) { |