Skip to content

Use Wide String variants explicitly for Windows API calls #7236

Merged
bob80905 merged 1 commit intomicrosoft:release-1.8.2502from
bob80905:UseWStrVariantsExplicitlyCP
Mar 20, 2025
Merged

Use Wide String variants explicitly for Windows API calls #7236
bob80905 merged 1 commit intomicrosoft:release-1.8.2502from
bob80905:UseWStrVariantsExplicitlyCP

Conversation

@bob80905
Copy link
Collaborator

This PR changes some code in ExecutionTests.cpp to use the wide string variants of Windows API calls explicitly. This is because some internal builds will get confused about which overload to resolve the GetModuleHandle function to. By being explicit, this should eliminate the error that an arg can't be converted to LPCWSTR.

Cherry picked from #7235

@bob80905 bob80905 merged commit 2399215 into microsoft:release-1.8.2502 Mar 20, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Mar 20, 2025
madebr pushed a commit to libsdl-org/DirectXShaderCompiler that referenced this pull request Dec 3, 2025
…7236)

This PR changes some code in ExecutionTests.cpp to use the wide string
variants of Windows API calls explicitly. This is because some internal
builds will get confused about which overload to resolve the
GetModuleHandle function to. By being explicit, this should eliminate
the error that an arg can't be converted to LPCWSTR.

Cherry picked from
microsoft#7235

(cherry picked from commit 2399215)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants