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
f2e0c5ca
Commit
f2e0c5ca
authored
Jan 31, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Define HandleToU?Long to return a long (as SDK does).
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb1fc335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
basetsd.h
include/basetsd.h
+20
-4
No files found.
include/basetsd.h
View file @
f2e0c5ca
...
@@ -153,16 +153,32 @@ typedef unsigned int UHALF_PTR, *PUHALF_PTR;
...
@@ -153,16 +153,32 @@ typedef unsigned int UHALF_PTR, *PUHALF_PTR;
#if !defined(__midl) && !defined(__WIDL__)
#if !defined(__midl) && !defined(__WIDL__)
static
inline
ULONG32
HandleToULong
(
const
void
*
h
)
#if !defined(__LP64__) && !defined(WINE_NO_LONG_TYPES)
static
inline
unsigned
long
HandleToULong
(
const
void
*
h
)
{
return
(
unsigned
long
)(
ULONG_PTR
)
h
;
}
static
inline
long
HandleToLong
(
const
void
*
h
)
{
return
(
long
)(
LONG_PTR
)
h
;
}
#else
static
inline
unsigned
HandleToULong
(
const
void
*
h
)
{
{
return
(
ULONG32
)(
ULONG_PTR
)
h
;
return
(
unsigned
)(
ULONG_PTR
)
h
;
}
}
static
inline
LONG32
HandleToLong
(
const
void
*
h
)
static
inline
int
HandleToLong
(
const
void
*
h
)
{
{
return
(
LONG32
)(
LONG_PTR
)
h
;
return
(
int
)(
LONG_PTR
)
h
;
}
}
#endif
/* !defined(__LP64__) && !defined(WINE_NO_LONG_TYPES) */
static
inline
void
*
ULongToHandle
(
ULONG32
ul
)
static
inline
void
*
ULongToHandle
(
ULONG32
ul
)
{
{
return
(
void
*
)(
ULONG_PTR
)
ul
;
return
(
void
*
)(
ULONG_PTR
)
ul
;
...
...
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