mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed some warnings
svn path=/trunk/; revision=17967
This commit is contained in:
parent
1e7a778c81
commit
78e6f0fce1
1 changed files with 3 additions and 3 deletions
|
@ -339,7 +339,7 @@ void DoOpenFile(LPCWSTR szFileName)
|
|||
}
|
||||
else
|
||||
{
|
||||
p2 = pTemp;
|
||||
p2 = (LPBYTE)pTemp;
|
||||
if ((p2[0] == 0xEF) && (p2[1] == 0xBB) && (p2[2] == 0xBF))
|
||||
{
|
||||
iCodePage = CP_UTF8;
|
||||
|
@ -353,7 +353,7 @@ void DoOpenFile(LPCWSTR szFileName)
|
|||
Globals.iEncoding = ENCODING_ANSI;
|
||||
}
|
||||
|
||||
iNewSize = MultiByteToWideChar(iCodePage, 0, p2, dwNumRead, NULL, 0);
|
||||
iNewSize = MultiByteToWideChar(iCodePage, 0, (LPCSTR)p2, dwNumRead, NULL, 0);
|
||||
pTemp2 = HeapAlloc(GetProcessHeap(), 0, (iNewSize + 1) * sizeof(*pTemp2));
|
||||
if (!pTemp2)
|
||||
{
|
||||
|
@ -362,7 +362,7 @@ void DoOpenFile(LPCWSTR szFileName)
|
|||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
MultiByteToWideChar(iCodePage, 0, p2, dwNumRead, pTemp2, iNewSize);
|
||||
MultiByteToWideChar(iCodePage, 0, (LPCSTR)p2, dwNumRead, pTemp2, iNewSize);
|
||||
pTemp2[iNewSize] = 0;
|
||||
p = pTemp2;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue