summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-11-28 01:19:38 +0000
committerjsorg71 <jsorg71>2005-11-28 01:19:38 +0000
commita142d70a49328be4bc280f1974bfcc3dd388da54 (patch)
treea669245ab0f5358bad161535d9f5f4a95fe69231 /common
parent754efcabb167f162133ac0963dd0552f09c32bf1 (diff)
downloadxrdp-proprietary-a142d70a49328be4bc280f1974bfcc3dd388da54.tar.gz
xrdp-proprietary-a142d70a49328be4bc280f1974bfcc3dd388da54.zip
more win32 stuff
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 0a9d022b..9adbeeec 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -571,7 +571,7 @@ char*
g_get_current_dir(char* dirname, int maxlen)
{
#if defined(_WIN32)
- return 0;
+ return GetCurrentDirectory(maxlen, dirname);
#else
return getcwd(dirname, maxlen);
#endif
@@ -582,7 +582,7 @@ int
g_set_current_dir(char* dirname)
{
#if defined(_WIN32)
- return 0;
+ return SetCurrentDirectory(dirname);
#else
return chdir(dirname);
#endif
@@ -594,7 +594,7 @@ int
g_file_exist(char* filename)
{
#if defined(_WIN32)
- return 0;
+ return 0; // use FindFirstFile();
#else
return access(filename, F_OK) == 0;
#endif
@@ -938,10 +938,7 @@ g_getenv(char* name)
int
g_exit(int exit_code)
{
-#if defined(_WIN32)
-#else
_exit(exit_code);
-#endif
return 0;
}