Fix some MinGW warnings

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6293 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-03-10 23:02:09 +00:00
parent 0d2edb2f1b
commit 4f8bf3c466
6 changed files with 12 additions and 11 deletions

View file

@ -37,7 +37,7 @@ UINT StrLenUTF16LE(const void*str)
bool StrSetUTF16LE(tstring&dest, const void*src)
{
#ifdef _WIN32
dest = (unsigned short *) src;
dest = (wchar_t*) src;
#else
#error TODO: UTF16LE to wchar_t
#endif
@ -155,7 +155,8 @@ WORD GetEncodingFromString(const TCHAR*s)
void NStreamEncoding::GetCPDisplayName(WORD CP, TCHAR*Buf)
{
TCHAR mybuf[10], *p = mybuf;
TCHAR mybuf[10];
const TCHAR *p = mybuf;
switch(CP)
{
case ACP: p = _T("ACP"); break;