Fix dlls/ntdll/resource.c bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexandre,

I'm afraid there is a bug in the following new function in
dlls/ntdll/resource.c which might be fixable as below.

Gerald

ChangeLog:
Add missing return value in push_language().

Index: resource.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/resource.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 resource.c
--- resource.c	29 Apr 2003 23:00:48 -0000	1.1
+++ resource.c	30 Apr 2003 09:24:00 -0000
@@ -74,7 +74,8 @@ inline static int is_data_file_module( H
 static inline int push_language( WORD *list, int pos, WORD lang )
 {
     int i;
-    for (i = 0; i < pos; i++) if (list[i] == lang) return;
+    for (i = 0; i < pos; i++)
+        if (list[i] == lang) return i;
     list[pos++] = lang;
     return pos;
 }


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux