diff options
author | bdebaere <brechtdebaere@yahoo.com> | 2019-04-12 18:29:44 +0200 |
---|---|---|
committer | Aaron Robinson <arobins@microsoft.com> | 2019-04-12 09:29:44 -0700 |
commit | 85f584b0ca94a547c03790d471b44c9e36e0fac5 (patch) | |
tree | 8dd19773deeb117f0ab31b662197f43746cd20ab /src | |
parent | 88347ffed2d7aeed908bcc3b10d78f24689e5d74 (diff) | |
download | coreclr-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.cpp | 3 |
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); |