Re: advapi32: Add RegOpen/CloseKey test and fixes

2005-02-18 Thread Alexandre Julliard
James Hawkins <[EMAIL PROTECTED]> writes: > +ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkHandle); > +hkPreserve = hkHandle; > +ret = RegCloseKey(hkHandle); > +ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret); > +ok(hkHandle == hkPreserve, "

Re: advapi32: Add RegOpen/CloseKey test and fixes

2005-02-17 Thread Dmitry Timoshkov
"James Hawkins" <[EMAIL PROTECTED]> wrote: > +static const WCHAR emptyW[] = {0}; > + > +if (!name || !strcmpW(name, emptyW)) { > +*retkey = hkey; > +return ERROR_SUCCESS; > +} > +if (!name || !strcmp(name, "")) { > +*retkey = hkey; > +return ERROR_S