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
c7e40aa9
Commit
c7e40aa9
authored
Apr 12, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack/tests: Don't hardcode the windows directory.
parent
09a2c89a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
files.c
dlls/advpack/tests/files.c
+4
-2
No files found.
dlls/advpack/tests/files.c
View file @
c7e40aa9
...
@@ -131,6 +131,7 @@ static void test_AddDelBackupEntry(void)
...
@@ -131,6 +131,7 @@ static void test_AddDelBackupEntry(void)
{
{
HRESULT
res
;
HRESULT
res
;
CHAR
path
[
MAX_PATH
];
CHAR
path
[
MAX_PATH
];
CHAR
windir
[
MAX_PATH
];
lstrcpyA
(
path
,
CURR_DIR
);
lstrcpyA
(
path
,
CURR_DIR
);
lstrcatA
(
path
,
"
\\
backup
\\
basename.INI"
);
lstrcatA
(
path
,
"
\\
backup
\\
basename.INI"
);
...
@@ -187,9 +188,10 @@ static void test_AddDelBackupEntry(void)
...
@@ -187,9 +188,10 @@ static void test_AddDelBackupEntry(void)
ok
(
DeleteFileA
(
path
),
"Expected path to exist
\n
"
);
ok
(
DeleteFileA
(
path
),
"Expected path to exist
\n
"
);
RemoveDirectoryA
(
"backup"
);
RemoveDirectoryA
(
"backup"
);
lstrcpyA
(
path
,
"c:
\\
windows
\\
basename.INI"
);
GetWindowsDirectoryA
(
windir
,
sizeof
(
windir
));
sprintf
(
path
,
"%s
\\
basename.INI"
,
windir
);
/* try a NULL backup dir, INI is created in
c:\windows
*/
/* try a NULL backup dir, INI is created in
the windows directory
*/
res
=
pAddDelBackupEntry
(
"one
\0
two
\0
three
\0
"
,
NULL
,
"basename"
,
AADBE_ADD_ENTRY
);
res
=
pAddDelBackupEntry
(
"one
\0
two
\0
three
\0
"
,
NULL
,
"basename"
,
AADBE_ADD_ENTRY
);
ok
(
res
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
res
);
ok
(
res
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
res
);
ok
(
check_ini_contents
(
path
,
TRUE
),
"Expected ini contents to match
\n
"
);
ok
(
check_ini_contents
(
path
,
TRUE
),
"Expected ini contents to match
\n
"
);
...
...
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