aboutsummaryrefslogtreecommitdiff
path: root/RadTerminal.cpp
diff options
context:
space:
mode:
authorRadAd <adamgates84+github@gmail.com>2019-07-12 13:57:00 +1000
committerRadAd <adamgates84+github@gmail.com>2019-07-12 13:57:00 +1000
commitff198de91521e9c048670a18ec3df717b9dc7495 (patch)
tree8dd4d5182a71f662f6003b5b003fe2a64c87665f /RadTerminal.cpp
parentf4020b76b769434920632947d4536b77b8b31a43 (diff)
downloadRadTerminal-ff198de91521e9c048670a18ec3df717b9dc7495.tar.gz
RadTerminal-ff198de91521e9c048670a18ec3df717b9dc7495.zip
Added an icon
Diffstat (limited to 'RadTerminal.cpp')
-rw-r--r--RadTerminal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/RadTerminal.cpp b/RadTerminal.cpp
index 918b6c8..012888e 100644
--- a/RadTerminal.cpp
+++ b/RadTerminal.cpp
@@ -72,7 +72,7 @@ ATOM RegisterRadTerminal(HINSTANCE hInstance)
WNDCLASS wc = {};
wc.lpfnWndProc = RadTerminalWindowProc;
- wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
+ wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
//wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW);
wc.hInstance = hInstance;
@@ -282,6 +282,7 @@ void ReadThread(HANDLE hHandle, HWND hWnd)
break;
SendMessage(hWnd, WM_READ, (WPARAM) buf, read);
}
+ CloseHandle(hHandle);
}
void tsm_log(void *data,
@@ -718,6 +719,7 @@ BOOL RadTerminalWindowOnCreate(HWND hWnd, LPCREATESTRUCT lpCreateStruct)
CreateThread(WatchThread, data->spd.pi.hProcess, hWnd);
CreateThread(ReadThread, data->spd.hOutput, hWnd);
+ data->spd.hOutput = NULL;
// TODO Report error
int e = 0;