Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32: prefer beginthreadex over CreateThread #1440

Closed
wants to merge 1 commit into from

Commits on Feb 10, 2023

  1. win32: prefer beginthreadex over CreateThread

    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>
    GameCubeGBA authored and AtariDreams committed Feb 10, 2023
    Copy the full SHA
    edee5e7 View commit details
    Browse the repository at this point in the history