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
294adeec
Commit
294adeec
authored
Jan 21, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't forget to delete a temporary file.
parent
9703bee5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
file.c
dlls/kernel32/tests/file.c
+3
-0
No files found.
dlls/kernel32/tests/file.c
View file @
294adeec
...
@@ -3843,6 +3843,7 @@ static void test_SetFileValidData(void)
...
@@ -3843,6 +3843,7 @@ static void test_SetFileValidData(void)
{
{
win_skip
(
"cannot enable SE_MANAGE_VOLUME_NAME privilege
\n
"
);
win_skip
(
"cannot enable SE_MANAGE_VOLUME_NAME privilege
\n
"
);
CloseHandle
(
token
);
CloseHandle
(
token
);
DeleteFileA
(
filename
);
return
;
return
;
}
}
handle
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
handle
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
...
@@ -3906,7 +3907,9 @@ static void test_SetFileValidData(void)
...
@@ -3906,7 +3907,9 @@ static void test_SetFileValidData(void)
privs
.
Privileges
[
0
].
Attributes
=
0
;
privs
.
Privileges
[
0
].
Attributes
=
0
;
AdjustTokenPrivileges
(
token
,
FALSE
,
&
privs
,
sizeof
(
privs
),
NULL
,
NULL
);
AdjustTokenPrivileges
(
token
,
FALSE
,
&
privs
,
sizeof
(
privs
),
NULL
,
NULL
);
CloseHandle
(
token
);
CloseHandle
(
token
);
CloseHandle
(
handle
);
DeleteFileA
(
filename
);
DeleteFileA
(
filename
);
}
}
...
...
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