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
292b61f5
Commit
292b61f5
authored
Apr 12, 2005
by
Daniel Remenak
Committed by
Alexandre Julliard
Apr 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return DISP_E_DIVBYZERO instead of crashing when asked to divide a
variant by zero.
parent
7376f57c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
variant.c
dlls/oleaut32/variant.c
+2
-0
No files found.
dlls/oleaut32/variant.c
View file @
292b61f5
...
...
@@ -3008,11 +3008,13 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
}
switch
(
resvt
)
{
case
VT_R8
:
if
(
V_R8
(
&
rv
)
==
0
)
return
DISP_E_DIVBYZERO
;
V_VT
(
result
)
=
resvt
;
V_R8
(
result
)
=
V_R8
(
&
lv
)
/
V_R8
(
&
rv
);
rc
=
S_OK
;
break
;
case
VT_I4
:
if
(
V_I4
(
&
rv
)
==
0
)
return
DISP_E_DIVBYZERO
;
V_VT
(
result
)
=
resvt
;
V_I4
(
result
)
=
V_I4
(
&
lv
)
/
V_I4
(
&
rv
);
rc
=
S_OK
;
...
...
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