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
77fbbcf3
Commit
77fbbcf3
authored
May 04, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
May 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FindClose: protect the GlobalLock for pagefaults too.
parent
714bfd7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
dos_fs.c
files/dos_fs.c
+12
-8
No files found.
files/dos_fs.c
View file @
77fbbcf3
...
...
@@ -1806,16 +1806,15 @@ BOOL WINAPI FindClose( HANDLE handle )
{
FIND_FIRST_INFO
*
info
;
if
((
handle
==
INVALID_HANDLE_VALUE
)
||
!
(
info
=
(
FIND_FIRST_INFO
*
)
GlobalLock
(
handle
)))
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
handle
==
INVALID_HANDLE_VALUE
)
goto
error
;
__TRY
{
if
(
info
->
dir
)
DOSFS_CloseDir
(
info
->
dir
);
if
(
info
->
path
)
HeapFree
(
GetProcessHeap
(),
0
,
info
->
path
);
if
((
info
=
(
FIND_FIRST_INFO
*
)
GlobalLock
(
handle
)))
{
if
(
info
->
dir
)
DOSFS_CloseDir
(
info
->
dir
);
if
(
info
->
path
)
HeapFree
(
GetProcessHeap
(),
0
,
info
->
path
);
}
}
__EXCEPT
(
page_fault
)
{
...
...
@@ -1824,9 +1823,14 @@ BOOL WINAPI FindClose( HANDLE handle )
return
FALSE
;
}
__ENDTRY
if
(
!
info
)
goto
error
;
GlobalUnlock
(
handle
);
GlobalFree
(
handle
);
return
TRUE
;
error:
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
/***********************************************************************
...
...
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