Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
+static HRESULT lastAsyncCode = E_FAIL; +static DPNHANDLE lastAsyncHandle = 0xdeadbeef;
+#define CHECK_LAST_ASYNC_OP(hr, handle) \
ok(lastAsyncCode == hr, "got 0x%08x\n", lastAsyncCode); \
ok(lastAsyncHandle == handle, "got 0x%08x\n", handle); \
lastAsyncCode = E_FAIL; lastAsyncHandle = 0xdeadbeef;
Please don't define such macros. In this case you should simply spell it out explicitly, it's not a lot of code.