From: dmv Date: Wed, 27 Oct 2010 06:40:01 +0000 (+0000) Subject: Win32: VISU: Problem with loading ASCII study X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c33fcd4cff5b8db72dbfe6b672f0f6146a4763e;p=modules%2Fkernel.git Win32: VISU: Problem with loading ASCII study --- diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index a2222ef20..9112e9288 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -328,8 +328,15 @@ SALOMEDS_Tool::PutStreamToFiles(const SALOMEDS::TMPFile& theStream, aCurrentPos += 4; char *aFileName = new char[aFileNameSize]; - //Put a file name to aFileName - memcpy(aFileName, (aBuffer + aCurrentPos), aFileNameSize); + //Put a file name to aFileName + memcpy(aFileName, (aBuffer + aCurrentPos), aFileNameSize); +#ifdef WIN32 + for (int i = 0; i < strlen(aFileName); i++) + { + if (aFileName[i] == ':') + aFileName[i] = '_'; + } +#endif aCurrentPos += aFileNameSize; //Put a length of the file to aFileSize