File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ coremidi = "0.6.0"
4545coremidi = " 0.6.0"
4646
4747[target .'cfg(target_os = "windows")' .dependencies ]
48- windows = { version = " 0.37 " , features = [
48+ windows = { version = " 0.42 " , features = [
4949 " Win32_Foundation" ,
5050 " Win32_Media" ,
5151 " Win32_Media_Multimedia" ,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl MidiInput {
6565 let timestamp = message. Timestamp ( ) . expect ( "Timestamp failed" ) . Duration as u64 / 10 ;
6666 let buffer = message. RawData ( ) . expect ( "RawData failed" ) ;
6767 let length = buffer. Length ( ) . expect ( "Length failed" ) as usize ;
68- let data_reader = DataReader :: FromBuffer ( buffer) . expect ( "FromBuffer failed" ) ;
68+ let data_reader = DataReader :: FromBuffer ( & buffer) . expect ( "FromBuffer failed" ) ;
6969 let mut message_bytes = vec ! [ 0 ; length] ;
7070 data_reader. ReadBytes ( & mut message_bytes) . expect ( "ReadBytes failed" ) ;
7171
You can’t perform that action at this time.
0 commit comments