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
ed9e0304
Commit
ed9e0304
authored
Jul 15, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Properly implement EnumSystemGeoID().
parent
17777c84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
locale.c
dlls/kernel32/locale.c
+0
-0
locale.c
dlls/kernel32/tests/locale.c
+19
-2
No files found.
dlls/kernel32/locale.c
View file @
ed9e0304
This diff is collapsed.
Click to expand it.
dlls/kernel32/tests/locale.c
View file @
ed9e0304
...
...
@@ -3930,11 +3930,10 @@ static int geoidenum_count;
static
BOOL
CALLBACK
test_geoid_enumproc
(
GEOID
geoid
)
{
INT
ret
=
pGetGeoInfoA
(
geoid
,
GEO_ISO2
,
NULL
,
0
,
0
);
todo_wine
{
ok
(
ret
==
3
,
"got %d for %d
\n
"
,
ret
,
geoid
);
/* valid geoid starts at 2 */
ok
(
geoid
>=
2
,
"got geoid %d
\n
"
,
geoid
);
}
return
geoidenum_count
++
<
5
;
}
...
...
@@ -3959,9 +3958,27 @@ static void test_EnumSystemGeoID(void)
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pEnumSystemGeoID
(
GEOCLASS_NATION
+
1
,
0
,
test_geoid_enumproc
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pEnumSystemGeoID
(
GEOCLASS_NATION
+
1
,
0
,
NULL
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
GetLastError
());
ret
=
pEnumSystemGeoID
(
GEOCLASS_NATION
,
0
,
test_geoid_enumproc
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
/* only first level is enumerated, not the whole hierarchy */
geoidenum_count
=
0
;
ret
=
pEnumSystemGeoID
(
GEOCLASS_NATION
,
39070
,
test_geoid_enumproc2
);
if
(
ret
==
0
)
win_skip
(
"Parent GEOID is not supported in EnumSystemGeoID.
\n
"
);
else
ok
(
ret
&&
geoidenum_count
>
0
,
"got %d, count %d
\n
"
,
ret
,
geoidenum_count
);
geoidenum_count
=
0
;
ret
=
pEnumSystemGeoID
(
GEOCLASS_REGION
,
39070
,
test_geoid_enumproc2
);
if
(
ret
==
0
)
...
...
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