GUAC-1172: Use FreeRDP to define STATUS_* constants, if possible, before falling back to the rest of rdp_status.h.

This commit is contained in:
Michael Jumper 2015-07-06 00:13:55 -07:00
parent 4d7634da9e
commit 5e76e11e6a

View File

@ -32,6 +32,14 @@
#include "config.h" #include "config.h"
/* Include any constants from winpr/file.h, if available */
#ifdef ENABLE_WINPR
#include <winpr/file.h>
#endif
/* Constants which MAY be defined within FreeRDP */
#ifndef STATUS_SUCCESS #ifndef STATUS_SUCCESS
#define STATUS_SUCCESS 0x00000000 #define STATUS_SUCCESS 0x00000000
#define STATUS_NO_MORE_FILES 0x80000006 #define STATUS_NO_MORE_FILES 0x80000006
@ -53,7 +61,9 @@
#define STATUS_FILE_CLOSED 0xC0000128 #define STATUS_FILE_CLOSED 0xC0000128
#endif #endif
/* Constants which are NEVER defined within FreeRDP */
#define STATUS_FILE_SYSTEM_LIMITATION 0xC0000427 #define STATUS_FILE_SYSTEM_LIMITATION 0xC0000427
#define STATUS_FILE_TOO_LARGE 0xC0000904 #define STATUS_FILE_TOO_LARGE 0xC0000904
#endif #endif