Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler committed Aug 18, 2023
1 parent cf34537 commit ea0d796
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cxplat/inc/winuser/cxplat_winuser.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
#define CXPLAT_PLATFORM_STATUS_SUCCESS S_OK
#define CXPLAT_PLATFORM_STATUS_NO_MEMORY __HRESULT_FROM_WIN32(ERROR_OUTOFMEMORY)

#define CXPLAT_SUCCESS(status) SUCCEEDED((HRESULT)(status))
#define CXPLAT_SUCCEEDED(status) SUCCEEDED((HRESULT)(status))
2 changes: 1 addition & 1 deletion cxplat/src/cxplat_winuser/cxplat_winuser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cxplat_initialize()

if (fault_injection_stack_depth || leak_detector) {
cxplat_status_t status = _cxplat_symbol_decoder_initialize();
if (!CXPLAT_SUCCESS(status)) {
if (!CXPLAT_SUCCEEDED(status)) {
return status;
}
}
Expand Down
2 changes: 1 addition & 1 deletion cxplat/src/cxplat_winuser/fault_injection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ _cxplat_fault_injection::log_stack_trace(
break;
}
log_record << "# ";
if (CXPLAT_SUCCESS(_cxplat_decode_symbol(frame, name, displacement, line_number, file_name))) {
if (CXPLAT_SUCCEEDED(_cxplat_decode_symbol(frame, name, displacement, line_number, file_name))) {
log_record << std::hex << frame << " " << name << " + " << displacement;
string_stack_frame = name + " + " + std::to_string(displacement);
if (line_number.has_value() && file_name.has_value()) {
Expand Down
2 changes: 1 addition & 1 deletion cxplat/src/cxplat_winuser/leak_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _cxplat_leak_detector::dump_leaks()
std::optional<uint32_t> line_number;
std::optional<std::string> file_name;
for (auto address : stack) {
if (CXPLAT_SUCCESS(_cxplat_decode_symbol(address, name, displacement, line_number, file_name))) {
if (CXPLAT_SUCCEEDED(_cxplat_decode_symbol(address, name, displacement, line_number, file_name))) {
output << " " << name << " + " << displacement;
if (line_number.has_value() && file_name.has_value()) {
output << " (" << file_name.value() << ":" << line_number.value() << ")";
Expand Down
2 changes: 1 addition & 1 deletion src/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C"
_Pragma("warning(push)") _Pragma("warning(disable : 4189)") do \
{ \
usersim_result_t _result = (x); \
CXPLAT_DEBUG_ASSERT(_result == STATUS_SUCCESS && #x); \
CXPLAT_DEBUG_ASSERT(_result == STATUS_SUCCESS && #x); \
} \
while (0) \
_Pragma("warning(pop)")
Expand Down

0 comments on commit ea0d796

Please sign in to comment.