mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-25 04:43:31 +01:00
Make pointer types correct in WinCE patch
This commit is contained in:
parent
2dce01982a
commit
312f4ee410
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user