fusion/tests: Add some tests for IAssemblyCache_QueryAssemblyInfo.
This commit is contained in:
parent
52f719d18c
commit
c9e6f77419
|
@ -1318,11 +1318,18 @@ static void test_QueryAssemblyInfo(void)
|
||||||
ok(info.cchBuf == lstrlenW(asmpath) + 1,
|
ok(info.cchBuf == lstrlenW(asmpath) + 1,
|
||||||
"Expected %d, got %d\n", lstrlenW(asmpath) + 1, info.cchBuf);
|
"Expected %d, got %d\n", lstrlenW(asmpath) + 1, info.cchBuf);
|
||||||
|
|
||||||
/* display name is "wine, Version=1.0.0.00000" */
|
/* short buffer */
|
||||||
INIT_ASM_INFO();
|
memset(&info, 0, sizeof(info));
|
||||||
lstrcpyW(name, wine);
|
lstrcpyW(name, wine);
|
||||||
lstrcatW(name, commasep);
|
lstrcatW(name, commasep);
|
||||||
lstrcatW(name, otherver);
|
lstrcatW(name, otherver);
|
||||||
|
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_VALIDATE,
|
||||||
|
name, &info);
|
||||||
|
ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "got %08x\n", hr);
|
||||||
|
ok(info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED, "got %08x\n", info.dwAssemblyFlags);
|
||||||
|
|
||||||
|
/* display name is "wine, Version=1.0.0.00000" */
|
||||||
|
INIT_ASM_INFO();
|
||||||
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_GETSIZE,
|
hr = IAssemblyCache_QueryAssemblyInfo(cache, QUERYASMINFO_FLAG_GETSIZE,
|
||||||
name, &info);
|
name, &info);
|
||||||
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue