From e24f98aa3bce593b36280b621c7e7e7e58413c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 4 Oct 2023 17:39:31 +0200 Subject: [PATCH] vrclient: Add warnings and asserts to unixlib calls. CW-Bug-Id: #22729 --- vrclient_x64/unixlib.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vrclient_x64/unixlib.h b/vrclient_x64/unixlib.h index f2068759..d6ad96ea 100644 --- a/vrclient_x64/unixlib.h +++ b/vrclient_x64/unixlib.h @@ -69,7 +69,13 @@ struct vrclient_VRClientCoreFactory_params #include -#define VRCLIENT_CALL( code, args ) WINE_UNIX_CALL( unix_ ## code, args ) +#define VRCLIENT_CALL( code, args ) \ + ({ \ + NTSTATUS status = WINE_UNIX_CALL( unix_ ## code, args ); \ + if (status) WARN( #code " failed, status %#x\n", (UINT)status ); \ + assert( !status ); \ + status; \ + }) #ifdef __cplusplus } /* extern "C" */