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
1d2ac5d8
Commit
1d2ac5d8
authored
Jul 31, 2018
by
Daniel Lehman
Committed by
Alexandre Julliard
Aug 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Extend value range before getting absolute value in VarBstrFromI4.
Signed-off-by:
Daniel Lehman
<
dlehman@esri.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7198499d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vartype.c
dlls/oleaut32/tests/vartype.c
+1
-1
vartype.c
dlls/oleaut32/vartype.c
+1
-1
No files found.
dlls/oleaut32/tests/vartype.c
View file @
1d2ac5d8
...
...
@@ -4556,7 +4556,7 @@ static void test_VarBstrFromI4(void)
ok
(
hres
==
S_OK
,
"got hres 0x%08x
\n
"
,
hres
);
if
(
bstr
)
{
todo_wine
ok
(
memcmp
(
bstr
,
int_min
,
sizeof
(
int_min
))
==
0
,
"string different
\n
"
);
ok
(
memcmp
(
bstr
,
int_min
,
sizeof
(
int_min
))
==
0
,
"string different
\n
"
);
SysFreeString
(
bstr
);
}
...
...
dlls/oleaut32/vartype.c
View file @
1d2ac5d8
...
...
@@ -6453,7 +6453,7 @@ HRESULT WINAPI VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut)
if
(
lIn
<
0
)
{
ul64
=
(
ULONG
)
-
lIn
;
ul64
=
-
(
LONG64
)
lIn
;
dwFlags
|=
VAR_NEGATIVE
;
}
return
VARIANT_BstrFromUInt
(
ul64
,
lcid
,
dwFlags
,
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