Skip to content

Commit

Permalink
Fixes #469
Browse files Browse the repository at this point in the history
  • Loading branch information
retep998 committed Jul 6, 2017
1 parent 0275698 commit 6754bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ macro_rules! RIDL {
(@method #[fixme] fn $method:ident($($p:ident : $t:ty,)*) -> $rtr:ty) => (
#[inline] pub unsafe fn $method(&self, $($p: $t,)*) -> $rtr {
let mut ret = $crate::_core::mem::uninitialized();
((*self.lpVtbl).$method)(self as *const _ as *mut _, $($p,)* &mut ret);
((*self.lpVtbl).$method)(self as *const _ as *mut _, &mut ret, $($p,)*);
ret
}
);
Expand Down Expand Up @@ -221,8 +221,8 @@ macro_rules! RIDL {
$($fields)*
pub $method: unsafe extern "system" fn(
This: *mut $interface,
$($p: $t,)*
ret: *mut $rtr,
$($p: $t,)*
) -> *mut $rtr,
) $($tail)*}
);
Expand Down

0 comments on commit 6754bdd

Please sign in to comment.