wchar_tis a wide character string, so each character takes up 2 bytes of memory. "H" is a wchar_tequal to 0x0048. Since x86 is unimportant, you see bytes in memory in the order 48 00.
db in windbg resets bytes and shows how it is treated as an ASCII string, therefore, HEL ... the output you see. You can use 'du' to unload memory as a string in Unicode.
source
share