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
93455491
Commit
93455491
authored
Aug 27, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Introduce throw_range_error helper.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
503f3462
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
cxx.h
dlls/msvcp90/cxx.h
+0
-1
details.c
dlls/msvcp90/details.c
+1
-2
exception.c
dlls/msvcp90/exception.c
+10
-5
msvcp90.h
dlls/msvcp90/msvcp90.h
+1
-0
No files found.
dlls/msvcp90/cxx.h
View file @
93455491
...
...
@@ -320,7 +320,6 @@ typedef enum __exception_type {
EXCEPTION_BAD_CAST
,
EXCEPTION_LOGIC_ERROR
,
EXCEPTION_FAILURE
,
EXCEPTION_RANGE_ERROR
,
}
exception_type
;
void
throw_exception
(
exception_type
,
const
char
*
);
...
...
dlls/msvcp90/details.c
View file @
93455491
...
...
@@ -475,8 +475,7 @@ void __thiscall _vector_base_v4__Internal_throw_exception(void/*_vector_base_v4*
switch
(
idx
)
{
case
0
:
_Xout_of_range
(
"Index out of range"
);
case
1
:
_Xout_of_range
(
"Index out of segments table range"
);
case
2
:
throw_exception
(
EXCEPTION_RANGE_ERROR
,
"Index is inside segment which failed to be allocated"
);
case
2
:
throw_range_error
(
"Index is inside segment which failed to be allocated"
);
}
}
...
...
dlls/msvcp90/exception.c
View file @
93455491
...
...
@@ -1091,14 +1091,19 @@ void throw_exception(exception_type et, const char *str)
MSVCP_failure_ctor
(
&
e
,
name
);
_CxxThrowException
(
&
e
,
&
failure_cxx_type
);
}
case
EXCEPTION_RANGE_ERROR
:
{
range_error
e
;
MSVCP_range_error_ctor
(
&
e
,
name
);
_CxxThrowException
(
&
e
,
&
range_error_cxx_type
);
}
}
}
/* Internal: throws range_error exception */
void
DECLSPEC_NORETURN
throw_range_error
(
const
char
*
str
)
{
exception_name
name
=
EXCEPTION_NAME
(
str
);
range_error
e
;
MSVCP_range_error_ctor
(
&
e
,
name
);
_CxxThrowException
(
&
e
,
&
range_error_cxx_type
);
}
void
init_exception
(
void
*
base
)
{
#ifdef __x86_64__
...
...
dlls/msvcp90/msvcp90.h
View file @
93455491
...
...
@@ -669,3 +669,4 @@ void __cdecl DECLSPEC_NORETURN _Xlength_error(const char*);
void
__cdecl
DECLSPEC_NORETURN
_Xmem
(
void
);
void
__cdecl
DECLSPEC_NORETURN
_Xout_of_range
(
const
char
*
);
void
__cdecl
DECLSPEC_NORETURN
_Xruntime_error
(
const
char
*
);
void
DECLSPEC_NORETURN
throw_range_error
(
const
char
*
);
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