From 001ea51fb56fab9a4b9e036841121ed204e169db Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 1 Apr 2020 17:12:35 +1100 Subject: [PATCH] Updated ntdll-Hide_Wine_Exports patchset --- ...l-Add-support-for-hiding-wine-version-informatio.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch b/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch index 10f124fa..8dda385c 100644 --- a/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch +++ b/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch @@ -80,11 +80,11 @@ index 6ba7b15c09e..b90e1516614 100644 + const WCHAR *p; + WCHAR appversion[MAX_PATH+20]; + -+ if ((p = strrchrW( appname, '/' ))) appname = p + 1; -+ if ((p = strrchrW( appname, '\\' ))) appname = p + 1; ++ if ((p = wcsrchr( appname, '/' ))) appname = p + 1; ++ if ((p = wcsrchr( appname, '\\' ))) appname = p + 1; + -+ strcpyW( appversion, appdefaultsW ); -+ strcatW( appversion, appname ); ++ wcscpy( appversion, appdefaultsW ); ++ wcscat( appversion, appname ); + RtlInitUnicodeString( &nameW, appversion ); + attr.RootDirectory = config_key; +