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
6fb10a6e
Commit
6fb10a6e
authored
Jan 18, 2011
by
Alexander Morozov
Committed by
Alexandre Julliard
Jan 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Partially implement Folder::get_Title.
parent
28700987
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
shelldispatch.c
dlls/shell32/shelldispatch.c
+15
-2
shelldispatch.c
dlls/shell32/tests/shelldispatch.c
+0
-4
No files found.
dlls/shell32/shelldispatch.c
View file @
6fb10a6e
...
...
@@ -180,10 +180,23 @@ static HRESULT WINAPI FolderImpl_Invoke(Folder3 *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
FolderImpl_get_Title
(
Folder3
*
iface
,
BSTR
*
pbs
)
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
pbs
);
FolderImpl
*
This
=
impl_from_Folder
(
iface
);
WCHAR
*
p
;
int
len
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pbs
);
*
pbs
=
NULL
;
return
E_NOTIMPL
;
if
(
V_VT
(
&
This
->
dir
)
==
VT_I4
)
{
FIXME
(
"special folder constants are not supported
\n
"
);
return
E_NOTIMPL
;
}
p
=
PathFindFileNameW
(
V_BSTR
(
&
This
->
dir
));
len
=
lstrlenW
(
p
);
*
pbs
=
SysAllocStringLen
(
p
,
p
[
len
-
1
]
==
'\\'
?
len
-
1
:
len
);
return
*
pbs
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
FolderImpl_get_Application
(
Folder3
*
iface
,
...
...
dlls/shell32/tests/shelldispatch.c
View file @
6fb10a6e
...
...
@@ -148,11 +148,9 @@ static void test_namespace(void)
if
(
r
==
S_OK
)
{
r
=
Folder_get_Title
(
folder
,
&
title
);
todo_wine
ok
(
r
==
S_OK
,
"Folder::get_Title failed: %08x
\n
"
,
r
);
if
(
r
==
S_OK
)
{
todo_wine
ok
(
!
lstrcmpW
(
title
,
winetestW
),
"bad title: %s
\n
"
,
wine_dbgstr_w
(
title
));
SysFreeString
(
title
);
...
...
@@ -172,11 +170,9 @@ static void test_namespace(void)
if
(
r
==
S_OK
)
{
r
=
Folder_get_Title
(
folder
,
&
title
);
todo_wine
ok
(
r
==
S_OK
,
"Folder::get_Title failed: %08x
\n
"
,
r
);
if
(
r
==
S_OK
)
{
todo_wine
ok
(
!
lstrcmpW
(
title
,
winetestW
),
"bad title: %s
\n
"
,
wine_dbgstr_w
(
title
));
SysFreeString
(
title
);
...
...
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