Commit 312f4ee4 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Make pointer types correct in WinCE patch

parent 2dce0198
Loading
Loading
Loading
Loading
+2 −2
Changes for src/common/compat.c: 2 added lines, 2 removed lines.
Original line number Original line Diff line number Diff line
@@ -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) {