EDR-DOS WIP 2009-03-28 released | many BUG's (Users)
> No, it's documented not to work. Read the documentation.
The only valid documentation is available at ???
> If it returns CF set, ax=1 then this should be fine for any well-written software.
Feel free to submit a list of "well-written software" 
GetFileAttributesA proc public uses ebx pName:ptr byte
local szFile[MAX_PATH]:byte
;--- if a path ends with a '\', skip it. unless it is "\" or "x:\"
mov ebx, pName
invoke lstrlen, ebx
.if (eax && (byte ptr [ebx+eax-1] == '\'))
cmp eax, 2
jb dontstrip
cmp byte ptr [ebx+eax-2],':'
jz dontstrip
push eax
invoke lstrcpy, addr szFile, ebx
pop eax
lea ebx, szFile
mov byte ptr [ebx+eax-1],0
.endif
dontstrip:
mov edx, ebx
mov ax,7143h
mov bl, 00 ;file attributes
stc
int 21h
jnc success
cmp ax,7100h ; HEH ??? King Udo returns something else here ...
jnz error ; BOOM !!!
mov ax,4300h
int 21h
jc error
success:
mov eax, FILE_ATTRIBUTE_NORMAL
and cx, 37h
jz @F
movzx eax,cx
@@:
done:
@strace <"GetFileAttributesA(", &pName, ")=", eax>
ret
error:
movzx eax, ax
invoke SetLastError,eax
@mov eax, -1
jmp done
align 4
GetFileAttributesA endp
Apparently DKRNL32 is a poorly-written one 
> Even badly written software should recognise that there was an error at all
That's exactly what happens, but it is not useful 
> Which condition exactly?
Deleted the useless and never accessed "dot" . and .. "dotdot" entries 
> And where did I say something about this?
Mail.
> don't know exactly what bug you're talking about here
See above
> > - LFN Get Attributes AX=$7143 BL=0 returns flag(C)=1 and AX=1 (!!!)
> What's that surprising/shocking/... about this? This is the MS-DOS 2.x+
> way of saying "invalid (sub)function".
See above, it does break.
> Stop using that software
AKA stop using all software
> or rewrite it with
> proper LFN support [1]
> or
> none at [2]
[2] is preferable from [1] , but I might not apply [2] either since UI21DEB can fix the problem immediately for all NTLFN-aware apps without the need to rewrite or recompile or to have the source at all 
---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***
Complete thread:
- EDR-DOS bug report - Japheth, 23.12.2007, 10:02 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- EDR-DOS bug report - rr, 26.12.2007, 13:53
- EDR-DOS bug report - david, 26.12.2007, 17:53
- EDR-DOS WIP 2009-03-28 released | many BUG's - DOS386, 05.04.2009, 04:06
- EDR-DOS WIP 2009-03-28 released | many BUG's - ecm, 05.04.2009, 09:51
- EDR-DOS WIP 2009-03-28 released | many BUG's - DOS386, 07.04.2009, 05:39
- EDR-DOS WIP 2009-03-28 released | many BUG's - Japheth, 07.04.2009, 08:13
- EDR-DOS WIP 2009-03-28 released | many BUG's - ecm, 07.04.2009, 13:16
- EDR-DOS WIP 2009-03-28 released | many BUG's - DOS386, 13.04.2009, 09:37
- EDR-DOS WIP 2009-03-28 released | many BUG's - ecm, 13.04.2009, 14:12
- unsupp 71xx + DEVLOAD - DOS386, 13.04.2009, 14:26
- DEVLOAD - ecm, 14.04.2009, 02:45
- unsupp 71xx + DEVLOAD - DOS386, 13.04.2009, 14:26
- EDR-DOS WIP 2009-03-28 released | many BUG's - ecm, 13.04.2009, 14:12
- EDR-DOS WIP 2009-03-28 released | many BUG's - DOS386, 13.04.2009, 09:37
- EDR-DOS WIP 2009-03-28 released | many BUG's - DOS386, 07.04.2009, 05:39
- EDR-DOS WIP 2009-03-28 released | many BUG's - ecm, 05.04.2009, 09:51
- 3 more - DOS386, 07.04.2009, 07:00
- Even 3 more - DOS386, 13.04.2009, 10:07
- Even 3 more - DOS386, 13.04.2009, 10:10
- Even 3 more? - Japheth, 14.04.2009, 17:35
- Even 3 more? - rr, 15.04.2009, 19:40
- Even 3 more? - Rugxulo, 16.04.2009, 17:40
- Question of patience! - Japheth, 16.04.2009, 20:53
- Question of patience! - Rugxulo, 16.04.2009, 21:23
- Question of patience! - Japheth, 16.04.2009, 22:00
- Question of patience! - Rugxulo, 16.04.2009, 22:05
- Question of patience! - Japheth, 16.04.2009, 22:20
- Question of patience! - rr, 16.04.2009, 22:26
- Question of patience! - Rugxulo, 16.04.2009, 22:52
- Question of patience! - ecm, 17.04.2009, 12:29
- Question of patience! - Japheth, 16.04.2009, 22:20
- Question of patience! - Rugxulo, 16.04.2009, 22:05
- Question of patience! - Japheth, 16.04.2009, 22:00
- Question of patience! - Rugxulo, 16.04.2009, 21:23
- Question of patience! - Japheth, 16.04.2009, 20:53
- Even 3 more? - Rugxulo, 16.04.2009, 17:40
- evil will - DOS386, 22.05.2009, 07:56
- evil will - rr, 23.05.2009, 18:25
- Even 3 more? - rr, 15.04.2009, 19:40
- Even 3 more - DOS386, 13.04.2009, 10:07
Mix view