Skip to content

Conversation

@CatBraaain
Copy link

@CatBraaain CatBraaain commented Jan 19, 2026

This PR fixes an issue resource error were not handled correctly on non-English environments.

Previously, the code checked both err.Message and err.NativeErrorCode, which caused the logic to fail when the error message was localized.
The screenshot below demonstrates that, on my environment, err.Message is displayed in Japanese.

2026-01-20 01 43 45

Now, the check relies solely on err.NativeErrorCode for the following cases:

  • 1812 (ERROR_RESOURCE_DATA_NOT_FOUND)
  • 1813 (ERROR_RESOURCE_TYPE_NOT_FOUND)

This ensures consistent resource error handling regardless of the system language.


Microsoft Reviewers: Open in CodeFlow

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.

1 participant