summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-29 15:03:41 +0200
committerGitHub <noreply@github.com>2018-03-29 15:03:41 +0200
commit4900c51864d7312090e14e17d339a196350e7c9a (patch)
treed06aea6c367b744b02a7d10e0c435b8337244b92
parentMerge pull request #286 from N00byKing/citratoyuzuagain (diff)
parentresult: Check against self-assignment in ResultVal's copy assignment operator (diff)
downloadyuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar.gz
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar.bz2
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar.lz
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar.xz
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.tar.zst
yuzu-4900c51864d7312090e14e17d339a196350e7c9a.zip
-rw-r--r--src/core/hle/result.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 97fef7a48..052f49979 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -200,6 +200,9 @@ public:
}
ResultVal& operator=(const ResultVal& o) {
+ if (this == &o) {
+ return *this;
+ }
if (!empty()) {
if (!o.empty()) {
object = o.object;