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
053b8391
Commit
053b8391
authored
May 16, 2003
by
Stefan Leichter
Committed by
Alexandre Julliard
May 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed DECIMAL_SETZERO
Removed a workaround for the former problem.
parent
ce05da50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
variant.c
dlls/oleaut32/variant.c
+3
-6
wtypes.h
include/wtypes.h
+1
-1
wtypes.idl
include/wtypes.idl
+1
-1
No files found.
dlls/oleaut32/variant.c
View file @
053b8391
...
...
@@ -4593,12 +4593,9 @@ HRESULT WINAPI VarDecFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags,
{
WCHAR
*
p
=
strIn
;
ULONGLONG
t
;
ULONG
cy
;
#ifdef FIXIT
DECIMAL_SETZERO
(
pdecOut
);
#else
pdecOut
->
u
.
s
.
sign
=
pdecOut
->
u
.
s
.
scale
=
UI1_MIN
;
pdecOut
->
Hi32
=
pdecOut
->
u1
.
s1
.
Mid32
=
pdecOut
->
u1
.
s1
.
Lo32
=
UI4_MIN
;
#endif
if
(
*
p
==
(
WCHAR
)
'-'
)
pdecOut
->
u
.
s
.
sign
=
DECIMAL_NEG
;
if
((
*
p
==
(
WCHAR
)
'-'
)
||
(
*
p
==
(
WCHAR
)
'+'
))
p
++
;
for
(;
*
p
!=
(
WCHAR
)
0
;
p
++
)
{
...
...
@@ -4617,7 +4614,7 @@ HRESULT WINAPI VarDecFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags,
pdecOut
->
Hi32
=
(
ULONG
)(
t
&
(
ULONGLONG
)
UI4_MAX
);
if
(
cy
)
goto
overflow
;
}
TRACE
(
"
(4)
%s -> sign %02x,hi %08lx,mid %08lx, lo%08lx, scale %08x
\n
"
,
TRACE
(
"%s -> sign %02x,hi %08lx,mid %08lx, lo%08lx, scale %08x
\n
"
,
debugstr_w
(
strIn
),
pdecOut
->
u
.
s
.
sign
,
pdecOut
->
Hi32
,
pdecOut
->
u1
.
s1
.
Mid32
,
pdecOut
->
u1
.
s1
.
Lo32
,
pdecOut
->
u
.
s
.
scale
);
...
...
include/wtypes.h
View file @
053b8391
...
...
@@ -666,7 +666,7 @@ typedef struct tagDEC {
}
DECIMAL
;
#endif
#define DECIMAL_NEG ((BYTE)0x80)
#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u); }while (0)
#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u
+ sizeof(USHORT)
); }while (0)
typedef
DECIMAL
*
LPDECIMAL
;
typedef
FLAGGED_WORD_BLOB
*
wireBSTR
;
...
...
include/wtypes.idl
View file @
053b8391
...
...
@@ -620,7 +620,7 @@ cpp_quote(" } DUMMYUNIONNAME1;")
cpp_quote
(
"} DECIMAL;"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#define DECIMAL_NEG ((BYTE)0x80)"
)
cpp_quote
(
"#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u); }while (0)"
)
cpp_quote
(
"#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u
+ sizeof(USHORT)
); }while (0)"
)
typedef
DECIMAL
*
LPDECIMAL
;
...
...
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