mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 01:00:34 +05:00
Merge branch 'rnv/unicode'
This commit is contained in:
commit
d2be83be3a
@ -55,7 +55,11 @@ namespace MED
|
||||
#else
|
||||
cosnt char* path = xmlPath.c_str();
|
||||
#endif
|
||||
return (GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES);
|
||||
bool res = (GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES);
|
||||
#ifdef UNICODE
|
||||
delete path;
|
||||
#endif
|
||||
return res;
|
||||
#else
|
||||
return (access(fileName.c_str(), F_OK) == 0);
|
||||
#endif
|
||||
|
@ -534,6 +534,9 @@ namespace SMESH
|
||||
char* path = baPath.data();
|
||||
#endif
|
||||
LibHandle libHandle = LoadLib( path );
|
||||
#if defined(WIN32) && defined(UNICODE)
|
||||
delete path;
|
||||
#endif
|
||||
if (!libHandle) {
|
||||
// report any error, if occurred
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user