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

Unified Diff: sandbox/sandbox_poc/main_ui_window.cc

Issue 1168002: Fix the POC and some of unit tests to be build and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months 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 | « no previous file | sandbox/sandbox_poc/pocdll/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/sandbox_poc/main_ui_window.cc
===================================================================
--- sandbox/sandbox_poc/main_ui_window.cc (revision 42238)
+++ sandbox/sandbox_poc/main_ui_window.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -96,9 +96,9 @@
if (NULL == window)
return ::GetLastError();
- ::SetWindowLong(window,
- GWL_USERDATA,
- static_cast<LONG>(reinterpret_cast<LONG_PTR>(this)));
+ ::SetWindowLongPtr(window,
+ GWLP_USERDATA,
+ reinterpret_cast<LONG_PTR>(this));
::SetWindowText(window, L"Sandbox Proof of Concept");
@@ -233,9 +233,9 @@
// so that we can retrieve it with this function later. This prevents us
// from having to define all the message handling functions (that we refer to
// in the window proc) as static
- ::GetWindowLong(main_window, GWL_USERDATA);
+ ::GetWindowLongPtr(main_window, GWLP_USERDATA);
return reinterpret_cast<MainUIWindow*>(
- static_cast<LONG_PTR>(::GetWindowLong(main_window, GWL_USERDATA)));
+ ::GetWindowLongPtr(main_window, GWLP_USERDATA));
}
BOOL MainUIWindow::OnCreate(HWND parent_window, LPCREATESTRUCT) {
« no previous file with comments | « no previous file | sandbox/sandbox_poc/pocdll/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698