Skip to content

Commit

Permalink
Fix check if parameter contains a script
Browse files Browse the repository at this point in the history
  • Loading branch information
HotKeyIt committed Jun 18, 2018
1 parent bc73d36 commit 9f294b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/resources/reslib/AhkThread.ahk
Expand Up @@ -20,7 +20,7 @@ ahkthread(s:="",p:="",t:="",IsFile:=0,dll:=""){
obj:={(""):lib:=MemoryLoadLibrary(dll=""?&ahkdll:dll),base:base}
for k,v in functions
obj[k]:=DynaCall(MemoryGetProcAddress(lib,A_Index>2?k:SubStr(k,2)),v)
If !(s+0!="" || s=0)
If Type(s)="String" and s!=""
obj.hThread:=obj[IsFile?"ahkdll":"ahktextdll"](s,p,t)
ahkthread_free(true)[obj]:=1 ; keep dll loadded even if returned object is freed
return obj
Expand Down

0 comments on commit 9f294b9

Please sign in to comment.