riched20: Do not use wide character constants.

Michael Stefaniuc mstefani at redhat.de
Thu Jun 21 15:56:17 CDT 2007


They aren't needed and the implicit cast from the 32bit wchar_t to the
16bit WCHAR isn't that much better than the (Wine) normal implicit cast
from the 8bit char.
---
 dlls/riched20/string.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/string.c b/dlls/riched20/string.c
index 2f60810..10f6239 100644
--- a/dlls/riched20/string.c
+++ b/dlls/riched20/string.c
@@ -130,7 +130,7 @@ ME_String *ME_VSplitString(ME_String *orig, int charidx)
 
   s = ME_MakeString(orig->szData+charidx);
   orig->nLen = charidx;
-  orig->szData[charidx] = L'\0';
+  orig->szData[charidx] = '\0';
   return s;
 }
 
-- 
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070621/a96930a1/attachment.pgp


More information about the wine-patches mailing list