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
6d416e69
Commit
6d416e69
authored
Oct 07, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't crash on WinMe.
parent
61c69e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
module.c
dlls/kernel32/tests/module.c
+22
-14
No files found.
dlls/kernel32/tests/module.c
View file @
6d416e69
...
@@ -228,13 +228,18 @@ static void testLoadLibraryEx(void)
...
@@ -228,13 +228,18 @@ static void testLoadLibraryEx(void)
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"Expected a valid file handle
\n
"
);
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"Expected a valid file handle
\n
"
);
/* NULL lpFileName */
/* NULL lpFileName */
SetLastError
(
0xdeadbeef
);
if
(
is_unicode_enabled
)
hmodule
=
LoadLibraryExA
(
NULL
,
NULL
,
0
);
{
ok
(
hmodule
==
0
,
"Expected 0, got %p
\n
"
,
hmodule
);
SetLastError
(
0xdeadbeef
);
ok
(
GetLastError
()
==
ERROR_MOD_NOT_FOUND
||
hmodule
=
LoadLibraryExA
(
NULL
,
NULL
,
0
);
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
ok
(
hmodule
==
0
,
"Expected 0, got %p
\n
"
,
hmodule
);
"Expected ERROR_MOD_NOT_FOUND or ERROR_INVALID_PARAMETER, got %d
\n
"
,
ok
(
GetLastError
()
==
ERROR_MOD_NOT_FOUND
||
GetLastError
());
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
"Expected ERROR_MOD_NOT_FOUND or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
else
win_skip
(
"NULL filename crashes on WinMe
\n
"
);
/* empty lpFileName */
/* empty lpFileName */
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
@@ -281,13 +286,16 @@ static void testLoadLibraryEx(void)
...
@@ -281,13 +286,16 @@ static void testLoadLibraryEx(void)
}
}
/* lpFileName does not matter */
/* lpFileName does not matter */
SetLastError
(
0xdeadbeef
);
if
(
is_unicode_enabled
)
hmodule
=
LoadLibraryExA
(
NULL
,
hfile
,
0
);
{
ok
(
hmodule
==
0
,
"Expected 0, got %p
\n
"
,
hmodule
);
SetLastError
(
0xdeadbeef
);
ok
(
GetLastError
()
==
ERROR_MOD_NOT_FOUND
||
hmodule
=
LoadLibraryExA
(
NULL
,
hfile
,
0
);
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win2k3 */
ok
(
hmodule
==
0
,
"Expected 0, got %p
\n
"
,
hmodule
);
"Expected ERROR_MOD_NOT_FOUND or ERROR_INVALID_PARAMETER, got %d
\n
"
,
ok
(
GetLastError
()
==
ERROR_MOD_NOT_FOUND
||
GetLastError
());
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win2k3 */
"Expected ERROR_MOD_NOT_FOUND or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
CloseHandle
(
hfile
);
CloseHandle
(
hfile
);
...
...
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