diff options
| author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-03-16 18:57:45 -0500 | 
|---|---|---|
| committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-03-16 19:22:20 -0500 | 
| commit | a2fb82658aa246024b067cebc68948ab90d02b0a (patch) | |
| tree | b7ca27dea26983558a94f16b746a0d49f9ab30b6 /common/os_calls.c | |
| parent | ee65dc6e52e0d484e6384d7e96253ddf3a12b4bc (diff) | |
| download | xrdp-proprietary-ulab-next.tar.gz xrdp-proprietary-ulab-next.zip | |
Fix crash when SHM not availableulab-next
Enhance debug logging of SHM related functions
Diffstat (limited to 'common/os_calls.c')
| -rw-r--r-- | common/os_calls.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/os_calls.c b/common/os_calls.c index 1d3a71b1..c69024c4 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -3168,12 +3168,12 @@ g_text2bool(const char *s)  }  /*****************************************************************************/ -/* returns pointer or nil on error */ +/* returns pointer or -1 on error */  void * APP_CC  g_shmat(int shmid)  {  #if defined(_WIN32) -    return 0; +    return -1;  #else       return shmat(shmid, 0, 0);  #endif | 
