[PATCH v2 0/3] MR216: uiautomationcore: More UiaProviderFromIAccessible work.
Connor McAdams (@cmcadams)
wine at gitlab.winehq.org
Fri Jun 10 08:27:42 CDT 2022
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.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/216#note_1831
More information about the wine-devel
mailing list