Skip to content

Commit aad0c95

Browse files
committed
Code cleanup - Add missing bracers
1 parent 6913334 commit aad0c95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Installer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ Package GetSparsePackage()
209209
HRESULT NppShell::Installer::RegisterSparsePackage()
210210
{
211211
if (::GetSystemMetrics(SM_CLEANBOOT) > 0)
212+
{
212213
return S_FALSE; // Otherwise we will get an unhandled exception later due to HRESULT 0x8007043c (ERROR_NOT_SAFEBOOT_SERVICE).
214+
}
213215

214216
PackageManager packageManager;
215217
AddPackageOptions options;
@@ -298,7 +300,9 @@ HRESULT NppShell::Installer::UnregisterOldContextMenu()
298300
void ReRegisterSparsePackage()
299301
{
300302
if (::GetSystemMetrics(SM_CLEANBOOT) > 0)
303+
{
301304
return; // Sparse package reg/unreg cannot be done in the Windows OS SafeMode.
305+
}
302306

303307
winrt::init_apartment();
304308

0 commit comments

Comments
 (0)