Commit 527acc7e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

widl: Fix generation of resources containing an old typelib.

parent 1ea7eac3
......@@ -316,7 +316,12 @@ void write_typelib_regscript( const statement_list_t *stmts )
if (count && !strendswith( typelib_name, ".res" ))
error( "Cannot store multiple typelibs into %s\n", typelib_name );
else
create_msft_typelib( stmt->u.lib );
{
if (do_old_typelib)
create_sltg_typelib( stmt->u.lib );
else
create_msft_typelib( stmt->u.lib );
}
count++;
}
if (count && strendswith( typelib_name, ".res" )) flush_output_resources( typelib_name );
......
......@@ -102,6 +102,7 @@ int do_everything = 1;
static int preprocess_only = 0;
int do_header = 0;
int do_typelib = 0;
int do_old_typelib = 0;
int do_proxies = 0;
int do_client = 0;
int do_server = 0;
......@@ -268,6 +269,7 @@ static void set_everything(int x)
{
do_header = x;
do_typelib = x;
do_old_typelib = x;
do_proxies = x;
do_client = x;
do_server = x;
......@@ -648,8 +650,7 @@ static void option_callback( int optc, char *optarg )
do_typelib = 1;
break;
case OLD_TYPELIB_OPTION:
do_everything = 0;
do_typelib = 2;
do_old_typelib = 1;
break;
case 'T':
typelib_name = xstrdup(optarg);
......
......@@ -39,6 +39,7 @@ extern int pedantic;
extern int do_everything;
extern int do_header;
extern int do_typelib;
extern int do_old_typelib;
extern int do_proxies;
extern int do_client;
extern int do_server;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment