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
9fcefdd8
Commit
9fcefdd8
authored
May 31, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
May 31, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the VarXxxFromCy conversions.
Remove (commented-out) references to inexistent VarXxxFrom32 functions. Remove obsolete '32' suffixes.
parent
238b1de1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
51 deletions
+51
-51
variant.c
dlls/oleaut32/variant.c
+51
-50
oleauto.h
include/oleauto.h
+0
-1
No files found.
dlls/oleaut32/variant.c
View file @
9fcefdd8
...
...
@@ -945,12 +945,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarI1FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
cVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarI1FromDisp32( ps->u.pdispVal, lcid, &(pd->u.cVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarI1From32( ps->u.lVal, &(pd->u.cVal) );*/
/*res = VarI1FromDisp( ps->u.pdispVal, lcid, &(pd->u.cVal) );*/
case
(
VT_DECIMAL
):
/*res = VarI1FromDec32( ps->u.decVal, &(pd->u.cVal) );*/
/*res = VarI1FromDec( ps->u.decVal, &(pd->u.cVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -998,12 +998,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarI2FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
iVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarI2FromDisp32( ps->u.pdispVal, lcid, &(pd->u.iVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarI2From32( ps->u.lVal, &(pd->u.iVal) );*/
/*res = VarI2FromDisp( ps->u.pdispVal, lcid, &(pd->u.iVal) );*/
case
(
VT_DECIMAL
):
/*res = VarI2FromDec32( ps->u.deiVal, &(pd->u.iVal) );*/
/*res = VarI2FromDec( ps->u.deiVal, &(pd->u.iVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1052,12 +1052,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarI4FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
lVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarI4FromDisp32( ps->u.pdispVal, lcid, &(pd->u.lVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarI4From32( ps->u.lVal, &(pd->u.lVal) );*/
/*res = VarI4FromDisp( ps->u.pdispVal, lcid, &(pd->u.lVal) );*/
case
(
VT_DECIMAL
):
/*res = VarI4FromDec32( ps->u.deiVal, &(pd->u.lVal) );*/
/*res = VarI4FromDec( ps->u.deiVal, &(pd->u.lVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1105,12 +1105,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarUI1FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
bVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarUI1FromDisp32( ps->u.pdispVal, lcid, &(pd->u.bVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarUI1From32( ps->u.lVal, &(pd->u.bVal) );*/
/*res = VarUI1FromDisp( ps->u.pdispVal, lcid, &(pd->u.bVal) );*/
case
(
VT_DECIMAL
):
/*res = VarUI1FromDec32( ps->u.deiVal, &(pd->u.bVal) );*/
/*res = VarUI1FromDec( ps->u.deiVal, &(pd->u.bVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1158,12 +1158,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarUI2FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
uiVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarUI2FromDisp32( ps->u.pdispVal, lcid, &(pd->u.uiVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarUI2From32( ps->u.lVal, &(pd->u.uiVal) );*/
/*res = VarUI2FromDisp( ps->u.pdispVal, lcid, &(pd->u.uiVal) );*/
case
(
VT_DECIMAL
):
/*res = VarUI2FromDec32( ps->u.deiVal, &(pd->u.uiVal) );*/
/*res = VarUI2FromDec( ps->u.deiVal, &(pd->u.uiVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1211,12 +1211,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarUI4FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
ulVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarUI4FromDisp32( ps->u.pdispVal, lcid, &(pd->u.ulVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarUI4From32( ps->u.lVal, &(pd->u.ulVal) );*/
/*res = VarUI4FromDisp( ps->u.pdispVal, lcid, &(pd->u.ulVal) );*/
case
(
VT_DECIMAL
):
/*res = VarUI4FromDec32( ps->u.deiVal, &(pd->u.ulVal) );*/
/*res = VarUI4FromDec( ps->u.deiVal, &(pd->u.ulVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1264,12 +1264,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarR4FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
fltVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarR4FromDisp32( ps->u.pdispVal, lcid, &(pd->u.fltVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarR4From32( ps->u.lVal, &(pd->u.fltVal) );*/
/*res = VarR4FromDisp( ps->u.pdispVal, lcid, &(pd->u.fltVal) );*/
case
(
VT_DECIMAL
):
/*res = VarR4FromDec32( ps->u.deiVal, &(pd->u.fltVal) );*/
/*res = VarR4FromDec( ps->u.deiVal, &(pd->u.fltVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1317,12 +1317,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarR8FromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
dblVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarR8FromDisp32( ps->u.pdispVal, lcid, &(pd->u.dblVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarR8From32( ps->u.lVal, &(pd->u.dblVal) );*/
/*res = VarR8FromDisp( ps->u.pdispVal, lcid, &(pd->u.dblVal) );*/
case
(
VT_DECIMAL
):
/*res = VarR8FromDec32( ps->u.deiVal, &(pd->u.dblVal) );*/
/*res = VarR8FromDec( ps->u.deiVal, &(pd->u.dblVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1374,12 +1374,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarDateFromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
date
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarDateFromDisp32( ps->u.pdispVal, lcid, &(pd->u.date) );*/
case
(
VT_UNKNOWN
):
/*res = VarDateFrom32( ps->u.lVal, &(pd->u.date) );*/
/*res = VarDateFromDisp( ps->u.pdispVal, lcid, &(pd->u.date) );*/
case
(
VT_DECIMAL
):
/*res = VarDateFromDec32( ps->u.deiVal, &(pd->u.date) );*/
/*res = VarDateFromDec( ps->u.deiVal, &(pd->u.date) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1431,12 +1431,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
break
;
case
(
VT_CY
):
res
=
VarBoolFromCy
(
ps
->
u
.
cyVal
,
&
(
pd
->
u
.
boolVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarBoolFromDisp32( ps->u.pdispVal, lcid, &(pd->u.boolVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarBoolFrom32( ps->u.lVal, &(pd->u.boolVal) );*/
/*res = VarBoolFromDisp( ps->u.pdispVal, lcid, &(pd->u.boolVal) );*/
case
(
VT_DECIMAL
):
/*res = VarBoolFromDec32( ps->u.deiVal, &(pd->u.boolVal) );*/
/*res = VarBoolFromDec( ps->u.deiVal, &(pd->u.boolVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1493,13 +1493,13 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
res
=
VariantCopy
(
pd
,
ps
);
break
;
case
(
VT_CY
):
/*res = VarBstrFromCy32( ps->u.cyVal, lcid, dwFlags, &(pd->u.bstrVal) );*/
res
=
VarBstrFromCy
(
ps
->
u
.
cyVal
,
lcid
,
dwFlags
,
&
(
pd
->
u
.
bstrVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarBstrFromDisp32( ps->u.pdispVal, lcid, lcid, dwFlags, &(pd->u.bstrVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarBstrFrom32( ps->u.lVal, lcid, dwFlags, &(pd->u.bstrVal) );*/
/*res = VarBstrFromDisp( ps->u.pdispVal, lcid, dwFlags, &(pd->u.bstrVal) );*/
case
(
VT_DECIMAL
):
/*res = VarBstrFromDec32( ps->u.deiVal, lcid, dwFlags, &(pd->u.bstrVal) );*/
/*res = VarBstrFromDec( ps->u.deiVal, lcid, dwFlags, &(pd->u.bstrVal) );*/
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
@@ -1550,13 +1550,14 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
res
=
VariantCopy
(
pd
,
ps
);
break
;
case
(
VT_BSTR
):
/*res = VarCyFromStr32( ps->u.bstrVal, lcid, dwFlags, &(pd->u.cyVal) );*/
res
=
VarCyFromStr
(
ps
->
u
.
bstrVal
,
lcid
,
dwFlags
,
&
(
pd
->
u
.
cyVal
)
);
break
;
case
(
VT_DISPATCH
):
/*res = VarCyFromDisp32( ps->u.pdispVal, lcid, &(pd->u.boolVal) );*/
case
(
VT_UNKNOWN
):
/*res = VarCyFrom32( ps->u.lVal, &(pd->u.boolVal) );*/
/*res = VarCyFromDisp( ps->u.pdispVal, lcid, &(pd->u.cyVal) );*/
case
(
VT_DECIMAL
):
/*res = VarCyFromDec32( ps->u.deiVal, &(pd->u.boolVal) );*/
/*res = VarCyFromDec( ps->u.deiVal, &(pd->u.cyVal) );*/
break
;
case
(
VT_UNKNOWN
):
default:
res
=
DISP_E_TYPEMISMATCH
;
FIXME
(
"Coercion from %d to %d
\n
"
,
vtFrom
,
vt
);
...
...
include/oleauto.h
View file @
9fcefdd8
...
...
@@ -316,7 +316,6 @@ HRESULT WINAPI VarBstrFromI2(short iVal, LCID lcid, ULONG dwFlags, BSTR* pbstrOu
HRESULT
WINAPI
VarBstrFromI4
(
LONG
lIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromR4
(
FLOAT
fltIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromR8
(
double
dblIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromCy
(
CY
cyIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromDate
(
DATE
dateIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromBool
(
VARIANT_BOOL
boolIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
HRESULT
WINAPI
VarBstrFromI1
(
CHAR
cIn
,
LCID
lcid
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
);
...
...
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