From f513692a08150786fabe6f8cd23ce4c10870a02c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Jan 2020 17:36:00 +0100 Subject: [PATCH] - fixed last commit. --- source/common/gamecontrol.cpp | 2 +- source/common/searchpaths.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/common/gamecontrol.cpp b/source/common/gamecontrol.cpp index 01d9c07ea..211c8d3ea 100644 --- a/source/common/gamecontrol.cpp +++ b/source/common/gamecontrol.cpp @@ -92,7 +92,7 @@ CVAR(Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALC // //========================================================================== -static bool grab_mouse; +bool grab_mouse; void mouseGrabInput(bool grab) { diff --git a/source/common/searchpaths.cpp b/source/common/searchpaths.cpp index 4d8b1b950..98519ee37 100644 --- a/source/common/searchpaths.cpp +++ b/source/common/searchpaths.cpp @@ -128,10 +128,10 @@ void G_AddExternalSearchPaths(TArray &searchpaths) { // 3D Realms Anthology char buf[PATH_MAX]; - bufsize = sizeof(buf); + DWORD bufsize = sizeof(buf); if (Paths_ReadRegistryValue(entry.regPath, entry.regKey, buf, &bufsize)) { - if (!entry.subpaths) AddSearchPath(buf); + if (!entry.subpaths) AddSearchPath(searchpaths, buf); else { FString path;