summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-04-03 20:22:03 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-04-03 20:22:03 +0000
commita87203651e35f368bf1d8bca5a846a0b9fb657c1 (patch)
treea1b28e2bd7486db1a88e511d5772a412f5db9697 /tools
parent1123ab64cdcb9933916b3892cf01513b198561d8 (diff)
downloadrockbox-a87203651e35f368bf1d8bca5a846a0b9fb657c1.tar.gz
rockbox-a87203651e35f368bf1d8bca5a846a0b9fb657c1.tar.bz2
rockbox-a87203651e35f368bf1d8bca5a846a0b9fb657c1.zip
Patch #5013 by Jonas Häggqvist - Fix spurious fwpatcher patching attempts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9469 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/fwpatcher/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/fwpatcher/main.c b/tools/fwpatcher/main.c
index 3015c8fc61..73daa6a798 100644
--- a/tools/fwpatcher/main.c
+++ b/tools/fwpatcher/main.c
@@ -36,6 +36,7 @@
#define EDIT_FILENAME 1
#define BUTTON_BROWSE 2
#define BUTTON_PATCH 3
+#define WM_COMMANDDRIVEN 0x8000
#define CTL_NUM 4
@@ -414,7 +415,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
}
break;
- case WM_USER:
+ case WM_COMMANDDRIVEN:
/* command line driven patch button */
SetWindowText(controls[EDIT_FILENAME], (LPCTSTR)wParam);
SendMessage(hwnd, WM_COMMAND, 0, (LPARAM)(controls[BUTTON_PATCH]) );
@@ -501,7 +502,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance,
ShowWindow(window, command_show);
if (argc > 1) {
- SendMessage(window, WM_USER, (WPARAM)(argv[1]), 0);
+ SendMessage(window, WM_COMMANDDRIVEN, (WPARAM)(argv[1]), 0);
SendMessage(window, WM_CLOSE, 0, 0);
}