Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct IDiaSymbol10::get_sourceLink signature #23

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading