mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-02 00:42:53 +01:00
Fix null pointer dereferencing in SDL_GetPrefPath(3) (#163)
This commit is contained in:
parent
3c6e1c9d47
commit
6486589c4a
@ -109,7 +109,7 @@ int winmain::WinMain(LPCSTR lpCmdLine)
|
|||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
ImIO = &io;
|
ImIO = &io;
|
||||||
|
|
||||||
auto prefPath = SDL_GetPrefPath(nullptr, "SpaceCadetPinball");
|
auto prefPath = SDL_GetPrefPath("", "SpaceCadetPinball");
|
||||||
auto iniPath = std::string(prefPath) + "imgui_pb.ini";
|
auto iniPath = std::string(prefPath) + "imgui_pb.ini";
|
||||||
io.IniFilename = iniPath.c_str();
|
io.IniFilename = iniPath.c_str();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user