Jactry Zeng jactry92@gmail.com writes:
Hi Alexandre, 2017-07-10 16:58 GMT+08:00 Alexandre Julliard julliard@winehq.org:
I don't see how this is different from the existing tests.
Do you mean https://source.winehq.org/git/wine.git/blob/a94938819280aa52fbc545911ca70a6c... ?
The difference is here set an empty string and a zero length for RegSetValueExW:
- ret = RegSetValueExW(hkey_main, name4W, 0, REG_SZ, (const BYTE *)emptyW, lstrlenW(emptyW));
Later RegQueryValueExW will get a zero length and it will not set buffer[0] as NULL:
That's also tested already, in test_hkey_main_Value_A/W.