dinput: Fix Initialize return value.

This commit is contained in:
Roderick Colenbrander 2006-05-06 20:15:15 +02:00 committed by Alexandre Julliard
parent cf0704bd88
commit bc31b388d1
1 changed files with 7 additions and 1 deletions

View File

@ -368,7 +368,13 @@ static HRESULT WINAPI IDirectInputWImpl_CreateDevice(LPDIRECTINPUT7A iface,
}
static HRESULT WINAPI IDirectInputAImpl_Initialize(LPDIRECTINPUT7A iface, HINSTANCE hinst, DWORD x) {
return DIERR_ALREADYINITIALIZED;
TRACE("(this=%p,%p,%lx)\n",iface, hinst, x);
/* Initialize can return: DIERR_BETADIRECTINPUTVERSION, DIERR_OLDDIRECTINPUTVERSION and DI_OK.
* Since we already initialized the device, return DI_OK. In the past we returned DIERR_ALREADYINITIALIZED
* which broke applications like Tomb Raider Legend because it isn't a legal return value.
*/
return DI_OK;
}
static HRESULT WINAPI IDirectInputAImpl_GetDeviceStatus(LPDIRECTINPUT7A iface,