[or-cvs] [tor/master] Make pointer types correct in WinCE patch

nickm at torproject.org nickm at torproject.org
Mon May 24 16:35:07 UTC 2010


Author: Nick Mathewson <nickm at torproject.org>
Date: Mon, 24 May 2010 12:30:19 -0400
Subject: Make pointer types correct in WinCE patch
Commit: 312f4ee410de718aaf20030d22a93f1c258faa37

---
 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 066623b..7b79c5c 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) {
-- 
1.6.5



More information about the tor-commits mailing list