From 6c33fcd4cff5b8db72dbfe6b672f0f6146a4763e Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 27 Oct 2010 06:40:01 +0000 Subject: [PATCH] Win32: VISU: Problem with loading ASCII study --- src/TOOLSDS/SALOMEDS_Tool.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.2