aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_registry.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-12-02 11:44:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-12-02 11:44:58 +0000
commit1a3e844b434f21462a1ac1f1f854a7d18d1bf902 (patch)
tree25d8fb062e476508158c4d985ad600facddfda84 /winsup/cygwin/fhandler_registry.cc
parent651d8393c8083a255f2a36f45f2f813146cf98c4 (diff)
downloadnewlib-1a3e844b434f21462a1ac1f1f854a7d18d1bf902.zip
newlib-1a3e844b434f21462a1ac1f1f854a7d18d1bf902.tar.gz
newlib-1a3e844b434f21462a1ac1f1f854a7d18d1bf902.tar.bz2
* fhandler_registry.cc (must_encode): Fix condition changed for testing.
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index f77e85c..ce4335f 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -85,7 +85,7 @@ static HKEY open_key (const char *name, REGSAM access, DWORD wow64, bool isValue
static inline bool
must_encode (char c)
{
- return (isdirsep (c) || c == '%');
+ return (isdirsep (c) || c == ':' || c == '%');
}
/* Encode special chars in registry key or value name.