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
73f7bf57
Commit
73f7bf57
authored
May 15, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Handle NULL locale name in IsValidLocaleName().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f5a9509
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
locale.c
dlls/kernel32/locale.c
+3
-0
locale.c
dlls/kernel32/tests/locale.c
+2
-0
No files found.
dlls/kernel32/locale.c
View file @
73f7bf57
...
...
@@ -2656,6 +2656,9 @@ BOOL WINAPI IsValidLocaleName( LPCWSTR locale )
{
struct
locale_name
locale_name
;
if
(
!
locale
)
return
FALSE
;
/* string parsing */
parse_locale_name
(
locale
,
&
locale_name
);
...
...
dlls/kernel32/tests/locale.c
View file @
73f7bf57
...
...
@@ -4179,6 +4179,8 @@ static void test_IsValidLocaleName(void)
ok
(
!
ret
,
"IsValidLocaleName should have failed
\n
"
);
ret
=
pIsValidLocaleName
(
LOCALE_NAME_INVARIANT
);
ok
(
ret
,
"IsValidLocaleName failed
\n
"
);
ret
=
pIsValidLocaleName
(
NULL
);
ok
(
!
ret
,
"IsValidLocaleName should have failed
\n
"
);
}
static
void
test_CompareStringOrdinal
(
void
)
...
...
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