From: rnv Date: Fri, 7 Sep 2018 08:41:48 +0000 (+0300) Subject: Finalize windows porting X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6749ae2734f1dacecd5cf6f765a803488a7fedf;p=modules%2Fsmesh.git Finalize windows porting --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index e7916cca3..75c9d2184 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -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)