mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-27 21:24:17 -04:00
[loc] fix a crash on exit
* Don't free loc_filename if it points to embedded name * Also fix resizing of main dialog
This commit is contained in:
parent
ff28e2027c
commit
4e840a6995
3 changed files with 12 additions and 9 deletions
|
@ -466,12 +466,12 @@ void ResizeMoveCtrl(HWND hDlg, HWND hCtrl, int dx, int dy, int dw, int dh)
|
|||
GetWindowRect(hCtrl, &rect);
|
||||
point.x = rect.left;
|
||||
point.y = rect.top;
|
||||
ScreenToClient((hDlg==hMainDialog)?hDlg:NULL, &point);
|
||||
ScreenToClient(hDlg, &point);
|
||||
GetClientRect(hCtrl, &rect);
|
||||
|
||||
// If we're dealing with a dialog, we must take the border into account
|
||||
if (hCtrl == hDlg)
|
||||
border = GetBorderSize(hDlg);
|
||||
if ((hCtrl == hDlg) || (hDlg == NULL))
|
||||
border = GetBorderSize(hCtrl);
|
||||
MoveWindow(hCtrl, point.x + (int)(fScale*(float)dx), point.y + (int)(fScale*(float)dy),
|
||||
(rect.right - rect.left) + (int)(fScale*(float)dw + border.cx),
|
||||
(rect.bottom - rect.top) + border.cy, TRUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue