mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SDK:NT] Remove Win32-isms.
This commit is contained in:
parent
e18e7b100c
commit
97f31ac396
1 changed files with 7 additions and 11 deletions
|
@ -10,10 +10,8 @@
|
||||||
|
|
||||||
/* PSDK/NDK Headers */
|
/* PSDK/NDK Headers */
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
#include <stdio.h>
|
|
||||||
//#include <windows.h>
|
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ndk/psfuncs.h>
|
// #include <ndk/psfuncs.h>
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -41,7 +39,7 @@ VOID FASTCALL EnvironmentStringToUnicodeString (PWCHAR wsIn, PUNICODE_STRING usO
|
||||||
{
|
{
|
||||||
while (*CurrentChar++);
|
while (*CurrentChar++);
|
||||||
}
|
}
|
||||||
/* double nullterm at end */
|
/* Double NULL-termination at end */
|
||||||
CurrentChar++;
|
CurrentChar++;
|
||||||
|
|
||||||
usOut->Buffer = wsIn;
|
usOut->Buffer = wsIn;
|
||||||
|
@ -56,10 +54,8 @@ VOID FASTCALL EnvironmentStringToUnicodeString (PWCHAR wsIn, PUNICODE_STRING usO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
WINAPI
|
NTAPI
|
||||||
NtProcessStartup(PPEB Peb)
|
NtProcessStartup(PPEB Peb)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -140,7 +136,7 @@ NtProcessStartup(PPEB Peb)
|
||||||
/* Start parsing */
|
/* Start parsing */
|
||||||
while (*Source)
|
while (*Source)
|
||||||
{
|
{
|
||||||
/* Skip the white space. */
|
/* Skip the white space */
|
||||||
while (*Source && *Source <= ' ') Source++;
|
while (*Source && *Source <= ' ') Source++;
|
||||||
|
|
||||||
/* Copy until the next white space is reached */
|
/* Copy until the next white space is reached */
|
||||||
|
|
Loading…
Reference in a new issue