• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Fork of Keith's WSL Patch Queue for my Win64 work


Commit MetaInfo

Revision3659981a237068fbb53a235468d380237bfa40eb (tree)
Time2019-04-22 02:18:39
AuthorCesar Strauss <cestrauss@gmai...>
CommiterCesar Strauss

Log Message

Forward declare _CONTEXT instead of CONTEXT.

Change Summary

Incremental Difference

diff -r 33d4cee08b47 -r 3659981a2370 win64-context.patch
--- a/win64-context.patch Sun Apr 21 12:44:26 2019 +0000
+++ b/win64-context.patch Sun Apr 21 17:18:39 2019 +0000
@@ -7,36 +7,17 @@
77 Allow uses of pointers to CONTEXT to compile, while postponing the work
88 of determining the actual declaration for Win64.
99
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 @@
2714 ULONG Psr;
2815 } CONTEXT;
2916
3017 +#elif defined(_M_AMD64)
3118 +/* TODO: Find out the definition of CONTEXT for x86_64 */
32-+struct CONTEXT;
33-+
19++typedef struct _CONTEXT CONTEXT;
20++
3421 #else
3522 #error "undefined processor type"
3623 #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;