summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor_win.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 08:06:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 08:06:35 +0000
commit3747791d3d47eeaa9aef440bda06b50f594bd386 (patch)
tree20988e5862266fae81e5c6c440507035bc00a3b4 /webkit/glue/webcursor_win.cc
parent47148a3c6b63d19dd2d33d61537d953f76ce0e2c (diff)
downloadchromium_src-3747791d3d47eeaa9aef440bda06b50f594bd386.zip
chromium_src-3747791d3d47eeaa9aef440bda06b50f594bd386.tar.gz
chromium_src-3747791d3d47eeaa9aef440bda06b50f594bd386.tar.bz2
Take out intptr_t IPC serialization support to prevent people from sending pointers between trusted and untrusted processes. Move HWNDs and other Windows HANDLEs serialization to use 32 bits even on 64 bit platforms since that's all that's needed.
Review URL: http://codereview.chromium.org/565001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38455 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor_win.cc')
-rw-r--r--webkit/glue/webcursor_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/webcursor_win.cc b/webkit/glue/webcursor_win.cc
index 80026a1..9248296 100644
--- a/webkit/glue/webcursor_win.cc
+++ b/webkit/glue/webcursor_win.cc
@@ -203,12 +203,12 @@ void WebCursor::InitPlatformData() {
bool WebCursor::SerializePlatformData(Pickle* pickle) const {
// There are some issues with converting certain HCURSORS to bitmaps. The
// HCURSOR being a user object can be marshaled as is.
- return pickle->WriteIntPtr(reinterpret_cast<intptr_t>(external_cursor_));
+ // HCURSORs are always 32 bits on Windows, even on 64 bit systems.
+ return pickle->WriteUInt32(reinterpret_cast<uint32>(external_cursor_));
}
bool WebCursor::DeserializePlatformData(const Pickle* pickle, void** iter) {
- return pickle->ReadIntPtr(iter,
- reinterpret_cast<intptr_t*>(&external_cursor_));
+ return pickle->ReadUInt32(iter, reinterpret_cast<uint32*>(&external_cursor_));
}
bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const {