#ifdef UNICODE
std::wstring aPathToCheck = utf8_decode_s( thePath );
#else
- aPathToCheck = thePath;
+ std::string aPathToCheck = thePath;
#endif
if ( GetFileAttributes ( aPathToCheck.c_str() ) == 0xFFFFFFFF ) {
if ( GetLastError () == FILE_ATTRIBUTE_READONLY ) {
#ifdef UNICODE
std::wstring aPathToCheck = utf8_decode_s(thePath);
#else
- aPathToCheck = thePath;
+ std::string aPathToCheck = thePath;
#endif
HANDLE hFile = FindFirstFile( aPathToCheck.c_str(), &aFileData );
#ifndef WIN32
else aName = ((SALOMEDS::AttributeStudyProperties_var)SALOMEDS::AttributeStudyProperties::_narrow(_corba_impl))->GetUserName();
#else
+#ifdef UNICODE
else aName = ((SALOMEDS::AttributeStudyProperties_var)SALOMEDS::AttributeStudyProperties::_narrow(_corba_impl))->GetUserNameW();
+#else
+ else aName = ((SALOMEDS::AttributeStudyProperties_var)SALOMEDS::AttributeStudyProperties::_narrow(_corba_impl))->GetUserNameA();
+#endif
#endif
return aName;
}