Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5890c099
Commit
5890c099
authored
Jun 18, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GetSystemDefaultLangID() instead of WINE_LanguageId.
parent
911436bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
resource.c
loader/resource.c
+3
-5
int21.c
msdos/int21.c
+1
-2
No files found.
loader/resource.c
View file @
5890c099
...
...
@@ -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
);
}
/**********************************************************************
...
...
msdos/int21.c
View file @
5890c099
...
...
@@ -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
(
"
\t
get 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment