mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
More CXX_BUILD fixes
This commit is contained in:
parent
64d3408188
commit
fe9022afe0
@ -267,7 +267,7 @@ static bool guid_is_xinput_device(const GUID* product_guid)
|
||||
(MAKELONG(rdi.hid.dwVendorId, rdi.hid.dwProductId)
|
||||
== ((LONG)product_guid->Data1)) &&
|
||||
(GetRawInputDeviceInfoA(raw_devs[i].hDevice, RIDI_DEVICENAME, NULL, &nameSize) != ((UINT)-1)) &&
|
||||
((devName = malloc(nameSize)) != NULL) &&
|
||||
((devName = (char*)malloc(nameSize)) != NULL) &&
|
||||
(GetRawInputDeviceInfoA(raw_devs[i].hDevice, RIDI_DEVICENAME, devName, &nameSize) != ((UINT)-1)) &&
|
||||
(strstr(devName, "IG_") != NULL) )
|
||||
{
|
||||
|
@ -331,7 +331,7 @@ void* task_push_http_transfer_file(const char* url, bool mute,
|
||||
if (string_is_empty(url))
|
||||
return NULL;
|
||||
|
||||
t = task_push_http_transfer_generic(
|
||||
t = (retro_task_t*)task_push_http_transfer_generic(
|
||||
net_http_connection_new(url, "GET", NULL),
|
||||
url, mute, type, cb, transfer_data);
|
||||
|
||||
|
@ -65,7 +65,7 @@ bool win32_window_init(WNDCLASSEX *wndclass,
|
||||
{
|
||||
#if _WIN32_WINNT >= 0x0501
|
||||
/* Use the language set in the config for the menubar... also changes the console language. */
|
||||
SetThreadUILanguage(win32_get_langid_from_retro_lang(*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)));
|
||||
SetThreadUILanguage(win32_get_langid_from_retro_lang((enum retro_language)*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)));
|
||||
#endif
|
||||
wndclass->cbSize = sizeof(WNDCLASSEX);
|
||||
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user