[0.4.7][SYSDM] Make the GPL text ASCII. CORE-14278

symptom CORE-14278 "View License in the System Properties shows corrupted text for git-clones on Windows"

This is better than wasting space on null chars (and having Git mangle it).
Also ensure that it gets CRLF newlines since its contents go in the binary.

This fixes CORE-14278 regression introduced by 0.4.7-dev-515-g 9ebf43567d

It will also shrink the binary size of sysdm.cpl RosBE2.1.6 GCC4.7.2 dbg
from 807.936bytes to 788.992bytes

Fix picked from 0.4.8-dev-1031-g c0a227d9a5
This commit is contained in:
Joachim Henze 2021-01-30 04:04:06 +01:00
parent d68b4c4a10
commit 6ece2bbe9c
3 changed files with 7 additions and 5 deletions

View file

@ -20,7 +20,7 @@ OnInitDialog(HWND hDlg, PLIC_CONTEXT pLicInfo)
{
HRSRC hResInfo;
HGLOBAL hResMem;
WCHAR *LicenseText;
PCSTR LicenseText;
pLicInfo->hIcon = LoadImage(hApplet,
MAKEINTRESOURCE(IDI_CPLSYSTEM),
@ -45,10 +45,10 @@ OnInitDialog(HWND hDlg, PLIC_CONTEXT pLicInfo)
return FALSE;
}
/* Insert the license into the edit control (unicode!) */
SetDlgItemText(hDlg,
IDC_LICENCEEDIT,
LicenseText);
/* Insert the license into the edit control */
SetDlgItemTextA(hDlg,
IDC_LICENCEEDIT,
LicenseText);
PostMessage(GetDlgItem(hDlg, IDC_LICENCEEDIT),
EM_SETSEL,

View file

@ -0,0 +1,2 @@
# This text file is included in the binary output
gpl.txt text eol=crlf

Binary file not shown.