Reactos

[KERNEL32] Fix alignment of a security descriptor

Fixes boot of release builds. See CORE-20432

+6 -2
+6 -2
dll/win32/kernel32/winnls/string/nls.c
··· 297 297 HANDLE SectionHandle = INVALID_HANDLE_VALUE, FileHandle; 298 298 PBYTE SectionMapping; 299 299 OBJECT_ATTRIBUTES ObjectAttributes; 300 - UCHAR SecurityDescriptor[NLS_SECTION_SECURITY_DESCRIPTOR_SIZE]; 300 + union 301 + { 302 + SECURITY_DESCRIPTOR AlignedSd; 303 + UCHAR Buffer[NLS_SECTION_SECURITY_DESCRIPTOR_SIZE]; 304 + } SecurityDescriptor; 301 305 ANSI_STRING AnsiName; 302 306 UNICODE_STRING UnicodeName; 303 307 WCHAR FileName[MAX_PATH + 1]; ··· 389 393 &UnicodeName, 390 394 OBJ_CASE_INSENSITIVE, 391 395 NULL, 392 - SecurityDescriptor); 396 + &SecurityDescriptor); 393 397 394 398 /* Try to open the section first */ 395 399 Status = NtOpenSection(&SectionHandle,