From 5e76e11e6a2015f4015c1ddbd055ef7c6c9f2c01 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 6 Jul 2015 00:13:55 -0700 Subject: [PATCH] GUAC-1172: Use FreeRDP to define STATUS_* constants, if possible, before falling back to the rest of rdp_status.h. --- src/protocols/rdp/rdp_status.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/protocols/rdp/rdp_status.h b/src/protocols/rdp/rdp_status.h index 4efe0cca..77be1b0a 100644 --- a/src/protocols/rdp/rdp_status.h +++ b/src/protocols/rdp/rdp_status.h @@ -32,6 +32,14 @@ #include "config.h" +/* Include any constants from winpr/file.h, if available */ + +#ifdef ENABLE_WINPR +#include +#endif + +/* Constants which MAY be defined within FreeRDP */ + #ifndef STATUS_SUCCESS #define STATUS_SUCCESS 0x00000000 #define STATUS_NO_MORE_FILES 0x80000006 @@ -53,7 +61,9 @@ #define STATUS_FILE_CLOSED 0xC0000128 #endif +/* Constants which are NEVER defined within FreeRDP */ + #define STATUS_FILE_SYSTEM_LIMITATION 0xC0000427 #define STATUS_FILE_TOO_LARGE 0xC0000904 -#endif \ No newline at end of file +#endif