diff options
author | jsorg71 <jsorg71> | 2008-12-01 09:37:08 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-12-01 09:37:08 +0000 |
commit | 9317386e74c10362a4b95b250dcd8d353a3fca5f (patch) | |
tree | 2b541d0bbd8a8b2968e5a41c7efac43ee8911813 /common | |
parent | ffee44d51866b9169ab4dcdcd3a06a386ed15aad (diff) | |
download | xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.tar.gz xrdp-proprietary-9317386e74c10362a4b95b250dcd8d353a3fca5f.zip |
add pid to event names
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index c29200ea..84bba282 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1864,14 +1864,13 @@ g_exit(int exit_code) } /*****************************************************************************/ -/* does not work in win32 */ int APP_CC g_getpid(void) { #if defined(_WIN32) - return 0; + return (int)GetCurrentProcessId(); #else - return getpid(); + return (int)getpid(); #endif } |