Author: spetreolle
Date: Thu Dec 14 01:05:14 2006
New Revision: 25150
URL:
http://svn.reactos.org/svn/reactos?rev=25150&view=rev
Log:
build wordpad with unicode="yes/no"
Modified:
trunk/reactos/base/applications/wordpad/misc.c
trunk/reactos/base/applications/wordpad/wordpad.c
trunk/reactos/base/applications/wordpad/wordpad.rbuild
Modified: trunk/reactos/base/applications/wordpad/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/misc.c (original)
+++ trunk/reactos/base/applications/wordpad/misc.c Thu Dec 14 01:05:14 2006
@@ -47,7 +47,7 @@
uID);
if (ln++ > 0)
{
- (*lpTarget) = (LPWSTR)LocalAlloc(LMEM_FIXED,
+ (*lpTarget) = (LPTSTR)LocalAlloc(LMEM_FIXED,
ln * sizeof(TCHAR));
if ((*lpTarget) != NULL)
{
Modified: trunk/reactos/base/applications/wordpad/wordpad.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/wordpad.c (original)
+++ trunk/reactos/base/applications/wordpad/wordpad.c Thu Dec 14 01:05:14 2006
@@ -4,9 +4,9 @@
HANDLE ProcessHeap;
int WINAPI
-WinMain(HINSTANCE hThisInstance,
+_tWinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
+ LPTSTR lpCmdLine,
int nCmdShow)
{
LPTSTR lpAppName, lpVersion, lpTitle;
Modified: trunk/reactos/base/applications/wordpad/wordpad.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/wordpad/…
==============================================================================
--- trunk/reactos/base/applications/wordpad/wordpad.rbuild (original)
+++ trunk/reactos/base/applications/wordpad/wordpad.rbuild Thu Dec 14 01:05:14 2006
@@ -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>
+</rbuild>