From 22672c5b0ab35bab22aa0dc8b511ff4ecfb4fb0e Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Mon, 8 Jan 2024 21:07:57 -0600 Subject: [PATCH] lsteamclient: Clear last error in create_win_interface(). CW-Bug-Id: #23178 --- lsteamclient/steamclient_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 1ba10f90..82e987c6 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -301,6 +301,7 @@ struct w_steam_iface *create_win_interface(const char *name, void *u_iface) done: LeaveCriticalSection(&steamclient_cs); if (!ret) ERR("Don't recognize interface name: %s\n", name); + SetLastError(0); return ret; }