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
11b797bb
Commit
11b797bb
authored
Dec 23, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Remove workarounds for shell32 < 5.0.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d468dd2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
31 deletions
+8
-31
shelllink.c
dlls/shell32/tests/shelllink.c
+8
-31
No files found.
dlls/shell32/tests/shelllink.c
View file @
11b797bb
...
...
@@ -454,9 +454,7 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc)
/* test GetCurFile before ::Save */
str
=
(
LPWSTR
)
0xdeadbeef
;
r
=
IPersistFile_GetCurFile
(
pf
,
&
str
);
lok
(
r
==
S_FALSE
||
broken
(
r
==
S_OK
),
/* shell32 < 5.0 */
"got 0x%08x
\n
"
,
r
);
lok
(
r
==
S_FALSE
,
"got 0x%08x
\n
"
,
r
);
lok
(
str
==
NULL
,
"got %p
\n
"
,
str
);
r
=
IPersistFile_Save
(
pf
,
path
,
TRUE
);
...
...
@@ -465,16 +463,9 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc)
/* test GetCurFile after ::Save */
r
=
IPersistFile_GetCurFile
(
pf
,
&
str
);
lok
(
r
==
S_OK
,
"got 0x%08x
\n
"
,
r
);
lok
(
str
!=
NULL
||
broken
(
str
==
NULL
),
/* shell32 < 5.0 */
"Didn't expect NULL
\n
"
);
if
(
str
)
{
lok
(
!
wcscmp
(
path
,
str
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
path
),
wine_dbgstr_w
(
str
));
CoTaskMemFree
(
str
);
}
else
win_skip
(
"GetCurFile fails on shell32 < 5.0
\n
"
);
lok
(
str
!=
NULL
,
"Didn't expect NULL
\n
"
);
lok
(
!
wcscmp
(
path
,
str
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
path
),
wine_dbgstr_w
(
str
));
CoTaskMemFree
(
str
);
IPersistFile_Release
(
pf
);
}
...
...
@@ -507,9 +498,7 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int todo)
/* test GetCurFile before ::Load */
str
=
(
LPWSTR
)
0xdeadbeef
;
r
=
IPersistFile_GetCurFile
(
pf
,
&
str
);
lok
(
r
==
S_FALSE
||
broken
(
r
==
S_OK
),
/* shell32 < 5.0 */
"got 0x%08x
\n
"
,
r
);
lok
(
r
==
S_FALSE
,
"got 0x%08x
\n
"
,
r
);
lok
(
str
==
NULL
,
"got %p
\n
"
,
str
);
r
=
IPersistFile_Load
(
pf
,
path
,
STGM_READ
);
...
...
@@ -518,23 +507,11 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int todo)
/* test GetCurFile after ::Save */
r
=
IPersistFile_GetCurFile
(
pf
,
&
str
);
lok
(
r
==
S_OK
,
"got 0x%08x
\n
"
,
r
);
lok
(
str
!=
NULL
||
broken
(
str
==
NULL
),
/* shell32 < 5.0 */
"Didn't expect NULL
\n
"
);
if
(
str
!=
NULL
)
{
lok
(
!
wcscmp
(
path
,
str
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
path
),
wine_dbgstr_w
(
str
));
CoTaskMemFree
(
str
);
}
else
win_skip
(
"GetCurFile fails on shell32 < 5.0
\n
"
);
lok
(
str
!=
NULL
,
"Didn't expect NULL
\n
"
);
lok
(
!
wcscmp
(
path
,
str
),
"Expected %s, got %s
\n
"
,
wine_dbgstr_w
(
path
),
wine_dbgstr_w
(
str
));
CoTaskMemFree
(
str
);
IPersistFile_Release
(
pf
);
if
(
r
!=
S_OK
)
{
IShellLinkA_Release
(
sl
);
return
;
}
if
(
desc
->
description
)
{
...
...
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