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
4f46b5de
Commit
4f46b5de
authored
Apr 20, 2001
by
Dominik Strasser
Committed by
Alexandre Julliard
Apr 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow illegal handles in FindClose.
parent
f32f9181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
dos_fs.c
files/dos_fs.c
+19
-2
No files found.
files/dos_fs.c
View file @
4f46b5de
...
...
@@ -105,6 +105,13 @@ typedef struct
}
FIND_FIRST_INFO
;
static
WINE_EXCEPTION_FILTER
(
page_fault
)
{
if
(
GetExceptionCode
()
==
EXCEPTION_ACCESS_VIOLATION
)
return
EXCEPTION_EXECUTE_HANDLER
;
return
EXCEPTION_CONTINUE_SEARCH
;
}
/***********************************************************************
* DOSFS_ValidDOSName
...
...
@@ -1768,8 +1775,18 @@ BOOL WINAPI FindClose( HANDLE handle )
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
info
->
dir
)
DOSFS_CloseDir
(
info
->
dir
);
if
(
info
->
path
)
HeapFree
(
GetProcessHeap
(),
0
,
info
->
path
);
__TRY
{
if
(
info
->
dir
)
DOSFS_CloseDir
(
info
->
dir
);
if
(
info
->
path
)
HeapFree
(
GetProcessHeap
(),
0
,
info
->
path
);
}
__EXCEPT
(
page_fault
)
{
WARN
(
"Illegal handle %x
\n
"
,
handle
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
__ENDTRY
GlobalUnlock
(
handle
);
GlobalFree
(
handle
);
return
TRUE
;
...
...
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