call_scilab need good information about library path on Windows 04/17704/3
Antoine ELIAS [Wed, 20 Jan 2016 12:59:37 +0000 (13:59 +0100)]
Change-Id: I784902698380fa5347134ddb4191639bbd31caf0

scilab/modules/ast/src/cpp/system_env/sci_path.cpp

index cff4da6..cb2fa8b 100644 (file)
@@ -170,7 +170,7 @@ char* computeSCI()
 
     char *DirTmp = NULL;
 
-    if (!GetModuleFileNameA((HINSTANCE)GetModuleHandleA("libScilab"), ScilabModuleName, MAX_PATH))
+    if (!GetModuleFileNameA((HINSTANCE)GetModuleHandleA("core"), ScilabModuleName, MAX_PATH))
     {
         return NULL;
     }