fix building with MSVC
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 8 Jan 2006 19:15:31 +0000 (19:15 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 8 Jan 2006 19:15:31 +0000 (19:15 +0000)
fixed some warnings

svn path=/trunk/; revision=20720

reactos/subsys/system/notepad/License_En.c
reactos/subsys/system/notepad/main.c
reactos/subsys/system/notepad/notepad.h

index f8ffe14..64a0172 100644 (file)
@@ -1,5 +1,4 @@
-#include <windows.h>
-#include "license.h"
+#include <notepad.h>
 
 static const CHAR LicenseCaption_En[] = "LICENSE";
 static const CHAR License_En[] =
index bbe8115..be3ba17 100644 (file)
@@ -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));
 }
 
 /***********************************************************************
index b7dc0d4..fb670bc 100644 (file)
@@ -1,8 +1,6 @@
 #define UNICODE\r
 #define _UNICODE\r
 \r
-#define _CRT_SECURE_NO_DEPRECATE\r
-\r
 #include <assert.h>\r
 #include <stdio.h>\r
 #include <windows.h>\r