Skip to content

Commit

Permalink
Correct IDiaSymbol10::get_sourceLink signature (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Apr 5, 2024
1 parent 8f73531 commit 486ffa9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .metadata/options.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ __MIDL___MIDL_itf_dia2_0000_0034_0001
PfnPDBDebugDirV
--memberRemap
IDiaSourceFile::get_checksum::pbData=[Optional]
IDiaSymbol10::get_sourceLink::pb=[Optional]
Binary file modified .windows/winmd/Microsoft.Dia.winmd
Binary file not shown.
20 changes: 14 additions & 6 deletions src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12973,13 +12973,17 @@ pub mod Dia {
pub unsafe fn get_sourceLink(
&self,
pcb: *mut u32,
pb: &mut [u8],
pb: ::core::option::Option<&mut [u8]>,
) -> ::windows_core::Result<()> {
(::windows_core::Interface::vtable(self).get_sourceLink)(
::windows_core::Interface::as_raw(self),
pb.len().try_into().unwrap(),
pb.as_deref()
.map_or(0, |slice| slice.len().try_into().unwrap()),
pcb,
::core::mem::transmute(pb.as_ptr()),
::core::mem::transmute(
pb.as_deref()
.map_or(::core::ptr::null(), |slice| slice.as_ptr()),
),
)
.ok()
}
Expand Down Expand Up @@ -17501,15 +17505,19 @@ pub mod Dia {
pub unsafe fn get_sourceLink(
&self,
pcb: *mut u32,
pb: &mut [u8],
pb: ::core::option::Option<&mut [u8]>,
) -> ::windows_core::Result<()> {
(::windows_core::Interface::vtable(self)
.base__
.get_sourceLink)(
::windows_core::Interface::as_raw(self),
pb.len().try_into().unwrap(),
pb.as_deref()
.map_or(0, |slice| slice.len().try_into().unwrap()),
pcb,
::core::mem::transmute(pb.as_ptr()),
::core::mem::transmute(
pb.as_deref()
.map_or(::core::ptr::null(), |slice| slice.as_ptr()),
),
)
.ok()
}
Expand Down

0 comments on commit 486ffa9

Please sign in to comment.