Pārlūkot izejas kodu

Correct value type

(cherry picked from commit dddba28945fd9492b51a87aa8cf8e225f60d5cd1)

Source commit: 86eca91f090aae23bc3c1c3537d7ddb6c0f339bf
Martin Prikryl 4 gadi atpakaļ
vecāks
revīzija
8c567ccf6e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/windows/Setup.cpp

+ 1 - 1
source/windows/Setup.cpp

@@ -2216,7 +2216,7 @@ UnicodeString __fastcall GetPowerShellVersionStr()
 {
   if (PowerShellVersionStr.IsEmpty())
   {
-    PowerShellVersionStr = 0; // not to retry on failure
+    PowerShellVersionStr = L"0"; // not to retry on failure
 
     std::unique_ptr<TRegistryStorage> Registry(new TRegistryStorage(L"SOFTWARE\\Microsoft\\PowerShell", HKEY_LOCAL_MACHINE));
     if (Registry->OpenRootKey(false))