21 Sep
2022
21 Sep
'22
2:15 p.m.
Huw Davies (@huw) commented about dlls/kernelbase/registry.c:
return ret; }
+static void generate_string_uuid(WCHAR *out, DWORD out_size) +{ + UUID uuid; + LARGE_INTEGER ft; + ULONG seed; + + NtQuerySystemTime(&ft); + seed = ft.LowPart; + for (int i = 0; i < sizeof(uuid); ++i)
Declare `i` outside of the `for`. Also, making this loop look more like `generate_uuid()` in `dlls/ntdll/actctx.c` would be good. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/820#note_8978