Przeglądaj źródła

HPCC-10206 Include changes from the review

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 11 lat temu
rodzic
commit
da6b15f200
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      common/dllserver/dllserver.cpp

+ 4 - 4
common/dllserver/dllserver.cpp

@@ -68,9 +68,9 @@ static void getMangledTag(StringBuffer & path, const char * name)
     path.ensureCapacity(len);
     for (unsigned i=0; i < len; i++)
     {
-        byte next = name[i];
-        if (isalnum(next))
-            path.append((char)next);
+        char next = name[i];
+        if (isalnum((byte)next))
+            path.append(next);
         else
             path.append("_");
     }
@@ -584,7 +584,7 @@ void DllServer::doRegisterDll(const char * name, const char * kind, const char *
         conn.setown(querySDS().connect(xpath, myProcessSession(), RTM_LOCK_WRITE|RTM_CREATE_ADD, CONNECTION_TIMEOUT));
         if (!conn)
         {
-            ::Release(querySDS().connect("/GeneratedDlls", myProcessSession(), RTM_LOCK_WRITE|RTM_CREATE_ADD, CONNECTION_TIMEOUT));
+            ::Release(querySDS().connect("/GeneratedDlls", myProcessSession(), RTM_LOCK_WRITE|RTM_CREATE_QUERY, CONNECTION_TIMEOUT));
             conn.setown(querySDS().connect(xpath, myProcessSession(), RTM_LOCK_WRITE|RTM_CREATE_ADD, CONNECTION_TIMEOUT));
         }