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
b0bffdc5
Commit
b0bffdc5
authored
Oct 28, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Print wine_gecko version in load_wine_gecko.
parent
cdbab7dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
nsembed.c
dlls/mshtml/nsembed.c
+30
-0
No files found.
dlls/mshtml/nsembed.c
View file @
b0bffdc5
...
...
@@ -239,6 +239,33 @@ static BOOL load_mozctl(PRUnichar *gre_path)
return
FALSE
;
}
static
void
check_version
(
LPCWSTR
gre_path
)
{
WCHAR
file_name
[
MAX_PATH
];
char
version
[
128
];
DWORD
read
=
0
;
HANDLE
hfile
;
static
const
WCHAR
wszVersion
[]
=
{
'\\'
,
'V'
,
'E'
,
'R'
,
'S'
,
'I'
,
'O'
,
'N'
,
0
};
strcpyW
(
file_name
,
gre_path
);
strcatW
(
file_name
,
wszVersion
);
hfile
=
CreateFileW
(
file_name
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hfile
==
INVALID_HANDLE_VALUE
)
{
TRACE
(
"unknown version
\n
"
);
return
;
}
ReadFile
(
hfile
,
version
,
sizeof
(
version
),
&
read
,
NULL
);
version
[
read
]
=
0
;
TRACE
(
"%s
\n
"
,
debugstr_a
(
version
));
CloseHandle
(
hfile
);
}
static
BOOL
load_wine_gecko
(
PRUnichar
*
gre_path
)
{
HKEY
hkey
;
...
...
@@ -259,6 +286,9 @@ static BOOL load_wine_gecko(PRUnichar *gre_path)
if
(
res
!=
ERROR_SUCCESS
||
type
!=
REG_SZ
)
return
FALSE
;
if
(
TRACE_ON
(
mshtml
))
check_version
(
gre_path
);
return
load_xpcom
(
gre_path
);
}
...
...
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