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
e57697a0
Commit
e57697a0
authored
Aug 17, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix testing of HRESULT types with not operator instead of comparing against S_OK.
This makes it more obvious what the code is doing.
parent
064b6fce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
variant.c
dlls/oleaut32/variant.c
+2
-2
vartype.c
dlls/oleaut32/vartype.c
+2
-2
No files found.
dlls/oleaut32/variant.c
View file @
e57697a0
...
...
@@ -1191,7 +1191,7 @@ INT WINAPI DosDateTimeToVariantTime(USHORT wDosDate, USHORT wDosTime,
ud
.
st
.
wSecond
=
DOS_SECOND
(
wDosTime
);
ud
.
st
.
wDayOfWeek
=
ud
.
st
.
wMilliseconds
=
0
;
return
!
VarDateFromUdate
(
&
ud
,
0
,
pDateOut
)
;
return
VarDateFromUdate
(
&
ud
,
0
,
pDateOut
)
==
S_OK
;
}
/**********************************************************************
...
...
@@ -1255,7 +1255,7 @@ INT WINAPI SystemTimeToVariantTime(LPSYSTEMTIME lpSt, double *pDateOut)
return
FALSE
;
ud
.
st
=
*
lpSt
;
return
!
VarDateFromUdate
(
&
ud
,
0
,
pDateOut
)
;
return
VarDateFromUdate
(
&
ud
,
0
,
pDateOut
)
==
S_OK
;
}
/***********************************************************************
...
...
dlls/oleaut32/vartype.c
View file @
e57697a0
...
...
@@ -5179,7 +5179,7 @@ static HRESULT VARIANT_DI_div(const VARIANT_DI * dividend, const VARIANT_DI * di
to multiply quotient by 10 (without overflowing), while adjusting the scale,
until scale is 0. If this cannot be done, it is a real overflow.
*/
while
(
!
r_overflow
&&
quotientscale
<
0
)
{
while
(
r_overflow
==
S_OK
&&
quotientscale
<
0
)
{
memset
(
remainderplusquotient
,
0
,
sizeof
(
remainderplusquotient
));
memcpy
(
remainderplusquotient
,
quotient
->
bitsnum
,
sizeof
(
quotient
->
bitsnum
));
VARIANT_int_mulbychar
(
remainderplusquotient
,
sizeof
(
remainderplusquotient
)
/
sizeof
(
DWORD
),
10
);
...
...
@@ -5189,7 +5189,7 @@ static HRESULT VARIANT_DI_div(const VARIANT_DI * dividend, const VARIANT_DI * di
memcpy
(
quotient
->
bitsnum
,
remainderplusquotient
,
sizeof
(
quotient
->
bitsnum
));
}
else
r_overflow
=
DISP_E_OVERFLOW
;
}
if
(
!
r_overflow
)
{
if
(
r_overflow
==
S_OK
)
{
if
(
quotientscale
<=
255
)
quotient
->
scale
=
quotientscale
;
else
VARIANT_DI_clear
(
quotient
);
}
...
...
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