diff options
author | Rama Krishnan Raghupathy <ramarag@microsoft.com> | 2017-03-28 18:09:12 -0700 |
---|---|---|
committer | Rama Krishnan Raghupathy <ramarag@microsoft.com> | 2017-03-28 18:09:12 -0700 |
commit | c082bf271567b3dc44d80b37b2b5c8eed5b95f64 (patch) | |
tree | c6257c6092eeca28f32966e044a8b205c1682510 /src/utilcode | |
parent | bff1ee64d07bf72beed3c6474624e9cd8f49ac78 (diff) | |
download | coreclr-c082bf271567b3dc44d80b37b2b5c8eed5b95f64.tar.gz coreclr-c082bf271567b3dc44d80b37b2b5c8eed5b95f64.tar.bz2 coreclr-c082bf271567b3dc44d80b37b2b5c8eed5b95f64.zip |
Removing Unnecessary CloseBuffer calls
Diffstat (limited to 'src/utilcode')
-rw-r--r-- | src/utilcode/safewrap.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utilcode/safewrap.cpp b/src/utilcode/safewrap.cpp index 4a6ecdb93c..294743d519 100644 --- a/src/utilcode/safewrap.cpp +++ b/src/utilcode/safewrap.cpp @@ -40,12 +40,9 @@ void ClrGetCurrentDirectory(SString & value) // An actual API failure in GetCurrentDirectory failure should be very rare, so we'll throw on those. if (len == 0) - { - value.CloseBuffer(0); + { ThrowLastError(); } - - value.CloseBuffer(); } // Nothrowing wrapper. |