Fix dlls/ntdll/resource.c bug
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Wed Apr 30 04:25:16 CDT 2003
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;
}
More information about the wine-patches
mailing list