diff --git a/vrclient_x64/unixlib.h b/vrclient_x64/unixlib.h index f20687594..d6ad96ea6 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" */