[SYSDM] Make the GPL text ASCII. CORE-14278
authorThomas Faber <thomas.faber@reactos.org>
Wed, 7 Feb 2018 09:53:51 +0000 (10:53 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 7 Feb 2018 23:52:41 +0000 (00:52 +0100)
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.

dll/cpl/sysdm/licence.c
dll/cpl/sysdm/resources/.gitattributes [new file with mode: 0644]
dll/cpl/sysdm/resources/gpl.txt

index d8461bf..6894fd6 100644 (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,
diff --git a/dll/cpl/sysdm/resources/.gitattributes b/dll/cpl/sysdm/resources/.gitattributes
new file mode 100644 (file)
index 0000000..4d51a75
--- /dev/null
@@ -0,0 +1,2 @@
+# This text file is included in the binary output
+gpl.txt text eol=crlf
index 9f46aed..d511905 100644 (file)
Binary files a/dll/cpl/sysdm/resources/gpl.txt and b/dll/cpl/sysdm/resources/gpl.txt differ