winbuild: fix passing std::string directly to format(...)

- pass result of c_str() instead
This commit is contained in:
Christophe Chevalier 2021-01-30 15:12:13 +01:00
parent 5d2a7cdf4c
commit 0eeb73846b
1 changed files with 2 additions and 2 deletions

View File

@ -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