summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-08-05 06:16:05 +0000
committerjsorg71 <jsorg71>2009-08-05 06:16:05 +0000
commiteeac7c938a7602f4e471181aa62b18c206105de8 (patch)
tree8aefb09f38b9215394baf9806841c07203994177 /common/os_calls.c
parent3cfea6a9596269cf1a0e308ea6653905fa3702bb (diff)
downloadxrdp-proprietary-eeac7c938a7602f4e471181aa62b18c206105de8.tar.gz
xrdp-proprietary-eeac7c938a7602f4e471181aa62b18c206105de8.zip
add extended log output
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index e805a09f..5db47447 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1684,7 +1684,11 @@ g_get_strerror(void)
int APP_CC
g_get_errno(void)
{
+#if defined(_WIN32)
+ return GetLastError();
+#else
return errno;
+#endif
}
/*****************************************************************************/