Skip to content

Conversation

@AGulev
Copy link
Contributor

@AGulev AGulev commented Aug 2, 2025

Fix #5549

{
intptr_t ret = (intptr_t) ShellExecuteA(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
if (ret == 32)
if (ret > 32)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the function succeeds, it returns a value greater than 32.

https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea

Copy link
Contributor

@ekharkunov ekharkunov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@AGulev AGulev merged commit 0d672c5 into dev Aug 3, 2025
44 of 46 checks passed
@AGulev AGulev deleted the issue-5549 branch August 3, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sys.open_url reports false when a url is opened on Windows 10

3 participants