Fix Windows 32bits compilation

Signed-off-by: Stephen L. <lrq3000@gmail.com>
This commit is contained in:
Stephen L 2017-03-03 20:01:10 +01:00
parent cd41690fc3
commit 0374f0710b
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ char *Sys_SteamPath( void )
DWORD pathLen = MAX_OSPATH;
qboolean finishPath = qfalse;
#ifdef STEAMPATH_APPID
#if defined(STEAMPATH_APPID) && defined(KEY_WOW64_32KEY)
// Assuming Steam is a 32-bit app
if (!steamPath[0] && !RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App " STEAMPATH_APPID, 0, KEY_QUERY_VALUE | KEY_WOW64_32KEY, &steamRegKey))
{