Skip to content

Commit

Permalink
Merge pull request #1482 from dpogue/crashhandler-warnings
Browse files Browse the repository at this point in the history
Resolve 2 clang warnings in pfCrashHandler
  • Loading branch information
dpogue authored Sep 9, 2023
2 parents 70f379c + 5ae6ed9 commit be3910d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Plasma/FeatureLib/pfCrashHandler/plCrashSrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ plCrashSrv::~plCrashSrv()
static inline bool IGetCrashedThreadContext(HANDLE process, const LPEXCEPTION_POINTERS ptrs, LPCONTEXT context)
{
if (process == GetCurrentProcess()) {
memcpy(context, ptrs->ContextRecord, sizeof(ptrs->ContextRecord));
memcpy(context, ptrs->ContextRecord, sizeof(CONTEXT));
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool plStackWalker::iterator::next()
class plStackWalkError : public std::runtime_error
{
public:
plStackWalkError() = default;
plStackWalkError() = delete;
explicit plStackWalkError(const char* msg) : std::runtime_error(msg) { }
explicit plStackWalkError(const ST::string& msg) : std::runtime_error(msg.c_str()) { }
};
Expand Down

0 comments on commit be3910d

Please sign in to comment.