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
96812eb2
Commit
96812eb2
authored
Mar 29, 2005
by
Ferenc Wagner
Committed by
Alexandre Julliard
Mar 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try using a stable temporary directory at first to silence ZoneAlarm
warnings.
parent
ddf74e67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
main.c
programs/winetest/main.c
+11
-3
No files found.
programs/winetest/main.c
View file @
96812eb2
...
...
@@ -432,7 +432,7 @@ char *
run_tests
(
char
*
logname
,
const
char
*
tag
)
{
int
nr_of_files
=
0
,
nr_of_tests
=
0
,
i
;
char
*
tempdir
;
char
*
tempdir
,
*
shorttempdir
;
int
logfile
;
char
*
strres
,
*
eol
,
*
nextline
;
DWORD
strsize
;
...
...
@@ -459,9 +459,17 @@ run_tests (char *logname, const char *tag)
tempdir
=
tempnam
(
0
,
"wct"
);
if
(
!
tempdir
)
report
(
R_FATAL
,
"Can't name temporary dir (check %%TEMP%%)."
);
report
(
R_DIR
,
tempdir
);
if
(
!
CreateDirectory
(
tempdir
,
NULL
))
shorttempdir
=
strdup
(
tempdir
);
if
(
shorttempdir
)
{
/* try stable path for ZoneAlarm */
strstr
(
shorttempdir
,
"wct"
)[
3
]
=
0
;
if
(
CreateDirectoryA
(
shorttempdir
,
NULL
))
{
free
(
tempdir
);
tempdir
=
shorttempdir
;
}
else
free
(
shorttempdir
);
}
if
(
tempdir
!=
shorttempdir
&&
!
CreateDirectoryA
(
tempdir
,
NULL
))
report
(
R_FATAL
,
"Could not create directory: %s"
,
tempdir
);
report
(
R_DIR
,
tempdir
);
xprintf
(
"Version 3
\n
"
);
strres
=
extract_rcdata
(
WINE_BUILD
,
STRINGRES
,
&
strsize
);
...
...
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