build wordpad with unicode="yes/no"
authorSylvain Petreolle <spetreolle@yahoo.fr>
Wed, 13 Dec 2006 22:05:14 +0000 (22:05 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Wed, 13 Dec 2006 22:05:14 +0000 (22:05 +0000)
svn path=/trunk/; revision=25150

reactos/base/applications/wordpad/misc.c
reactos/base/applications/wordpad/wordpad.c
reactos/base/applications/wordpad/wordpad.rbuild

index 3392a15..8f72856 100644 (file)
@@ -47,7 +47,7 @@ AllocAndLoadString(OUT LPTSTR *lpTarget,
                              uID);
     if (ln++ > 0)
     {
-        (*lpTarget) = (LPWSTR)LocalAlloc(LMEM_FIXED,
+        (*lpTarget) = (LPTSTR)LocalAlloc(LMEM_FIXED,
                                          ln * sizeof(TCHAR));
         if ((*lpTarget) != NULL)
         {
index 1fed9ae..cc96cb6 100644 (file)
@@ -4,9 +4,9 @@ HINSTANCE hInstance;
 HANDLE ProcessHeap;
 
 int WINAPI
-WinMain(HINSTANCE hThisInstance,
+_tWinMain(HINSTANCE hThisInstance,
         HINSTANCE hPrevInstance,
-        LPSTR lpCmdLine,
+        LPTSTR lpCmdLine,
         int nCmdShow)
 {
     LPTSTR lpAppName, lpVersion, lpTitle;
index 8eabef9..92d9e42 100644 (file)
@@ -1,9 +1,7 @@
 <?xml version="1.0"?>
 <rbuild xmlns:xi="http://www.w3.org/2001/XInclude">
-       <module name="wordpad" type="win32gui" installbase="system32" installname="wordpad.exe">
+       <module name="wordpad" type="win32gui" installbase="system32" installname="wordpad.exe" unicode="yes">
                <include base="wordpad">.</include>
-               <define name="UNICODE" />
-               <define name="_UNICODE" />              
                <define name="__USE_W32API" />
                <define name="_WIN32_IE">0x0600</define>
                <define name="_WIN32_WINNT">0x0501</define>
@@ -25,4 +23,4 @@
          <file>wordpad.rc</file>
                <pch>precomp.h</pch>
        </module>
-</rbuild>
\ No newline at end of file
+</rbuild>