diff options
Diffstat (limited to 'engines/wintermute/wintypes.h')
-rw-r--r-- | engines/wintermute/wintypes.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/wintermute/wintypes.h b/engines/wintermute/wintypes.h index 678fb6bb6b..04a657c644 100644 --- a/engines/wintermute/wintypes.h +++ b/engines/wintermute/wintypes.h @@ -41,10 +41,8 @@ namespace WinterMute { #define RGBCOLGetR(rgb) ((byte )((rgb)>>16))
#define RGBCOLGetA(rgb) ((byte )((rgb)>>24))
-typedef bool ERRORCODE;
-
-#define DID_SUCCEED(hr) ((ERRORCODE)(hr))
-#define DID_FAIL(hr) (!((ERRORCODE)(hr)))
+#define DID_SUCCEED(hr) ((bool)(hr))
+#define DID_FAIL(hr) (!((bool)(hr)))
#define STATUS_OK (true)
#define STATUS_FAILED (false)
|