Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
77577822
Commit
77577822
authored
Jun 22, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jun 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Move test init code back to START_TEST(shlfolder).
- Move creation and cleanup of a test-folders nearer to test_EnumObjects.
parent
8af1ce0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
shlfolder.c
dlls/shell32/tests/shlfolder.c
+7
-7
No files found.
dlls/shell32/tests/shlfolder.c
View file @
77577822
...
...
@@ -455,8 +455,6 @@ static void test_EnumObjects_and_CompareIDs(void)
WCHAR
cCurrDirW
[
MAX_PATH
];
static
const
WCHAR
cTestDirW
[]
=
{
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'd'
,
'i'
,
'r'
,
0
};
HRESULT
hr
;
init_function_pointers
();
GetCurrentDirectoryA
(
MAX_PATH
,
cCurrDirA
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cCurrDirA
,
-
1
,
cCurrDirW
,
MAX_PATH
);
...
...
@@ -467,29 +465,31 @@ static void test_EnumObjects_and_CompareIDs(void)
hr
=
SHGetMalloc
(
&
ppM
);
ok
(
hr
==
S_OK
,
"SHGetMalloc failed %08lx
\n
"
,
hr
);
CreateFilesFolders
();
hr
=
SHGetDesktopFolder
(
&
IDesktopFolder
);
ok
(
hr
==
S_OK
,
"SHGetDesktopfolder failed %08lx
\n
"
,
hr
);
CreateFilesFolders
();
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
NULL
,
NULL
,
cCurrDirW
,
NULL
,
&
newPIDL
,
0
);
ok
(
hr
==
S_OK
,
"ParseDisplayName failed %08lx
\n
"
,
hr
);
hr
=
IShellFolder_BindToObject
(
IDesktopFolder
,
newPIDL
,
NULL
,
(
REFIID
)
&
IID_IShellFolder
,
(
LPVOID
*
)
&
testIShellFolder
);
ok
(
hr
==
S_OK
,
"BindToObject failed %08lx
\n
"
,
hr
);
test_EnumObjects
(
testIShellFolder
);
hr
=
IShellFolder_Release
(
testIShellFolder
);
ok
(
hr
==
S_OK
,
"IShellFolder_Release failed %08lx
\n
"
,
hr
);
IMalloc_Free
(
ppM
,
newPIDL
);
Cleanup
();
IMalloc_Free
(
ppM
,
newPIDL
);
}
START_TEST
(
shlfolder
)
{
init_function_pointers
();
test_EnumObjects_and_CompareIDs
();
test_BindToObject
();
test_GetDisplayName
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment