diff --git a/packages/playground/windows/playground-composition/Playground-Composition.cpp b/packages/playground/windows/playground-composition/Playground-Composition.cpp index 10683ddad3f..dd757e8a7aa 100644 --- a/packages/playground/windows/playground-composition/Playground-Composition.cpp +++ b/packages/playground/windows/playground-composition/Playground-Composition.cpp @@ -175,7 +175,7 @@ struct CompReactPackageProvider : winrt::implements { public: // IReactPackageProvider void CreatePackage(winrt::Microsoft::ReactNative::IReactPackageBuilder const &packageBuilder) noexcept { - packageBuilder.AddTurboModule(L"DeviceInfo", winrt::Microsoft::ReactNative::MakeModuleProvider()); + AddAttributedModules(packageBuilder, true); CustomComponent::RegisterViewComponent(packageBuilder); } @@ -521,7 +521,6 @@ int RunPlayground(int showCmd, bool useWebDebugger) { windowData.get()); WINRT_VERIFY(hwnd); - winrt::check_win32(!hwnd); windowData.release(); @@ -539,7 +538,7 @@ int RunPlayground(int showCmd, bool useWebDebugger) { } } - return (int)msg.wParam; + return static_cast(msg.wParam); } _Use_decl_annotations_ int CALLBACK WinMain(HINSTANCE instance, HINSTANCE, PSTR /* commandLine */, int showCmd) { diff --git a/packages/playground/windows/playground-composition/Playground-Composition.vcxproj b/packages/playground/windows/playground-composition/Playground-Composition.vcxproj index b0e9040ef9e..62b885309ef 100644 --- a/packages/playground/windows/playground-composition/Playground-Composition.vcxproj +++ b/packages/playground/windows/playground-composition/Playground-Composition.vcxproj @@ -84,7 +84,6 @@ _DEBUG;%(PreprocessorDefinitions) - stdcpp17