Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/winlean.h')
-rw-r--r--winsup/cygwin/winlean.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h
index 836bc4d30..c4955aec4 100644
--- a/winsup/cygwin/winlean.h
+++ b/winsup/cygwin/winlean.h
@@ -1,6 +1,6 @@
/* winlean.h - Standard "lean" windows include
- Copyright 2010 Red Hat, Inc.
+ Copyright 2010, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -27,4 +27,11 @@ details. */
#undef _WINVER_H
#undef _WINNETWK_H
#undef _WINSVC_H
+/* When Terminal Services are installed, the GetWindowsDirectory function
+ does not return the system installation dir, but a user specific directory
+ instead. That's not what we have in mind when calling GetWindowsDirectory
+ from within Cygwin. So we redefine GetWindowsDirectory to call the
+ GetSystemWindowsDirectory function here. */
+#define GetWindowsDirectoryW GetSystemWindowsDirectoryW
+#define GetWindowsDirectoryA GetSystemWindowsDirectoryA
#endif /*_WINLEAN_H*/