mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
be4fb6a412
kernel32.dll no longer works as a source of truth for Windows versions because it is not updated with every Windows update. This change grabs the last two version numbers from the registry, if possible. This also copies some code cleanup from Chromium (crrev.com/c/3205913). Bug: chromium:1248324 Change-Id: I9d6745084060f033cd54c56f832aed4ac163e6be Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3434090 Reviewed-by: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org>