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
fea2aa55
Commit
fea2aa55
authored
Dec 08, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix the 64-bit value of magic handle constants.
parent
7749b6e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
process.c
dlls/kernel32/process.c
+1
-1
thread.c
dlls/kernel32/thread.c
+1
-1
winbase.h
include/winbase.h
+8
-8
test.h
include/wine/test.h
+2
-2
wingdi.h
include/wingdi.h
+2
-2
No files found.
dlls/kernel32/process.c
View file @
fea2aa55
...
...
@@ -3141,7 +3141,7 @@ BOOL WINAPI IsWow64Process(HANDLE hProcess, PBOOL Wow64Process)
#undef GetCurrentProcess
HANDLE
WINAPI
GetCurrentProcess
(
void
)
{
return
(
HANDLE
)
0xffffffff
;
return
(
HANDLE
)
~
(
ULONG_PTR
)
0
;
}
/***********************************************************************
...
...
dlls/kernel32/thread.c
View file @
fea2aa55
...
...
@@ -557,7 +557,7 @@ VOID WINAPI VWin32_BoostThreadStatic( DWORD threadId, INT boost )
#undef GetCurrentThread
HANDLE
WINAPI
GetCurrentThread
(
void
)
{
return
(
HANDLE
)
0xfffffffe
;
return
(
HANDLE
)
~
(
ULONG_PTR
)
1
;
}
...
...
include/winbase.h
View file @
fea2aa55
...
...
@@ -309,16 +309,16 @@ typedef struct _PROCESS_HEAP_ENTRY
#define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
#define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
#define INVALID_HANDLE_VALUE ((HANDLE)~
0UL
)
#define INVALID_FILE_SIZE (
(DWORD)~0UL
)
#define INVALID_SET_FILE_POINTER (
(DWORD)~0UL
)
#define INVALID_FILE_ATTRIBUTES (
(DWORD)~0UL
)
#define INVALID_HANDLE_VALUE ((HANDLE)~
(ULONG_PTR)0
)
#define INVALID_FILE_SIZE (
~0u
)
#define INVALID_SET_FILE_POINTER (
~0u
)
#define INVALID_FILE_ATTRIBUTES (
~0u
)
#define LOCKFILE_FAIL_IMMEDIATELY 1
#define LOCKFILE_EXCLUSIVE_LOCK 2
#define FLS_OUT_OF_INDEXES (
(DWORD)~0UL
)
#define TLS_OUT_OF_INDEXES (
(DWORD)~0UL
)
#define FLS_OUT_OF_INDEXES (
~0u
)
#define TLS_OUT_OF_INDEXES (
~0u
)
#define SHUTDOWN_NORETRY 1
...
...
@@ -2436,8 +2436,8 @@ static inline PVOID WINAPI InterlockedExchangePointer( PVOID volatile *dest, PVO
}
#ifdef __WINESRC__
#define GetCurrentProcess() ((HANDLE)
0xffffffff
)
#define GetCurrentThread() ((HANDLE)
0xfffffffe
)
#define GetCurrentProcess() ((HANDLE)
~(ULONG_PTR)0
)
#define GetCurrentThread() ((HANDLE)
~(ULONG_PTR)1
)
#endif
/* WinMain(entry point) must be declared in winbase.h. */
...
...
include/wine/test.h
View file @
fea2aa55
...
...
@@ -40,10 +40,10 @@
#endif
#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES (
(DWORD)~0UL
)
#define INVALID_FILE_ATTRIBUTES (
~0u
)
#endif
#ifndef INVALID_SET_FILE_POINTER
#define INVALID_SET_FILE_POINTER (
(DWORD)~0UL
)
#define INVALID_SET_FILE_POINTER (
~0u
)
#endif
/* debug level */
...
...
include/wingdi.h
View file @
fea2aa55
...
...
@@ -3253,8 +3253,8 @@ typedef struct _BLENDFUNCTION
#define GRADIENT_FILL_TRIANGLE 0x00000002
#define GRADIENT_FILL_OP_FLAG 0x000000ff
#define GDI_ERROR (
0xFFFFFFFFL
)
#define HGDI_ERROR ((HANDLE)
0xFFFFFFFFL
)
#define GDI_ERROR (
~0u
)
#define HGDI_ERROR ((HANDLE)
~(ULONG_PTR)0
)
/* AddFontResourceEx flags */
#define FR_PRIVATE 0x10
...
...
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