Module: wine Branch: master Commit: d25af3c247fa47c7b62e924138c7e56ad9b5b5b6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d25af3c247fa47c7b62e924138...
Author: Francois Gouget fgouget@free.fr Date: Wed Apr 20 11:52:11 2016 +0200
mmdevapi/tests: Use RegQueryValueExW() for compatibility with Windows XP.
RegGetValueW() was added later and should be avoided in the conformance tests.
Signed-off-by: Francois Gouget fgouget@free.fr Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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, ®val, &size); + ret = RegQueryValueExW(props, bogusW, NULL, &type, (LPBYTE)®val, &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);