diff options
author | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-08 23:06:35 +0000 |
---|---|---|
committer | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-08 23:06:35 +0000 |
commit | 1dddbc77fd8a9f5de13147a7bc46c19c8f17d5bf (patch) | |
tree | 279b03ef56adb9a304618a8aa8d0ba994ded1977 /ace/Registry.cpp | |
parent | 4858be1c2aaf39eb3dc1f9134769f71c9948bb6e (diff) | |
download | ATCD-1dddbc77fd8a9f5de13147a7bc46c19c8f17d5bf.tar.gz |
Changed connect function for WinCE to return -1 because CE does not allow direct registry connection.
Diffstat (limited to 'ace/Registry.cpp')
-rw-r--r-- | ace/Registry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Registry.cpp b/ace/Registry.cpp index 16e4b7ef32d..95be9dc8d86 100644 --- a/ace/Registry.cpp +++ b/ace/Registry.cpp @@ -1086,6 +1086,9 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co HKEY predefined, const ACE_TCHAR *machine_name) { +#if defined (ACE_HAS_WINCE) + return -1; +#else long result = -1; if (machine_name != 0 && ACE_OS::strcmp (ACE_LIB_TEXT ("localhost"), machine_name) == 0) @@ -1107,6 +1110,7 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co result = -1; ACE_REGISTRY_CALL_RETURN (result); +#endif // ACE_HAS_WINCE } // Check if <machine_name> is the local host |