Skip to content

Commit

Permalink
crypt32: Install both 32 and 64 bit DLLs (#2153)
Browse files Browse the repository at this point in the history
* crypt32: Install both 32 and 64 bit DLLs

Use win7sp1 instead of winxpsp3, it easily provides both 32 bit and 64 bit DLLs, with the added benefit of likely being newer.
  • Loading branch information
qwertychouskie authored Dec 15, 2023
1 parent d52625e commit b6083c1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -6141,6 +6141,31 @@ load_comdlg32ocx()
#----------------------------------------------------------------

w_metadata crypt32 dlls \
title="MS crypt32" \
publisher="Microsoft" \
year="2011" \
media="download" \
file1="../win7sp1/windows6.1-KB976932-X64.exe" \
installed_file1="${W_SYSTEM32_DLLS_WIN}/crypt32.dll"

load_crypt32()
{
w_call msasn1

helper_win7sp1 x86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.1.7601.17514_none_5d772bc73c15dfe5/crypt32.dll
w_try_cp_dll "${W_TMP}/x86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.1.7601.17514_none_5d772bc73c15dfe5/crypt32.dll" "${W_SYSTEM32_DLLS}/crypt32.dll"

if [ "${W_ARCH}" = "win64" ]; then
helper_win7sp1_x64 amd64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.1.7601.17514_none_b995c74af473511b/crypt32.dll
w_try_cp_dll "${W_TMP}/amd64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.1.7601.17514_none_b995c74af473511b/crypt32.dll" "${W_SYSTEM64_DLLS}/crypt32.dll"
fi

w_override_dlls native crypt32
}

#----------------------------------------------------------------

w_metadata crypt32_winxp dlls \
title="MS crypt32" \
publisher="Microsoft" \
year="2004" \
Expand All @@ -6150,6 +6175,8 @@ w_metadata crypt32 dlls \

load_crypt32()
{
w_package_warn_win64 # Only the 32-bit DLL is installed

w_call msasn1

helper_winxpsp3 i386/crypt32.dl_
Expand Down

0 comments on commit b6083c1

Please sign in to comment.