Skip to content

pr-git-1440/AtariDreams/CreateThread-v5

From: Seija Kijin <doremylover123@gmail.com>

Use _beginthreadex instead of CreateThread
since we use the Windows CRT,
as Microsoft recommends _beginthreadex
over CreateThread for these situations.

Finally, check for NULL handles, not "INVALID_HANDLE,"
as _beginthreadex guarantees a valid handle in most cases

Signed-off-by: Seija Kijin <doremylover123@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.1440.v5.git.git.1675176442381.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1440.git.git.1674334159116.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1440.v2.git.git.1674491796648.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1440.v3.git.git.1674492373925.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1440.v4.git.git.1674492499537.gitgitgadget@gmail.com
Assets 2