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
ebac489c
Commit
ebac489c
authored
May 11, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IOmNavigator::get_cpuClass implementation.
parent
75916ffe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
omnavigator.c
dlls/mshtml/omnavigator.c
+12
-2
dom.c
dlls/mshtml/tests/dom.c
+8
-5
No files found.
dlls/mshtml/omnavigator.c
View file @
ebac489c
...
...
@@ -443,8 +443,18 @@ static HRESULT WINAPI OmNavigator_toString(IOmNavigator *iface, BSTR *String)
static
HRESULT
WINAPI
OmNavigator_get_cpuClass
(
IOmNavigator
*
iface
,
BSTR
*
p
)
{
OmNavigator
*
This
=
impl_from_IOmNavigator
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
static
const
WCHAR
cpu_classW
[]
=
#ifdef _WIN64
{
'x'
,
'6'
,
'4'
,
0
};
#else
{
'x'
,
'8'
,
'6'
,
0
};
#endif
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
SysAllocString
(
cpu_classW
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
OmNavigator_get_systemLanguage
(
IOmNavigator
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
ebac489c
...
...
@@ -3865,11 +3865,14 @@ static void test_navigator(IHTMLDocument2 *doc)
bstr
=
NULL
;
hres
=
IOmNavigator_get_platform
(
navigator
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_platform failed: %08x
\n
"
,
hres
);
#ifdef _WIN64
ok
(
!
strcmp_wa
(
bstr
,
"Win64"
)
||
broken
(
!
strcmp_wa
(
bstr
,
"Win32"
)
/* IE6 */
),
"unexpected platform %s
\n
"
,
wine_dbgstr_w
(
bstr
));
#else
ok
(
!
strcmp_wa
(
bstr
,
"Win32"
),
"unexpected platform %s
\n
"
,
wine_dbgstr_w
(
bstr
));
#endif
ok
(
!
strcmp_wa
(
bstr
,
sizeof
(
void
*
)
==
8
?
"Win64"
:
"Win32"
)
||
(
sizeof
(
void
*
)
==
8
&&
broken
(
!
strcmp_wa
(
bstr
,
"Win32"
)
/* IE6 */
)),
"unexpected platform %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
bstr
=
NULL
;
hres
=
IOmNavigator_get_cpuClass
(
navigator
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_cpuClass failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
bstr
,
sizeof
(
void
*
)
==
8
?
"x64"
:
"x86"
),
"unexpected cpuClass %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
bstr
=
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