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
0c1a701e
Commit
0c1a701e
authored
Jan 07, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use ILFree() directly.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a2e36b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
shelllink.c
dlls/shell32/tests/shelllink.c
+6
-8
No files found.
dlls/shell32/tests/shelllink.c
View file @
0c1a701e
...
...
@@ -38,7 +38,6 @@
# define SLDF_HAS_LOGO3ID 0x00000800
/* not available in the Vista SDK */
#endif
static
void
(
WINAPI
*
pILFree
)(
LPITEMIDLIST
);
static
BOOL
(
WINAPI
*
pILIsEqual
)(
LPCITEMIDLIST
,
LPCITEMIDLIST
);
static
HRESULT
(
WINAPI
*
pSHILCreateFromPath
)(
LPCWSTR
,
LPITEMIDLIST
*
,
DWORD
*
);
static
HRESULT
(
WINAPI
*
pSHGetFolderLocation
)(
HWND
,
INT
,
HANDLE
,
DWORD
,
PIDLIST_ABSOLUTE
*
);
...
...
@@ -228,7 +227,7 @@ static void test_get_set(void)
ok
(
ret
,
"SHGetPathFromIDListA failed
\n
"
);
if
(
ret
)
ok
(
lstrcmpiA
(
buffer
,
str
)
==
0
,
"GetIDList returned '%s'
\n
"
,
buffer
);
p
ILFree
(
tmp_pidl
);
ILFree
(
tmp_pidl
);
}
pidl
=
path_to_pidl
(
mypath
);
...
...
@@ -253,9 +252,9 @@ static void test_get_set(void)
"GetIDList returned an incorrect pidl
\n
"
);
ok
(
second_pidl
!=
tmp_pidl
,
"pidls are the same
\n
"
);
p
ILFree
(
second_pidl
);
p
ILFree
(
tmp_pidl
);
p
ILFree
(
pidl
);
ILFree
(
second_pidl
);
ILFree
(
tmp_pidl
);
ILFree
(
pidl
);
strcpy
(
buffer
,
"garbage"
);
r
=
IShellLinkA_GetPath
(
sl
,
buffer
,
sizeof
(
buffer
),
NULL
,
SLGP_RAWPATH
);
...
...
@@ -294,7 +293,7 @@ static void test_get_set(void)
ok
(
finddata
.
dwFileAttributes
==
0
,
"unexpected attributes %x
\n
"
,
finddata
.
dwFileAttributes
);
ok
(
finddata
.
cFileName
[
0
]
==
0
,
"unexpected filename '%s'
\n
"
,
finddata
.
cFileName
);
p
ILFree
(
pidl_controls
);
ILFree
(
pidl_controls
);
}
/* test path with quotes (IShellLinkA_SetPath returns S_FALSE on W2K and below and S_OK on XP and above */
...
...
@@ -1000,7 +999,7 @@ static void test_GetIconLocation(void)
pidl
=
path_to_pidl
(
mypath
);
r
=
IShellLinkA_SetIDList
(
sl
,
pidl
);
ok
(
r
==
S_OK
,
"SetPath failed (0x%08x)
\n
"
,
r
);
p
ILFree
(
pidl
);
ILFree
(
pidl
);
i
=
0xdeadbeef
;
strcpy
(
buffer
,
"garbage"
);
...
...
@@ -1474,7 +1473,6 @@ START_TEST(shelllink)
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
HMODULE
huser32
=
GetModuleHandleA
(
"user32.dll"
);
pILFree
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
155
);
pILIsEqual
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
21
);
pSHILCreateFromPath
=
(
void
*
)
GetProcAddress
(
hmod
,
(
LPSTR
)
28
);
pSHGetFolderLocation
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHGetFolderLocation"
);
...
...
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