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
4619a45f
Commit
4619a45f
authored
Dec 09, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Consistently use %I printf format for ULONG_PTR values.
parent
73ebf69a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
signal_i386.c
dlls/ntdll/signal_i386.c
+1
-1
exception.c
dlls/ntdll/tests/exception.c
+10
-10
info.c
dlls/ntdll/tests/info.c
+2
-2
wow64.c
dlls/ntdll/tests/wow64.c
+6
-6
No files found.
dlls/ntdll/signal_i386.c
View file @
4619a45f
...
...
@@ -186,7 +186,7 @@ NTSTATUS WINAPI dispatch_exception( EXCEPTION_RECORD *rec, CONTEXT *context )
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
(
char
*
)
rec
->
ExceptionInformation
[
1
]
);
else
MESSAGE
(
"wine: Call from %p to unimplemented function %s.%
l
d, aborting
\n
"
,
MESSAGE
(
"wine: Call from %p to unimplemented function %s.%
I
d, aborting
\n
"
,
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
rec
->
ExceptionInformation
[
1
]
);
}
...
...
dlls/ntdll/tests/exception.c
View file @
4619a45f
...
...
@@ -689,9 +689,9 @@ static DWORD handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *fram
ok
(
rec
->
ExceptionCode
==
except
->
status
||
(
except
->
alt_status
!=
0
&&
rec
->
ExceptionCode
==
except
->
alt_status
),
"%u: Wrong exception code %lx/%lx
\n
"
,
entry
,
rec
->
ExceptionCode
,
except
->
status
);
ok
(
context
->
Eip
==
(
DWORD
_PTR
)
code_mem
+
except
->
offset
,
ok
(
context
->
Eip
==
(
DWORD
)
code_mem
+
except
->
offset
,
"%u: Unexpected eip %#lx/%#lx
\n
"
,
entry
,
context
->
Eip
,
(
DWORD
_PTR
)
code_mem
+
except
->
offset
);
context
->
Eip
,
(
DWORD
)
code_mem
+
except
->
offset
);
ok
(
rec
->
ExceptionAddress
==
(
char
*
)
context
->
Eip
||
(
rec
->
ExceptionCode
==
STATUS_BREAKPOINT
&&
rec
->
ExceptionAddress
==
(
char
*
)
context
->
Eip
+
1
),
"%u: Unexpected exception address %p/%p
\n
"
,
entry
,
...
...
@@ -727,14 +727,14 @@ static DWORD handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *fram
{
for
(
i
=
0
;
i
<
rec
->
NumberParameters
;
i
++
)
ok
(
rec
->
ExceptionInformation
[
i
]
==
except
->
params
[
i
],
"%u: Wrong parameter %d: %
l
x/%lx
\n
"
,
"%u: Wrong parameter %d: %
I
x/%lx
\n
"
,
entry
,
i
,
rec
->
ExceptionInformation
[
i
],
except
->
params
[
i
]
);
}
else
{
for
(
i
=
0
;
i
<
rec
->
NumberParameters
;
i
++
)
ok
(
rec
->
ExceptionInformation
[
i
]
==
except
->
alt_params
[
i
],
"%u: Wrong parameter %d: %
l
x/%lx
\n
"
,
"%u: Wrong parameter %d: %
I
x/%lx
\n
"
,
entry
,
i
,
rec
->
ExceptionInformation
[
i
],
except
->
alt_params
[
i
]
);
}
...
...
@@ -1336,10 +1336,10 @@ static DWORD simd_fault_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_R
"exception code: %#lx, should be %#lx
\n
"
,
rec
->
ExceptionCode
,
STATUS_FLOAT_MULTIPLE_TRAPS
);
ok
(
rec
->
NumberParameters
==
is_wow64
?
2
:
1
,
"# of params: %li
\n
"
,
rec
->
NumberParameters
);
ok
(
rec
->
ExceptionInformation
[
0
]
==
0
,
"param #1: %
l
x, should be 0
\n
"
,
rec
->
ExceptionInformation
[
0
]);
ok
(
rec
->
ExceptionInformation
[
0
]
==
0
,
"param #1: %
I
x, should be 0
\n
"
,
rec
->
ExceptionInformation
[
0
]);
if
(
rec
->
NumberParameters
==
2
)
ok
(
rec
->
ExceptionInformation
[
1
]
==
((
XSAVE_FORMAT
*
)
context
->
ExtendedRegisters
)
->
MxCsr
,
"param #1: %
l
x / %lx
\n
"
,
rec
->
ExceptionInformation
[
1
],
"param #1: %
I
x / %lx
\n
"
,
rec
->
ExceptionInformation
[
1
],
((
XSAVE_FORMAT
*
)
context
->
ExtendedRegisters
)
->
MxCsr
);
}
context
->
Eip
+=
3
;
/* skip divps */
...
...
@@ -8187,14 +8187,14 @@ static LONG CALLBACK debug_service_handler(EXCEPTION_POINTERS *ExceptionInfo)
ok
(
rec
->
NumberParameters
==
(
is_wow64
?
1
:
3
),
"ExceptionParameters is %ld instead of %d
\n
"
,
rec
->
NumberParameters
,
is_wow64
?
1
:
3
);
ok
(
rec
->
ExceptionInformation
[
0
]
==
ExceptionInfo
->
ContextRecord
->
Eax
,
"expected ExceptionInformation[0] = %lx, got %
l
x
\n
"
,
"expected ExceptionInformation[0] = %lx, got %
I
x
\n
"
,
ExceptionInfo
->
ContextRecord
->
Eax
,
rec
->
ExceptionInformation
[
0
]);
if
(
!
is_wow64
)
{
ok
(
rec
->
ExceptionInformation
[
1
]
==
0x11111111
,
"got ExceptionInformation[1] = %
l
x
\n
"
,
rec
->
ExceptionInformation
[
1
]);
"got ExceptionInformation[1] = %
I
x
\n
"
,
rec
->
ExceptionInformation
[
1
]);
ok
(
rec
->
ExceptionInformation
[
2
]
==
0x22222222
,
"got ExceptionInformation[2] = %
l
x
\n
"
,
rec
->
ExceptionInformation
[
2
]);
"got ExceptionInformation[2] = %
I
x
\n
"
,
rec
->
ExceptionInformation
[
2
]);
}
#else
ok
(
ExceptionInfo
->
ContextRecord
->
Rip
==
(
DWORD_PTR
)
code_mem
+
0x2f
,
...
...
@@ -8537,7 +8537,7 @@ static LONG CALLBACK breakpoint_handler(EXCEPTION_POINTERS *ExceptionInfo)
ok
(
rec
->
NumberParameters
==
(
is_wow64
?
1
:
3
),
"ExceptionParameters is %ld instead of %d
\n
"
,
rec
->
NumberParameters
,
is_wow64
?
1
:
3
);
ok
(
rec
->
ExceptionInformation
[
0
]
==
0
,
"got ExceptionInformation[0] = %
l
x
\n
"
,
rec
->
ExceptionInformation
[
0
]);
"got ExceptionInformation[0] = %
I
x
\n
"
,
rec
->
ExceptionInformation
[
0
]);
ExceptionInfo
->
ContextRecord
->
Eip
=
(
DWORD
)
code_mem
+
2
;
#elif defined(__x86_64__)
ok
(
ExceptionInfo
->
ContextRecord
->
Rip
==
(
DWORD_PTR
)
code_mem
+
1
,
...
...
dlls/ntdll/tests/info.c
View file @
4619a45f
...
...
@@ -251,12 +251,12 @@ static void test_query_basic(void)
ok
(
sbi
.
MmHighestPhysicalPage
==
sbi64
.
MmHighestPhysicalPage
,
"MmHighestPhysicalPage %lu / %lu
\n
"
,
sbi
.
MmHighestPhysicalPage
,
sbi64
.
MmHighestPhysicalPage
);
ok
(
sbi
.
AllocationGranularity
==
(
ULONG_PTR
)
sbi64
.
AllocationGranularity
,
"AllocationGranularity %#
lx / %#l
x
\n
"
,
sbi
.
AllocationGranularity
,
"AllocationGranularity %#
Ix / %#I
x
\n
"
,
sbi
.
AllocationGranularity
,
(
ULONG_PTR
)
sbi64
.
AllocationGranularity
);
ok
(
(
ULONG_PTR
)
sbi
.
LowestUserAddress
==
sbi64
.
LowestUserAddress
,
"LowestUserAddress %p / %s
\n
"
,
sbi
.
LowestUserAddress
,
wine_dbgstr_longlong
(
sbi64
.
LowestUserAddress
));
ok
(
sbi
.
ActiveProcessorsAffinityMask
==
sbi64
.
ActiveProcessorsAffinityMask
,
"ActiveProcessorsAffinityMask %#
l
x / %s
\n
"
,
"ActiveProcessorsAffinityMask %#
I
x / %s
\n
"
,
sbi
.
ActiveProcessorsAffinityMask
,
wine_dbgstr_longlong
(
sbi64
.
ActiveProcessorsAffinityMask
));
ok
(
sbi
.
NumberOfProcessors
==
sbi64
.
NumberOfProcessors
,
"NumberOfProcessors %u / %u
\n
"
,
sbi
.
NumberOfProcessors
,
sbi64
.
NumberOfProcessors
);
...
...
dlls/ntdll/tests/wow64.c
View file @
4619a45f
...
...
@@ -1127,7 +1127,7 @@ static void test_iosb(void)
ok
(
status
==
STATUS_PENDING
,
"NtFsControlFile returned %lx
\n
"
,
status
);
ok
(
U
(
iosb32
).
Status
==
0x55555555
,
"status changed to %lx
\n
"
,
U
(
iosb32
).
Status
);
ok
(
U
(
iosb64
).
Pointer
==
PtrToUlong
(
&
iosb32
),
"status changed to %lx
\n
"
,
U
(
iosb64
).
Status
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
l
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
I
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
client
=
CreateFileA
(
pipe_name
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_NO_BUFFERING
|
FILE_FLAG_OVERLAPPED
,
NULL
);
...
...
@@ -1135,7 +1135,7 @@ static void test_iosb(void)
ok
(
U
(
iosb32
).
Status
==
0
,
"Wrong iostatus %lx
\n
"
,
U
(
iosb32
).
Status
);
ok
(
U
(
iosb64
).
Pointer
==
PtrToUlong
(
&
iosb32
),
"status changed to %lx
\n
"
,
U
(
iosb64
).
Status
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
l
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
I
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
memset
(
&
iosb32
,
0x55
,
sizeof
(
iosb32
)
);
iosb64
.
Pointer
=
PtrToUlong
(
&
iosb32
);
...
...
@@ -1153,9 +1153,9 @@ static void test_iosb(void)
todo_wine
{
ok
(
U
(
iosb32
).
Status
==
STATUS_SUCCESS
,
"status changed to %lx
\n
"
,
U
(
iosb32
).
Status
);
ok
(
iosb32
.
Information
==
sizeof
(
id
),
"info changed to %
l
x
\n
"
,
iosb32
.
Information
);
ok
(
iosb32
.
Information
==
sizeof
(
id
),
"info changed to %
I
x
\n
"
,
iosb32
.
Information
);
ok
(
U
(
iosb64
).
Pointer
==
PtrToUlong
(
&
iosb32
),
"status changed to %lx
\n
"
,
U
(
iosb64
).
Status
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
l
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
ok
(
iosb64
.
Information
==
0xdeadbeef
,
"info changed to %
I
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
}
ok
(
id
==
GetCurrentProcessId
(),
"wrong id %lx / %lx
\n
"
,
id
,
GetCurrentProcessId
()
);
CloseHandle
(
client
);
...
...
@@ -1181,9 +1181,9 @@ static void test_iosb(void)
status
=
call_func64
(
func
,
ARRAY_SIZE
(
args
),
args
);
ok
(
status
==
STATUS_SUCCESS
,
"NtFsControlFile returned %lx
\n
"
,
status
);
ok
(
U
(
iosb32
).
Status
==
0x55555555
,
"status changed to %lx
\n
"
,
U
(
iosb32
).
Status
);
ok
(
iosb32
.
Information
==
0x55555555
,
"info changed to %
l
x
\n
"
,
iosb32
.
Information
);
ok
(
iosb32
.
Information
==
0x55555555
,
"info changed to %
I
x
\n
"
,
iosb32
.
Information
);
ok
(
U
(
iosb64
).
Pointer
==
STATUS_SUCCESS
,
"status changed to %lx
\n
"
,
U
(
iosb64
).
Status
);
ok
(
iosb64
.
Information
==
sizeof
(
id
),
"info changed to %
l
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
ok
(
iosb64
.
Information
==
sizeof
(
id
),
"info changed to %
I
x
\n
"
,
(
ULONG_PTR
)
iosb64
.
Information
);
ok
(
id
==
GetCurrentProcessId
(),
"wrong id %lx / %lx
\n
"
,
id
,
GetCurrentProcessId
()
);
CloseHandle
(
client
);
CloseHandle
(
server
);
...
...
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