For some reason, the PathIsRelative API needs the appended A in order to work (I guess otherwise it calls the Unicode version?). This bug does not occur on ANSI AHK_L.
sFile := "file.dat"
MsgBox % DllCall("shlwapi\PathIsRelative", "str", sFile) ;Won't work
MsgBox % DllCall("shlwapi\PathIsRelativeA", "str", sFile) ;Works





