Adds NET START to net.exe
Alexandre Julliard
julliard at winehq.org
Fri May 11 04:01:00 CDT 2007
"Tim Schwartz" <tim at sanityinternet.com> writes:
> + if(!strcasecmp(argv[1], "start"))
> + {
> + if(argc < 3)
> + {
> + printf("Specify service name to start.\n");
> + return TRUE;
> + }
> +
> + if(!net_service(NET_START, argv[2]))
> + {
> + return TRUE;
> + }
> + return FALSE;
> + }
> +
> + return FALSE;
The previous version was better here, TRUE and FALSE are not
appropriate return values for main(), it's supposed to return an
error code not a boolean.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list