https://git.reactos.org/?p=reactos.git;a=commitdiff;h=81ba804b55b7edea31a95b6b808cb3613563db9a
commit 81ba804b55b7edea31a95b6b808cb3613563db9a Author: Thamatip Chitpong <thamatip.chitp...@reactos.org> AuthorDate: Sun Nov 5 07:02:22 2023 +0700 Commit: GitHub <nore...@github.com> CommitDate: Sun Nov 5 07:02:22 2023 +0700 [HOTPLUG] Trivial fixes (#5887) - Update files header and copyright information - Minor code formatting --- dll/cpl/hotplug/enum.c | 2 +- dll/cpl/hotplug/hotplug.c | 22 ++++++---------------- dll/cpl/hotplug/hotplug.rc | 9 ++++----- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/dll/cpl/hotplug/enum.c b/dll/cpl/hotplug/enum.c index 698e94b0cb3..8f9dbc5e42a 100644 --- a/dll/cpl/hotplug/enum.c +++ b/dll/cpl/hotplug/enum.c @@ -2,7 +2,7 @@ * PROJECT: Safely Remove Hardware Applet * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) * PURPOSE: Device enumeration - * COPYRIGHT: Copyright 2013 Johannes Anderwald <johannes.anderw...@reactos.org> + * COPYRIGHT: Copyright 2020 Eric Kohl <eric.k...@reactos.org> * Copyright 2023 Thamatip Chitpong <thamatip.chitp...@reactos.org> */ diff --git a/dll/cpl/hotplug/hotplug.c b/dll/cpl/hotplug/hotplug.c index 1c50fc62fb1..2b59f8d43c9 100644 --- a/dll/cpl/hotplug/hotplug.c +++ b/dll/cpl/hotplug/hotplug.c @@ -1,10 +1,10 @@ /* -* PROJECT: Safely Remove Hardware Applet -* LICENSE: GPL - See COPYING in the top level directory -* FILE: dll/cpl/hotplug/hotplug.c -* PURPOSE: applet initialization -* PROGRAMMERS: Johannes Anderwald (johannes.anderw...@reactos.org) -*/ + * PROJECT: Safely Remove Hardware Applet + * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) + * PURPOSE: Applet initialization + * COPYRIGHT: Copyright 2013 Johannes Anderwald <johannes.anderw...@reactos.org> + * Copyright 2020 Eric Kohl <eric.k...@reactos.org> + */ #include "hotplug.h" @@ -53,7 +53,6 @@ done: return dwFlags; } - static DWORD SetHotPlugFlags( @@ -106,7 +105,6 @@ UpdateDialog( EnableWindow(GetDlgItem(hwndDlg, IDC_SAFE_REMOVE_STOP), bHasItem); } - static VOID ShowContextMenu( @@ -136,7 +134,6 @@ ShowContextMenu( NULL); } - static DEVINST GetSelectedDeviceInst( @@ -364,14 +361,10 @@ SafeRemovalDlgProc( SetupDiDestroyClassImageList(&pHotplugData->ImageListData); if (pHotplugData->hIconSm) - { DestroyIcon(pHotplugData->hIconSm); - } if (pHotplugData->hIcon) - { DestroyIcon(pHotplugData->hIcon); - } HeapFree(GetProcessHeap(), 0, pHotplugData); SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)NULL); @@ -382,7 +375,6 @@ SafeRemovalDlgProc( return FALSE; } - LONG APIENTRY InitApplet( @@ -402,7 +394,6 @@ InitApplet( return TRUE; } - LONG CALLBACK CPlApplet( @@ -451,7 +442,6 @@ CPlApplet( return FALSE; } - INT WINAPI DllMain( diff --git a/dll/cpl/hotplug/hotplug.rc b/dll/cpl/hotplug/hotplug.rc index 8979476f923..75dbb9b1f50 100644 --- a/dll/cpl/hotplug/hotplug.rc +++ b/dll/cpl/hotplug/hotplug.rc @@ -1,9 +1,8 @@ /* - * PROJECT: ReactOS Safely Remove Hardware Applet - * LICENSE: GPL - See COPYING in the top level directory - * FILE: dll/cpl/hotplug/hotplug.rc - * PURPOSE: main resource file - * PROGRAMMERS: Johannes Anderwald (johannes.anderw...@reactos.org) + * PROJECT: Safely Remove Hardware Applet + * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) + * PURPOSE: Main resource file + * COPYRIGHT: Copyright 2013 Johannes Anderwald <johannes.anderw...@reactos.org> */ #include <windef.h>