Properly memset a variable.
Issue found by cppcheck.
This commit is contained in:
parent
8e60f2c44a
commit
1d1188fff3
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ bool windows_tray_notification::create_tray_icon()
|
|||
|
||||
// filling notification structure
|
||||
nid = new NOTIFYICONDATA;
|
||||
memset(nid, 0, sizeof(&nid));
|
||||
memset(nid, 0, sizeof(*nid));
|
||||
nid->cbSize = NOTIFYICONDATA_V2_SIZE;
|
||||
nid->hWnd = window;
|
||||
nid->uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE;
|
||||
|
|
Loading…
Add table
Reference in a new issue