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
f33db8a0
Commit
f33db8a0
authored
Dec 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some find handle leaks.
parent
3806f9ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
file.c
dlls/kernel32/tests/file.c
+12
-4
No files found.
dlls/kernel32/tests/file.c
View file @
f33db8a0
...
...
@@ -251,7 +251,9 @@ static void test__lcreat( void )
ok
(
HFILE_ERROR
!=
_lclose
(
filehandle
),
"_lclose complains
\n
"
);
ok
(
INVALID_HANDLE_VALUE
!=
FindFirstFileA
(
filename
,
&
search_results
),
"should be able to find file
\n
"
);
find
=
FindFirstFileA
(
filename
,
&
search_results
);
ok
(
INVALID_HANDLE_VALUE
!=
find
,
"should be able to find file
\n
"
);
FindClose
(
find
);
ret
=
DeleteFileA
(
filename
);
ok
(
ret
!=
0
,
"DeleteFile failed (%d)
\n
"
,
GetLastError
());
...
...
@@ -263,7 +265,9 @@ static void test__lcreat( void )
ok
(
HFILE_ERROR
!=
_lclose
(
filehandle
),
"_lclose complains
\n
"
);
ok
(
INVALID_HANDLE_VALUE
!=
FindFirstFileA
(
filename
,
&
search_results
),
"should be able to find file
\n
"
);
find
=
FindFirstFileA
(
filename
,
&
search_results
);
ok
(
INVALID_HANDLE_VALUE
!=
find
,
"should be able to find file
\n
"
);
FindClose
(
find
);
ok
(
0
==
DeleteFileA
(
filename
),
"shouldn't be able to delete a readonly file
\n
"
);
...
...
@@ -282,7 +286,9 @@ static void test__lcreat( void )
ok
(
HFILE_ERROR
!=
_lclose
(
filehandle
),
"_lclose complains
\n
"
);
ok
(
INVALID_HANDLE_VALUE
!=
FindFirstFileA
(
filename
,
&
search_results
),
"should STILL be able to find file
\n
"
);
find
=
FindFirstFileA
(
filename
,
&
search_results
);
ok
(
INVALID_HANDLE_VALUE
!=
find
,
"should STILL be able to find file
\n
"
);
FindClose
(
find
);
ret
=
DeleteFileA
(
filename
);
ok
(
ret
,
"DeleteFile failed (%d)
\n
"
,
GetLastError
(
)
);
...
...
@@ -298,7 +304,9 @@ static void test__lcreat( void )
ok
(
HFILE_ERROR
!=
_lclose
(
filehandle
),
"_lclose complains
\n
"
);
ok
(
INVALID_HANDLE_VALUE
!=
FindFirstFileA
(
filename
,
&
search_results
),
"should STILL be able to find file
\n
"
);
find
=
FindFirstFileA
(
filename
,
&
search_results
);
ok
(
INVALID_HANDLE_VALUE
!=
find
,
"should STILL be able to find file
\n
"
);
FindClose
(
find
);
ret
=
DeleteFileA
(
filename
);
ok
(
ret
,
"DeleteFile failed (%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