Skip to content

Commit

Permalink
crypt32: Install both 32 and 64 bit DLLs
Browse files Browse the repository at this point in the history
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 Nov 16, 2023
1 parent 07c6d38 commit 440567d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -6141,17 +6141,22 @@ load_comdlg32ocx()
w_metadata crypt32 dlls \
title="MS crypt32" \
publisher="Microsoft" \
year="2004" \
year="2011" \
media="download" \
file1="../winxpsp3/WindowsXP-KB936929-SP3-x86-ENU.exe" \
file1="../win7sp1/windows6.1-KB976932-X64.exe" \
installed_file1="${W_SYSTEM32_DLLS_WIN}/crypt32.dll"

load_crypt32()
{
w_call msasn1

helper_winxpsp3 i386/crypt32.dl_
w_try_cabextract --directory="${W_SYSTEM32_DLLS}" "${W_TMP}"/i386/crypt32.dl_
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
}
Expand Down

0 comments on commit 440567d

Please sign in to comment.