Chromium Code Reviews| Index: runtime/bin/process_win.cc |
| =================================================================== |
| --- runtime/bin/process_win.cc (revision 27636) |
| +++ runtime/bin/process_win.cc (working copy) |
| @@ -827,7 +827,7 @@ |
| // Calculate the exit code. |
| ASSERT(oh[2].GetDataSize() == 8); |
| uint32_t exit[2]; |
| - memcpy(&exit, oh[2].GetFirstDataBuffer(), sizeof(exit)); |
| + memmove(&exit, oh[2].GetFirstDataBuffer(), sizeof(exit)); |
| oh[2].FreeDataBuffer(); |
| intptr_t exit_code = exit[0]; |
| intptr_t negative = exit[1]; |