Also search for (LANG_ENGLISH,SUBLANG_NEUTRAL) as win2000 does

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

 



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;





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

  Powered by Linux