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
501e2dcc
Commit
501e2dcc
authored
Nov 07, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Cast-qual warnings fix.
parent
e9ae478c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
varformat.c
dlls/oleaut32/varformat.c
+4
-4
vartype.c
dlls/oleaut32/vartype.c
+2
-2
No files found.
dlls/oleaut32/varformat.c
View file @
501e2dcc
...
...
@@ -1858,7 +1858,7 @@ static HRESULT VARIANT_FormatString(LPVARIANT pVarIn, LPOLESTR lpszFormat,
LPBYTE
rgbTok
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
,
LCID
lcid
)
{
static
const
WCHAR
szEmpty
[]
=
{
'\0'
};
static
WCHAR
szEmpty
[]
=
{
'\0'
};
WCHAR
buff
[
256
],
*
pBuff
=
buff
;
WCHAR
*
pSrc
;
FMT_HEADER
*
header
=
(
FMT_HEADER
*
)
rgbTok
;
...
...
@@ -1878,7 +1878,7 @@ static HRESULT VARIANT_FormatString(LPVARIANT pVarIn, LPOLESTR lpszFormat,
if
(
V_TYPE
(
pVarIn
)
==
VT_EMPTY
||
V_TYPE
(
pVarIn
)
==
VT_NULL
)
{
strHeader
=
(
FMT_STRING_HEADER
*
)(
rgbTok
+
FmtGetNegative
(
header
));
V_BSTR
(
&
vStr
)
=
(
WCHAR
*
)
szEmpty
;
V_BSTR
(
&
vStr
)
=
szEmpty
;
}
else
{
...
...
@@ -2131,7 +2131,7 @@ HRESULT WINAPI VarFormat(LPVARIANT pVarIn, LPOLESTR lpszFormat,
*/
HRESULT
WINAPI
VarFormatDateTime
(
LPVARIANT
pVarIn
,
INT
nFormat
,
ULONG
dwFlags
,
BSTR
*
pbstrOut
)
{
static
const
WCHAR
szEmpty
[]
=
{
'\0'
};
static
WCHAR
szEmpty
[]
=
{
'\0'
};
const
BYTE
*
lpFmt
=
NULL
;
TRACE
(
"(%p->(%s%s),%d,0x%08x,%p)
\n
"
,
pVarIn
,
debugstr_VT
(
pVarIn
),
...
...
@@ -2148,7 +2148,7 @@ HRESULT WINAPI VarFormatDateTime(LPVARIANT pVarIn, INT nFormat, ULONG dwFlags, B
case
3
:
lpFmt
=
fmtLongTime
;
break
;
case
4
:
lpFmt
=
fmtShortTime
;
break
;
}
return
VarFormatFromTokens
(
pVarIn
,
(
LPWSTR
)
szEmpty
,
(
BYTE
*
)
lpFmt
,
dwFlags
,
return
VarFormatFromTokens
(
pVarIn
,
szEmpty
,
(
BYTE
*
)
lpFmt
,
dwFlags
,
pbstrOut
,
LOCALE_USER_DEFAULT
);
}
...
...
dlls/oleaut32/vartype.c
View file @
501e2dcc
...
...
@@ -114,7 +114,7 @@ static HRESULT VARIANT_NumberFromBstr(OLECHAR* pStrIn, LCID lcid, ULONG ulFlags,
static
HRESULT
VARIANT_FromDisp
(
IDispatch
*
pdispIn
,
LCID
lcid
,
void
*
pOut
,
VARTYPE
vt
,
DWORD
dwFlags
)
{
static
const
DISPPARAMS
emptyParams
=
{
NULL
,
NULL
,
0
,
0
};
static
DISPPARAMS
emptyParams
=
{
NULL
,
NULL
,
0
,
0
};
VARIANTARG
srcVar
,
dstVar
;
HRESULT
hRet
;
...
...
@@ -123,7 +123,7 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut,
/* Get the default 'value' property from the IDispatch */
hRet
=
IDispatch_Invoke
(
pdispIn
,
DISPID_VALUE
,
&
IID_NULL
,
lcid
,
DISPATCH_PROPERTYGET
,
(
DISPPARAMS
*
)
&
emptyParams
,
&
srcVar
,
NULL
,
NULL
);
&
emptyParams
,
&
srcVar
,
NULL
,
NULL
);
if
(
SUCCEEDED
(
hRet
))
{
...
...
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