mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[KERNEL32]
- Make BaseSetLastNTError return the converted Win32 error code. This will determine the upper 24 bits of EAX in functions that return BOOLEAN FALSE right after calling BaseSetLastNTError, e.g. Wow64EnableWow64FsRedirection. Fixes installers using WiX Toolset (e.g. VS2012 redist) on MSVC builds. See http://wixtoolset.org/issues/4681/ for the WiX bug that causes this. CORE-8010 svn path=/trunk/; revision=66365
This commit is contained in:
parent
25b96c6299
commit
5f07c07d64
2 changed files with 7 additions and 3 deletions
|
@ -682,12 +682,16 @@ SetLastError(IN DWORD dwErrCode)
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
VOID
|
DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
BaseSetLastNTError(IN NTSTATUS Status)
|
BaseSetLastNTError(IN NTSTATUS Status)
|
||||||
{
|
{
|
||||||
|
DWORD dwErrCode;
|
||||||
|
|
||||||
/* Convert from NT to Win32, then set */
|
/* Convert from NT to Win32, then set */
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
dwErrCode = RtlNtStatusToDosError(Status);
|
||||||
|
SetLastError(dwErrCode);
|
||||||
|
return dwErrCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -353,7 +353,7 @@ VOID
|
||||||
WINAPI
|
WINAPI
|
||||||
InitCommandLines(VOID);
|
InitCommandLines(VOID);
|
||||||
|
|
||||||
VOID
|
DWORD
|
||||||
WINAPI
|
WINAPI
|
||||||
BaseSetLastNTError(IN NTSTATUS Status);
|
BaseSetLastNTError(IN NTSTATUS Status);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue