mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Fixed steam-related freeze and msgbox crash
This commit is contained in:
parent
7c622769ad
commit
7275291e7d
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue