Skip to content

Commit

Permalink
kernel32: Support steamclient64
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f1d242dd002aa92e66ead34d318d6d5c6e1285a)
  • Loading branch information
aeikum committed Apr 30, 2018
1 parent e3b954b commit 4472d7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dlls/kernel32/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,17 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
};
static CRITICAL_SECTION dlldir_section = { &critsect_debug, -1, 0, 0, 0, 0 };

#if defined(__x86_64__)
static const WCHAR steamclientW[] = {'s','t','e','a','m','c','l','i','e','n','t','6','4',0};
static const WCHAR steamclient_pathW[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s',' ','(','x','8','6',')','\\','S','t','e','a','m','\\','s','t','e','a','m','c','l','i','e','n','t','6','4','.','d','l','l',0};
#else
static const WCHAR steamclientW[] = {'s','t','e','a','m','c','l','i','e','n','t',0};
static const WCHAR steamclient_pathW[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s',' ','(','x','8','6',')','\\','S','t','e','a','m','\\','s','t','e','a','m','c','l','i','e','n','t','.','d','l','l',0};
#endif
static const WCHAR steamProgramPathW[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s',' ','(','x','8','6',')','\\','S','t','e','a','m',0};
static const DWORD steamProgramPathW_len = 28;
static const WCHAR steamdllW[] = {'S','t','e','a','m','.','d','l','l',0};
static const DWORD steamdllW_len = 9;
static const WCHAR steamclient_pathW[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s','\\','S','t','e','a','m','\\','s','t','e','a','m','c','l','i','e','n','t','.','d','l','l',0};;
static HMODULE steamclient_hmod = NULL;
static HMODULE lsteamclient_hmod = NULL;

Expand Down Expand Up @@ -890,8 +897,6 @@ static const WCHAR *get_dll_system_path(void)

if (!cached_path)
{
static const WCHAR steamProgramPathW[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s','\\','S','t','e','a','m',0};
static const DWORD steamProgramPathW_len = 22;
WCHAR *p, *path;
int len = 2;

Expand Down
1 change: 1 addition & 0 deletions loader/wine.inf.in
Original file line number Diff line number Diff line change
Expand Up @@ -3509,4 +3509,5 @@ HKCU,Software\Valve\Steam\ActiveProcess,"SteamPath",,"%16422%\Steam"
[SteamClient.ntamd64]
HKCU,Software\Valve\Steam\ActiveProcess,"PID",0x10001,0x0000fffe
HKCU,Software\Valve\Steam\ActiveProcess,"SteamClientDll",,"%16426%\Steam\steamclient.dll"
HKCU,Software\Valve\Steam\ActiveProcess,"SteamClientDll64",,"%16426%\Steam\steamclient64.dll"
HKCU,Software\Valve\Steam\ActiveProcess,"SteamPath",,"%16426%\Steam"

0 comments on commit 4472d7e

Please sign in to comment.