mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 06:28:34 +00:00
a few changes
svn path=/trunk/; revision=6878
This commit is contained in:
parent
2be74a0eb2
commit
bcee43d68f
1 changed files with 13 additions and 7 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: userinit.c,v 1.1 2003/12/07 01:12:58 weiden Exp $
|
/* $Id: userinit.c,v 1.2 2003/12/07 01:17:28 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS Userinit Logon Application
|
* PROJECT: ReactOS Userinit Logon Application
|
||||||
|
@ -70,11 +70,8 @@ BOOL GetShell(WCHAR *CommandLine)
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int WINAPI
|
static
|
||||||
WinMain(HINSTANCE hInst,
|
void StartShell(void)
|
||||||
HINSTANCE hPrevInstance,
|
|
||||||
LPSTR lpszCmdLine,
|
|
||||||
int nCmdShow)
|
|
||||||
{
|
{
|
||||||
STARTUPINFO si;
|
STARTUPINFO si;
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
|
@ -84,6 +81,7 @@ WinMain(HINSTANCE hInst,
|
||||||
|
|
||||||
ZeroMemory(&si, sizeof(STARTUPINFO));
|
ZeroMemory(&si, sizeof(STARTUPINFO));
|
||||||
si.cb = sizeof(STARTUPINFO);
|
si.cb = sizeof(STARTUPINFO);
|
||||||
|
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
|
||||||
|
|
||||||
if(CreateProcess(NULL,
|
if(CreateProcess(NULL,
|
||||||
Shell,
|
Shell,
|
||||||
|
@ -99,7 +97,15 @@ WinMain(HINSTANCE hInst,
|
||||||
CloseHandle(pi.hProcess);
|
CloseHandle(pi.hProcess);
|
||||||
CloseHandle(pi.hThread);
|
CloseHandle(pi.hThread);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int WINAPI
|
||||||
|
WinMain(HINSTANCE hInst,
|
||||||
|
HINSTANCE hPrevInstance,
|
||||||
|
LPSTR lpszCmdLine,
|
||||||
|
int nCmdShow)
|
||||||
|
{
|
||||||
|
StartShell();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue