Eric Kohl : widl: The 'string' attribute can also be used with unsigned characters.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 3 12:03:03 CST 2006


Module: wine
Branch: refs/heads/master
Commit: dd57b45aaabcb840f031e1c3aa31619f986aa504
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=dd57b45aaabcb840f031e1c3aa31619f986aa504

Author: Eric Kohl <eric.kohl at t-online.de>
Date:   Fri Feb  3 18:47:06 2006 +0100

widl: The 'string' attribute can also be used with unsigned characters.

---

 tools/widl/typegen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 546e693..1c1002e 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -577,7 +577,7 @@ static size_t write_string_tfs(FILE *fil
     int has_size = size_is && (size_is->type != EXPR_VOID);
     size_t start_offset = *typestring_offset;
 
-    if ((type->type != RPC_FC_CHAR) && (type->type != RPC_FC_WCHAR))
+    if ((type->type != RPC_FC_BYTE) && (type->type != RPC_FC_CHAR) && (type->type != RPC_FC_WCHAR))
     {
         error("write_string_tfs: Unimplemented for type 0x%x of name: %s\n", type->type, name);
         return start_offset;




More information about the wine-cvs mailing list