Bug 1230910 Cast address of function to void* draft
authorTom Ritter <tom@mozilla.com>
Wed, 08 Mar 2017 22:36:59 +0000
changeset 496075 e625f8e7090222263dfb642cad6c98bad69fa9ae
parent 496074 5287dbbf6068e95461b1aba72fb64162fe311373
child 496076 55cb2b746303809d334ca9c8acae8225fdbebd58
push id48518
push userbmo:tom@mozilla.com
push dateThu, 09 Mar 2017 19:30:51 +0000
bugs1230910
milestone52.0.1
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 {