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
c525d7ab
Commit
c525d7ab
authored
Feb 28, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use GetTempFileName() instead of hardcoding directory names.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4b85165c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
change.c
dlls/kernel32/tests/change.c
+9
-7
No files found.
dlls/kernel32/tests/change.c
View file @
c525d7ab
...
@@ -118,10 +118,12 @@ static void test_FindFirstChangeNotification(void)
...
@@ -118,10 +118,12 @@ static void test_FindFirstChangeNotification(void)
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"FindCloseChangeNotification error: %d
\n
"
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"FindCloseChangeNotification error: %d
\n
"
,
GetLastError
());
GetLastError
());
ret
=
GetTempPathA
(
MAX_PATH
,
workdir
);
ret
=
GetTempPathA
(
MAX_PATH
,
dirname1
);
ok
(
ret
,
"GetTempPathA error: %d
\n
"
,
GetLastError
());
ok
(
ret
,
"GetTempPathA error: %d
\n
"
,
GetLastError
());
lstrcatA
(
workdir
,
"testFileChangeNotification"
);
ret
=
GetTempFileNameA
(
dirname1
,
"ffc"
,
0
,
workdir
);
ok
(
ret
,
"GetTempFileNameA error: %d
\n
"
,
GetLastError
());
DeleteFileA
(
workdir
);
ret
=
CreateDirectoryA
(
workdir
,
NULL
);
ret
=
CreateDirectoryA
(
workdir
,
NULL
);
ok
(
ret
,
"CreateDirectoryA error: %d
\n
"
,
GetLastError
());
ok
(
ret
,
"CreateDirectoryA error: %d
\n
"
,
GetLastError
());
...
@@ -370,14 +372,14 @@ static void test_ffcnMultipleThreads(void)
...
@@ -370,14 +372,14 @@ static void test_ffcnMultipleThreads(void)
LONG
r
;
LONG
r
;
DWORD
filter
,
threadId
,
status
,
exitcode
;
DWORD
filter
,
threadId
,
status
,
exitcode
;
HANDLE
handles
[
2
];
HANDLE
handles
[
2
];
char
path
[
MAX_PATH
];
char
tmp
[
MAX_PATH
],
path
[
MAX_PATH
];
r
=
GetTempPathA
(
MAX_PATH
,
path
);
r
=
GetTempPathA
(
MAX_PATH
,
tmp
);
ok
(
r
,
"GetTempPathA error: %d
\n
"
,
GetLastError
());
ok
(
r
,
"GetTempPathA error: %d
\n
"
,
GetLastError
());
lstrcatA
(
path
,
"ffcnTestMultipleThreads"
);
r
=
GetTempFileNameA
(
tmp
,
"ffc"
,
0
,
path
);
ok
(
r
,
"GetTempFileNameA error: %d
\n
"
,
GetLastError
());
RemoveDirectoryA
(
path
);
DeleteFileA
(
path
);
r
=
CreateDirectoryA
(
path
,
NULL
);
r
=
CreateDirectoryA
(
path
,
NULL
);
ok
(
r
,
"CreateDirectoryA error: %d
\n
"
,
GetLastError
());
ok
(
r
,
"CreateDirectoryA error: %d
\n
"
,
GetLastError
());
...
...
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