]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed export of hex values
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jan 2005 00:32:11 +0000 (00:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jan 2005 00:32:11 +0000 (00:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/registry.cpp

index 7d2a574f6cc655df3e23fbff3d5b5b101b599601..0191ef8d8231c36cc822e529492faa60c853c651 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;