mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 07:39:45 +00:00
[WIN32K]
Fix EngGetLastError and EngSetLastError svn path=/trunk/; revision=50138
This commit is contained in:
parent
184b70c1de
commit
54ee99abdb
1 changed files with 12 additions and 6 deletions
|
@ -5,22 +5,28 @@
|
|||
|
||||
/*
|
||||
* @implemented
|
||||
* http://msdn.microsoft.com/en-us/library/ff564940%28VS.85%29.aspx
|
||||
*/
|
||||
ULONG
|
||||
APIENTRY
|
||||
EngGetLastError ( VOID )
|
||||
EngGetLastError(VOID)
|
||||
{
|
||||
// www.osr.com/ddk/graphics/gdifncs_3non.htm
|
||||
return GetLastNtError();
|
||||
PTEB pTeb = NtCurrentTeb();
|
||||
if (pTeb)
|
||||
return NtCurrentTeb()->LastErrorValue;
|
||||
else
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
* http://msdn.microsoft.com/en-us/library/ff565015%28VS.85%29.aspx
|
||||
*/
|
||||
VOID
|
||||
APIENTRY
|
||||
EngSetLastError ( IN ULONG iError )
|
||||
EngSetLastError(IN ULONG iError)
|
||||
{
|
||||
// www.osr.com/ddk/graphics/gdifncs_95m0.htm
|
||||
SetLastNtError ( iError );
|
||||
PTEB pTeb = NtCurrentTeb();
|
||||
if (pTeb)
|
||||
pTeb->LastErrorValue = iError;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue