fix building with MSVC

fixed some warnings

svn path=/trunk/; revision=20720
This commit is contained in:
Christoph von Wittich
2006-01-08 19:15:31 +00:00
parent adee19d592
commit 753034cee1
3 changed files with 2 additions and 5 deletions
+1 -2
View 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[] =
+1 -1
View 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));
}
/***********************************************************************
-2
View File
@@ -1,8 +1,6 @@
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_NO_DEPRECATE
#include <assert.h>
#include <stdio.h>
#include <windows.h>