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
ba190e9a
Commit
ba190e9a
authored
Nov 21, 2005
by
Stefan Leichter
Committed by
Alexandre Julliard
Nov 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix version tests on NT, 2K and XP, make some errors more verbose.
parent
77a6d341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
install.c
dlls/version/tests/install.c
+12
-6
No files found.
dlls/version/tests/install.c
View file @
ba190e9a
...
...
@@ -43,9 +43,11 @@ static void test_find_file(void)
memset
(
curdir
,
0
,
MAX_PATH
);
memset
(
outBuf
,
0
,
MAX_PATH
);
ret
=
VerFindFileA
(
0
,
"regedit"
,
""
,
""
,
curdir
,
&
dwCur
,
outBuf
,
&
dwOut
);
ok
(
!
ret
,
"VerFindFileA should fail for a known program without extension
\n
"
);
ok
(
dwCur
==
1
,
"expected length 1 got %d
\n
"
,
dwCur
);
ok
(
dwOut
==
1
,
"expected length 1 got %d
\n
"
,
dwOut
);
ok
(
!
ret
,
"Wrong return value got %lx expected 0
\n
"
,
ret
);
ok
(
dwCur
==
1
,
"Wrong length of buffer for current location: "
"got %d(%s) expected 1
\n
"
,
dwCur
,
curdir
);
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location: "
"got %d(%s) expected 1
\n
"
,
dwOut
,
outBuf
);
if
(
!
GetWindowsDirectoryA
(
windir
,
MAX_PATH
))
trace
(
"GetWindowsDirectoryA failed
\n
"
);
...
...
@@ -62,7 +64,7 @@ static void test_find_file(void)
todo_wine
ok
(
VFF_CURNEDEST
==
ret
,
"Wrong return value got %lx expected VFF_CURNEDEST
\n
"
,
ret
);
todo_wine
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
strlen
(
windir
)
+
1
);
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location"
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location
:
"
"got %d(%s) expected 1
\n
"
,
dwOut
,
outBuf
);
dwCur
=
MAX_PATH
;
...
...
@@ -73,7 +75,7 @@ static void test_find_file(void)
todo_wine
ok
(
VFF_CURNEDEST
==
ret
,
"Wrong return value got %lx expected VFF_CURNEDEST
\n
"
,
ret
);
todo_wine
ok
(
dwCur
==
1
+
strlen
(
windir
),
"Wrong length of buffer for current location: "
"got %d(%s) expected %d
\n
"
,
dwCur
,
curdir
,
strlen
(
windir
)
+
1
);
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location"
ok
(
dwOut
==
1
,
"Wrong length of buffer for the recommended installation location
:
"
"got %d(%s) expected 1
\n
"
,
dwOut
,
outBuf
);
}
}
...
...
@@ -83,7 +85,11 @@ static void test_find_file(void)
trace
(
"GetModuleFileNameA, GetSystemDirectoryA or GetTempPathA failed
\n
"
);
else
{
char
*
p
=
strrchr
(
filename
,
'\\'
);
if
(
p
++
)
memmove
(
filename
,
p
,
1
+
strlen
(
p
));
if
(
p
)
{
*
(
p
++
)
=
'\0'
;
SetCurrentDirectoryA
(
filename
);
memmove
(
filename
,
p
,
1
+
strlen
(
p
));
}
dwCur
=
MAX_PATH
;
dwOut
=
MAX_PATH
;
...
...
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