]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/ole32/ole32.factor
fix com, prettyprinting of GUIDs
[factor.git] / basis / windows / ole32 / ole32.factor
index 37a3a90d3b4e0995a70358b74208bdffef28fb36..0942123504116a86576ac414a74f90e654c161a6 100755 (executable)
@@ -143,9 +143,9 @@ CONSTANT: GUID-STRING-LENGTH
 : guid>string ( guid -- string )
     [
         [ "{" ] dip {
-            [ Data1>> >hex "-" ]
-            [ Data2>> >hex "-" ]
-            [ Data3>> >hex "-" ]
+            [ Data1>> >hex 8 CHAR: 0 pad-head "-" ]
+            [ Data2>> >hex 4 CHAR: 0 pad-head "-" ]
+            [ Data3>> >hex 4 CHAR: 0 pad-head "-" ]
             [
                 Data4>> [
                     {