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
94cd060d
Commit
94cd060d
authored
May 24, 2001
by
James Juran
Committed by
Alexandre Julliard
May 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only fail with ERROR_INSUFFICIENT_BUFFER if the structure size is
actually too small.
parent
3724de93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
version.c
misc/version.c
+3
-3
No files found.
misc/version.c
View file @
94cd060d
...
...
@@ -396,7 +396,7 @@ LONG WINAPI GetVersion(void)
BOOL16
WINAPI
GetVersionEx16
(
OSVERSIONINFO16
*
v
)
{
WINDOWS_VERSION
ver
=
VERSION_GetVersion
();
if
(
v
->
dwOSVersionInfoSize
!=
sizeof
(
OSVERSIONINFO16
))
if
(
v
->
dwOSVersionInfoSize
<
sizeof
(
OSVERSIONINFO16
))
{
WARN
(
"wrong OSVERSIONINFO size from app
\n
"
);
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
...
...
@@ -417,7 +417,7 @@ BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16 *v)
BOOL
WINAPI
GetVersionExA
(
OSVERSIONINFOA
*
v
)
{
WINDOWS_VERSION
ver
=
VERSION_GetVersion
();
if
(
v
->
dwOSVersionInfoSize
!=
sizeof
(
OSVERSIONINFOA
))
if
(
v
->
dwOSVersionInfoSize
<
sizeof
(
OSVERSIONINFOA
))
{
WARN
(
"wrong OSVERSIONINFO size from app (got: %ld, expected: %d)
\n
"
,
v
->
dwOSVersionInfoSize
,
sizeof
(
OSVERSIONINFOA
));
...
...
@@ -440,7 +440,7 @@ BOOL WINAPI GetVersionExW(OSVERSIONINFOW *v)
{
WINDOWS_VERSION
ver
=
VERSION_GetVersion
();
if
(
v
->
dwOSVersionInfoSize
!=
sizeof
(
OSVERSIONINFOW
))
if
(
v
->
dwOSVersionInfoSize
<
sizeof
(
OSVERSIONINFOW
))
{
WARN
(
"wrong OSVERSIONINFO size from app (got: %ld, expected: %d)
\n
"
,
v
->
dwOSVersionInfoSize
,
sizeof
(
OSVERSIONINFOW
));
...
...
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