]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
unicode character events
[wxWidgets.git] / src / msw / registry.cpp
index 7d2a574f6cc655df3e23fbff3d5b5b101b599601..70dd768c1248b6bd8605237def0d3163894fbcd7 100644 (file)
@@ -1166,7 +1166,7 @@ FormatAsHex(const void *data,
         if ( n )
             value << _T(',');
 
-        value << wxString::Format(_T("%02x"), p[n]);
+        value << wxString::Format(_T("%02x"), (unsigned char)p[n]);
     }
 
     return value;
@@ -1231,7 +1231,7 @@ wxString wxRegKey::FormatValue(const wxString& name) const
                 if ( !QueryValue(name, &value) )
                     break;
 
-                rhs.Printf(_T("dword:%08x"), value);
+                rhs.Printf(_T("dword:%08x"), (unsigned int)value);
             }
             break;