Skip to content

Commit

Permalink
Merge pull request #6 from Im-Rises/Dev
Browse files Browse the repository at this point in the history
Corrected crash on wasm run when calling ImGui::RenderNotification()
  • Loading branch information
TyomaVader authored Mar 14, 2024
2 parents 6aee02d + 9a90b78 commit 86f00ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unixExample/backends/ImGuiNotify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ namespace ImGui
char windowName[50];
#ifdef _WIN32
sprintf_s(windowName, "##TOAST%d", (int)i);
#elif defined(__linux__)
#elif defined(__linux__) || defined(__EMSCRIPTEN__)
sprintf(windowName, "##TOAST%d", (int)i);
#else
throw "Unsupported platform";
Expand Down
2 changes: 1 addition & 1 deletion win32Example/backends/ImGuiNotify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ namespace ImGui
char windowName[50];
#ifdef _WIN32
sprintf_s(windowName, "##TOAST%d", (int)i);
#elif defined(__linux__)
#elif defined(__linux__) || defined(__EMSCRIPTEN__)
sprintf(windowName, "##TOAST%d", (int)i);
#else
throw "Unsupported platform";
Expand Down

0 comments on commit 86f00ab

Please sign in to comment.