Skip to content

Commit 7efa0b7

Browse files
committed
Fix build error and update Inno Setup style
1 parent 75d7d07 commit 7efa0b7

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

scripts/installer.iss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ PrivilegesRequiredOverridesAllowed=dialog
3232
OutputBaseFilename={#MyAppName}_{#MyAppVersion}_{#MyAppPlatform}_Setup
3333
Compression=lzma
3434
SolidCompression=yes
35-
WizardStyle=modern
36-
; WizardStyle=modern dynamic
35+
WizardStyle=modern dynamic
3736
CloseApplications=force
3837
LicenseFile=..\LICENSE
3938
OutputDir=..\dist

src/COM/DesktopWallpaper.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static class DesktopWallpaperFactory
101101
[Guid("C2CF3110-460E-4fc1-B9D0-8A1C0C9CC4BD")]
102102
class DesktopWallpaperCoclass { }
103103

104-
private const int REGDB_E_CLASSNOTREG = 0x80040154;
104+
private const int REGDB_E_CLASSNOTREG = unchecked((int)0x80040154);
105105

106106
public static IDesktopWallpaper Create()
107107
{
@@ -113,8 +113,7 @@ public static IDesktopWallpaper Create()
113113
}
114114
catch (COMException e) when (e.HResult == REGDB_E_CLASSNOTREG && attempt < 3)
115115
{
116-
LoggingHandler.LogMessage("Accessing DesktopWallpaper COM class failed, retrying ({1}/3)",
117-
attempt + 1);
116+
LoggingHandler.LogMessage("Loading DesktopWallpaper class failed, retrying ({0}/3)", attempt + 1);
118117
Thread.Sleep(1000);
119118
}
120119
}

0 commit comments

Comments
 (0)