projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cdb019
)
Fixed duplicate call to NtCurrentTeb
author
Armin Novak
<armin.novak@thincast.com>
Wed, 22 Jan 2020 14:17:03 +0000
(15:17 +0100)
committer
akallabeth
<akallabeth@users.noreply.github.com>
Tue, 25 May 2021 13:30:50 +0000
(15:30 +0200)
(cherry picked from commit
ca1fe0193e2728635b415478dc366939817cfb6c
)
winpr/libwinpr/error/error.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/error/error.c
b/winpr/libwinpr/error/error.c
index
65dc65f
..
7d3c0e7
100644
(file)
--- a/
winpr/libwinpr/error/error.c
+++ b/
winpr/libwinpr/error/error.c
@@
-44,7
+44,7
@@
DWORD GetLastError(VOID)
PTEB pt = NtCurrentTeb();
if (pt)
{
- return
NtCurrentTeb()
->LastErrorValue;
+ return
pt
->LastErrorValue;
}
return ERROR_OUTOFMEMORY;
}