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
fc2dcd04
Commit
fc2dcd04
authored
Oct 04, 2011
by
Thomas Faber
Committed by
Alexandre Julliard
Oct 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix MSVC build in console.c.
parent
bcbaefe8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
158 additions
and
158 deletions
+158
-158
console.c
dlls/kernel32/tests/console.c
+158
-158
No files found.
dlls/kernel32/tests/console.c
View file @
fc2dcd04
...
...
@@ -1759,27 +1759,27 @@ static void test_WriteConsoleOutputCharacterA(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
output
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
output
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
output
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
output
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
output
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
output
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
output
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
output
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
output
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
output
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -1843,27 +1843,27 @@ static void test_WriteConsoleOutputCharacterW(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
outputW
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
outputW
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
outputW
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
outputW
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
outputW
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
outputW
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
outputW
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
outputW
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
outputW
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
outputW
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -1926,27 +1926,27 @@ static void test_WriteConsoleOutputAttribute(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2008,16 +2008,16 @@ static void test_FillConsoleOutputCharacterA(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2074,16 +2074,16 @@ static void test_FillConsoleOutputCharacterW(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
'a'
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
'a'
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
'a'
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
'a'
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
'a'
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
'a'
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2140,16 +2140,16 @@ static void test_FillConsoleOutputAttribute(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
FOREGROUND_BLUE
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
FOREGROUND_BLUE
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
FOREGROUND_BLUE
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
FOREGROUND_BLUE
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
FOREGROUND_BLUE
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
FOREGROUND_BLUE
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
FOREGROUND_BLUE
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
FOREGROUND_BLUE
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
FOREGROUND_BLUE
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
FOREGROUND_BLUE
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
FOREGROUND_BLUE
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
FOREGROUND_BLUE
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
FOREGROUND_BLUE
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2212,28 +2212,28 @@ static void test_ReadConsoleOutputCharacterA(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
10
,
origin
,
&
count
,
10
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
10
,
{
0
,
0
}
,
&
count
,
10
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2296,28 +2296,28 @@ static void test_ReadConsoleOutputCharacterW(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
10
,
origin
,
&
count
,
10
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
read
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
read
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
10
,
{
0
,
0
}
,
&
count
,
10
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
read
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
@@ -2380,27 +2380,27 @@ static void test_ReadConsoleOutputAttribute(HANDLE output_handle)
int
win7_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
origin
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
origin
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
0
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
1
,
origin
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
NULL
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
attr
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
0
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
attr
,
1
,
{
0
,
0
}
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
output_handle
,
NULL
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
NULL
,
1
,
{
0
,
0
}
,
&
count
,
1
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
0
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
output_handle
,
&
attr
,
1
,
{
0
,
0
}
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
};
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
...
...
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