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
7a8000d4
Commit
7a8000d4
authored
Mar 12, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix a test for systems with %TEMP% being less than 2 levels deep.
parent
40cfbaf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
install.c
dlls/msi/tests/install.c
+11
-12
No files found.
dlls/msi/tests/install.c
View file @
7a8000d4
...
@@ -4193,8 +4193,8 @@ static void test_transformprop(void)
...
@@ -4193,8 +4193,8 @@ static void test_transformprop(void)
static
void
test_currentworkingdir
(
void
)
static
void
test_currentworkingdir
(
void
)
{
{
UINT
r
;
UINT
r
;
CHAR
path
[
MAX_PATH
];
CHAR
drive
[
MAX_PATH
],
path
[
MAX_PATH
];
LPSTR
ptr
,
ptr2
;
LPSTR
ptr
;
CreateDirectoryA
(
"msitest"
,
NULL
);
CreateDirectoryA
(
"msitest"
,
NULL
);
create_file
(
"msitest
\\
augustus"
,
500
);
create_file
(
"msitest
\\
augustus"
,
500
);
...
@@ -4221,18 +4221,17 @@ static void test_currentworkingdir(void)
...
@@ -4221,18 +4221,17 @@ static void test_currentworkingdir(void)
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
lstrcpyA
(
path
,
CURR_DIR
);
lstrcpyA
(
drive
,
CURR_DIR
);
drive
[
2
]
=
'\\'
;
drive
[
3
]
=
'\0'
;
SetCurrentDirectoryA
(
drive
);
lstrcpy
(
path
,
CURR_DIR
);
if
(
path
[
lstrlenA
(
path
)
-
1
]
!=
'\\'
)
if
(
path
[
lstrlenA
(
path
)
-
1
]
!=
'\\'
)
lstrcatA
(
path
,
"
\\
"
);
lstrcatA
(
path
,
"
\\
"
);
lstrcatA
(
path
,
"msitest.msi"
);
lstrcatA
(
path
,
msifile
);
ptr
=
strchr
(
path
,
':'
);
ptr2
=
strrchr
(
path
,
'\\'
);
ptr
+=
2
;
*
ptr2
=
'\0'
;
ptr
=
strrchr
(
path
,
'\\'
);
*
ptr2
=
'\\'
;
*
(
ptr
++
)
=
'\0'
;
SetCurrentDirectoryA
(
path
);
r
=
MsiInstallProductA
(
ptr
,
NULL
);
r
=
MsiInstallProductA
(
ptr
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
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