From 5d4a441dd833a7d4fa70bc2deab98c92b991468b Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Sun, 7 Oct 2012 20:20:54 +0000 Subject: [PATCH] Clear _oserror on success. git-svn-id: svn://svn.cc65.org/cc65/trunk@5841 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/cbm/devicedir.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/cbm/devicedir.s b/libsrc/cbm/devicedir.s index 93e1845c0..c4cda7f00 100644 --- a/libsrc/cbm/devicedir.s +++ b/libsrc/cbm/devicedir.s @@ -86,7 +86,8 @@ errno: jsr __seterrno ; Returns 0 in A ; Copy device string representation into buf okay: lda fnunit - jsr devicestr + jsr devicestr ; Returns 0 in A + sta __oserror ; Clear _oserror ; Success, return buf -- 2.39.5