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
2f87a5d4
Commit
2f87a5d4
authored
Mar 29, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added support for exception reraising in ios_base::clear.
parent
1aeb4dcd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
exception.c
dlls/msvcp90/exception.c
+2
-0
ios.c
dlls/msvcp90/ios.c
+5
-5
msvcp90.h
dlls/msvcp90/msvcp90.h
+1
-0
No files found.
dlls/msvcp90/exception.c
View file @
2f87a5d4
...
...
@@ -684,6 +684,8 @@ void throw_exception(exception_type et, const char *str)
const
char
*
addr
=
str
;
switch
(
et
)
{
case
EXCEPTION_RERAISE
:
_CxxThrowException
(
NULL
,
NULL
);
case
EXCEPTION
:
{
exception
e
;
MSVCP_exception_ctor
(
&
e
,
&
addr
);
...
...
dlls/msvcp90/ios.c
View file @
2f87a5d4
...
...
@@ -1942,13 +1942,13 @@ void __thiscall ios_base_clear_reraise(ios_base *this, IOSB_iostate state, MSVCP
{
TRACE
(
"(%p %x %x)
\n
"
,
this
,
state
,
reraise
);
if
(
reraise
)
{
FIXME
(
"reraise is not supported
\n
"
);
this
->
state
=
state
&
IOSTATE_mask
;
if
(
!
(
this
->
state
&
this
->
except
))
return
;
}
this
->
state
=
state
&
IOSTATE_mask
;
if
(
this
->
state
&
this
->
except
&
IOSTATE_eofbit
)
if
(
reraise
)
throw_exception
(
EXCEPTION_RERAISE
,
NULL
);
else
if
(
this
->
state
&
this
->
except
&
IOSTATE_eofbit
)
throw_exception
(
EXCEPTION_FAILURE
,
"eofbit is set"
);
else
if
(
this
->
state
&
this
->
except
&
IOSTATE_failbit
)
throw_exception
(
EXCEPTION_FAILURE
,
"failbit is set"
);
...
...
dlls/msvcp90/msvcp90.h
View file @
2f87a5d4
...
...
@@ -157,6 +157,7 @@ typedef struct __exception
/* Internal: throws selected exception */
typedef
enum
__exception_type
{
EXCEPTION_RERAISE
,
EXCEPTION
,
EXCEPTION_BAD_ALLOC
,
EXCEPTION_LOGIC_ERROR
,
...
...
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