[APPLICATIONS] Fix 64 bit issues

This commit is contained in:
Timo Kreuzer 2018-03-04 16:12:18 +01:00
parent 807331436e
commit 6f13066647
16 changed files with 31 additions and 28 deletions

View file

@ -6,10 +6,10 @@ class CRichEdit :
{
HMODULE m_LoadedLibrary;
VOID GenericInsertText(LPCWSTR lpszText, LONG InsertedTextLen, DWORD dwEffects)
VOID GenericInsertText(LPCWSTR lpszText, SIZE_T InsertedTextLen, DWORD dwEffects)
{
SETTEXTEX SetText;
LONG Len = GetTextLen();
SIZE_T Len = GetTextLen();
if (InsertedTextLen)
{
@ -34,7 +34,7 @@ class CRichEdit :
public:
CRichEdit() : CWindow(), m_LoadedLibrary(NULL) {}
VOID SetRangeFormatting(LONG Start, LONG End, DWORD dwEffects)
VOID SetRangeFormatting(SIZE_T Start, SIZE_T End, DWORD dwEffects)
{
CHARFORMAT2W CharFormat;

View file

@ -47,7 +47,7 @@ public:
virtual INT OnCompareItems(T * p1, T * p2)
{
INT t = (reinterpret_cast<INT>(p2) - reinterpret_cast<INT>(p1));
INT_PTR t = (reinterpret_cast<INT_PTR>(p2) - reinterpret_cast<INT_PTR>(p1));
if (t > 0)
return 1;
if (t < 0)