mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[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-g9ebf43567d
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-gc0a227d9a5
This commit is contained in:
parent
d68b4c4a10
commit
6ece2bbe9c
|
@ -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,
|
||||
|
|
2
dll/cpl/sysdm/resources/.gitattributes
vendored
Normal file
2
dll/cpl/sysdm/resources/.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# This text file is included in the binary output
|
||||
gpl.txt text eol=crlf
|
Binary file not shown.
Loading…
Reference in a new issue