Bug 1230910 Cast address of function to void* draft
authorTom Ritter <tom@mozilla.com>
Wed, 08 Mar 2017 22:36:59 +0000
changeset 656095 6010f7b3e8b9685635ca997b52909583c407c737
parent 656094 3189cea122aa3d3ff3278845da9d90423e49fe51
child 656096 b4c69e0b6d374e3aa3fa906ea2d3a019861d5383
push id77058
push userbmo:tom@mozilla.com
push dateWed, 30 Aug 2017 18:21:00 +0000
bugs1230910
milestone57.0a1
Bug 1230910 Cast address of function to void* MozReview-Commit-ID: 8blCfAXyZnj
security/sandbox/chromium/sandbox/win/src/sidestep_resolver.cc
--- 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 {