diff --git a/reactos/lib/kernel32/process/proc.c b/reactos/lib/kernel32/process/proc.c index 83cf6788544..27c867dce34 100644 --- a/reactos/lib/kernel32/process/proc.c +++ b/reactos/lib/kernel32/process/proc.c @@ -297,7 +297,7 @@ GetExitCodeProcess(HANDLE hProcess, return(FALSE); } - memcpy(lpExitCode, &ProcessBasic.ExitStatus, sizeof(DWORD)); + *lpExitCode = (DWORD)ProcessBasic.ExitStatus; return(TRUE); } diff --git a/reactos/ntoskrnl/include/internal/ex.h b/reactos/ntoskrnl/include/internal/ex.h index 2f7841c0d2c..8c732db7642 100644 --- a/reactos/ntoskrnl/include/internal/ex.h +++ b/reactos/ntoskrnl/include/internal/ex.h @@ -121,7 +121,7 @@ NTSTATUS ExpSetTimeZoneInformation(PTIME_ZONE_INFORMATION TimeZoneInformation); NTSTATUS -ExpAllocateLocallyUniqueId(OUT LUID *LocallyUniqueId);; +ExpAllocateLocallyUniqueId(OUT LUID *LocallyUniqueId); #define InterlockedDecrementUL(Addend) \ (ULONG)InterlockedDecrement((PLONG)(Addend))