Mercurial Patch Queue for Windows System Libraries
Revisión | 3659981a237068fbb53a235468d380237bfa40eb (tree) |
---|---|
Tiempo | 2019-04-22 02:18:39 |
Autor | Cesar Strauss <cestrauss@gmai...> |
Commiter | Cesar Strauss |
Forward declare _CONTEXT instead of CONTEXT.
@@ -7,36 +7,17 @@ | ||
7 | 7 | Allow uses of pointers to CONTEXT to compile, while postponing the work |
8 | 8 | of determining the actual declaration for Win64. |
9 | 9 | |
10 | -diff -r a7cb15fb5ac2 wslapi/include/winbase.h | |
11 | ---- a/wslapi/include/winbase.h Mon Apr 08 10:03:40 2019 +0100 | |
12 | -+++ b/wslapi/include/winbase.h Sat Apr 20 12:19:34 2019 +0000 | |
13 | -@@ -2386,7 +2386,8 @@ | |
14 | - WINBASEAPI DWORD WINAPI SetTapePosition | |
15 | - (HANDLE, DWORD, DWORD, DWORD, DWORD, BOOL); | |
16 | - WINBASEAPI DWORD WINAPI SetThreadAffinityMask (HANDLE, DWORD); | |
17 | --WINBASEAPI BOOL WINAPI SetThreadContext (HANDLE, const CONTEXT *); | |
18 | -+/* TODO: remove the struct keyword after CONTEXT is defined for x86_64 */ | |
19 | -+WINBASEAPI BOOL WINAPI SetThreadContext (HANDLE, const struct CONTEXT *); | |
20 | - | |
21 | - WINBASEAPI DWORD WINAPI SetThreadIdealProcessor (HANDLE, DWORD); | |
22 | - WINBASEAPI BOOL WINAPI SetThreadPriority (HANDLE, int); | |
23 | -diff -r a7cb15fb5ac2 wslapi/include/winnt.h | |
24 | ---- a/wslapi/include/winnt.h Mon Apr 08 10:03:40 2019 +0100 | |
25 | -+++ b/wslapi/include/winnt.h Sat Apr 20 12:19:34 2019 +0000 | |
26 | -@@ -2430,10 +2430,15 @@ | |
10 | +diff --git a/wslapi/include/winnt.h b/wslapi/include/winnt.h | |
11 | +--- a/wslapi/include/winnt.h | |
12 | ++++ b/wslapi/include/winnt.h | |
13 | +@@ -2430,6 +2430,10 @@ | |
27 | 14 | ULONG Psr; |
28 | 15 | } CONTEXT; |
29 | 16 | |
30 | 17 | +#elif defined(_M_AMD64) |
31 | 18 | +/* TODO: Find out the definition of CONTEXT for x86_64 */ |
32 | -+struct CONTEXT; | |
33 | -+ | |
19 | ++typedef struct _CONTEXT CONTEXT; | |
20 | ++ | |
34 | 21 | #else |
35 | 22 | #error "undefined processor type" |
36 | 23 | #endif |
37 | --typedef CONTEXT *PCONTEXT, *LPCONTEXT; | |
38 | -+/* TODO: remove the struct keyword after CONTEXT is defined for x86_64 */ | |
39 | -+typedef struct CONTEXT *PCONTEXT, *LPCONTEXT; | |
40 | - | |
41 | - typedef struct _EXCEPTION_RECORD | |
42 | - { DWORD ExceptionCode; |