Fixed freeing a constant string (thanks @gnrlwart)

This commit is contained in:
Sam Lantinga 2022-03-22 20:23:09 -07:00
parent 8df045cc7d
commit 006aafabcf
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ static HRESULT STDMETHODCALLTYPE IEventHandler_CRawGameControllerVtbl_InvokeAdde
__x_ABI_CWindows_CGaming_CInput_CIRawGameController2_Release(controller2);
}
if (!name) {
name = "";
name = SDL_strdup("");
}
hr = __x_ABI_CWindows_CGaming_CInput_CIRawGameController_QueryInterface(controller, &IID_IGameController, (void **)&gamecontroller);