git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidyup TerminateProcess().
[nssm.git]
/
gui.cpp
diff --git
a/gui.cpp
b/gui.cpp
index
5041acd
..
b1174d1
100644
(file)
--- a/
gui.cpp
+++ b/
gui.cpp
@@
-35,7
+35,7
@@
int nssm_gui(int resource, char *name) {
DispatchMessage(&message);
\r
}
\r
\r
DispatchMessage(&message);
\r
}
\r
\r
- return message.wParam;
\r
+ return
(int)
message.wParam;
\r
}
\r
\r
void centre_window(HWND window) {
\r
}
\r
\r
void centre_window(HWND window) {
\r
@@
-58,7
+58,7
@@
void centre_window(HWND window) {
/* Centre window */
\r
x = (desktop_size.right - size.right) / 2;
\r
y = (desktop_size.bottom - size.bottom) / 2;
\r
/* Centre window */
\r
x = (desktop_size.right - size.right) / 2;
\r
y = (desktop_size.bottom - size.bottom) / 2;
\r
- MoveWindow(window, x, y, size.right
, size.bottom
, 0);
\r
+ MoveWindow(window, x, y, size.right
- size.left, size.bottom - size.top
, 0);
\r
}
\r
\r
/* Install the service */
\r
}
\r
\r
/* Install the service */
\r
@@
-67,7
+67,7
@@
int install(HWND window) {
\r
/* Check parameters in the window */
\r
char name[STRING_SIZE];
\r
\r
/* Check parameters in the window */
\r
char name[STRING_SIZE];
\r
- char exe[
MAX_PA
TH];
\r
+ char exe[
EXE_LENG
TH];
\r
char flags[STRING_SIZE];
\r
\r
/* Get service name */
\r
char flags[STRING_SIZE];
\r
\r
/* Get service name */
\r
@@
-179,7
+179,7
@@
void browse(HWND window) {
}
\r
\r
/* Install/remove dialogue callback */
\r
}
\r
\r
/* Install/remove dialogue callback */
\r
-
int
CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) {
\r
+
INT_PTR
CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) {
\r
switch (message) {
\r
/* Creating the dialogue */
\r
case WM_INITDIALOG:
\r
switch (message) {
\r
/* Creating the dialogue */
\r
case WM_INITDIALOG:
\r