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
9a224788
Commit
9a224788
authored
Jul 05, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Forward RtlGetNativeSystemInformation() to NtWow64GetNativeSystemInformation() on 32-bit.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
04264305
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
30 deletions
+3
-30
nt.c
dlls/ntdll/nt.c
+0
-28
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-1
info.c
dlls/ntdll/tests/info.c
+1
-1
No files found.
dlls/ntdll/nt.c
View file @
9a224788
...
...
@@ -35,15 +35,6 @@
#include "ntdll_misc.h"
#include "ddk/wdm.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdll
);
/*
* Token
*/
/*
* Misc
*/
/***********************************************************************
* RtlIsProcessorFeaturePresent [NTDLL.@]
...
...
@@ -54,25 +45,6 @@ BOOLEAN WINAPI RtlIsProcessorFeaturePresent( UINT feature )
}
/******************************************************************************
* RtlGetNativeSystemInformation [NTDLL.@]
*/
NTSTATUS
WINAPI
/* DECLSPEC_HOTPATCH */
RtlGetNativeSystemInformation
(
IN
SYSTEM_INFORMATION_CLASS
SystemInformationClass
,
OUT
PVOID
SystemInformation
,
IN
ULONG
Length
,
OUT
PULONG
ResultLength
)
{
FIXME
(
"semi-stub, SystemInformationClass %#x, SystemInformation %p, Length %#x, ResultLength %p.
\n
"
,
SystemInformationClass
,
SystemInformation
,
Length
,
ResultLength
);
/* RtlGetNativeSystemInformation function is the same as NtQuerySystemInformation on some Win7
* versions but there are differences for earlier and newer versions, at least:
* - HighestUserAddress field for SystemBasicInformation;
* - Some information classes are not supported by RtlGetNativeSystemInformation. */
return
NtQuerySystemInformation
(
SystemInformationClass
,
SystemInformation
,
Length
,
ResultLength
);
}
/******************************************************************************
* VerSetConditionMask (NTDLL.@)
*/
ULONGLONG
WINAPI
VerSetConditionMask
(
ULONGLONG
dwlConditionMask
,
DWORD
dwTypeBitMask
,
...
...
dlls/ntdll/ntdll.spec
View file @
9a224788
...
...
@@ -721,7 +721,8 @@
# Yes, Microsoft really misspelled this one!
# @ stub RtlGetLengthWithoutTrailingPathSeperators
@ stdcall RtlGetLongestNtPathLength()
@ stdcall RtlGetNativeSystemInformation(long ptr long ptr)
@ stdcall -syscall -arch=win32 RtlGetNativeSystemInformation(long ptr long ptr) NtWow64GetNativeSystemInformation
@ stdcall -syscall -arch=win64 RtlGetNativeSystemInformation(long ptr long ptr) NtQuerySystemInformation
# @ stub RtlGetNextRange
@ stdcall RtlGetNtGlobalFlags()
@ stdcall RtlGetNtProductType(ptr)
...
...
dlls/ntdll/tests/info.c
View file @
9a224788
...
...
@@ -200,11 +200,11 @@ static void test_query_basic(void)
ok
(
status
==
STATUS_INVALID_INFO_CLASS
||
broken
(
STATUS_NOT_IMPLEMENTED
),
/* vista */
"got %08x
\n
"
,
status
);
status
=
pRtlGetNativeSystemInformation
(
SystemNativeBasicInformation
,
&
sbi3
,
sizeof
(
sbi3
),
&
ReturnLength
);
todo_wine
ok
(
!
status
||
status
==
STATUS_INFO_LENGTH_MISMATCH
||
broken
(
status
==
STATUS_INVALID_INFO_CLASS
)
||
broken
(
status
==
STATUS_NOT_IMPLEMENTED
),
"failed %x
\n
"
,
status
);
if
(
!
status
||
status
==
STATUS_INFO_LENGTH_MISMATCH
)
todo_wine_if
(
is_wow64
)
ok
(
!
status
==
!
is_wow64
,
"got wrong status %x wow64 %u
\n
"
,
status
,
is_wow64
);
if
(
!
status
)
{
...
...
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