diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 55a04c57320..e69bbf0afb9 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -614,6 +614,7 @@ static HRESULT WINAPI IDirectInputAImpl_GetDeviceStatus(LPDIRECTINPUT7A iface, R TRACE( "(%p)->(%s)\n", This, debugstr_guid(rguid) ); + if (!rguid) return E_POINTER; if (!This->initialized) return DIERR_NOTINITIALIZED; diff --git a/dlls/dinput/tests/dinput.c b/dlls/dinput/tests/dinput.c index 3302e7e304c..1cdc90bf9fa 100644 --- a/dlls/dinput/tests/dinput.c +++ b/dlls/dinput/tests/dinput.c @@ -132,7 +132,6 @@ static void test_preinitialization(void) } hr = IDirectInput_GetDeviceStatus(pDI, NULL); - todo_wine ok(hr == E_POINTER, "IDirectInput_GetDeviceStatus returned 0x%08x\n", hr); hr = IDirectInput_GetDeviceStatus(pDI, &GUID_Unknown); @@ -475,7 +474,6 @@ static void test_GetDeviceStatus(void) } hr = IDirectInput_GetDeviceStatus(pDI, NULL); - todo_wine ok(hr == E_POINTER, "IDirectInput_GetDeviceStatus returned 0x%08x\n", hr); hr = IDirectInput_GetDeviceStatus(pDI, &GUID_Unknown); diff --git a/dlls/dinput8/tests/dinput.c b/dlls/dinput8/tests/dinput.c index 72cd4980764..2a231940141 100644 --- a/dlls/dinput8/tests/dinput.c +++ b/dlls/dinput8/tests/dinput.c @@ -109,7 +109,6 @@ static void test_preinitialization(void) } hr = IDirectInput8_GetDeviceStatus(pDI, NULL); - todo_wine ok(hr == E_POINTER, "IDirectInput8_GetDeviceStatus returned 0x%08x\n", hr); hr = IDirectInput8_GetDeviceStatus(pDI, &GUID_Unknown); @@ -599,7 +598,6 @@ static void test_GetDeviceStatus(void) } hr = IDirectInput8_GetDeviceStatus(pDI, NULL); - todo_wine ok(hr == E_POINTER, "IDirectInput8_GetDeviceStatus returned 0x%08x\n", hr); hr = IDirectInput8_GetDeviceStatus(pDI, &GUID_Unknown);