Author: tkreuzer
Date: Wed Jun 23 12:40:55 2010
New Revision: 47832
URL:
http://svn.reactos.org/svn/reactos?rev=47832&view=rev
Log:
[PRIMITIVES]
- use pointer sized integers when converting handles
Modified:
trunk/rostests/tests/primitives/primitives.cpp
Modified: trunk/rostests/tests/primitives/primitives.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/primitives/primitiv…
==============================================================================
--- trunk/rostests/tests/primitives/primitives.cpp [iso-8859-1] (original)
+++ trunk/rostests/tests/primitives/primitives.cpp [iso-8859-1] Wed Jun 23 12:40:55 2010
@@ -186,8 +186,8 @@
);
assert(hListBox != NULL);
- SetWindowLong(
- hListBox, GWL_ID, reinterpret_cast<LONG>(hListBox)
+ SetWindowLongPtr(
+ hListBox, GWL_ID, reinterpret_cast<LONG_PTR>(hListBox)
);
SNDMSG(hListBox, LB_ADDSTRING, 0,
@@ -238,7 +238,7 @@
reinterpret_cast<LPMEASUREITEMSTRUCT>(lParam);
assert(lpmis != NULL);
- if (lpmis->CtlID == reinterpret_cast<UINT>(hListBox))
+ if (lpmis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
{
lpmis->itemHeight = 150;
return TRUE;
@@ -251,7 +251,7 @@
reinterpret_cast<LPDRAWITEMSTRUCT>(lParam);
assert(lpdis != NULL);
- if (lpdis->CtlID == reinterpret_cast<UINT>(hListBox))
+ if (lpdis->CtlID == reinterpret_cast<UINT_PTR>(hListBox))
{
SaveDC(lpdis->hDC);
#if 0