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
db882bfb
Commit
db882bfb
authored
Oct 03, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Check what happens if QueryDosDeviceA() is given an insufficient buffer.
parent
8e67930b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
volume.c
dlls/kernel32/tests/volume.c
+6
-0
No files found.
dlls/kernel32/tests/volume.c
View file @
db882bfb
...
...
@@ -44,6 +44,12 @@ static void test_query_dos_deviceA(void)
DWORD
ret
,
ret2
,
buflen
=
32768
;
BOOL
found
=
FALSE
;
/* callers must guess the buffer size */
SetLastError
(
0xdeadbeef
);
ret
=
QueryDosDeviceA
(
NULL
,
NULL
,
0
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"QueryDosDeviceA(no buffer): returned %u, le=%u
\n
"
,
ret
,
GetLastError
());
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
);
SetLastError
(
0xdeadbeef
);
ret
=
QueryDosDeviceA
(
NULL
,
buffer
,
buflen
);
...
...
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