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
8ebcf400
Commit
8ebcf400
authored
Mar 06, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Properly remove temporary directory.
parent
0646dfa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dir.c
dlls/msvcrt/tests/dir.c
+3
-0
No files found.
dlls/msvcrt/tests/dir.c
View file @
8ebcf400
...
...
@@ -35,6 +35,7 @@ static void test_fullpath(void)
{
char
full
[
MAX_PATH
];
char
tmppath
[
MAX_PATH
];
char
prevpath
[
MAX_PATH
];
char
level1
[
MAX_PATH
];
char
level2
[
MAX_PATH
];
char
teststring
[
MAX_PATH
];
...
...
@@ -42,6 +43,7 @@ static void test_fullpath(void)
BOOL
rc
,
free1
,
free2
;
free1
=
free2
=
TRUE
;
GetCurrentDirectory
(
MAX_PATH
,
prevpath
);
GetTempPath
(
MAX_PATH
,
tmppath
);
strcpy
(
level1
,
tmppath
);
strcat
(
level1
,
"msvcrt-test
\\
"
);
...
...
@@ -79,6 +81,7 @@ static void test_fullpath(void)
ok
(
strcmp
(
freeme
,
teststring
)
==
0
,
"Invalid Path returned %s
\n
"
,
freeme
);
free
(
freeme
);
SetCurrentDirectory
(
prevpath
);
if
(
free2
)
RemoveDirectory
(
level2
);
if
(
free1
)
...
...
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