aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 066623b83..7b79c5cc3 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) {