On 3/30/20 12:52 PM, Jactry Zeng wrote:
+static void test_file_operation(void) +{
- IFileOperation *operation;
- IUnknown *unk;
- HRESULT hr;
- if (!is_vista_plus)
- {
win_skip("IFileOperation isn't supported.\n");
return;
- }
- hr = CoCreateInstance(&CLSID_FileOperation, NULL, CLSCTX_INPROC_SERVER,
&IID_IFileOperation, (void **)&operation);
- ok(hr == S_OK, "Got hr %#x.\n", hr);
- hr = IFileOperation_QueryInterface(operation, &IID_IUnknown, (void **)&unk);
- ok(hr == S_OK, "Got hr %#x.\n", hr);
- IUnknown_Release(unk);
- IFileOperation_Release(operation);
+}
Will it work if you skipped on object creation instead of using indirectly set condition?