Skip to content

Commit 16672a4

Browse files
committed
Minor fixups
1 parent e529109 commit 16672a4

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/DisplayGeneralInfo.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,7 @@ void SetGeneralInfo(HWND hwnd)
156156

157157
//control ID
158158
lp = GetWindowLongPtr(hwnd, GWLP_ID);
159-
#ifdef _WIN64
160-
wsprintf(ach, _T("%p (%I64d)"), lp, lp);
161-
#else // !_WIN64
162-
wsprintf(ach, _T("%p (%d)"), lp, lp);
163-
#endif // _WIN64
159+
wsprintf(ach, _T("%p (%Id)"), lp, lp);
164160
SetDlgItemText(hwndDlg, IDC_CONTROLID, ach);
165161

166162
//extra window bytes

src/WinSpyDlgs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ LRESULT CALLBACK WindowDlgProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lPara
421421
LVCOLUMN lvcol;
422422
RECT rect;
423423
int width;
424-
int xs[] = { 64, 100, 140 };
424+
//int xs[] = { 64, 100, 140 };
425425
TCHAR ach[10];
426426
NMITEMACTIVATE *nmatv;
427427

src/WinSpyTree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ WinProc *GetProcessWindowStack(HWND hwndTree, HWND hwnd)
317317
// couldn't find one - build a new one instead
318318
//
319319
GetProcessNameByPid(pid, name, 100, path, MAX_PATH);
320-
wsprintf(ach, _T("%s (%d)"), name, pid);
320+
wsprintf(ach, _T("%s (%u)"), name, pid);
321321

322322
SHGetFileInfo(path, 0, &shfi, sizeof(shfi), SHGFI_SMALLICON | SHGFI_ICON);
323323
hImgList = TreeView_GetImageList(hwndTree, TVSIL_NORMAL);

0 commit comments

Comments
 (0)