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
de97ce15
Commit
de97ce15
authored
Jan 11, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Replace unsigned long with unsigned int in winerror.h.
parent
f93b29b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
winerror.h
include/winerror.h
+4
-4
No files found.
include/winerror.h
View file @
de97ce15
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
#define MAKE_HRESULT(sev,fac,code) \
#define MAKE_HRESULT(sev,fac,code) \
((HRESULT) (((unsigned
long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long
)(code))) )
((HRESULT) (((unsigned
int)(sev)<<31) | ((unsigned int)(fac)<<16) | ((unsigned int
)(code))) )
#define MAKE_SCODE(sev,fac,code) \
#define MAKE_SCODE(sev,fac,code) \
((SCODE) (((unsigned
long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long
)(code))) )
((SCODE) (((unsigned
int)(sev)<<31) | ((unsigned int)(fac)<<16) | ((unsigned int
)(code))) )
#define SUCCEEDED(stat) ((HRESULT)(stat)>=0)
#define SUCCEEDED(stat) ((HRESULT)(stat)>=0)
#define FAILED(stat) ((HRESULT)(stat)<0)
#define FAILED(stat) ((HRESULT)(stat)<0)
#define IS_ERROR(stat) (((unsigned
long
)(stat)>>31) == SEVERITY_ERROR)
#define IS_ERROR(stat) (((unsigned
int
)(stat)>>31) == SEVERITY_ERROR)
#define HRESULT_CODE(hr) ((hr) & 0xFFFF)
#define HRESULT_CODE(hr) ((hr) & 0xFFFF)
#define SCODE_CODE(sc) ((sc) & 0xFFFF)
#define SCODE_CODE(sc) ((sc) & 0xFFFF)
...
@@ -90,7 +90,7 @@ typedef long HRESULT;
...
@@ -90,7 +90,7 @@ typedef long HRESULT;
typedef
int
HRESULT
;
typedef
int
HRESULT
;
# endif
# endif
#endif
#endif
static
inline
HRESULT
HRESULT_FROM_WIN32
(
unsigned
long
x
)
static
inline
HRESULT
HRESULT_FROM_WIN32
(
unsigned
int
x
)
{
{
return
(
HRESULT
)
x
>
0
?
((
HRESULT
)
((
x
&
0x0000FFFF
)
|
(
FACILITY_WIN32
<<
16
)
|
0x80000000
))
:
(
HRESULT
)
x
;
return
(
HRESULT
)
x
>
0
?
((
HRESULT
)
((
x
&
0x0000FFFF
)
|
(
FACILITY_WIN32
<<
16
)
|
0x80000000
))
:
(
HRESULT
)
x
;
}
}
...
...
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