mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 13:14:09 +00:00
regsvr32: Process flags before files.
This commit is contained in:
parent
2d2e9e5528
commit
d3b55e99e9
|
@ -231,10 +231,8 @@ int wmain(int argc, WCHAR* argv[])
|
||||||
|
|
||||||
OleInitialize(NULL);
|
OleInitialize(NULL);
|
||||||
|
|
||||||
/* Strictly, the Microsoft version processes all the flags before
|
/* We mirror the Microsoft version by processing all of the flags before
|
||||||
* the files (e.g. regsvr32 file1 /s file2 is silent even for file1).
|
* the files (e.g. regsvr32 file1 /s file2 is silent even for file1).
|
||||||
* For ease, we will not replicate that and will process the arguments
|
|
||||||
* in order.
|
|
||||||
*
|
*
|
||||||
* Note the complication that this version may be passed Unix format filenames
|
* Note the complication that this version may be passed Unix format filenames
|
||||||
* which could be mistaken for flags. The Windows version conveniently
|
* which could be mistaken for flags. The Windows version conveniently
|
||||||
|
@ -270,8 +268,13 @@ int wmain(int argc, WCHAR* argv[])
|
||||||
output_write(STRING_USAGE);
|
output_write(STRING_USAGE);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
argv[i] = NULL;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
|
|
||||||
|
for (i = 1; i < argc; i++)
|
||||||
|
{
|
||||||
|
if (argv[i])
|
||||||
{
|
{
|
||||||
WCHAR *DllName = argv[i];
|
WCHAR *DllName = argv[i];
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
Loading…
Reference in a new issue