Also search for (LANG_ENGLISH,SUBLANG_NEUTRAL) as win2000 does
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jul 16 21:48:05 CDT 2003
Hello,
Changelog:
Also search for (LANG_ENGLISH,SUBLANG_NEUTRAL) resource as a fallback
after (LANG_ENGLISH,SUBLANG_DEFAULT) as win2000 does.
--- cvs/hq/wine/dlls/ntdll/resource.c Wed May 07 04:33:28 2003
+++ wine/dlls/ntdll/resource.c Thu Jul 17 02:40:32 2003
@@ -187,7 +187,7 @@
ULONG size;
const void *root;
const IMAGE_RESOURCE_DIRECTORY *resdirptr;
- WORD list[9]; /* list of languages to try */
+ WORD list[10]; /* list of languages to try */
int i, pos = 0;
root = RtlImageDirectoryEntryToData( hmod, TRUE, IMAGE_DIRECTORY_ENTRY_RESOURCE, &size );
@@ -238,8 +238,11 @@
/* 8. system locale language with neutral sublanguage */
pos = push_language( list, pos, MAKELANGID( PRIMARYLANGID(system_lcid), SUBLANG_NEUTRAL ) );
- /* 9. English */
+ /* 9. English US */
pos = push_language( list, pos, MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT ) );
+
+ /* 10. English Neutral */
+ pos = push_language( list, pos, MAKELANGID( LANG_ENGLISH, SUBLANG_NEUTRAL ) );
}
resdirptr = *ret;
More information about the wine-patches
mailing list