Module: wine Branch: master Commit: c2fab856496e6e313d0bcde0cc4fcab37b320645 URL: https://gitlab.winehq.org/wine/wine/-/commit/c2fab856496e6e313d0bcde0cc4fcab...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jan 27 11:18:54 2023 +0100
ole32/tests: Raise an exception instead of accessing a bad pointer directly.
This avoids a compiler warning.
---
dlls/ole32/tests/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c index 7a69ad9ed15..18f47a5c64c 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -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 */ }