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
42a18cf5
Commit
42a18cf5
authored
May 04, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Account for unsupported NLSVERSIONINFOEX.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
913e6ef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
locale.c
dlls/kernel32/tests/locale.c
+18
-6
No files found.
dlls/kernel32/tests/locale.c
View file @
42a18cf5
...
...
@@ -6653,17 +6653,29 @@ static void test_NLSVersion(void)
win_skip
(
"GetNLSVersion not available
\n
"
);
return
;
}
SetLastError
(
0xdeadbeef
);
memset
(
&
info
,
0xcc
,
sizeof
(
info
)
);
info
.
dwNLSVersionInfoSize
=
sizeof
(
info
);
info
.
dwNLSVersionInfoSize
=
offsetof
(
NLSVERSIONINFO
,
dwEffectiveId
);
ret
=
pGetNLSVersion
(
COMPARE_STRING
,
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_FRENCH_CANADIAN
),
(
NLSVERSIONINFO
*
)
&
info
);
ok
(
ret
,
"GetNLSVersion failed err %u
\n
"
,
GetLastError
()
);
ok
(
info
.
dwEffectiveId
==
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_FRENCH_CANADIAN
),
"wrong id %x
\n
"
,
info
.
dwEffectiveId
);
ok
(
IsEqualIID
(
&
info
.
guidCustomVersion
,
&
guid_fr
)
||
broken
(
IsEqualIID
(
&
info
.
guidCustomVersion
,
&
guid_null
)),
/* <= win7 */
"wrong guid %s
\n
"
,
debugstr_guid
(
&
info
.
guidCustomVersion
)
);
SetLastError
(
0xdeadbeef
);
memset
(
&
info
,
0xcc
,
sizeof
(
info
)
);
info
.
dwNLSVersionInfoSize
=
sizeof
(
info
);
ret
=
pGetNLSVersion
(
COMPARE_STRING
,
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_FRENCH_CANADIAN
),
(
NLSVERSIONINFO
*
)
&
info
);
ok
(
ret
||
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
/* < Vista */
,
"GetNLSVersion failed err %u
\n
"
,
GetLastError
()
);
if
(
ret
)
{
ok
(
info
.
dwEffectiveId
==
MAKELANGID
(
LANG_FRENCH
,
SUBLANG_FRENCH_CANADIAN
),
"wrong id %x
\n
"
,
info
.
dwEffectiveId
);
ok
(
IsEqualIID
(
&
info
.
guidCustomVersion
,
&
guid_fr
)
||
broken
(
IsEqualIID
(
&
info
.
guidCustomVersion
,
&
guid_null
)),
/* <= win7 */
"wrong guid %s
\n
"
,
debugstr_guid
(
&
info
.
guidCustomVersion
)
);
}
SetLastError
(
0xdeadbeef
);
info
.
dwNLSVersionInfoSize
=
8
;
...
...
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