Commit c2fab856 authored by Alexandre Julliard's avatar Alexandre Julliard

ole32/tests: Raise an exception instead of accessing a bad pointer directly.

This avoids a compiler warning.
parent fab4d1fd
......@@ -269,7 +269,7 @@ static ULONG WINAPI TestCrash_IUnknown_Release(LPUNKNOWN iface)
UnlockModule();
if(!cLocks) {
trace("crashing...\n");
*(int**)0xc = 0;
RaiseException( EXCEPTION_ACCESS_VIOLATION, EXCEPTION_NONCONTINUABLE, 0, NULL );
}
return 1; /* non-heap-based object */
}
......
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