[PATCH] shell32/tests: Add small test for SHGetSetFolderCustomSettings
Alexandre Julliard
julliard at winehq.org
Mon Apr 23 12:06:11 CDT 2018
Louis Lenders <xerox.xerox2000x at gmail.com> writes:
> +static void test_SHGetSetFolderCustomSettings(void)
> +{
> + HRESULT hr;
> + SHFOLDERCUSTOMSETTINGS fcs;
> + static const WCHAR pathW[] = {'c',':','\\','s','o','m','e','_','d','i','r',0};
> + static const WCHAR iconW[] = {'c',':','\\','s','o','m','e','_','d','i','r','\\','s','o','m','e','_','i','c','o','n','.','i','c','o',0};
You should generate a temporary file name in the TEMP directory. Check
how other tests are doing it.
> + hr = pSHGetSetFolderCustomSettings(&fcs, NULL, FCS_READ);
> + todo_wine ok(hr == E_FAIL, "Expected E_FAIL, got %#x\n", hr);
> +
> + RemoveDirectoryW(pathW);
You need to delete the file first.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list