[HOTPLUG] Trivial fixes (#5887)

- Update files header and copyright information
- Minor code formatting
This commit is contained in:
Thamatip Chitpong 2023-11-05 07:02:22 +07:00 committed by GitHub
parent 4b03981846
commit 81ba804b55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 22 deletions

View file

@ -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.anderwald@reactos.org>
* COPYRIGHT: Copyright 2020 Eric Kohl <eric.kohl@reactos.org>
* Copyright 2023 Thamatip Chitpong <thamatip.chitpong@reactos.org>
*/

View file

@ -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.anderwald@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.anderwald@reactos.org>
* Copyright 2020 Eric Kohl <eric.kohl@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(

View file

@ -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.anderwald@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.anderwald@reactos.org>
*/
#include <windef.h>