Skip to content

Commit 070a419

Browse files
committed
Fix: __WD_CloseDriver regression
1 parent 425b6ed commit 070a419

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wd_core.au3

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,12 +1557,14 @@ EndFunc ;==>__WD_Error
15571557
; Example .......: No
15581558
; ===============================================================================================================================
15591559
Func __WD_CloseDriver($sDriver = Default)
1560-
Local $iID, $aData
1560+
Local $sFile, $iID, $aData
15611561

15621562
If $sDriver = Default Then $sDriver = $_WD_DRIVER
15631563

1564+
$sFile = StringRegExpReplace($sDriver, "^.*\\(.*)$", "$1")
1565+
15641566
Do
1565-
$iID = ProcessExists($sDriver)
1567+
$iID = ProcessExists($sFile)
15661568

15671569
If $iID Then
15681570
$aData = _WinAPI_EnumChildProcess($iID)

0 commit comments

Comments
 (0)