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

fix: windows LPCWSTR/LPWSTR cast incompatibilities #328

Merged
merged 1 commit into from
Apr 30, 2020
Merged

fix: windows LPCWSTR/LPWSTR cast incompatibilities #328

merged 1 commit into from
Apr 30, 2020

Conversation

codebytere
Copy link
Contributor

@codebytere codebytere commented Apr 29, 2020

Closes #327.

Fixes the following compatibility and casting issues:

Previous build errors can be seen here.

@coveralls
Copy link

coveralls commented Apr 29, 2020

Coverage Status

Coverage remained the same at 89.162% when pulling e87bfd6 on codebytere:fix-windows-electron-build into c498c53 on c-ares:master.

@bradh352
Copy link
Member

Your fix will only work if built with UNICODE. Our build scripts do not use unicode which is why it works. The proper thing to do here is like the rest of c-ares, use the 'A' variants of the respective functions, e.g. RegOpenKeyExA()

@codebytere
Copy link
Contributor Author

@bradh352 done - thanks!

@bradh352 bradh352 merged commit 1c73ecc into c-ares:master Apr 30, 2020
eriklax pushed a commit to halon/c-ares that referenced this pull request Aug 22, 2020
)

Fixes the following compatibility issues:
* Use RegQueryValueExA instead of RegQueryValueEx
* Use ExpandEnvironmentStringsA instead of ExpandEnvironmentStrings
* Use RegOpenKeyExA instead of RegOpenKeyExA
* Use GetWindowsDirectoryA instead of GetWindowsDirectoryA

Fix By: Shelley Vohr (@codebytere)
Closes: c-ares#327
sergepetrenko pushed a commit to tarantool/c-ares that referenced this pull request Jul 29, 2022
)

Fixes the following compatibility issues:
* Use RegQueryValueExA instead of RegQueryValueEx
* Use ExpandEnvironmentStringsA instead of ExpandEnvironmentStrings
* Use RegOpenKeyExA instead of RegOpenKeyExA
* Use GetWindowsDirectoryA instead of GetWindowsDirectoryA

Fix By: Shelley Vohr (@codebytere)
Closes: c-ares#327
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.

Failure building c-ares on Windows for v1.16.0
3 participants