mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
steam.exe: Define SHGetFolderPath(A|W) to remove shlobj.h include.
It breaks on DECLSPEC_IMPORT EXTERN_C.
This commit is contained in:
parent
e24f98aa3b
commit
f8bf0861b2
@ -38,7 +38,6 @@
|
||||
#include <winternl.h>
|
||||
#include <shellapi.h>
|
||||
#include <shlwapi.h>
|
||||
#include <shlobj.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
@ -73,6 +72,14 @@
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(steam);
|
||||
|
||||
/* from shlobj.h, which breaks because of DECLSPEC_IMPORT EXTERN_C in C++ */
|
||||
#define CSIDL_LOCAL_APPDATA 0x001c
|
||||
#define CSIDL_FLAG_CREATE 0x8000
|
||||
|
||||
EXTERN_C WINSHELLAPI HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
|
||||
EXTERN_C WINSHELLAPI HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
|
||||
#define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
|
||||
|
||||
static const WCHAR PROTON_VR_RUNTIME_W[] = {'P','R','O','T','O','N','_','V','R','_','R','U','N','T','I','M','E',0};
|
||||
static const WCHAR VR_PATHREG_OVERRIDE_W[] = {'V','R','_','P','A','T','H','R','E','G','_','O','V','E','R','R','I','D','E',0};
|
||||
static const WCHAR VR_OVERRIDE_W[] = {'V','R','_','O','V','E','R','R','I','D','E',0};
|
||||
|
Loading…
Reference in New Issue
Block a user