Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / sandbox / win / src / eat_resolver.cc
index 154bfcf..328ee00 100644 (file)
@@ -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