mirror of
https://github.com/MSxDOS/ntapi
synced 2026-06-08 11:37:18 +00:00
Fix UTF16Const::as_ref
Don't include the terminating null
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ impl UTF16Const {
|
||||
impl AsRef<[u16]> for UTF16Const {
|
||||
#[inline]
|
||||
fn as_ref(&self) -> &[u16] {
|
||||
self.0
|
||||
&self.0[..self.len()]
|
||||
}
|
||||
}
|
||||
impl Copy for UTF16Const {}
|
||||
|
||||
Reference in New Issue
Block a user