diff --git a/reactos/dll/win32/user32/windows/dialog.c b/reactos/dll/win32/user32/windows/dialog.c index 0c7dd3002fb..44433999c9c 100644 --- a/reactos/dll/win32/user32/windows/dialog.c +++ b/reactos/dll/win32/user32/windows/dialog.c @@ -611,7 +611,7 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result ) } /* First control is on dword boundary */ - return (LPCSTR)((((int)p) + 3) & ~3); + return (LPCSTR)((((UINT_PTR)p) + 3) & ~3); } /***********************************************************************