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
f82cb700
Commit
f82cb700
authored
May 20, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Return float type size when signed I4 limit exceeded.
parent
086a1e37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
filesystem.c
dlls/scrrun/filesystem.c
+1
-1
filesystem.c
dlls/scrrun/tests/filesystem.c
+2
-1
No files found.
dlls/scrrun/filesystem.c
View file @
f82cb700
...
...
@@ -892,7 +892,7 @@ static HRESULT variant_from_largeint(const ULARGE_INTEGER *src, VARIANT *v)
{
HRESULT
hr
=
S_OK
;
if
(
src
->
HighPart
)
if
(
src
->
HighPart
||
src
->
LowPart
>
INT_MAX
)
{
V_VT
(
v
)
=
VT_R8
;
hr
=
VarR8FromUI8
(
src
->
QuadPart
,
&
V_R8
(
v
));
...
...
dlls/scrrun/tests/filesystem.c
View file @
f82cb700
...
...
@@ -20,6 +20,7 @@
#define COBJMACROS
#include <stdio.h>
#include <limits.h>
#include "windows.h"
#include "ole2.h"
...
...
@@ -1296,7 +1297,7 @@ static void test_DriveCollection(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
size
)
==
VT_R8
||
V_VT
(
&
size
)
==
VT_I4
,
"got %d
\n
"
,
V_VT
(
&
size
));
if
(
V_VT
(
&
size
)
==
VT_R8
)
ok
(
V_R8
(
&
size
)
>
0
,
"got %f
\n
"
,
V_R8
(
&
size
));
ok
(
V_R8
(
&
size
)
>
(
double
)
INT_MAX
,
"got %f
\n
"
,
V_R8
(
&
size
));
else
ok
(
V_I4
(
&
size
)
>
0
,
"got %d
\n
"
,
V_I4
(
&
size
));
...
...
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