From bb1f89d8a28fd203cd2774281cd63002f4340e93 Mon Sep 17 00:00:00 2001 From: zilmar Date: Tue, 13 Nov 2012 16:06:06 +1100 Subject: [PATCH] Fix bug in logging with missing .c_str() --- Source/Project64/N64 System/C Core/Logging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64/N64 System/C Core/Logging.cpp b/Source/Project64/N64 System/C Core/Logging.cpp index 6d5cd3888..12a602a09 100644 --- a/Source/Project64/N64 System/C Core/Logging.cpp +++ b/Source/Project64/N64 System/C Core/Logging.cpp @@ -65,7 +65,7 @@ void LoadLogOptions (LOG_OPTIONS * LogOptions, BOOL AlwaysFill) { HKEY hKeyResults = 0; char String[200]; - sprintf(String,"Software\\N64 Emulation\\%s\\Logging",_Settings->LoadString(Setting_ApplicationName)); + sprintf(String,"Software\\N64 Emulation\\%s\\Logging",_Settings->LoadString(Setting_ApplicationName).c_str()); lResult = RegOpenKeyEx( HKEY_CURRENT_USER,String,0,KEY_ALL_ACCESS, &hKeyResults); @@ -642,7 +642,7 @@ void SaveLogOptions (void) { DWORD Disposition = 0; char String[200]; - sprintf(String,"Software\\N64 Emulation\\%s\\Logging",_Settings->LoadString(Setting_ApplicationName)); + sprintf(String,"Software\\N64 Emulation\\%s\\Logging",_Settings->LoadString(Setting_ApplicationName).c_str()); lResult = RegCreateKeyEx( HKEY_CURRENT_USER,String,0,"", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS,NULL,&hKeyResults,&Disposition);