From 5890c09983c9f23f2c3742e17ece76e7c1f9c057 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Sun, 18 Jun 2000 19:31:19 +0000 Subject: [PATCH] Use GetSystemDefaultLangID() instead of WINE_LanguageId. --- loader/resource.c | 8 +++----- msdos/int21.c | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/loader/resource.c b/loader/resource.c index bc1a85337bd..e3cfabdb751 100644 --- a/loader/resource.c +++ b/loader/resource.c @@ -36,8 +36,6 @@ DEFAULT_DEBUG_CHANNEL(resource); DECLARE_DEBUG_CHANNEL(accel); -extern WORD WINE_LanguageId; - #define HRSRC_MAP_BLOCKSIZE 16 typedef struct _HRSRC_ELEM @@ -449,7 +447,7 @@ HRSRC16 WINAPI FindResource16( HMODULE16 hModule, SEGPTR name, SEGPTR type ) LPCSTR typeStr = HIWORD(type)? PTR_SEG_TO_LIN(type) : (LPCSTR)type; return RES_FindResource( hModule, typeStr, nameStr, - WINE_LanguageId, FALSE, TRUE ); + GetSystemDefaultLangID(), FALSE, TRUE ); } /********************************************************************** @@ -458,7 +456,7 @@ HRSRC16 WINAPI FindResource16( HMODULE16 hModule, SEGPTR name, SEGPTR type ) HANDLE WINAPI FindResourceA( HMODULE hModule, LPCSTR name, LPCSTR type ) { return RES_FindResource( hModule, type, name, - WINE_LanguageId, FALSE, FALSE ); + GetSystemDefaultLangID(), FALSE, FALSE ); } /********************************************************************** @@ -487,7 +485,7 @@ HRSRC WINAPI FindResourceExW( HMODULE hModule, HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type) { return RES_FindResource( hModule, (LPCSTR)type, (LPCSTR)name, - WINE_LanguageId, TRUE, FALSE ); + GetSystemDefaultLangID(), TRUE, FALSE ); } /********************************************************************** diff --git a/msdos/int21.c b/msdos/int21.c index cbb692f532a..57de0165728 100644 --- a/msdos/int21.c +++ b/msdos/int21.c @@ -2033,7 +2033,6 @@ void WINAPI DOS3Call( CONTEXT86 *context ) break; case 0x65:{/* GET EXTENDED COUNTRY INFORMATION */ - extern WORD WINE_LanguageId; BYTE *dataptr=CTX_SEG_OFF_TO_LIN(context, ES_reg(context),EDI_reg(context)); TRACE("GET EXTENDED COUNTRY INFORMATION code page %d country %d\n", BX_reg(context), DX_reg(context)); @@ -2042,7 +2041,7 @@ void WINAPI DOS3Call( CONTEXT86 *context ) TRACE("\tget general internationalization info\n"); dataptr[0] = 0x1; *(WORD*)(dataptr+1) = 41; - *(WORD*)(dataptr+3) = WINE_LanguageId; + *(WORD*)(dataptr+3) = GetSystemDefaultLangID(); *(WORD*)(dataptr+5) = CodePage; *(DWORD*)(dataptr+0x19) = 0; /* FIXME: ptr to case map routine */ break;