aboutsummaryrefslogtreecommitdiff
path: root/src/engine/uithread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/uithread.cpp')
-rw-r--r--src/engine/uithread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/uithread.cpp b/src/engine/uithread.cpp
index cf111745..39f92142 100644
--- a/src/engine/uithread.cpp
+++ b/src/engine/uithread.cpp
@@ -196,7 +196,7 @@ static LRESULT CALLBACK WndProc(
196 BOOL fRet = FALSE; 196 BOOL fRet = FALSE;
197 197
198 // Always block shutdown in the elevated process, but ask the BA in the non-elevated. 198 // Always block shutdown in the elevated process, but ask the BA in the non-elevated.
199 UITHREAD_INFO* pInfo = reinterpret_cast<UITHREAD_INFO*>(::GetWindowLongW(hWnd, GWLP_USERDATA)); 199 UITHREAD_INFO* pInfo = reinterpret_cast<UITHREAD_INFO*>(::GetWindowLongPtrW(hWnd, GWLP_USERDATA));
200 if (!pInfo->fElevated) 200 if (!pInfo->fElevated)
201 { 201 {
202 // TODO: instead of recommending canceling all non-critical shutdowns, maybe we should only recommend cancel 202 // TODO: instead of recommending canceling all non-critical shutdowns, maybe we should only recommend cancel