fix building with MSVC
fixed some warnings
Modified: trunk/reactos/subsys/system/notepad/License_En.c
Modified: trunk/reactos/subsys/system/notepad/main.c
Modified: trunk/reactos/subsys/system/notepad/notepad.h
_____
Modified: trunk/reactos/subsys/system/notepad/License_En.c
--- trunk/reactos/subsys/system/notepad/License_En.c 2006-01-08
19:07:16 UTC (rev 20719)
+++ trunk/reactos/subsys/system/notepad/License_En.c 2006-01-08
19:15:31 UTC (rev 20720)
@@ -1,5 +1,4 @@
-#include <windows.h>
-#include "license.h"
+#include <notepad.h>
static const CHAR LicenseCaption_En[] = "LICENSE";
static const CHAR License_En[] =
_____
Modified: trunk/reactos/subsys/system/notepad/main.c
--- trunk/reactos/subsys/system/notepad/main.c 2006-01-08 19:07:16 UTC
(rev 20719)
+++ trunk/reactos/subsys/system/notepad/main.c 2006-01-08 19:15:31 UTC
(rev 20720)
@@ -37,7 +37,7 @@
{
lstrcpy(Globals.szFileName, szFileName);
Globals.szFileTitle[0] = 0;
- GetFileTitle(szFileName, Globals.szFileTitle,
sizeof(Globals.szFileTitle));
+ GetFileTitle(szFileName, Globals.szFileTitle,
wcslen(Globals.szFileTitle));
}
/***********************************************************************
_____
Modified: trunk/reactos/subsys/system/notepad/notepad.h
--- trunk/reactos/subsys/system/notepad/notepad.h 2006-01-08
19:07:16 UTC (rev 20719)
+++ trunk/reactos/subsys/system/notepad/notepad.h 2006-01-08
19:15:31 UTC (rev 20720)
@@ -1,8 +1,6 @@
#define UNICODE
#define _UNICODE
-#define _CRT_SECURE_NO_DEPRECATE
-
#include <assert.h>
#include <stdio.h>
#include <windows.h>