Bug 1230910 Cast address of function to void*
MozReview-Commit-ID: 8blCfAXyZnj
--- a/security/sandbox/chromium/sandbox/win/src/sidestep_resolver.cc
+++ b/security/sandbox/chromium/sandbox/win/src/sidestep_resolver.cc
@@ -103,24 +103,24 @@ NTSTATUS SmartSidestepResolverThunk::Set
if (!NT_SUCCESS(ret))
return ret;
}
// Perform a standard sidestep patch on the last part of the thunk, but point
// to our internal smart interceptor.
size_t standard_bytes = storage_bytes - offsetof(SmartThunk, sidestep);
ret = SidestepResolverThunk::Setup(target_module, interceptor_module,
- target_name, NULL, &SmartStub,
+ target_name, NULL, (void*)&SmartStub,
&thunk->sidestep, standard_bytes, NULL);
if (!NT_SUCCESS(ret))
return ret;
// Fix the internal thunk to pass the whole buffer to the interceptor.
SetInternalThunk(&thunk->sidestep.internal_thunk, GetInternalThunkSize(),
- thunk_storage, &SmartStub);
+ thunk_storage, (void*)&SmartStub);
if (storage_used)
*storage_used = GetThunkSize();
return ret;
}
size_t SmartSidestepResolverThunk::GetThunkSize() const {