From b93d008d6419ec46541b8b92ae4d97a9a2a09c15 Mon Sep 17 00:00:00 2001 From: anders_k Date: Fri, 24 Sep 2010 18:43:04 +0000 Subject: [PATCH] Switch param type to LPCTSTR git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6123 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 2 +- Source/exehead/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 6d6c9147..04186155 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -410,7 +410,7 @@ void NSISCALL mini_memcpy(void *out, const void *in, int len) } } -DWORD NSISCALL remove_ro_attr(TCHAR *file) +DWORD NSISCALL remove_ro_attr(LPCTSTR file) { const DWORD attr = GetFileAttributes(file); if (attr != INVALID_FILE_ATTRIBUTES) diff --git a/Source/exehead/util.h b/Source/exehead/util.h index 248f260c..cedde068 100644 --- a/Source/exehead/util.h +++ b/Source/exehead/util.h @@ -107,7 +107,7 @@ void NSISCALL validate_filename(TCHAR *fn); void NSISCALL MoveFileOnReboot(LPCTSTR pszExisting, LPCTSTR pszNew); void NSISCALL mini_memcpy(void *out, const void *in, int len); -DWORD NSISCALL remove_ro_attr(TCHAR *file); +DWORD NSISCALL remove_ro_attr(LPCTSTR file); enum myGetProcAddressFunctions { MGA_GetDiskFreeSpaceEx,