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

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 commit is contained in:
Thomas Faber 2018-02-07 10:53:51 +01:00
parent 2d887745a7
commit c0a227d9a5
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
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.