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
f375123f
Commit
f375123f
authored
Apr 20, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix a test failure on W2K (unimplemented method).
parent
61052164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
shfldr_special.c
dlls/shell32/tests/shfldr_special.c
+25
-23
No files found.
dlls/shell32/tests/shfldr_special.c
View file @
f375123f
...
...
@@ -162,32 +162,34 @@ if (0)
hr
=
IShellFolder2_GetDefaultColumnState
(
folder
,
6
,
&
state
);
ok
(
broken
(
hr
==
E_NOTIMPL
)
||
hr
==
E_INVALIDARG
/* Win7 */
,
"got 0x%08x
\n
"
,
hr
);
for
(
i
=
0
;
i
<
6
;
i
++
)
hr
=
IShellFolder2_GetDetailsOf
(
folder
,
NULL
,
0
,
&
details
);
ok
(
hr
==
S_OK
||
broken
(
E_NOTIMPL
)
/* W2K */
,
"got 0x%08x
\n
"
,
hr
);
/* test every column if method is implemented */
if
(
hr
==
S_OK
)
{
hr
=
IShellFolder2_GetDetailsOf
(
folder
,
NULL
,
i
,
&
details
);
/* doesn't work on W2K */
if
(
hr
==
E_NOTIMPL
)
break
;
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* all columns are left-aligned */
ok
(
details
.
fmt
==
LVCFMT_LEFT
,
"got 0x%x
\n
"
,
details
.
fmt
);
/* can't be on w9x at this point, IShellFolder2 unsupported there,
check present for running Wine with w9x setup */
if
(
SHELL_OsIsUnicode
())
SHFree
(
details
.
str
.
u
.
pOleStr
);
hr
=
IShellFolder2_GetDefaultColumnState
(
folder
,
i
,
&
state
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* all columns are string except document count */
if
(
i
==
1
)
ok
(
state
==
(
SHCOLSTATE_TYPE_INT
|
SHCOLSTATE_ONBYDEFAULT
),
"got 0x%x
\n
"
,
state
);
else
ok
(
state
==
(
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
),
"got 0x%x
\n
"
,
state
);
ok
(
details
.
str
.
uType
==
STRRET_WSTR
,
"got %d
\n
"
,
details
.
str
.
uType
);
for
(
i
=
0
;
i
<
6
;
i
++
)
{
hr
=
IShellFolder2_GetDetailsOf
(
folder
,
NULL
,
i
,
&
details
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* all columns are left-aligned */
ok
(
details
.
fmt
==
LVCFMT_LEFT
,
"got 0x%x
\n
"
,
details
.
fmt
);
/* can't be on w9x at this point, IShellFolder2 unsupported there,
check present for running Wine with w9x setup */
if
(
SHELL_OsIsUnicode
())
SHFree
(
details
.
str
.
u
.
pOleStr
);
hr
=
IShellFolder2_GetDefaultColumnState
(
folder
,
i
,
&
state
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* all columns are string except document count */
if
(
i
==
1
)
ok
(
state
==
(
SHCOLSTATE_TYPE_INT
|
SHCOLSTATE_ONBYDEFAULT
),
"got 0x%x
\n
"
,
state
);
else
ok
(
state
==
(
SHCOLSTATE_TYPE_STR
|
SHCOLSTATE_ONBYDEFAULT
),
"got 0x%x
\n
"
,
state
);
}
}
hr
=
IShellFolder2_GetDetailsOf
(
folder
,
NULL
,
0
,
&
details
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
details
.
str
.
uType
==
STRRET_WSTR
,
"got %d
\n
"
,
details
.
str
.
uType
);
/* default pidl */
hr
=
IShellFolder2_QueryInterface
(
folder
,
&
IID_IPersistFolder2
,
(
void
**
)
&
pf
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
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