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
13e609fd
Commit
13e609fd
authored
May 19, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix test when running on Wine.
parent
b3e75eea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
shelllink.c
dlls/shell32/tests/shelllink.c
+5
-7
No files found.
dlls/shell32/tests/shelllink.c
View file @
13e609fd
...
...
@@ -86,9 +86,7 @@ static LPITEMIDLIST path_to_pidl(const char* path)
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
pathW
,
len
);
r
=
pSHILCreateFromPath
(
pathW
,
&
pidl
,
NULL
);
todo_wine
{
ok
(
SUCCEEDED
(
r
),
"SHILCreateFromPath failed (0x%08x)
\n
"
,
r
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pathW
);
}
return
pidl
;
...
...
@@ -170,9 +168,9 @@ static void test_get_set(void)
ok
(
SUCCEEDED
(
r
),
"GetPath failed (0x%08x)
\n
"
,
r
);
ok
(
lstrcmpi
(
buffer
,
str
)
==
0
,
"GetPath returned '%s'
\n
"
,
buffer
);
/* Get some
a
real path to play with */
r
=
GetModuleFileName
(
NULL
,
mypath
,
sizeof
(
mypath
)
);
ok
(
r
>=
0
&&
r
<
sizeof
(
mypath
),
"GetModuleFileName failed (%d)
\n
"
,
r
);
/* Get some real path to play with */
GetWindowsDirectoryA
(
mypath
,
sizeof
(
mypath
)
-
12
);
strcat
(
mypath
,
"
\\
regedit.exe"
);
/* Test the interaction of SetPath and SetIDList */
tmp_pidl
=
NULL
;
...
...
@@ -190,9 +188,7 @@ static void test_get_set(void)
}
pidl
=
path_to_pidl
(
mypath
);
todo_wine
{
ok
(
pidl
!=
NULL
,
"path_to_pidl returned a NULL pidl
\n
"
);
}
if
(
pidl
)
{
...
...
@@ -211,7 +207,9 @@ static void test_get_set(void)
strcpy
(
buffer
,
"garbage"
);
r
=
IShellLinkA_GetPath
(
sl
,
buffer
,
sizeof
(
buffer
),
NULL
,
SLGP_RAWPATH
);
ok
(
SUCCEEDED
(
r
),
"GetPath failed (0x%08x)
\n
"
,
r
);
todo_wine
ok
(
lstrcmpi
(
buffer
,
mypath
)
==
0
,
"GetPath returned '%s'
\n
"
,
buffer
);
}
/* test path with quotes (Win98 IShellLinkA_SetPath returns S_FALSE, WinXP returns S_OK) */
...
...
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