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
f4def21f
Commit
f4def21f
authored
May 26, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Return correct result in Rfc1766ToLcidA on failure.
parent
7bc167ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
mlang.c
dlls/mlang/mlang.c
+3
-0
mlang.c
dlls/mlang/tests/mlang.c
+6
-0
No files found.
dlls/mlang/mlang.c
View file @
f4def21f
...
...
@@ -1238,6 +1238,9 @@ HRESULT WINAPI Rfc1766ToLcidA(LCID *lcid, LPCSTR rfc1766A)
{
WCHAR
rfc1766W
[
MAX_RFC1766_NAME
+
1
];
if
(
!
rfc1766A
)
return
E_INVALIDARG
;
MultiByteToWideChar
(
CP_ACP
,
0
,
rfc1766A
,
-
1
,
rfc1766W
,
MAX_RFC1766_NAME
);
rfc1766W
[
MAX_RFC1766_NAME
]
=
0
;
...
...
dlls/mlang/tests/mlang.c
View file @
f4def21f
...
...
@@ -935,6 +935,12 @@ static void test_Rfc1766ToLcid(void)
}
ret
=
Rfc1766ToLcidA
(
&
lcid
,
NULL
);
ok
(
ret
==
E_INVALIDARG
,
"got 0x%08x (expected E_INVALIDARG)
\n
"
,
ret
);
ret
=
Rfc1766ToLcidA
(
NULL
,
"en"
);
ok
(
ret
==
E_INVALIDARG
,
"got 0x%08x (expected E_INVALIDARG)
\n
"
,
ret
);
}
...
...
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