steam.exe: Define SHGetFolderPath(A|W) to remove shlobj.h include.

It breaks on DECLSPEC_IMPORT EXTERN_C.
This commit is contained in:
Rémi Bernon 2023-12-09 08:05:02 +01:00 committed by Arkadiusz Hiler
parent e24f98aa3b
commit f8bf0861b2

View File

@ -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};