@@ -22,10 +22,10 @@ class CFileWriter : public IWriter
2222 {
2323 R_ASSERT (name && name[0 ]);
2424 fName = name;
25- VerifyPath (* fName );
25+ VerifyPath (fName . c_str () );
2626 if (exclusive)
2727 {
28- int handle = _sopen (* fName , _O_WRONLY | _O_TRUNC | _O_CREAT | _O_BINARY, SH_DENYWR);
28+ int handle = _sopen (fName . c_str () , _O_WRONLY | _O_TRUNC | _O_CREAT | _O_BINARY, SH_DENYWR);
2929#ifdef _EDITOR
3030 if (handle == -1 )
3131 Msg (" !Can't create file: '%s'. Error: '%s'." , *fName , _sys_errlist[errno]);
@@ -34,9 +34,9 @@ class CFileWriter : public IWriter
3434 }
3535 else
3636 {
37- hf = fopen (* fName , " wb" );
37+ hf = fopen (fName . c_str () , " wb" );
3838 if (hf == 0 )
39- Msg (" !Can't write file: '%s'. Error: '%s'." , * fName , _sys_errlist[errno]);
39+ Msg (" !Can't write file: '%s'. Error: '%s'." , fName . c_str () , _sys_errlist[errno]);
4040 }
4141 }
4242
@@ -46,11 +46,11 @@ class CFileWriter : public IWriter
4646 {
4747 fclose (hf);
4848 // release RO attrib
49- DWORD dwAttr = GetFileAttributes (* fName );
49+ DWORD dwAttr = GetFileAttributes (fName . c_str () );
5050 if ((dwAttr != u32 (-1 )) && (dwAttr & FILE_ATTRIBUTE_READONLY))
5151 {
5252 dwAttr &= ~FILE_ATTRIBUTE_READONLY;
53- SetFileAttributes (* fName , dwAttr);
53+ SetFileAttributes (fName . c_str () , dwAttr);
5454 }
5555 }
5656 }
0 commit comments