TRACE("(%p) %s,%p\n", iface, debugstr_guid(rguid), pdiph);
_dump_DIPROPHEADER(pdiph);
- if (HIWORD(rguid)) return DI_OK;
+ if (!IS_DIPROP(rguid)) return DI_OK;
switch (LOWORD(rguid))
{
TRACE("(%p) %s,%p\n", iface, debugstr_guid(rguid), pdiph);
_dump_DIPROPHEADER(pdiph);
- if (HIWORD(rguid)) return DI_OK;
+ if (!IS_DIPROP(rguid)) return DI_OK;
switch (LOWORD(rguid))
{
extern void _dump_diactionformatA(LPDIACTIONFORMATA);
+#define IS_DIPROP(x) (((ULONG_PTR)(x) >> 16) == 0)
+
#endif /* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */
if (TRACE_ON(dinput))
_dump_DIPROPHEADER(ph);
- if (!HIWORD(rguid)) {
+ if (IS_DIPROP(rguid)) {
switch (LOWORD(rguid)) {
case (DWORD_PTR)DIPROP_RANGE: {
LPCDIPROPRANGE pr = (LPCDIPROPRANGE)ph;
if (TRACE_ON(dinput))
_dump_DIPROPHEADER(pdiph);
- if (!HIWORD(rguid)) {
+ if (IS_DIPROP(rguid)) {
switch (LOWORD(rguid)) {
case (DWORD_PTR) DIPROP_RANGE: {
LPDIPROPRANGE pr = (LPDIPROPRANGE)pdiph;
TRACE("ph.dwSize = %d, ph.dwHeaderSize =%d, ph.dwObj = %d, ph.dwHow= %d\n",
ph->dwSize, ph->dwHeaderSize, ph->dwObj, ph->dwHow);
- if (!HIWORD(rguid)) {
+ if (IS_DIPROP(rguid)) {
switch (LOWORD(rguid)) {
case (DWORD_PTR)DIPROP_CALIBRATIONMODE: {
LPCDIPROPDWORD pd = (LPCDIPROPDWORD)ph;
TRACE("(this=%p,%s,%p)\n", iface, debugstr_guid(rguid), pdiph);
_dump_DIPROPHEADER(pdiph);
- if (HIWORD(rguid)) return DI_OK;
+ if (!IS_DIPROP(rguid)) return DI_OK;
switch (LOWORD(rguid)) {
case (DWORD_PTR) DIPROP_AUTOCENTER:
TRACE("(%p) %s,%p\n", iface, debugstr_guid(rguid), pdiph);
_dump_DIPROPHEADER(pdiph);
- if (HIWORD(rguid)) return DI_OK;
+ if (!IS_DIPROP(rguid)) return DI_OK;
switch (LOWORD(rguid))
{
TRACE("(%p) %s,%p\n", This, debugstr_guid(rguid), pdiph);
_dump_DIPROPHEADER(pdiph);
- if (!HIWORD(rguid)) {
+ if (IS_DIPROP(rguid)) {
switch (LOWORD(rguid)) {
case (DWORD_PTR) DIPROP_GRANULARITY: {
LPDIPROPDWORD pr = (LPDIPROPDWORD) pdiph;