dinput8/tests: Use CLSCTX_INPROC_SERVER instead of a magic number.

This commit is contained in:
Józef Kucia 2012-03-25 15:48:37 +02:00 committed by Alexandre Julliard
parent 146176cc38
commit 42235c3cc9
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ static void test_action_mapping(void)
DIACTIONFORMAT af;
struct enum_data data = {pDI, &af, NULL, NULL, NULL, 0};
hr = CoCreateInstance(&CLSID_DirectInput8, 0, 1, &IID_IDirectInput8A, (LPVOID*)&pDI);
hr = CoCreateInstance(&CLSID_DirectInput8, 0, CLSCTX_INPROC_SERVER, &IID_IDirectInput8A, (LPVOID*)&pDI);
if (hr == DIERR_OLDDIRECTINPUTVERSION ||
hr == DIERR_BETADIRECTINPUTVERSION ||
hr == REGDB_E_CLASSNOTREG)