Unaligned stacks on i686-w64-mingw32, may lead to crashes (#7607)

Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
This commit is contained in:
Christopher Wellons 2023-07-09 20:05:32 -04:00 committed by GitHub
parent 0ad822eb70
commit 8231278817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 71 deletions

View file

@ -55,12 +55,12 @@ static DWORD RunThread(void *data)
return 0;
}
static DWORD WINAPI RunThreadViaCreateThread(LPVOID data)
static DWORD WINAPI MINGW32_FORCEALIGN RunThreadViaCreateThread(LPVOID data)
{
return RunThread(data);
}
static unsigned __stdcall RunThreadViaBeginThreadEx(void *data)
static unsigned __stdcall MINGW32_FORCEALIGN RunThreadViaBeginThreadEx(void *data)
{
return (unsigned)RunThread(data);
}