Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ansicon corrupts cmd.exe exit code in Windows Vista x86 #123

@Getfree

Description

@Getfree

Steps to reproduce the problem:

  1. In a computer with no Ansicon installed, create a file named test.js with the following content:
SHELL = new ActiveXObject("WScript.Shell") ;
WScript.echo( SHELL.run('cmd /c echo hello', 0, true) ) ;
WScript.echo( SHELL.run('cmd /c non_existing_command', 0, true) ) ;
  1. Double-click the file to execute it. The result is a number 0 and a number 1.

  2. Now, install ansicon and run test.js again. The result is a random number twice.

Tested OSs:
Windows XP x86: pass
Windows Vista x86: fail
Windows 7 x64: pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions