Skip to content

Commit

Permalink
String passed to the callback must be null terminated (#451)
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
  • Loading branch information
levydsa and cwfitzgerald authored Jan 14, 2025
1 parent 5067518 commit a3d1589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,7 @@ pub unsafe extern "C" fn wgpuInstanceRequestAdapter(
callback(
native::WGPURequestAdapterStatus_Error,
std::ptr::null_mut(),
"unsupported backend type: d3d11".as_ptr() as _,
c"unsupported backend type: d3d11".as_ptr() as _,
userdata,
);
return;
Expand Down

0 comments on commit a3d1589

Please sign in to comment.