From 955adcbce9ad1f685ccab2f12b37fca130b965c0 Mon Sep 17 00:00:00 2001 From: Austin English Date: Fri, 30 May 2008 15:10:52 -0500 Subject: [PATCH] advpack: Fix a test failure on 9x. --- dlls/advpack/tests/advpack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c index e761577e477..0b668a71a5b 100644 --- a/dlls/advpack/tests/advpack.c +++ b/dlls/advpack/tests/advpack.c @@ -331,8 +331,9 @@ static void translateinfstringex_test(void) /* try an empty filename */ hr = pOpenINFEngine("", "Options.NTx86", 0, &hinf, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %08x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* NT+ */ || + hr == HRESULT_FROM_WIN32(E_UNEXPECTED) /* 9x */, + "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND or E_UNEXPECTED), got %08x\n", hr); /* try a NULL hinf */ hr = pOpenINFEngine(inf_file, "Options.NTx86", 0, NULL, NULL);