fix C++ (MSVC) build

This commit is contained in:
pinumbernumber 2013-08-27 19:26:01 +01:00
parent 6f8455e1cc
commit 2b6907e0ab

View File

@ -443,7 +443,7 @@ static BOOL CALLBACK enum_joypad_cb(const DIDEVICEINSTANCE *inst, void *p)
return DIENUM_CONTINUE;
size_t name_len = strlen(inst->tszProductName) + 1;
g_pad_names[g_joypad_cnt] = malloc(name_len);
g_pad_names[g_joypad_cnt] = (char*)malloc(name_len);
strncpy(g_pad_names[g_joypad_cnt], inst->tszProductName, name_len);
#ifdef HAVE_WINXINPUT