@stoprocent/noble 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/win/src/winrt_cpp.cc
CHANGED
|
@@ -44,7 +44,14 @@ std::string toStr(winrt::guid uuid)
|
|
|
44
44
|
{
|
|
45
45
|
auto i = ref.Value();
|
|
46
46
|
std::ostringstream ret;
|
|
47
|
-
|
|
47
|
+
// Ensure proper width for short IDs to preserve leading zeros
|
|
48
|
+
if (i <= 0xFFFF) {
|
|
49
|
+
ret << std::hex << std::setfill('0') << std::setw(4) << i;
|
|
50
|
+
} else if (i <= 0xFFFFFFFF) {
|
|
51
|
+
ret << std::hex << std::setfill('0') << std::setw(8) << i;
|
|
52
|
+
} else {
|
|
53
|
+
ret << std::hex << i;
|
|
54
|
+
}
|
|
48
55
|
return ret.str();
|
|
49
56
|
}
|
|
50
57
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|