From adca6ce537bc982df2b2b91d3b328f8b0efb93de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 9 Dec 2003 18:22:29 +0000 Subject: [PATCH] Use default langid if no resource langid given svn path=/trunk/; revision=6929 --- reactos/lib/kernel32/misc/res.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/lib/kernel32/misc/res.c b/reactos/lib/kernel32/misc/res.c index 4d1b2e2d44d..8e2a0024845 100644 --- a/reactos/lib/kernel32/misc/res.c +++ b/reactos/lib/kernel32/misc/res.c @@ -1,4 +1,4 @@ -/* $Id: res.c,v 1.16 2003/08/07 04:03:23 royce Exp $ +/* $Id: res.c,v 1.17 2003/12/09 18:22:29 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT : ReactOS user mode libraries @@ -132,6 +132,9 @@ FindResourceExW ( ResourceInfo.Type = (ULONG)lpType; ResourceInfo.Name = (ULONG)lpName; ResourceInfo.Language = (ULONG)wLanguage; + if (ResourceInfo.Language == (ULONG) MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)) { + ResourceInfo.Language = (ULONG) GetUserDefaultLangID(); + } Status = LdrFindResource_U (hModule, &ResourceInfo,