27 Jun
2023
27 Jun
'23
7:48 a.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3157#note_36932