We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
HSTRING
1 parent 49317c3 commit b13b328Copy full SHA for b13b328
crates/libs/windows/src/core/strings/hstring.rs
@@ -408,11 +408,11 @@ impl Header {
408
header
409
}
410
411
- fn duplicate(&mut self) -> *mut Header {
+ fn duplicate(&self) -> *mut Header {
412
if self.flags & REFERENCE_FLAG == 0 {
413
// If this is not a "fast pass" string then simply increment the reference count.
414
self.count.add_ref();
415
- self
+ self as *const Header as *mut Header
416
} else {
417
// Otherwise, allocate a new string and copy the value into the new string.
418
let copy = Header::alloc(self.len);
0 commit comments