Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3582)

Unified Diff: base/win/win_util.cc

Issue 697183003: Fix more Windows compile errors (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove NONCLIENTMETRICS_XP Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/win/win_util.h ('k') | sky/engine/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/win_util.cc
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index f46242d3d252fc83fd4f7dd965fa6b3529335c41..3ae42e4a75d7b4171543fca898c4ffbc2b062ab5 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -119,14 +119,12 @@ namespace win {
static bool g_crash_on_process_detach = false;
-void GetNonClientMetrics(NONCLIENTMETRICS_XP* metrics) {
+void GetNonClientMetrics(NONCLIENTMETRICS* metrics) {
DCHECK(metrics);
metrics->cbSize = sizeof(*metrics);
- const bool success = !!SystemParametersInfo(
- SPI_GETNONCLIENTMETRICS,
- metrics->cbSize,
- reinterpret_cast<NONCLIENTMETRICS*>(metrics),
- 0);
+ const bool success =
+ !!SystemParametersInfo(
+ SPI_GETNONCLIENTMETRICS, metrics->cbSize, metrics, 0);
DCHECK(success);
}
« no previous file with comments | « base/win/win_util.h ('k') | sky/engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698