4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00
Corinna Vinschen 3d322ac930 Cygwin: fix initializing MEM_EXTENDED_PARAMETER
MEM_EXTENDED_PARAMETER consists of a 64 bit bitfield which contains
the Type and the Reserved members.  The former usage of designated
initializer lists initialized Type, but not Reserved.  Since that's
not possible anymore due to a g++ 11.2 bug, Cygwin initializes the
MEM_EXTENDED_PARAMETER structs explicitely.  This results in a
random value in Reserved, which at least VirtualAlloc2 chokes on
(ERROR_INVALID_PARAMETER).

Set Reserved explicitely to 0 for a fix.

Fixes: bdb7991db38b ("Cygwin: workaround a g++ 11.2 initialization bug")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-09-06 20:28:34 +02:00
..
2020-05-30 19:41:18 +02:00
2021-08-02 13:57:03 +02:00
2021-04-27 16:49:56 +01:00
2016-06-25 00:43:01 +02:00
2021-02-01 09:55:08 -05:00
2018-02-20 17:59:53 +01:00
2021-02-01 09:55:08 -05:00
2020-08-28 11:10:48 +02:00
2020-10-18 14:55:13 +01:00
2021-07-30 15:48:26 +01:00
2021-06-26 15:24:27 +01:00
2017-03-27 22:03:58 +01:00
2021-07-30 15:48:26 +01:00
2020-08-28 11:10:48 +02:00
2021-07-29 17:13:47 +02:00
2018-04-16 22:46:11 -05:00
2020-08-30 09:33:30 -04:00
2021-08-23 19:36:10 +02:00
2021-08-23 19:36:10 +02:00
2019-06-25 15:44:43 -04:00
2019-06-25 15:44:43 -04:00