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
b40f4c0b
Commit
b40f4c0b
authored
Aug 09, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Write-strings warnings fix.
parent
c50fe560
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
info.c
dlls/version/tests/info.c
+2
-1
install.c
dlls/version/tests/install.c
+6
-3
No files found.
dlls/version/tests/info.c
View file @
b40f4c0b
...
...
@@ -176,6 +176,7 @@ static void test_info(void)
VS_FIXEDFILEINFO
*
pFixedVersionInfo
;
UINT
uiLength
;
char
VersionString
[
MAX_PATH
];
static
CHAR
backslash
[]
=
"
\\
"
;
DWORDLONG
dwlVersion
;
hdl
=
0x55555555
;
...
...
@@ -215,7 +216,7 @@ static void test_info(void)
if
(
!
boolret
)
return
;
boolret
=
VerQueryValueA
(
pVersionInfo
,
"
\\
"
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
&
uiLength
);
boolret
=
VerQueryValueA
(
pVersionInfo
,
backslash
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
&
uiLength
);
ok
(
boolret
,
"VerQueryValueA failed: GetLastError = 0x%08lx
\n
"
,
GetLastError
());
if
(
!
boolret
)
return
;
...
...
dlls/version/tests/install.c
View file @
b40f4c0b
...
...
@@ -34,6 +34,9 @@ static void test_find_file(void)
char
filename
[
MAX_PATH
];
char
outBuf
[
MAX_PATH
];
char
windir
[
MAX_PATH
];
static
CHAR
empty
[]
=
""
,
regedit
[]
=
"regedit"
,
regedit_exe
[]
=
"regedit.exe"
;
memset
(
appdir
,
0
,
MAX_PATH
);
memset
(
windir
,
0
,
MAX_PATH
);
...
...
@@ -42,7 +45,7 @@ static void test_find_file(void)
dwOut
=
MAX_PATH
;
memset
(
curdir
,
0
,
MAX_PATH
);
memset
(
outBuf
,
0
,
MAX_PATH
);
ret
=
VerFindFileA
(
0
,
"regedit"
,
""
,
""
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
0
,
regedit
,
empty
,
empty
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
switch
(
ret
)
{
case
0L
:
ok
(
dwCur
==
1
,
"Wrong length of buffer for current location: "
...
...
@@ -71,7 +74,7 @@ static void test_find_file(void)
dwOut
=
MAX_PATH
;
memset
(
curdir
,
0
,
MAX_PATH
);
memset
(
outBuf
,
0
,
MAX_PATH
);
ret
=
VerFindFileA
(
0
,
"regedit.exe"
,
""
,
""
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
0
,
regedit_exe
,
empty
,
empty
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
switch
(
ret
)
{
case
VFF_CURNEDEST
:
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
...
...
@@ -93,7 +96,7 @@ static void test_find_file(void)
dwOut
=
MAX_PATH
;
memset
(
curdir
,
0
,
MAX_PATH
);
memset
(
outBuf
,
0
,
MAX_PATH
);
ret
=
VerFindFileA
(
0
,
"regedit.exe"
,
NULL
,
NULL
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ret
=
VerFindFileA
(
0
,
regedit_exe
,
NULL
,
NULL
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
switch
(
ret
)
{
case
VFF_CURNEDEST
:
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
...
...
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