Attention is currently required from: Joshua Peraza.
2 comments:
Commit Message:
Patch Set #1, Line 7: win: Use `RegOpenKeyExW()` instead of `RegOpenKeyEx()`
Nothing interprets markdown here.
Done
Patchset:
LGTM if it's just these two others. […]
Yep, looks like it's just these two.
There's definitely two conflicting axes here:
1) Chromium as an application always builds with `-DUNICODE`
2) Crashpad is a shared library that supports non-Chromium applications for which it doesn't control the build environment
This specific scenario is tricky because the very very large CI environment I'm integrating Crashpad into does *not* set `-DUNICODE` universally for Windows applications.
Doing so for specific applications isn't impossible, but the CI team pushes back very hard against it, since it means the cache cannot be shared between apps with and without the preprocessor define.
I'm asking around now to see if we can change it globally for our CI environment, but until then, it might make sense to have Crashpad for Windows configure its CI to build with and without `-DUNICODE`.
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Joshua Peraza.
Patch set 2:Commit-Queue +2
Attention is currently required from: Ben Hamilton, Joshua Peraza.
Patch set 2:Code-Review +1Commit-Queue +2
1 comment:
Patchset:
Thanks. If it's just these few, it's fine.
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Ben Hamilton, Joshua Peraza.
Patch set 2:Commit-Queue +2
1 comment:
Patchset:
Weird thing to tell me, luci-cv.
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Ben Hamilton, Joshua Peraza.
Patch set 2:Commit-Queue +2
1 comment:
Patchset:
+Justin for iOS test failure.
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Ben Hamilton, Joshua Peraza.
1 comment:
Patchset:
+Justin for iOS test failure.
Yeah, investigating failures now, not sure what's up yet.
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.
Crashpad LUCI CQ submitted this change.
win: Use RegOpenKeyExW() instead of RegOpenKeyEx()
Similar to crrev.com/c/3516536, this CL fixes the Windows build
when the UNICODE preprocessor macro is not defined where
code passes Unicode string literals with L"..." to non-Unicode
APIs like RegOpenKeyEx().
This fixes the build by explicitly using RegOpenKeyExW() instead.
Change-Id: I14a827357b9cbd42452e0e5eb13a3430569559a5
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3516538
Reviewed-by: Mark Mentovai <ma...@chromium.org>
Commit-Queue: Mark Mentovai <ma...@chromium.org>
---
M snapshot/win/system_snapshot_win.cc
1 file changed, 29 insertions(+), 10 deletions(-)
diff --git a/snapshot/win/system_snapshot_win.cc b/snapshot/win/system_snapshot_win.cc
index 6fc6945..a19253f 100644
--- a/snapshot/win/system_snapshot_win.cc
+++ b/snapshot/win/system_snapshot_win.cc
@@ -158,11 +158,11 @@
bool version_data_found = false;
int os_version_build = 0;
HKEY key;
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",
- 0,
- KEY_QUERY_VALUE,
- &key) == ERROR_SUCCESS) {
+ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE,
+ L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",
+ 0,
+ KEY_QUERY_VALUE,
+ &key) == ERROR_SUCCESS) {
ScopedRegistryKey scoped_key(key);
// Read the four components of the version from the registry.
@@ -282,11 +282,11 @@
#elif defined(ARCH_CPU_ARM64)
HKEY key;
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- L"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0",
- 0,
- KEY_QUERY_VALUE,
- &key) != ERROR_SUCCESS) {
+ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE,
+ L"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0",
+ 0,
+ KEY_QUERY_VALUE,
+ &key) != ERROR_SUCCESS) {
return std::string();
}
To view, visit change 3516538. To unsubscribe, or for help writing mail filters, visit settings.