Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f17f955

Browse filesBrowse files
authored
Fix regression in Xaml apps (microsoft#485)
1 parent 662ef58 commit f17f955
Copy full SHA for f17f955

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎strings/base_extern.h‎

Copy file name to clipboardExpand all lines: strings/base_extern.h
+2-2Lines 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
Collapse file

‎strings/base_string.h‎

Copy file name to clipboardExpand all lines: strings/base_string.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.