mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +00:00
[HOTPLUG] Trivial fixes (#5887)
- Update files header and copyright information - Minor code formatting
This commit is contained in:
parent
4b03981846
commit
81ba804b55
3 changed files with 11 additions and 22 deletions
|
@ -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>
|
||||
*/
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue