From 7275291e7d00b8faefc5a379139e2da3b8cd5a5b Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Wed, 2 Mar 2016 20:45:06 -0500 Subject: [PATCH] Fixed steam-related freeze and msgbox crash --- src/oneshot.cpp | 2 ++ src/steam.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/oneshot.cpp b/src/oneshot.cpp index 2744053..934343c 100644 --- a/src/oneshot.cpp +++ b/src/oneshot.cpp @@ -461,6 +461,8 @@ void Oneshot::setYesNo(const char *yes, const char *no) bool Oneshot::msgbox(int type, const char *body, const char *title) { + if (!title) + title = ""; #if defined OS_W32 //Get native window handle SDL_SysWMinfo wminfo; diff --git a/src/steam.cpp b/src/steam.cpp index 5790960..d1bdf6d 100644 --- a/src/steam.cpp +++ b/src/steam.cpp @@ -99,9 +99,6 @@ struct SteamPrivate const STEAMSHIM_Event *e; while ((e = STEAMSHIM_pump()) != 0) { - /* Skip erroneous events */ - if (!e->okay) - continue; /* Handle events */ switch (e->type) {