winbuild: fix passing std::string directly to format(...)
- pass result of c_str() instead
This commit is contained in:
parent
5d2a7cdf4c
commit
0eeb73846b
|
@ -411,11 +411,11 @@ protected:
|
|||
char confFileDirectory[2048];
|
||||
char *fileNameStart;
|
||||
if( !GetFullPathName( confFile.c_str(), 2048, confFileDirectory, &fileNameStart ) ) {
|
||||
errorExit( format( "get path of conf file (%s)", confFile ).c_str() );
|
||||
errorExit( format( "get path of conf file (%s)", confFile.c_str() ).c_str() );
|
||||
}
|
||||
|
||||
if( !fileNameStart ) {
|
||||
errorExit( format( "file name not present (%s)", confFile ).c_str() );
|
||||
errorExit( format( "file name not present (%s)", confFile.c_str() ).c_str() );
|
||||
}
|
||||
|
||||
// Test file existence
|
||||
|
|
Loading…
Reference in New Issue