From f936f9d94822dfd8e36abb75627957932dc9f6f0 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Wed, 3 Mar 2021 09:31:21 -0700 Subject: [PATCH] Get SpellChecker sample working on net472 --- test/SpellChecker/Program.cs | 2 +- test/SpellChecker/SpellChecker.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/SpellChecker/Program.cs b/test/SpellChecker/Program.cs index 10c0b78f..32ff5ff0 100644 --- a/test/SpellChecker/Program.cs +++ b/test/SpellChecker/Program.cs @@ -37,7 +37,7 @@ text, out IEnumSpellingError* errors).ThrowOnFailure(); - Span suggestionResult = stackalloc PWSTR[1]; + Span suggestionResult = new PWSTR[1]; while (true) { if (errors->Next(out ISpellingError* error).ThrowOnFailure() == S_FALSE) diff --git a/test/SpellChecker/SpellChecker.csproj b/test/SpellChecker/SpellChecker.csproj index 2a9c5b01..8b4466ef 100644 --- a/test/SpellChecker/SpellChecker.csproj +++ b/test/SpellChecker/SpellChecker.csproj @@ -3,7 +3,7 @@ Exe - net5.0 + net5.0;net472