mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
[ui] fix missing partition scheme tooltip after selecting an ISO
* Tooltips can only be manipulated from the same thread as the one that created their parent * Also increase the SetLGP() timeout as this seems to be problematic * Closes #764
This commit is contained in:
parent
bf679271b8
commit
b9da0cf057
5 changed files with 24 additions and 12 deletions
11
src/stdlg.c
11
src/stdlg.c
|
@ -963,12 +963,10 @@ INT_PTR CALLBACK TooltipCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM
|
|||
for (i=0; i<MAX_TOOLTIPS; i++) {
|
||||
if (ttlist[i].hTip == hDlg) break;
|
||||
}
|
||||
if (i == MAX_TOOLTIPS) {
|
||||
if (i == MAX_TOOLTIPS)
|
||||
return (INT_PTR)FALSE;
|
||||
}
|
||||
|
||||
switch (message)
|
||||
{
|
||||
switch (message) {
|
||||
case WM_NOTIFY:
|
||||
switch (((LPNMHDR)lParam)->code) {
|
||||
case TTN_GETDISPINFOW:
|
||||
|
@ -979,6 +977,11 @@ INT_PTR CALLBACK TooltipCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM
|
|||
}
|
||||
break;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
// comctl32 causes issues if the tooltips are not being manipulated from the same thread as their parent controls
|
||||
if (GetCurrentThreadId() != MainThreadId)
|
||||
uprintf("Warning: Tooltip callback is being called from wrong thread");
|
||||
#endif
|
||||
return CallWindowProc(ttlist[i].original_proc, hDlg, message, wParam, lParam);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue