Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f076919c
Commit
f076919c
authored
Aug 14, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Make tests run again on win95.
parent
8d80b132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
shelllink.c
dlls/shell32/tests/shelllink.c
+7
-3
No files found.
dlls/shell32/tests/shelllink.c
View file @
f076919c
...
...
@@ -41,6 +41,8 @@ static fnILFree pILFree;
static
fnILIsEqual
pILIsEqual
;
static
fnSHILCreateFromPath
pSHILCreateFromPath
;
static
DWORD
(
WINAPI
*
pGetLongPathNameA
)(
LPCSTR
,
LPSTR
,
DWORD
);
static
const
GUID
_IID_IShellLinkDataList
=
{
0x45e2b4ae
,
0xb1c3
,
0x11d0
,
{
0xb9
,
0x2f
,
0x00
,
0xa0
,
0xc9
,
0x03
,
0x12
,
0xe1
}
...
...
@@ -563,7 +565,7 @@ static void test_load_save(void)
/* Create a temporary non-executable file */
r
=
GetTempPath
(
sizeof
(
mypath
),
mypath
);
ok
(
r
>=
0
&&
r
<
sizeof
(
mypath
),
"GetTempPath failed (%d), err %d
\n
"
,
r
,
GetLastError
());
r
=
GetLongPathName
(
mypath
,
mydir
,
sizeof
(
mydir
));
r
=
pGetLongPathNameA
(
mypath
,
mydir
,
sizeof
(
mydir
));
ok
(
r
>=
0
&&
r
<
sizeof
(
mydir
),
"GetLongPathName failed (%d), err %d
\n
"
,
r
,
GetLastError
());
p
=
strrchr
(
mydir
,
'\\'
);
if
(
p
)
...
...
@@ -681,13 +683,15 @@ static void test_datalink(void)
START_TEST
(
shelllink
)
{
HRESULT
r
;
HMODULE
hmod
;
HMODULE
hmod
=
GetModuleHandleA
(
"shell32.dll"
);
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
hmod
=
GetModuleHandle
(
"shell32"
);
pILFree
=
(
fnILFree
)
GetProcAddress
(
hmod
,
(
LPSTR
)
155
);
pILIsEqual
=
(
fnILIsEqual
)
GetProcAddress
(
hmod
,
(
LPSTR
)
21
);
pSHILCreateFromPath
=
(
fnSHILCreateFromPath
)
GetProcAddress
(
hmod
,
(
LPSTR
)
28
);
pGetLongPathNameA
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetLongPathNameA"
);
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEEDED
(
r
))
...
...
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