]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/src/win32.c
strip_colour(): strip ASCII 29 (mIRC 7 italics).
[irc/rqf/shadowircd.git] / libratbox / src / win32.c
index 691149a2bd0422d36318c766eaaf057ebfd0f08c..5c5e8acde9cea0bbf3620de8fa0b388e82029009 100644 (file)
@@ -23,7 +23,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: win32.c 26092 2008-09-19 15:13:52Z androsyn $
  */
 
 #include <libratbox_config.h>
@@ -155,8 +154,9 @@ int
 rb_kill(int pid, int sig)
 {
        HANDLE hProcess;
-       hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, pid);
        int ret = -1;
+       hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, pid);
+       
        if(hProcess)
        {
                switch (sig)