Fixed steam-related freeze and msgbox crash
This commit is contained in:
parent
7c622769ad
commit
7275291e7d
|
|
@ -461,6 +461,8 @@ void Oneshot::setYesNo(const char *yes, const char *no)
|
||||||
|
|
||||||
bool Oneshot::msgbox(int type, const char *body, const char *title)
|
bool Oneshot::msgbox(int type, const char *body, const char *title)
|
||||||
{
|
{
|
||||||
|
if (!title)
|
||||||
|
title = "";
|
||||||
#if defined OS_W32
|
#if defined OS_W32
|
||||||
//Get native window handle
|
//Get native window handle
|
||||||
SDL_SysWMinfo wminfo;
|
SDL_SysWMinfo wminfo;
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,6 @@ struct SteamPrivate
|
||||||
const STEAMSHIM_Event *e;
|
const STEAMSHIM_Event *e;
|
||||||
while ((e = STEAMSHIM_pump()) != 0)
|
while ((e = STEAMSHIM_pump()) != 0)
|
||||||
{
|
{
|
||||||
/* Skip erroneous events */
|
|
||||||
if (!e->okay)
|
|
||||||
continue;
|
|
||||||
/* Handle events */
|
/* Handle events */
|
||||||
switch (e->type)
|
switch (e->type)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue