mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[WIN32SS:NTGDI] freetype.c: Use the correct last-error functions.
EngSetLastError() is for Win32 errors; SetLastNtError() is for NTSTATUS.
This commit is contained in:
parent
c6cd3b242a
commit
f22efba486
1 changed files with 3 additions and 3 deletions
|
@ -5284,7 +5284,7 @@ ftGdiGetTextMetricsW(
|
|||
|
||||
if (!ptmwi)
|
||||
{
|
||||
EngSetLastError(STATUS_INVALID_PARAMETER);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
RtlZeroMemory(ptmwi, sizeof(TMW_INTERNAL));
|
||||
|
@ -7528,7 +7528,7 @@ NtGdiGetCharABCWidthsW(
|
|||
if(Safepwch)
|
||||
ExFreePoolWithTag(Safepwch , GDITAG_TEXT);
|
||||
|
||||
EngSetLastError(Status);
|
||||
SetLastNtError(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -7721,7 +7721,7 @@ NtGdiGetCharWidthW(
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
EngSetLastError(Status);
|
||||
SetLastNtError(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue