Skip to content

Commit

Permalink
Version is now 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sagamusix committed Sep 22, 2019
1 parent 00d9916 commit f1ba60e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ TBTray - Native Win32 Thunderbird tray icon

After the x-th reincarnation of the MinimizeToTray add-on for Thunderbird broke in Thunderbird 68,
it seems like it becomes more and more difficult, if not impossible, to solve the issue at hand -
keeping Thunderbird minimized in the notification area when closing or minimizing it.
keeping Thunderbird minimized in the notification area when closing or minimizing it -
using Web Extensions.

I know that [BirdTray](https://github.com/gyunaev/birdtray) exists, and it's even cross-platform.
However, it tries to solve way more problems than I have and uses Qt, so it's not
Expand Down
1 change: 1 addition & 0 deletions copy_binaries.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mkdir bin
copy Release\dll.dll bin\TBTray.dll
copy Release\loader.exe bin\TBTray.exe
copy README.md bin
Expand Down
8 changes: 3 additions & 5 deletions dll/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <shellapi.h>

#include "guicon.h"

#include <stdlib.h>
#include <stdio.h>

#ifdef _DEBUG
#define dprintf printf
Expand Down Expand Up @@ -140,12 +138,12 @@ LRESULT CALLBACK MessageHook(int nCode, WPARAM wParam, LPARAM lParam)
nid.uFlags = NIF_ICON | NIF_TIP | NIF_SHOWTIP | NIF_MESSAGE;
nid.uCallbackMessage = WM_USER + 1337;
nid.hIcon = (HICON)GetClassLongPtr(mainHwnd, GCLP_HICON);
_tcscpy(nid.szTip, _T("Mozilla Thunderbird"));
lstrcpy(nid.szTip, _T("Mozilla Thunderbird"));
nid.dwState = 0;
nid.dwStateMask = 0;
_tcscpy(nid.szInfo, _T(""));
lstrcpy(nid.szInfo, _T(""));
nid.uVersion = NOTIFYICON_VERSION_4;
_tcscpy(nid.szInfoTitle, _T(""));
lstrcpy(nid.szInfoTitle, _T(""));
nid.dwInfoFlags = 0;
nid.guidItem = {};
nid.hBalloonIcon = nid.hIcon;
Expand Down
5 changes: 2 additions & 3 deletions loader/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <tchar.h>
#include <Shlwapi.h>


TCHAR *GetErrorMessage()
Expand All @@ -40,7 +39,7 @@ static BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
TCHAR name[256] = {};
if(::GetClassName(hwnd, name, 256) > 0)
{
if(!_tcscmp(name, _T("MozillaWindowClass")))
if(!lstrcmp(name, _T("MozillaWindowClass")))
{
GetWindowText(hwnd, name, 256);
if(_tcsstr(name, _T("- Mozilla Thunderbird")))
Expand Down Expand Up @@ -68,7 +67,7 @@ static void CALLBACK TimerProc(HWND, UINT, UINT_PTR idTimer, DWORD)
// Construct the DLL filename from our own filename, then attempt to load the DLL and find the entry hook
TCHAR dllName[1024];
int dllNameLen = GetModuleFileName(nullptr, dllName, _countof(dllName));
_tcscpy(dllName + dllNameLen - 3, _T("dll"));
lstrcpy(dllName + dllNameLen - 3, _T("dll"));
HMODULE dll = LoadLibrary(dllName);
HOOKPROC hookProc = (HOOKPROC)GetProcAddress(dll, "_EntryHook@12");
if(!dll || !hookProc)
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#define MAJORVER 0
#define MINORVER 10
#define FIXVER 0
#define FIXVER 1

#define PRODUCTVER MAJORVER,MINORVER,FIXVER,0
#define _STR(x) #x
Expand Down

0 comments on commit f1ba60e

Please sign in to comment.