On Fri Jun 10 07:31:21 2022 +0000, Huw Davies wrote:
Err, obviously comparing `!name[0]` directly with `!name[1]` would also work.
Yeah, since wcscmp doesn't handle NULL inputs, I was basically trying to do what lstrcmpW does in a single if statement, i.e:
``` if (!str1 && !str2) return 0; if (!str1) return -1; if (!str2) return 1; ```
but splitting it out into multiple if statement would definitely make things clearer.