Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
5430325d
Commit
5430325d
authored
Aug 06, 2022
by
Richard Gobeille
Browse files
engine: fix a couple of Windows API error messages to match the others
parent
32742cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/winbits.cpp
View file @
5430325d
...
...
@@ -501,13 +501,13 @@ dwm:
if
(
NT_SUCCESS
(
status
=
gdi32_D3DKMTCloseAdapter
((
D3DKMT_CLOSEADAPTER
*
)
&
vBlankEvent
)))
return
;
else
LOG_F
(
ERROR
,
"D3DKMTCloseAdapter()
FAILED!
NTSTATUS: 0x%
x.
"
,
(
unsigned
)
status
);
LOG_F
(
ERROR
,
"D3DKMTCloseAdapter()
failed:
NTSTATUS: 0x%
08x (%s)
"
,
(
unsigned
)
status
,
windowsGetErrorMessage
(
windowsConvertNTSTATUS
(
status
))
);
}
else
LOG_F
(
ERROR
,
"D3DKMTWaitForVerticalBlankEvent()
FAILED!
NTSTATUS: 0x%
x.
"
,
(
unsigned
)
status
);
LOG_F
(
ERROR
,
"D3DKMTWaitForVerticalBlankEvent()
failed:
NTSTATUS: 0x%
08x (%s)
"
,
(
unsigned
)
status
,
windowsGetErrorMessage
(
windowsConvertNTSTATUS
(
status
))
);
}
else
LOG_F
(
ERROR
,
"D3DKMTOpenAdapterFromHdc()
FAILED!
NTSTATUS: 0x%
x.
"
,
(
unsigned
)
status
);
LOG_F
(
ERROR
,
"D3DKMTOpenAdapterFromHdc()
failed:
NTSTATUS: 0x%
08x (%s)
"
,
(
unsigned
)
status
,
windowsGetErrorMessage
(
windowsConvertNTSTATUS
(
status
))
);
LOG_F
(
ERROR
,
"Unable to use D3DKMT, falling back to DWM sync."
);
...
...
@@ -541,8 +541,8 @@ void windowsDwmSetupComposition(int const compEnable)
HRESULT
result
=
dwmapi_DwmGetCompositionTimingInfo
(
nullptr
,
&
timingInfo
);
if
(
FAILED
(
result
))
LOG_F
(
ERROR
,
"DwmGetCompositionTimingInfo()
FAILED!
HRESULT:
%s (0x%x
)."
,
std
::
system_category
().
message
(
result
).
c_str
()
,
(
unsigned
)
result
);
LOG_F
(
ERROR
,
"DwmGetCompositionTimingInfo()
failed:
HRESULT:
0x%08x (%s
)."
,
(
unsigned
)
result
,
std
::
system_category
().
message
(
result
).
c_str
());
}
if
(
win_togglecomposition
&&
dwmapi_DwmEnableComposition
&&
osv
.
dwMinorVersion
<
2
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment