Undocumented behaviour in ReqQueryValueEx when 'count' and 'type'point to the same address
Juan Lang
juan.lang at gmail.com
Fri Dec 14 09:05:16 CST 2007
> > + size = 4;
> > + ret = RegQueryValueExA(hkey_main, "BIN32", NULL, &size, buffer, &size);
> > + ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", ret);
>
> What this test is supposed to test?
It tests the order in which type and count are checked. When type and
count are (erroneously) passed the same pointer, RegQueryValueExA
still succeeds on Windows. It fails on Wine, due to type being set to
0 early in the function, which caused a regression in Sam's (buggy)
program.
--Juan
More information about the wine-devel
mailing list