scrrun: Make IFolderCollection::get_Count use is_dir_data() helper.
This commit is contained in:
parent
9c6deb2b72
commit
bd25ef789c
@ -913,7 +913,7 @@ static HRESULT WINAPI foldercoll_get_Count(IFolderCollection *iface, LONG *count
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
if (is_dir_data(&data))
|
||||||
*count += 1;
|
*count += 1;
|
||||||
} while (FindNextFileW(handle, &data));
|
} while (FindNextFileW(handle, &data));
|
||||||
FindClose(handle);
|
FindClose(handle);
|
||||||
|
@ -830,7 +830,6 @@ static void test_FolderCollection(void)
|
|||||||
count = 0;
|
count = 0;
|
||||||
hr = IFolderCollection_get_Count(folders, &count);
|
hr = IFolderCollection_get_Count(folders, &count);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
todo_wine
|
|
||||||
ok(count == 2, "got %d\n", count);
|
ok(count == 2, "got %d\n", count);
|
||||||
|
|
||||||
lstrcpyW(pathW, buffW);
|
lstrcpyW(pathW, buffW);
|
||||||
@ -841,7 +840,6 @@ todo_wine
|
|||||||
count = 0;
|
count = 0;
|
||||||
hr = IFolderCollection_get_Count(folders, &count);
|
hr = IFolderCollection_get_Count(folders, &count);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
todo_wine
|
|
||||||
ok(count == 3, "got %d\n", count);
|
ok(count == 3, "got %d\n", count);
|
||||||
|
|
||||||
hr = IFolderCollection_get__NewEnum(folders, NULL);
|
hr = IFolderCollection_get__NewEnum(folders, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user