mmdevapi/tests: Use RegQueryValueExW() for compatibility with Windows XP.

Andrew Eikum aeikum at codeweavers.com
Wed Apr 20 11:02:41 CDT 2016


mmdevapi doesn't exist on winxp. I'm not opposed to this change, but
does it matter?

Andrew

On Wed, Apr 20, 2016 at 11:52:11AM +0200, Francois Gouget wrote:
> RegGetValueW() was added later and should be avoided in the conformance tests.
> 
> Signed-off-by: Francois Gouget <fgouget at free.fr>
> ---
>  dlls/mmdevapi/tests/propstore.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/mmdevapi/tests/propstore.c b/dlls/mmdevapi/tests/propstore.c
> index 06fe690..665136f 100644
> --- a/dlls/mmdevapi/tests/propstore.c
> +++ b/dlls/mmdevapi/tests/propstore.c
> @@ -173,7 +173,7 @@ static void test_setvalue_on_wow64(IPropertyStore *store)
>  
>      /* Note: the registry key exists even without calling IPropStore::Commit */
>      size = sizeof(regval);
> -    ret = RegGetValueW(props, NULL, bogusW, RRF_RT_DWORD, &type, &regval, &size);
> +    ret = RegQueryValueExW(props, bogusW, NULL, &type, (LPBYTE)&regval, &size);
>      ok(ret == ERROR_SUCCESS, "Couldn't get bogus propertykey value: %u\n", ret);
>      ok(type == REG_DWORD, "Got wrong value type: %u\n", type);
>      ok(regval == 0xAB, "Got wrong value: 0x%x\n", regval);
> -- 
> 2.8.0.rc3
> 
> 



More information about the wine-devel mailing list