summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVSSetupHelper.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index 1bda54a..9382c05 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -77,7 +77,8 @@ public:
SmartBSTR(const SmartBSTR& src)
{
if (src.str != NULL) {
- str = ::SysAllocStringByteLen((char*)str, ::SysStringByteLen(str));
+ str =
+ ::SysAllocStringByteLen((char*)src.str, ::SysStringByteLen(src.str));
} else {
str = ::SysAllocStringByteLen(NULL, 0);
}
@@ -87,7 +88,8 @@ public:
if (str != src.str) {
::SysFreeString(str);
if (src.str != NULL) {
- str = ::SysAllocStringByteLen((char*)str, ::SysStringByteLen(str));
+ str =
+ ::SysAllocStringByteLen((char*)src.str, ::SysStringByteLen(src.str));
} else {
str = ::SysAllocStringByteLen(NULL, 0);
}