Salome HOME
Finalize windows porting rnv/windows_9.1.0
authorrnv <rnv@opencascade.com>
Fri, 7 Sep 2018 08:41:48 +0000 (11:41 +0300)
committerrnv <rnv@opencascade.com>
Fri, 7 Sep 2018 08:41:48 +0000 (11:41 +0300)
src/SMESH_I/SMESH_Gen_i.cxx

index e7916cca304537d9ee411eec722e7088e0d593a2..75c9d2184ece2e5cde5aec19f65771cdbe4fd314 100644 (file)
@@ -440,13 +440,13 @@ GenericHypothesisCreator_i* SMESH_Gen_i::getHypothesisCreator(const char* theHyp
       // load plugin library
       if(MYDEBUG) MESSAGE("Loading server meshers plugin library ...");
 #ifdef WIN32
-#ifdef UNICODE
+  #ifdef UNICODE
          const wchar_t* path = Kernel_Utils::decode_s(aPlatformLibName);
+  #else
+         const char* path = aPlatformLibName.c_str();
+  #endif
 #else
-         const char* path = aPlatformLibName.c_str()
-#endif
-#else
-         const char* path = aPlatformLibName.c_str()
+         const char* path = aPlatformLibName.c_str();
 #endif
       LibHandle libHandle = LoadLib( path );
 #if defined(WIN32) && defined(UNICODE)