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
e02c3316
Commit
e02c3316
authored
Aug 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript: Use proper helpers for iface calls.
parent
c843e71b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
main.c
programs/wscript/main.c
+17
-3
No files found.
programs/wscript/main.c
View file @
e02c3316
...
...
@@ -33,6 +33,20 @@
#include <wine/debug.h>
#include <wine/unicode.h>
#ifdef _WIN64
#define IActiveScriptParse_Release IActiveScriptParse64_Release
#define IActiveScriptParse_InitNew IActiveScriptParse64_InitNew
#define IActiveScriptParse_ParseScriptText IActiveScriptParse64_ParseScriptText
#else
#define IActiveScriptParse_Release IActiveScriptParse32_Release
#define IActiveScriptParse_InitNew IActiveScriptParse32_InitNew
#define IActiveScriptParse_ParseScriptText IActiveScriptParse32_ParseScriptText
#endif
WINE_DEFAULT_DEBUG_CHANNEL
(
wscript
);
static
const
WCHAR
wscriptW
[]
=
{
'W'
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
...
...
@@ -253,7 +267,7 @@ static HRESULT init_engine(IActiveScript *script, IActiveScriptParse *parser)
if
(
FAILED
(
hres
))
return
FALSE
;
hres
=
IActiveScriptParse
64
_InitNew
(
parser
);
hres
=
IActiveScriptParse_InitNew
(
parser
);
if
(
FAILED
(
hres
))
return
FALSE
;
...
...
@@ -310,7 +324,7 @@ static void run_script(const WCHAR *filename, IActiveScript *script, IActiveScri
return
;
}
hres
=
IActiveScriptParse
64
_ParseScriptText
(
parser
,
text
,
NULL
,
NULL
,
NULL
,
1
,
1
,
hres
=
IActiveScriptParse_ParseScriptText
(
parser
,
text
,
NULL
,
NULL
,
NULL
,
1
,
1
,
SCRIPTTEXT_HOSTMANAGESSOURCE
|
SCRIPTITEM_ISVISIBLE
,
NULL
,
NULL
);
SysFreeString
(
text
);
if
(
FAILED
(
hres
))
{
...
...
@@ -406,7 +420,7 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
}
IActiveScript_Release
(
script
);
I
Unknown
_Release
(
parser
);
I
ActiveScriptParse
_Release
(
parser
);
CoUninitialize
();
...
...
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