Modify ↓
Opened on Jun 8, 2022 at 8:40:50 PM
Closed on Jun 8, 2022 at 10:28:29 PM
Last modified on Jun 8, 2022 at 10:30:35 PM
#3894 closed Bug (Fixed)
_WinAPI_GetProcessName returns incorrect result when process ID is invalid
| Reported by: | Owned by: | J-Paul Mesnage | |
|---|---|---|---|
| Milestone: | 3.3.16.1 | Component: | Standard UDFs |
| Version: | 3.3.16.0 | Severity: | None |
| Keywords: | Cc: |
Description
_WinAPI_GetProcessName should return an error if the PID isn't valid. Instead, it returns the name of the most recently launched process, which is generally "AutoIt3.exe"
#include <WinAPIProc.au3> Local $sDriverProcessName = _WinAPI_GetProcessName(500000) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $sDriverProcessName = ' & $sDriverProcessName & @CRLF & '>Error code: ' & @error & @CRLF)
Attachments (0)
Change History (4)
comment:1 by , on Jun 8, 2022 at 10:08:46 PM
| Component: | AutoIt → Standard UDFs |
|---|---|
| Version: | 3.3.14.5 → 3.3.16.0 |
comment:3 by , on Jun 8, 2022 at 10:28:29 PM
| Milestone: | → 3.3.15.6 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [12768] in version: 3.3.15.6
comment:4 by , on Jun 8, 2022 at 10:30:35 PM
| Milestone: | 3.3.15.6 → 3.3.16.1 |
|---|
Fixed by revision [12769] in version: 3.3.16.1
Note:
See TracTickets
for help on using tickets.

There is a bug
should be: