Commit 3237c5ed authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32/tests: Test pointer returned by ProgIDFromCLSID() on failure.

parent 6d3c0dc1
...@@ -356,11 +356,13 @@ static void test_ProgIDFromCLSID(void) ...@@ -356,11 +356,13 @@ static void test_ProgIDFromCLSID(void)
CoTaskMemFree(progid); CoTaskMemFree(progid);
/* classes without default progid, progid list is not used */ /* classes without default progid, progid list is not used */
progid = (void *)0xdeadbeef;
hr = ProgIDFromCLSID(&IID_Testiface5, &progid); hr = ProgIDFromCLSID(&IID_Testiface5, &progid);
ok(hr == REGDB_E_CLASSNOTREG, "got 0x%08x\n", hr); ok(hr == REGDB_E_CLASSNOTREG && progid == NULL, "got 0x%08x, progid %p\n", hr, progid);
progid = (void *)0xdeadbeef;
hr = ProgIDFromCLSID(&IID_Testiface6, &progid); hr = ProgIDFromCLSID(&IID_Testiface6, &progid);
ok(hr == REGDB_E_CLASSNOTREG, "got 0x%08x\n", hr); ok(hr == REGDB_E_CLASSNOTREG && progid == NULL, "got 0x%08x, progid %p\n", hr, progid);
pDeactivateActCtx(0, cookie); pDeactivateActCtx(0, cookie);
pReleaseActCtx(handle); pReleaseActCtx(handle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment