mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[MMDEVAPI_WINETEST] Sync with Wine Staging 4.18. CORE-16441
This commit is contained in:
parent
0e18d6bc62
commit
b8949b0dad
2 changed files with 7 additions and 4 deletions
|
@ -58,23 +58,26 @@ static void test_propertystore(IPropertyStore *store)
|
||||||
{
|
{
|
||||||
WideCharToMultiByte(CP_ACP, 0, pv.u.pwszVal, -1, temp, sizeof(temp)-1, NULL, NULL);
|
WideCharToMultiByte(CP_ACP, 0, pv.u.pwszVal, -1, temp, sizeof(temp)-1, NULL, NULL);
|
||||||
trace("guid: %s\n", temp);
|
trace("guid: %s\n", temp);
|
||||||
CoTaskMemFree(pv.u.pwszVal);
|
PropVariantClear(&pv);
|
||||||
}
|
}
|
||||||
|
|
||||||
pv.vt = VT_EMPTY;
|
pv.vt = VT_EMPTY;
|
||||||
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_FriendlyName, &pv);
|
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_FriendlyName, &pv);
|
||||||
ok(hr == S_OK, "Failed with %08x\n", hr);
|
ok(hr == S_OK, "Failed with %08x\n", hr);
|
||||||
ok(pv.vt == VT_LPWSTR && pv.u.pwszVal, "FriendlyName value had wrong type: 0x%x or was NULL\n", pv.vt);
|
ok(pv.vt == VT_LPWSTR && pv.u.pwszVal, "FriendlyName value had wrong type: 0x%x or was NULL\n", pv.vt);
|
||||||
|
PropVariantClear(&pv);
|
||||||
|
|
||||||
pv.vt = VT_EMPTY;
|
pv.vt = VT_EMPTY;
|
||||||
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_Enabled, &pv);
|
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_Enabled, &pv);
|
||||||
ok(hr == S_OK, "Failed with %08x\n", hr);
|
ok(hr == S_OK, "Failed with %08x\n", hr);
|
||||||
ok(pv.vt == VT_EMPTY, "Key should not be found\n");
|
ok(pv.vt == VT_EMPTY, "Key should not be found\n");
|
||||||
|
PropVariantClear(&pv);
|
||||||
|
|
||||||
pv.vt = VT_EMPTY;
|
pv.vt = VT_EMPTY;
|
||||||
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_ClassGuid, &pv);
|
hr = IPropertyStore_GetValue(store, (const PROPERTYKEY*)&DEVPKEY_DeviceInterface_ClassGuid, &pv);
|
||||||
ok(hr == S_OK, "Failed with %08x\n", hr);
|
ok(hr == S_OK, "Failed with %08x\n", hr);
|
||||||
ok(pv.vt == VT_EMPTY, "Key should not be found\n");
|
ok(pv.vt == VT_EMPTY, "Key should not be found\n");
|
||||||
|
PropVariantClear(&pv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_deviceinterface(IPropertyStore *store)
|
static void test_deviceinterface(IPropertyStore *store)
|
||||||
|
@ -91,7 +94,7 @@ static void test_deviceinterface(IPropertyStore *store)
|
||||||
ok(hr == S_OK, "GetValue failed: %08x\n", hr);
|
ok(hr == S_OK, "GetValue failed: %08x\n", hr);
|
||||||
ok(pv.vt == VT_LPWSTR, "Got wrong variant type: 0x%x\n", pv.vt);
|
ok(pv.vt == VT_LPWSTR, "Got wrong variant type: 0x%x\n", pv.vt);
|
||||||
trace("device interface: %s\n", wine_dbgstr_w(pv.u.pwszVal));
|
trace("device interface: %s\n", wine_dbgstr_w(pv.u.pwszVal));
|
||||||
CoTaskMemFree(pv.u.pwszVal);
|
PropVariantClear(&pv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_getat(IPropertyStore *store)
|
static void test_getat(IPropertyStore *store)
|
||||||
|
@ -108,7 +111,7 @@ static void test_getat(IPropertyStore *store)
|
||||||
hr = IPropertyStore_GetCount(store, &propcount);
|
hr = IPropertyStore_GetCount(store, &propcount);
|
||||||
|
|
||||||
ok(hr == S_OK, "Failed with %08x\n", hr);
|
ok(hr == S_OK, "Failed with %08x\n", hr);
|
||||||
ok(propcount > 0, "Propcount %d should be greather than zero\n", propcount);
|
ok(propcount > 0, "Propcount %d should be greater than zero\n", propcount);
|
||||||
|
|
||||||
for (prop = 0; prop < propcount; prop++) {
|
for (prop = 0; prop < propcount; prop++) {
|
||||||
hr = IPropertyStore_GetAt(store, prop, &pkey);
|
hr = IPropertyStore_GetAt(store, prop, &pkey);
|
||||||
|
|
|
@ -747,7 +747,7 @@ static void test_padding(void)
|
||||||
/* win10 appears not to clear the buffer */
|
/* win10 appears not to clear the buffer */
|
||||||
for(i = 0; i < psize * pwfx->nBlockAlign; ++i){
|
for(i = 0; i < psize * pwfx->nBlockAlign; ++i){
|
||||||
if(buf[i] != silence){
|
if(buf[i] != silence){
|
||||||
ok(0, "buffer has data in it already, i: %u, valu: %f\n", i, *((float*)buf));
|
ok(0, "buffer has data in it already, i: %u, value: %f\n", i, *((float*)buf));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue