kernel32: Move the error message table to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6d06171485
commit
689e63485c
53 changed files with 149525 additions and 149530 deletions
|
@ -34,6 +34,3 @@ C_SRCS = \
|
|||
RC_SRCS = \
|
||||
locale_rc.rc \
|
||||
version.rc
|
||||
|
||||
MC_SRCS = \
|
||||
winerror.mc
|
||||
|
|
|
@ -26,3 +26,4 @@ C_SRCS = \
|
|||
volume.c
|
||||
|
||||
RC_SRCS = kernelbase.rc
|
||||
MC_SRCS = winerror.mc
|
||||
|
|
|
@ -45,7 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(nls);
|
|||
extern const unsigned int collation_table[] DECLSPEC_HIDDEN;
|
||||
|
||||
static HMODULE kernelbase_handle;
|
||||
static HANDLE kernel32_handle;
|
||||
|
||||
struct registry_entry
|
||||
{
|
||||
|
@ -1558,8 +1557,6 @@ void init_locale( HMODULE module )
|
|||
if (GetEnvironmentVariableW( L"WINEUNIXCP", bufferW, ARRAY_SIZE(bufferW) ))
|
||||
unix_cp = wcstoul( bufferW, NULL, 10 );
|
||||
|
||||
kernel32_handle = GetModuleHandleW( L"kernel32.dll" );
|
||||
|
||||
GetLocaleInfoW( LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE | LOCALE_RETURN_NUMBER,
|
||||
(WCHAR *)&ansi_cp, sizeof(ansi_cp)/sizeof(WCHAR) );
|
||||
GetLocaleInfoW( LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTMACCODEPAGE | LOCALE_RETURN_NUMBER,
|
||||
|
@ -4345,7 +4342,7 @@ static const WCHAR *get_message( DWORD flags, const void *src, UINT id, UINT lan
|
|||
/* Fold win32 hresult to its embedded error code. */
|
||||
if (HRESULT_SEVERITY(id) == SEVERITY_ERROR && HRESULT_FACILITY(id) == FACILITY_WIN32)
|
||||
id = HRESULT_CODE( id );
|
||||
status = RtlFindMessage( kernel32_handle, RT_MESSAGETABLE, lang, id, &entry );
|
||||
status = RtlFindMessage( kernelbase_handle, RT_MESSAGETABLE, lang, id, &entry );
|
||||
}
|
||||
if (!set_ntstatus( status )) return NULL;
|
||||
|
||||
|
|
6024
po/en_US.po
6024
po/en_US.po
File diff suppressed because it is too large
Load diff
6052
po/nb_NO.po
6052
po/nb_NO.po
File diff suppressed because it is too large
Load diff
6054
po/pt_BR.po
6054
po/pt_BR.po
File diff suppressed because it is too large
Load diff
6072
po/pt_PT.po
6072
po/pt_PT.po
File diff suppressed because it is too large
Load diff
6528
po/sr_RS@cyrillic.po
6528
po/sr_RS@cyrillic.po
File diff suppressed because it is too large
Load diff
6562
po/sr_RS@latin.po
6562
po/sr_RS@latin.po
File diff suppressed because it is too large
Load diff
6024
po/wine.pot
6024
po/wine.pot
File diff suppressed because it is too large
Load diff
6052
po/zh_CN.po
6052
po/zh_CN.po
File diff suppressed because it is too large
Load diff
6052
po/zh_TW.po
6052
po/zh_TW.po
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue