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
469f0b47
Commit
469f0b47
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Fix handle cast warnings on 64-bit.
parent
81ecd704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+3
-3
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
469f0b47
...
...
@@ -118,12 +118,12 @@ static HANDLE get_device_manager(void)
static
LONG
CALLBACK
vectored_handler
(
EXCEPTION_POINTERS
*
ptrs
)
{
EXCEPTION_RECORD
*
record
=
ptrs
->
ExceptionRecord
;
CONTEXT
*
context
=
ptrs
->
ContextRecord
;
if
(
record
->
ExceptionCode
==
EXCEPTION_ACCESS_VIOLATION
||
record
->
ExceptionCode
==
EXCEPTION_PRIV_INSTRUCTION
)
{
#ifdef __i386__
CONTEXT
*
context
=
ptrs
->
ContextRecord
;
extern
DWORD
__wine_emulate_instruction
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
);
if
(
__wine_emulate_instruction
(
record
,
context
)
==
ExceptionContinueExecution
)
...
...
@@ -1068,7 +1068,7 @@ NTSTATUS WINAPI PsCreateSystemThread(PHANDLE ThreadHandle, ULONG DesiredAccess,
*/
HANDLE
WINAPI
PsGetCurrentProcessId
(
void
)
{
return
(
HANDLE
)
GetCurrentProcessId
(
);
/* FIXME: not quite right... */
return
UlongToHandle
(
GetCurrentProcessId
()
);
/* FIXME: not quite right... */
}
...
...
@@ -1077,7 +1077,7 @@ HANDLE WINAPI PsGetCurrentProcessId(void)
*/
HANDLE
WINAPI
PsGetCurrentThreadId
(
void
)
{
return
(
HANDLE
)
GetCurrentThreadId
(
);
/* FIXME: not quite right... */
return
UlongToHandle
(
GetCurrentThreadId
()
);
/* FIXME: not quite right... */
}
...
...
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