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

TryAcquireSRWLockShared in RWLockWindows is not available on Windows Vista #10243

Closed
OlexiyKravchuk opened this issue Aug 10, 2017 · 7 comments
Closed

Comments

@OlexiyKravchuk
Copy link

Win Vista x32 Godot v3.0 Alpha1

When I run "Godot 3.0 alpha 1", a window appears. With the message (The entry point to TryAcquireSRWLockShared procedure and not found in library DLL KERNEL32.dll) and nothing works.

@bruvzg
Copy link
Member

bruvzg commented Aug 10, 2017

TryAcquireSRWLockShared is Windows 7+

if (TryAcquireSRWLockShared(&lock) == 0) {

@akien-mga
Copy link
Member

That code was added by @reduz in 263d5fc.

If it's Windows 7+ and we want to keep supporting Vista, we'd need an #ifdef _WIN32_WINNT >= 0x0601 // Windows 7+ and #else with equivalent Vista code (or noop if none is available).

@akien-mga akien-mga added this to the 3.0 milestone Aug 11, 2017
@akien-mga akien-mga changed the title The entry point to TryAcquireSRWLockShared procedure is not found in library DLL KERNEL32.dll TryAcquireSRWLockShared in RWLockWindows is not available on Windows Vista Aug 11, 2017
@vnen
Copy link
Member

vnen commented Aug 15, 2017

A preprocessor condition is kind of pointless since we always compile with _WIN32_WINNT = 0x0600

I wonder if it's worth the trouble to still support Vista. It's a 10-year old OS, used less than XP nowadays. Microsoft has ended the support for it in April this year.

@reduz
Copy link
Member

reduz commented Aug 15, 2017 via email

@OlexiyKravchuk
Copy link
Author

The lack of support for Vista, makes me completely overboard. I do not have the resources to buy a new one. It's too bad ...

@reduz
Copy link
Member

reduz commented Aug 18, 2017

@OlexiyKravchuk We will keep supporting it in 2.x, but Vista is dangerous to run now, given Microsoft has ceased all support for it. You won't get any security updates...

@akien-mga
Copy link
Member

I had a quick look at what other projects using TryAcquireSRWLockShared did, most threads date back to 2015 and end up with developers deciding to drop support for Vista, so I guess we're not alone.

So I agree about dropping support for Vista in Godot 3.0, though it saddens me as I expect @OlexiyKravchuk is not our only Vista user. We just need to bump the number to 0x0601 here: https://github.com/godotengine/godot/blob/master/platform/windows/detect.py#L114-L115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants