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
57a94970
Commit
57a94970
authored
Dec 01, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement the ReplaceItem() command for Progman DDE.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
47e9e911
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
dde.c
dlls/shell32/dde.c
+2
-1
progman_dde.c
dlls/shell32/tests/progman_dde.c
+12
-0
No files found.
dlls/shell32/dde.c
View file @
57a94970
...
...
@@ -127,6 +127,7 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
static
const
WCHAR
show_groupW
[]
=
{
'S'
,
'h'
,
'o'
,
'w'
,
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
add_itemW
[]
=
{
'A'
,
'd'
,
'd'
,
'I'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
delete_itemW
[]
=
{
'D'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
'I'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
replace_itemW
[]
=
{
'R'
,
'e'
,
'p'
,
'l'
,
'a'
,
'c'
,
'e'
,
'I'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
dotexeW
[]
=
{
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
dotlnkW
[]
=
{
'.'
,
'l'
,
'n'
,
'k'
,
0
};
...
...
@@ -255,7 +256,7 @@ static DWORD PROGMAN_OnExecute(WCHAR *command, int argc, WCHAR **argv)
if
(
FAILED
(
hres
))
return
DDE_FNOTPROCESSED
;
}
else
if
(
!
strcmpiW
(
command
,
delete_itemW
))
else
if
(
!
strcmpiW
(
command
,
delete_itemW
)
||
!
strcmpiW
(
command
,
replace_itemW
)
)
{
WCHAR
*
name
;
BOOL
ret
;
...
...
dlls/shell32/tests/progman_dde.c
View file @
57a94970
...
...
@@ -325,6 +325,18 @@ static void test_progman_dde(DWORD instance, HCONV hConv)
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
!
check_exists
(
"Group1/test1.lnk"
),
"link should not exist
\n
"
);
error
=
dde_execute
(
instance
,
hConv
,
"[AddItem(notepad,test1)]"
);
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
check_exists
(
"Group1/test1.lnk"
),
"link not created
\n
"
);
error
=
dde_execute
(
instance
,
hConv
,
"[ReplaceItem(test1)]"
);
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
!
check_exists
(
"Group1/test1.lnk"
),
"link should not exist
\n
"
);
error
=
dde_execute
(
instance
,
hConv
,
"[AddItem(regedit)]"
);
ok
(
error
==
DMLERR_NO_ERROR
,
"expected DMLERR_NO_ERROR, got %u
\n
"
,
error
);
ok
(
check_exists
(
"Group1/regedit.lnk"
),
"link not created
\n
"
);
/* test ShowGroup() and test which group an item gets added to */
error
=
dde_execute
(
instance
,
hConv
,
"[ShowGroup(Group1)]"
);
ok
(
error
==
DMLERR_NOTPROCESSED
,
"expected DMLERR_NOTPROCESSED, got %u
\n
"
,
error
);
...
...
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