summaryrefslogtreecommitdiffstats
path: root/chrome/nacl
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/nacl')
-rw-r--r--chrome/nacl/nacl_ipc_adapter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/nacl/nacl_ipc_adapter.cc b/chrome/nacl/nacl_ipc_adapter.cc
index 71b5cc56..ed0dd4d 100644
--- a/chrome/nacl/nacl_ipc_adapter.cc
+++ b/chrome/nacl/nacl_ipc_adapter.cc
@@ -176,10 +176,10 @@ class HandleConverter {
params;
if (!MessageType::ReadReplyParam(msg_, &params))
return false;
- out_msg->set_reply();
// If we need to rewrite the message (i.e., on Windows), we need to make
// sure we write the message id first.
if (out_msg) {
+ out_msg->set_reply();
int id = IPC::SyncMessage::GetMessageId(*msg_);
out_msg->WriteInt(id);
}