Skip to content

Commit 6eaf755

Browse files
committed
Fix build
1 parent 9abbcca commit 6eaf755

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CelestiaWinUI/MainWindow.xaml.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <fmt/format.h>
1717
#include <fmt/printf.h>
1818
#include <shlobj_core.h>
19+
#pragma comment(lib, "shell32.lib")
1920

2021
#if defined(_M_IX86) || defined(_M_X64)
2122
#define SUPPORTS_SENTRY
@@ -1913,9 +1914,9 @@ namespace winrt::CelestiaWinUI::implementation
19131914
auto stored = localSettings.Values().TryLookup(L"FeatureFlags");
19141915
if (stored)
19151916
{
1916-
auto featureFlags = unbox_value<hstring>(stored);
1917+
auto storedFeatureFlags = unbox_value<hstring>(stored);
19171918
auto featureFlagsFile = co_await sentryDatabaseFolder.CreateFileAsync(L"feature-flags.txt", CreationCollisionOption::ReplaceExisting);
1918-
co_await FileIO::WriteTextAsync(featureFlagsFile, featureFlags);
1919+
co_await FileIO::WriteTextAsync(featureFlagsFile, storedFeatureFlags);
19191920
}
19201921
}
19211922
catch (hresult_error const&) {}

0 commit comments

Comments
 (0)