| Index: sandbox/win/src/eat_resolver.cc
|
| diff --git a/sandbox/win/src/eat_resolver.cc b/sandbox/win/src/eat_resolver.cc
|
| index 154bfcfbddf43d5ff39a1b9060de4be5a2015e3b..328ee00f2f171f3b43d6371badd6f084bbf692bd 100644
|
| --- a/sandbox/win/src/eat_resolver.cc
|
| +++ b/sandbox/win/src/eat_resolver.cc
|
| @@ -26,13 +26,12 @@ NTSTATUS EatResolverThunk::Setup(const void* target_module,
|
| if (!eat_entry_)
|
| return STATUS_INVALID_PARAMETER;
|
|
|
| - size_t thunk_bytes = GetInternalThunkSize();
|
| -
|
| #if defined(_WIN64)
|
| // We have two thunks, in order: the return path and the forward path.
|
| if (!SetInternalThunk(thunk_storage, storage_bytes, NULL, target_))
|
| return STATUS_BUFFER_TOO_SMALL;
|
|
|
| + size_t thunk_bytes = GetInternalThunkSize();
|
| storage_bytes -= thunk_bytes;
|
| thunk_storage = reinterpret_cast<char*>(thunk_storage) + thunk_bytes;
|
| #endif
|
|
|