[iso] don't link with version.lib to prevent DLL sideloading issues

* This is part of #1838, where we need to sort the version.dll sideloading problem for MinGW.
* A subsequent patch will be applied to MSVC, to more generally delay the loading of DLLs.
* Also fix a typo with an assert expression.
This commit is contained in:
Pete Batard 2022-01-05 16:49:06 +00:00
parent e495c691ea
commit f6ac559f4d
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
6 changed files with 34 additions and 16 deletions

View file

@ -577,7 +577,7 @@ void SetSectionHeaders(HWND hDlg)
memset(wtmp, 0, sizeof(wtmp));
GetWindowTextW(hCtrl, wtmp, ARRAYSIZE(wtmp) - 4);
wlen = wcslen(wtmp);
assert(wlen < ARRAYSIZE(wtmp - 2));
assert(wlen < ARRAYSIZE(wtmp) - 2);
wtmp[wlen++] = L' ';
wtmp[wlen++] = L' ';
SetWindowTextW(hCtrl, wtmp);