X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=gui.cpp;h=4461e8c6b4127f22dbe0def018426261fda0fb4f;hb=e437fc1db29fc193b11061c9c0e54f4b5fcc861e;hp=5041acdc89a9e692bd5adb28ee70f79b37bd440f;hpb=167b3e74003ed8f2b61bda7037f31447c488c29b;p=nssm.git diff --git a/gui.cpp b/gui.cpp index 5041acd..4461e8c 100644 --- a/gui.cpp +++ b/gui.cpp @@ -35,7 +35,7 @@ int nssm_gui(int resource, char *name) { DispatchMessage(&message); } - return message.wParam; + return (int) message.wParam; } void centre_window(HWND window) { @@ -179,7 +179,7 @@ void browse(HWND window) { } /* Install/remove dialogue callback */ -int CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) { +INT_PTR CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) { switch (message) { /* Creating the dialogue */ case WM_INITDIALOG: