diff --git a/lsteamclient/unixlib.h b/lsteamclient/unixlib.h index ced51781..1044f85a 100644 --- a/lsteamclient/unixlib.h +++ b/lsteamclient/unixlib.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -206,7 +207,13 @@ struct networking_message #include -#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 } /* extern "C" */