Remove unnecessary cast for string format

This commit is contained in:
Kawe Mazidjatari 2022-06-17 18:29:17 +02:00
parent 87e3313e22
commit 8463811bb0
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ string LoadConfigFile(const string& svConfig)
} }
else else
{ {
spdlog::error("{:s}: '{:s}' does not exist!\n", __FUNCTION__, svConfig.c_str()); spdlog::error("{:s}: '{:s}' does not exist!\n", __FUNCTION__, svConfig);
cfgFile.close(); cfgFile.close();
return ""; return "";
} }

View File

@ -1295,9 +1295,9 @@ bool KeyValues::ParsePlaylists(const char* pszPlaylist)
{ {
uint8_t verifyPlaylistIntegrity[] = // Very hacky way for alternative inline assembly for x64.. uint8_t verifyPlaylistIntegrity[] = // Very hacky way for alternative inline assembly for x64..
{ {
0x48, 0x8B, 0x45, 0x58, // mov rcx, playlist 0x48, 0x8B, 0x45, 0x58, // mov rcx, playlist
0xC7, 0x00, 0x00, 0x00, 0x00, // test playlist, playlist 0xC7, 0x00, 0x00, 0x00, // test playlist, playlist
0x00 0x00, 0x00
}; };
void* verifyPlaylistIntegrityFn = nullptr; void* verifyPlaylistIntegrityFn = nullptr;
VirtualAlloc(verifyPlaylistIntegrity, 10, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); VirtualAlloc(verifyPlaylistIntegrity, 10, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);