dxdiagn: Validate the dwDxDiagHeaderVersion member in IDxDiagProvider::Initialize.
This commit is contained in:
parent
e1dd6a869d
commit
a72af3100d
|
@ -96,7 +96,8 @@ static HRESULT WINAPI IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface, DXDI
|
|||
if (NULL == pParams) {
|
||||
return E_POINTER;
|
||||
}
|
||||
if (pParams->dwSize != sizeof(DXDIAG_INIT_PARAMS)) {
|
||||
if (pParams->dwSize != sizeof(DXDIAG_INIT_PARAMS) ||
|
||||
pParams->dwDxDiagHeaderVersion != DXDIAG_DX9_SDK_VERSION) {
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ static void test_Initialize(void)
|
|||
params.bAllowWHQLChecks = FALSE;
|
||||
params.pReserved = NULL;
|
||||
hr = IDxDiagProvider_Initialize(pddp, ¶ms);
|
||||
todo_wine
|
||||
ok(hr == E_INVALIDARG,
|
||||
"Expected IDxDiagProvider::Initialize to return E_INVALIDARG, got %x\n", hr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue