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
68e1735a
Commit
68e1735a
authored
May 29, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Check output pointer for NULL.
parent
596f8d67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
mlang.c
dlls/mlang/mlang.c
+4
-0
mlang.c
dlls/mlang/tests/mlang.c
+3
-0
No files found.
dlls/mlang/mlang.c
View file @
68e1735a
...
...
@@ -2257,6 +2257,8 @@ static HRESULT WINAPI fnIMultiLanguage_GetRfc1766FromLcid(
WCHAR
buf
[
MAX_RFC1766_NAME
];
TRACE
(
"%p %04x %p
\n
"
,
iface
,
lcid
,
pbstrRfc1766
);
if
(
!
pbstrRfc1766
)
return
E_INVALIDARG
;
if
(
!
lcid_to_rfc1766W
(
lcid
,
buf
,
MAX_RFC1766_NAME
))
{
...
...
@@ -2812,6 +2814,8 @@ static HRESULT WINAPI fnIMultiLanguage2_GetRfc1766FromLcid(
WCHAR
buf
[
MAX_RFC1766_NAME
];
TRACE
(
"%p %04x %p
\n
"
,
iface
,
lcid
,
pbstrRfc1766
);
if
(
!
pbstrRfc1766
)
return
E_INVALIDARG
;
if
(
!
lcid_to_rfc1766W
(
lcid
,
buf
,
MAX_RFC1766_NAME
))
{
...
...
dlls/mlang/tests/mlang.c
View file @
68e1735a
...
...
@@ -966,6 +966,9 @@ static void test_GetRfc1766FromLcid(IMultiLanguage2 *iML2)
SysFreeString
(
rfcstr
);
}
hr
=
IMultiLanguage2_GetRfc1766FromLcid
(
iML2
,
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%x (expected E_INVALIDARG)
\n
"
,
hr
);
}
static
void
test_IMultiLanguage2_ConvertStringFromUnicode
(
IMultiLanguage2
*
iML2
)
...
...
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