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
3840de5b
Commit
3840de5b
authored
Dec 07, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Loosen check on kernel32 language version.
parent
4a22c88b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
msi.c
dlls/msi/tests/msi.c
+4
-6
No files found.
dlls/msi/tests/msi.c
View file @
3840de5b
...
...
@@ -2517,8 +2517,7 @@ static void test_MsiGetFileVersion(void)
r
=
MsiGetFileVersionA
(
path
,
version
,
&
versz
,
lang
,
&
langsz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
versz
==
verchecksz
,
"Expected %d, got %d
\n
"
,
verchecksz
,
versz
);
ok
(
!
lstrcmpA
(
lang
,
langcheck
),
"Expected %s, got %s
\n
"
,
langcheck
,
lang
);
ok
(
langsz
==
langchecksz
,
"Expected %d, got %d
\n
"
,
langchecksz
,
langsz
);
ok
(
strstr
(
lang
,
langcheck
)
!=
NULL
,
"Expected %s in %s
\n
"
,
langcheck
,
lang
);
ok
(
!
lstrcmpA
(
version
,
vercheck
),
"Expected %s, got %s
\n
"
,
vercheck
,
version
);
...
...
@@ -2536,8 +2535,7 @@ static void test_MsiGetFileVersion(void)
lstrcpyA
(
lang
,
"lang"
);
r
=
MsiGetFileVersionA
(
path
,
NULL
,
NULL
,
lang
,
&
langsz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
lang
,
langcheck
),
"Expected %s, got %s
\n
"
,
langcheck
,
lang
);
ok
(
langsz
==
langchecksz
,
"Expected %d, got %d
\n
"
,
langchecksz
,
langsz
);
ok
(
strstr
(
lang
,
langcheck
)
!=
NULL
,
"Expected %s in %s
\n
"
,
langcheck
,
lang
);
/* check neither version nor language */
r
=
MsiGetFileVersionA
(
path
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -2553,7 +2551,7 @@ static void test_MsiGetFileVersion(void)
langsz
=
MAX_PATH
;
r
=
MsiGetFileVersionA
(
path
,
NULL
,
NULL
,
NULL
,
&
langsz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
langsz
==
langchecksz
,
"Expected %d, got %d
\n
"
,
langchecksz
,
lang
sz
);
ok
(
langsz
>=
langchecksz
,
"Expected %d >= %d
\n
"
,
langsz
,
langcheck
sz
);
/* pcchVersionBuf not big enough */
versz
=
5
;
...
...
@@ -2571,7 +2569,7 @@ static void test_MsiGetFileVersion(void)
ok
(
r
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
r
);
ok
(
!
strncmp
(
lang
,
langcheck
,
2
),
"Expected first character of %s, got %s
\n
"
,
langcheck
,
lang
);
ok
(
langsz
==
langchecksz
,
"Expected %d, got %d
\n
"
,
langchecksz
,
lang
sz
);
ok
(
langsz
>=
langchecksz
,
"Expected %d >= %d
\n
"
,
langsz
,
langcheck
sz
);
HeapFree
(
GetProcessHeap
(),
0
,
vercheck
);
HeapFree
(
GetProcessHeap
(),
0
,
langcheck
);
...
...
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