fix: misc building warnings
Build / build (push) Successful in 8m29s

This commit is contained in:
2026-06-20 07:33:18 -03:00
parent e27fb6d73a
commit c0b710d6f7
+4 -4
View File
@@ -63,9 +63,9 @@ void* TrayIcon::windowProc(void* h, unsigned int msg, unsigned long long wParam,
bool TrayIcon::init() bool TrayIcon::init()
{ {
WNDCLASSEXA wc = {0}; WNDCLASSEXA wc = {};
wc.cbSize = sizeof(WNDCLASSEX); wc.cbSize = sizeof(WNDCLASSEX);
wc.lpfnWndProc = (WNDPROC)windowProc; wc.lpfnWndProc = reinterpret_cast<WNDPROC>(reinterpret_cast<void*>(windowProc));
wc.hInstance = GetModuleHandle(NULL); wc.hInstance = GetModuleHandle(NULL);
wc.lpszClassName = "HexUnlockedTrayIconClass"; wc.lpszClassName = "HexUnlockedTrayIconClass";
@@ -77,7 +77,7 @@ bool TrayIcon::init()
this->_hwnd = window; this->_hwnd = window;
NOTIFYICONDATAA nid = {0}; NOTIFYICONDATAA nid = {};
nid.cbSize = sizeof(NOTIFYICONDATA); nid.cbSize = sizeof(NOTIFYICONDATA);
nid.hWnd = window; nid.hWnd = window;
nid.uID = ID_TRAY_APP_ICON; nid.uID = ID_TRAY_APP_ICON;
@@ -97,7 +97,7 @@ void TrayIcon::shutdown()
{ {
if (_hwnd) if (_hwnd)
{ {
NOTIFYICONDATAA nid = {0}; NOTIFYICONDATAA nid = {};
nid.cbSize = sizeof(NOTIFYICONDATA); nid.cbSize = sizeof(NOTIFYICONDATA);
nid.hWnd = reinterpret_cast<HWND>(_hwnd); nid.hWnd = reinterpret_cast<HWND>(_hwnd);
nid.uID = ID_TRAY_APP_ICON; nid.uID = ID_TRAY_APP_ICON;