regsvr32: Use INVALID_ARG define instead of magic 1.
This commit is contained in:
parent
4a4baf2566
commit
99ecebe90d
|
@ -266,14 +266,14 @@ int wmain(int argc, WCHAR* argv[])
|
|||
default:
|
||||
output_write(STRING_UNRECOGNIZED_SWITCH, argv[i]);
|
||||
output_write(STRING_USAGE);
|
||||
return 1;
|
||||
return INVALID_ARG;
|
||||
}
|
||||
argv[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (!CallInstall && !CallRegister) /* flags: /n or /u /n */
|
||||
return 1;
|
||||
return INVALID_ARG;
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
|
@ -309,7 +309,7 @@ int wmain(int argc, WCHAR* argv[])
|
|||
{
|
||||
output_write(STRING_HEADER);
|
||||
output_write(STRING_USAGE);
|
||||
return 1;
|
||||
return INVALID_ARG;
|
||||
}
|
||||
|
||||
OleUninitialize();
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
/* Exit codes */
|
||||
#define INVALID_ARG 1
|
||||
#define LOADLIBRARY_FAILED 3
|
||||
#define GETPROCADDRESS_FAILED 4
|
||||
|
||||
|
|
Loading…
Reference in New Issue