From e6749ae2734f1dacecd5cf6f765a803488a7fedf Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 7 Sep 2018 11:41:48 +0300 Subject: [PATCH] Finalize windows porting --- src/SMESH_I/SMESH_Gen_i.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.39.2