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
298d80c2
Commit
298d80c2
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.
parent
0cbd0a36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
install.c
dlls/version/tests/install.c
+4
-4
No files found.
dlls/version/tests/install.c
View file @
298d80c2
...
...
@@ -75,7 +75,7 @@ static void test_find_file(void)
switch
(
ret
)
{
case
VFF_CURNEDEST
:
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
strlen
(
windir
)
+
1
);
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
lstrlenA
(
windir
)
+
1
);
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location: "
"got %d(%s) expected 1
\n
"
,
dwOut
,
outBuf
);
break
;
...
...
@@ -97,7 +97,7 @@ static void test_find_file(void)
switch
(
ret
)
{
case
VFF_CURNEDEST
:
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
strlen
(
windir
)
+
1
);
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
lstrlenA
(
windir
)
+
1
);
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location: "
"got %d(%s) expected 1
\n
"
,
dwOut
,
outBuf
);
break
;
...
...
@@ -149,7 +149,7 @@ static void test_find_file(void)
ret
=
VerFindFileA
(
VFFF_ISSHAREDFILE
,
filename
,
NULL
,
appdir
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
todo_wine
ok
(
VFF_CURNEDEST
==
ret
,
"Wrong return value got %lx expected VFF_CURNEDEST
\n
"
,
ret
);
ok
(
dwOut
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwOut
,
outBuf
,
strlen
(
windir
)
+
1
);
"got %d(%s) expected %d
\n
"
,
dwOut
,
outBuf
,
lstrlenA
(
windir
)
+
1
);
dwCur
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
...
...
@@ -158,7 +158,7 @@ static void test_find_file(void)
ret
=
VerFindFileA
(
0
,
filename
,
NULL
,
appdir
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
todo_wine
ok
(
VFF_CURNEDEST
==
ret
,
"Wrong return value got %lx expected VFF_CURNEDEST
\n
"
,
ret
);
ok
(
dwOut
==
1
+
strlen
(
appdir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwOut
,
outBuf
,
strlen
(
appdir
)
+
1
);
"got %d(%s) expected %d
\n
"
,
dwOut
,
outBuf
,
lstrlenA
(
appdir
)
+
1
);
}
}
...
...
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