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