From: Christoph von Wittich Date: Sun, 8 Jan 2006 19:15:31 +0000 (+0000) Subject: fix building with MSVC X-Git-Tag: backups/expat-rbuild@40467~441 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=753034cee1d32782ca9cf8dfb1bfbda6c6e86837;hp=adee19d5929b8102f8ea22bf76ab96c3d41828f7 fix building with MSVC fixed some warnings svn path=/trunk/; revision=20720 --- diff --git a/reactos/subsys/system/notepad/License_En.c b/reactos/subsys/system/notepad/License_En.c index f8ffe140436..64a0172f5af 100644 --- a/reactos/subsys/system/notepad/License_En.c +++ b/reactos/subsys/system/notepad/License_En.c @@ -1,5 +1,4 @@ -#include -#include "license.h" +#include static const CHAR LicenseCaption_En[] = "LICENSE"; static const CHAR License_En[] = diff --git a/reactos/subsys/system/notepad/main.c b/reactos/subsys/system/notepad/main.c index bbe811561ea..be3ba17efd1 100644 --- a/reactos/subsys/system/notepad/main.c +++ b/reactos/subsys/system/notepad/main.c @@ -37,7 +37,7 @@ VOID SetFileName(LPCWSTR szFileName) { lstrcpy(Globals.szFileName, szFileName); Globals.szFileTitle[0] = 0; - GetFileTitle(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle)); + GetFileTitle(szFileName, Globals.szFileTitle, wcslen(Globals.szFileTitle)); } /*********************************************************************** diff --git a/reactos/subsys/system/notepad/notepad.h b/reactos/subsys/system/notepad/notepad.h index b7dc0d4a167..fb670bc2db1 100644 --- a/reactos/subsys/system/notepad/notepad.h +++ b/reactos/subsys/system/notepad/notepad.h @@ -1,8 +1,6 @@ #define UNICODE #define _UNICODE -#define _CRT_SECURE_NO_DEPRECATE - #include #include #include