summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbdebaere <brechtdebaere@yahoo.com>2019-04-12 18:29:44 +0200
committerAaron Robinson <arobins@microsoft.com>2019-04-12 09:29:44 -0700
commit85f584b0ca94a547c03790d471b44c9e36e0fac5 (patch)
tree8dd19773deeb117f0ab31b662197f43746cd20ab /src
parent88347ffed2d7aeed908bcc3b10d78f24689e5d74 (diff)
downloadcoreclr-85f584b0ca94a547c03790d471b44c9e36e0fac5.tar.gz
coreclr-85f584b0ca94a547c03790d471b44c9e36e0fac5.tar.bz2
coreclr-85f584b0ca94a547c03790d471b44c9e36e0fac5.zip
Consolidate duplicate assignment (#23923)
* Consolidate duplicate assignment.
Diffstat (limited to 'src')
-rw-r--r--src/vm/winrthelpers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vm/winrthelpers.cpp b/src/vm/winrthelpers.cpp
index a034fb542d..531673eb28 100644
--- a/src/vm/winrthelpers.cpp
+++ b/src/vm/winrthelpers.cpp
@@ -146,10 +146,9 @@ GetBindableWinRTName(
// Therefore we do not have to use file name to create fake type name
IfFailRet(GetFirstWinRTTypeDef(pMDInternalImport, &szNameSpace, &szTypeName, NULL, NULL));
- DWORD dwSize = MAX_PATH_FNAME;
WCHAR wzAsmName[MAX_PATH_FNAME];
+ DWORD dwSize = sizeof(wzAsmName);
- dwSize = MAX_PATH_FNAME * sizeof(WCHAR);
IfFailRet(pIAssemblyName->GetProperty(ASM_NAME_NAME, wzAsmName, &dwSize));
StackSString sNamespaceAndType(wzAsmName);