Skip to content

Commit 5a7c1c9

Browse files
committed
Fix incorrect DPI scaling of popup dialogues, and related process path not displayed even if not exceeds 260 characters
1 parent 7b5b8a1 commit 5a7c1c9

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

1.23 MB
Binary file not shown.
56 KB
Binary file not shown.

Source/AlleyWind/Relationship.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ INT_PTR WINAPI WndPropRelationshipDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
115115
HWND hWnd, hCtl;
116116
TCHAR szTempPath[MAX_PATH], szBuffer[1024];
117117
DWORD dwPID, dwTID;
118-
HANDLE hProc, hThread;
118+
HANDLE hProc = NULL, hThread = NULL;
119119
PVOID pThreadStartAddr;
120120
INT i, iTemp;
121121
UINT uTemp;
@@ -193,24 +193,24 @@ INT_PTR WINAPI WndPropRelationshipDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
193193
NtClose(hProc);
194194
}
195195
} else if (wParam == MAKEWPARAM(IDM_WNDOP_PROPERTIES, 0)) {
196-
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
196+
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
197197
if (hRelatedWnd)
198198
AW_OpenWndPropDlg(hRelatedWnd);
199199
} else if (wParam == MAKEWPARAM(IDM_WNDOP_LOCATEINLIST, 0)) {
200-
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
200+
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
201201
if (hRelatedWnd && AW_LocateWindowInTree(hRelatedWnd))
202202
BringWindowToTop(AW_GetMainDlg());
203203
} else if (wParam == MAKEWPARAM(IDM_WNDOP_HIGHLIGHT, 0)) {
204-
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
204+
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
205205
if (hRelatedWnd)
206206
AW_HighlightWindow(hRelatedWnd);
207207
}
208208
} else if (uMsg == WM_NOTIFY) {
209209
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE)lParam;
210210
if (lpnmitem->hdr.idFrom == IDC_WNDPROP_RELATIONSHIP_WINDOW_LIST && lpnmitem->hdr.code == NM_RCLICK && lpnmitem->iItem != -1) {
211-
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
211+
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
212212
if (IsWindow(hRelatedWnd)) {
213-
POINT pt;
213+
POINT pt;
214214
if (!GetCursorPos(&pt))
215215
pt.x = pt.y = 0;
216216
Ctl_PopupMenu(hPropRelationshipWndOpMenu, pt.x, pt.y, hDlg);

0 commit comments

Comments
 (0)