Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
+static void test_GetTempName(void) +{
- BSTR result;
- HRESULT hr;
- hr = IFileSystem3_GetTempName(fs3, NULL);
- ok(hr == E_POINTER, "GetTempName returned %x, expected E_POINTER\n", hr);
- result = (BSTR)0xdeadbeef;
- hr = IFileSystem3_GetTempName(fs3, &result);
- ok(hr == S_OK, "GetTempName returned %x, expected S_OK\n", hr);
- todo_wine ok(!!wcsstr( result,L".tmp"), "GetTempName returned %s, expected .tmp suffix\n", debugstr_w(result));
- SysFreeString(result);
+}
Note that you don't need to initialize "result" here, it's usually done like that if you expect null return value.