Skip to content

Commit f17f955

Browse files
authored
Fix regression in Xaml apps (#485)
1 parent 662ef58 commit f17f955

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

strings/base_extern.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ extern "C"
7676
int32_t __stdcall WINRT_IMPL_SetThreadpoolThreadMinimum(winrt::impl::ptp_pool pool, uint32_t value) noexcept;
7777
void __stdcall WINRT_IMPL_CloseThreadpool(winrt::impl::ptp_pool pool) noexcept;
7878

79-
int32_t __stdcall WINRT_IMPL_CanUnloadNow() noexcept;
80-
int32_t __stdcall WINRT_IMPL_GetActivationFactory(void* classId, void** factory) noexcept;
79+
int32_t __stdcall WINRT_CanUnloadNow() noexcept;
80+
int32_t __stdcall WINRT_GetActivationFactory(void* classId, void** factory) noexcept;
8181
}
8282

8383
#ifdef _M_HYBRID

strings/base_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace winrt::impl
7575
inline shared_hstring_header* precreate_hstring_on_heap(uint32_t length)
7676
{
7777
WINRT_ASSERT(length != 0);
78-
uint64_t bytes_required = sizeof(shared_hstring_header) + sizeof(wchar_t) * length;
78+
uint64_t bytes_required = static_cast<uint64_t>(sizeof(shared_hstring_header)) + static_cast<uint64_t>(sizeof(wchar_t)) * static_cast<uint64_t>(length);
7979

8080
if (bytes_required > UINT_MAX)
8181
{

0 commit comments

Comments
 (0)