mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[STOBJECT] Don't hardcode variable type in sizeof.
This commit is contained in:
@@ -125,7 +125,7 @@ HRESULT CSysTray::NotifyIcon(INT code, UINT uId, HICON hIcon, LPCWSTR szTip, DWO
|
||||
|
||||
TRACE("NotifyIcon code=%d, uId=%d, hIcon=%p, szTip=%S\n", code, uId, hIcon, szTip);
|
||||
|
||||
nim.cbSize = sizeof(NOTIFYICONDATA);
|
||||
nim.cbSize = sizeof(nim);
|
||||
nim.uFlags = NIF_MESSAGE | NIF_ICON | NIF_STATE | NIF_TIP;
|
||||
nim.hIcon = hIcon;
|
||||
nim.uID = uId;
|
||||
|
||||
@@ -101,7 +101,8 @@ HRESULT EnumHotpluggedDevices(CSimpleArray<DEVINST> &devList)
|
||||
HRESULT NotifyBalloon(CSysTray* pSysTray, LPCWSTR szTitle = NULL, LPCWSTR szInfo = NULL, UINT uId = ID_ICON_HOTPLUG)
|
||||
{
|
||||
NOTIFYICONDATA nim = { 0 };
|
||||
nim.cbSize = sizeof(NOTIFYICONDATA);
|
||||
|
||||
nim.cbSize = sizeof(nim);
|
||||
nim.uID = uId;
|
||||
nim.hWnd = pSysTray->GetHWnd();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user