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
928c9f09
Commit
928c9f09
authored
Feb 26, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fixed version returned by INTERNET_OPTION_VERSION.
parent
2823f1e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
internet.c
dlls/wininet/internet.c
+1
-1
internet.c
dlls/wininet/tests/internet.c
+14
-0
No files found.
dlls/wininet/internet.c
View file @
928c9f09
...
...
@@ -2393,7 +2393,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
else
{
static
const
INTERNET_VERSION_INFO
info
=
{
6
,
0
};
static
const
INTERNET_VERSION_INFO
info
=
{
1
,
2
};
memcpy
(
lpBuffer
,
&
info
,
sizeof
(
info
));
*
lpdwBufferLength
=
sizeof
(
info
);
bSuccess
=
TRUE
;
...
...
dlls/wininet/tests/internet.c
View file @
928c9f09
...
...
@@ -321,6 +321,19 @@ static void test_null(void)
ok
(
r
==
TRUE
,
"ret %d
\n
"
,
r
);
}
static
void
test_version
(
void
)
{
INTERNET_VERSION_INFO
version
;
DWORD
size
;
BOOL
res
;
size
=
sizeof
(
version
);
res
=
InternetQueryOptionA
(
NULL
,
INTERNET_OPTION_VERSION
,
&
version
,
&
size
);
ok
(
res
,
"Could not get version: %u
\n
"
,
GetLastError
());
ok
(
version
.
dwMajorVersion
==
1
,
"dwMajorVersion=%d, expected 1
\n
"
,
version
.
dwMajorVersion
);
ok
(
version
.
dwMinorVersion
==
2
,
"dwMinorVersion=%d, expected 2
\n
"
,
version
.
dwMinorVersion
);
}
/* ############################### */
START_TEST
(
internet
)
...
...
@@ -328,5 +341,6 @@ START_TEST(internet)
test_InternetCanonicalizeUrlA
();
test_InternetQueryOptionA
();
test_get_cookie
();
test_version
();
test_null
();
}
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