lsteamclient: Add warnings and asserts to unixlib calls.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-10-04 17:38:54 +02:00 committed by Arkadiusz Hiler
parent 37785cfbd3
commit eb45ddf6f8

View file

@ -4,6 +4,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <assert.h>
#include <windef.h> #include <windef.h>
#include <winbase.h> #include <winbase.h>
@ -206,7 +207,13 @@ struct networking_message
#include <poppack.h> #include <poppack.h>
#define STEAMCLIENT_CALL( code, args ) WINE_UNIX_CALL( unix_ ## code, args ) #define STEAMCLIENT_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 #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */