unexpected behavior of wordpad/firefox.

i am unable to understand this.my code is working as expected in notepad,file/ folder names,explorer address bar,internet explorer(8),but not in wordpad,firefox.not checked in chrome and office apps.
In my proggy i used many if else statements,two conditions check and nested if else statements.I am changing WM_CHAR's WPARAM value using hook functions on conditions.based on "http://www.codeproject.com/Articles/50397/System-Wide-Hooking-for-the-WM_CHAR-Message".main problem with two condition checking statements.If first condition is true and second is false return first value and both conditions are true then return second value.
In wordpad/firefox not checking both conditions and always returning second value.
Please someone explain me why different behavior in some applications.

Thanks in advance.
Topic archived. No new replies allowed.