]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Win32: VISU: Problem with loading ASCII study BR_WIN_INDUS_514
authordmv <dmv@opencascade.com>
Wed, 27 Oct 2010 06:40:01 +0000 (06:40 +0000)
committerdmv <dmv@opencascade.com>
Wed, 27 Oct 2010 06:40:01 +0000 (06:40 +0000)
src/TOOLSDS/SALOMEDS_Tool.cxx

index a2222ef20f7ecf5305f378aca28127a129570afe..9112e9288b84ee10d70231d225f70f7368f80b6d 100644 (file)
@@ -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