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
428180ce
Commit
428180ce
authored
Nov 27, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix crash on win8 in module.
parent
87cdc734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
module.c
dlls/kernel32/tests/module.c
+9
-5
No files found.
dlls/kernel32/tests/module.c
View file @
428180ce
...
...
@@ -476,12 +476,16 @@ static void testGetDllDirectory(void)
ok
(
bufferW
[
0
]
==
0
||
/* XP, 2003 */
broken
(
bufferW
[
0
]
==
'A'
),
"i=%d, Buffer overflow
\n
"
,
i
);
/* no buffer, but too short length */
ret
=
pGetDllDirectoryA
(
length
,
NULL
);
ok
(
ret
==
length
+
1
,
"i=%d, Expected %u, got %u
\n
"
,
i
,
length
+
1
,
ret
);
if
(
0
)
{
/* crashes on win8 */
/* no buffer, but too short length */
ret
=
pGetDllDirectoryA
(
length
,
NULL
);
ok
(
ret
==
length
+
1
,
"i=%d, Expected %u, got %u
\n
"
,
i
,
length
+
1
,
ret
);
ret
=
pGetDllDirectoryW
(
length
,
NULL
);
ok
(
ret
==
length
+
1
,
"i=%d, Expected %u, got %u
\n
"
,
i
,
length
+
1
,
ret
);
ret
=
pGetDllDirectoryW
(
length
,
NULL
);
ok
(
ret
==
length
+
1
,
"i=%d, Expected %u, got %u
\n
"
,
i
,
length
+
1
,
ret
);
}
}
/* unset whatever we did so following tests won't be affected */
...
...
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