[SDK][NDK][PSTYPES] Fix regressions CORE-17247 & CORE-17248

By reverting the guilty rev 0.4.14-dev-1239-g
7481bda679

and placing a C_ASSERT() to protect us from doing the
same fault again in the future. (proposed by Mark Jansen)

This will allow again to use kernel32.dll from 2k3sp2 to
reach desktop and it will allow Google Earth to run again.

Unfortunately it will break CORE-16757 again,
but we did not ship that improvement yet
and we believe that revert to be correct.

When approaching CORE-16757 later, make sure to double-check
also CORE-17247 & CORE-17248 with your fix.

We did excessive testing here, see
https://jira.reactos.org/browse/CORE-17247?focusedCommentId=125166&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-125166
This commit is contained in:
Joachim Henze 2020-09-07 20:32:00 +02:00
parent 7376cdebb6
commit abbe656407

View file

@ -910,12 +910,15 @@ typedef struct _PROCESS_SESSION_INFORMATION
#endif
typedef struct DECLSPEC_ALIGN(4) _PROCESS_PRIORITY_CLASS
typedef struct _PROCESS_PRIORITY_CLASS
{
BOOLEAN Foreground;
UCHAR PriorityClass;
} PROCESS_PRIORITY_CLASS, *PPROCESS_PRIORITY_CLASS;
// Compatibility with windows, see CORE-16757, CORE-17106, CORE-17247
C_ASSERT(sizeof(PROCESS_PRIORITY_CLASS) == 2);
typedef struct _PROCESS_FOREGROUND_BACKGROUND
{
BOOLEAN Foreground;