Exit test after first TranslateInfString() failure, which seems to be
NT3.51 specific.
This commit is contained in:
parent
932815d6f0
commit
426cc7fe3f
|
@ -183,8 +183,15 @@ static void translateinfstring_test()
|
||||||
/* try to open an inf file that doesn't exist */
|
/* try to open an inf file that doesn't exist */
|
||||||
hr = pTranslateInfString("c:\\a.inf", "Options.NTx86", "Options.NTx86",
|
hr = pTranslateInfString("c:\\a.inf", "Options.NTx86", "Options.NTx86",
|
||||||
"InstallDir", buffer, MAX_PATH, &dwSize, NULL);
|
"InstallDir", buffer, MAX_PATH, &dwSize, NULL);
|
||||||
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == E_INVALIDARG,
|
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == E_INVALIDARG ||
|
||||||
"Expected 0x80070002 or E_INVALIDARG, got 0x%08x\n", (UINT)hr);
|
hr == HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND),
|
||||||
|
"Expected E_INVALIDARG, 0x80070002 or 0x8007007e, got 0x%08x\n", (UINT)hr);
|
||||||
|
|
||||||
|
if(hr == HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND))
|
||||||
|
{
|
||||||
|
trace("WinNT 3.51 detected. Skipping tests for TranslateInfString()");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* try a nonexistent section */
|
/* try a nonexistent section */
|
||||||
buffer[0] = 0;
|
buffer[0] = 0;
|
||||||
|
|
Loading…
Reference in New Issue