Bernhard Kölbl (@besentv) commented about include/wine/debug.h:
return wine_dbgstr_wn( s, -1 );
}
+static inline const char *wine_dbgstr_h( struct HSTRING__ *hstr ) +{
- const WCHAR *str;
- UINT32 len;
- if (hstr && !((ULONG_PTR)hstr >> 16)) return "(invalid)";
Just out of curiosity, could someone explain the workings behind this line? Especially `((ULONG_PTR)hstr >> 16))`is really puzzling for me.