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
3f37e334
Commit
3f37e334
authored
Feb 10, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid using HIWORD on types that are 64bit on Win64.
parent
0f5d042f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
atom.c
dlls/kernel32/atom.c
+2
-1
except.c
dlls/kernel32/except.c
+1
-1
module.c
dlls/kernel32/module.c
+1
-1
No files found.
dlls/kernel32/atom.c
View file @
3f37e334
...
...
@@ -37,6 +37,7 @@
#include "kernel_private.h"
#define MAX_ATOM_LEN 255
#define IS_INTATOM(x) (((ULONG_PTR)(x) >> 16) == 0)
/******************************************************************
* get_local_table
...
...
@@ -88,7 +89,7 @@ BOOL WINAPI InitAtomTable( DWORD entries )
*/
static
inline
BOOL
check_integral_atom
(
const
void
*
ptr
,
ATOM
*
patom
)
{
if
(
HIWORD
(
ptr
))
return
FALSE
;
if
(
!
IS_INTATOM
(
ptr
))
return
FALSE
;
if
((
*
patom
=
LOWORD
(
ptr
))
>=
MAXINTATOM
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
dlls/kernel32/except.c
View file @
3f37e334
...
...
@@ -133,7 +133,7 @@ static int format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, in
rec
->
ExceptionInformation
[
0
]);
break
;
case
EXCEPTION_WINE_STUB
:
if
(
HIWORD
(
rec
->
ExceptionInformation
[
1
])
)
if
(
(
ULONG_PTR
)
rec
->
ExceptionInformation
[
1
]
>>
16
)
len
=
snprintf
(
buffer
,
size
,
"Unimplemented function %s.%s called"
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
(
char
*
)
rec
->
ExceptionInformation
[
1
]
);
else
...
...
dlls/kernel32/module.c
View file @
3f37e334
...
...
@@ -1032,7 +1032,7 @@ FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )
if
(
!
hModule
)
hModule
=
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
;
if
(
HIWORD
(
function
)
)
if
(
(
ULONG_PTR
)
function
>>
16
)
{
ANSI_STRING
str
;
...
...
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