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
7691aca1
Commit
7691aca1
authored
Jun 15, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only exact buffer size gives STATUS_SUCCESS.
parent
a4bb17c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
nt.c
dlls/ntdll/nt.c
+1
-1
info.c
dlls/ntdll/tests/info.c
+5
-0
No files found.
dlls/ntdll/nt.c
View file @
7691aca1
...
@@ -605,7 +605,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
...
@@ -605,7 +605,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
sbi
.
bKeNumberProcessors
=
1
;
/* FIXME */
sbi
.
bKeNumberProcessors
=
1
;
/* FIXME */
len
=
sizeof
(
sbi
);
len
=
sizeof
(
sbi
);
if
(
Length
>
=
len
)
if
(
Length
=
=
len
)
{
{
if
(
!
SystemInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
if
(
!
SystemInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
memcpy
(
SystemInformation
,
&
sbi
,
len
);
else
memcpy
(
SystemInformation
,
&
sbi
,
len
);
...
...
dlls/ntdll/tests/info.c
View file @
7691aca1
...
@@ -78,6 +78,11 @@ static void test_query_basic()
...
@@ -78,6 +78,11 @@ static void test_query_basic()
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
NULL
);
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
/* Check a too large buffer size */
trace
(
"Check a too large buffer size
\n
"
);
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
)
*
2
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_INFO_LENGTH_MISMATCH, got %08lx
\n
"
,
status
);
/* Finally some correct calls */
/* Finally some correct calls */
trace
(
"Check with correct parameters
\n
"
);
trace
(
"Check with correct parameters
\n
"
);
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
&
ReturnLength
);
...
...
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