Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a560bcb8
Commit
a560bcb8
authored
Aug 11, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't include wine/debug.h when compiling on Windows.
GetCPInfoExA() is missing on some Windows platforms, load it dynamically.
parent
dbf5b2a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
mlang.c
dlls/mlang/tests/mlang.c
+14
-3
No files found.
dlls/mlang/tests/mlang.c
View file @
a560bcb8
...
...
@@ -28,7 +28,6 @@
#include "mlang.h"
#include "wine/test.h"
#include "wine/debug.h"
#ifndef CP_UNICODE
#define CP_UNICODE 1200
...
...
@@ -37,8 +36,14 @@
/*#define DUMP_CP_INFO*/
/*#define DUMP_SCRIPT_INFO*/
#ifdef DUMP_CP_INFO
#include "wine/debug.h"
#endif
#define TRACE_2 OutputDebugStringA
static
BOOL
(
WINAPI
*
pGetCPInfoExA
)(
UINT
,
DWORD
,
LPCPINFOEXA
);
static
void
test_multibyte_to_unicode_translations
(
IMultiLanguage2
*
iML2
)
{
/* these APIs are broken regarding constness of the input buffer */
...
...
@@ -336,14 +341,17 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
else
trace
(
"TranslateCharsetInfo failed for cp %u
\n
"
,
cpinfo
[
i
].
uiFamilyCodePage
);
if
(
GetCPInfoExA
(
cpinfo
[
i
].
uiCodePage
,
0
,
&
cpinfoex
))
if
(
pGetCPInfoExA
)
{
if
(
pGetCPInfoExA
(
cpinfo
[
i
].
uiCodePage
,
0
,
&
cpinfoex
))
trace
(
"CodePage %u name: %s
\n
"
,
cpinfo
[
i
].
uiCodePage
,
cpinfoex
.
CodePageName
);
else
trace
(
"GetCPInfoExA failed for cp %u
\n
"
,
cpinfo
[
i
].
uiCodePage
);
if
(
GetCPInfoExA
(
cpinfo
[
i
].
uiFamilyCodePage
,
0
,
&
cpinfoex
))
if
(
p
GetCPInfoExA
(
cpinfo
[
i
].
uiFamilyCodePage
,
0
,
&
cpinfoex
))
trace
(
"CodePage %u name: %s
\n
"
,
cpinfo
[
i
].
uiFamilyCodePage
,
cpinfoex
.
CodePageName
);
else
trace
(
"GetCPInfoExA failed for cp %u
\n
"
,
cpinfo
[
i
].
uiFamilyCodePage
);
}
/* Win95 does not support UTF-7 */
if
(
cpinfo
[
i
].
uiCodePage
==
CP_UTF7
)
continue
;
...
...
@@ -525,9 +533,12 @@ static void test_EnumScripts(IMultiLanguage2 *iML2, DWORD flags)
START_TEST
(
mlang
)
{
HINSTANCE
lib
;
IMultiLanguage2
*
iML2
=
NULL
;
HRESULT
ret
;
lib
=
LoadLibraryA
(
"mlang"
);
pGetCPInfoExA
=
(
void
*
)
GetProcAddress
(
lib
,
"GetCPInfoExA"
);
CoInitialize
(
NULL
);
TRACE_2
(
"Call CoCreateInstance
\n
"
);
ret
=
CoCreateInstance
(
&
CLSID_CMultiLanguage
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
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