I am trying to check weather a file is returned by FindNextFile is actually a folder I'm not sure if this is the correct best way of doing it.
mov eax, wfd.dwFileAttributes
and eax, FILE_ATTRIBUTE_DIRECTORY
.if eax==FILE_ATTRIBUTE_DIRECTORY
;code
;...
.endif
mov eax, wfd.dwFileAttributes
and eax, FILE_ATTRIBUTE_DIRECTORY
.if eax==FILE_ATTRIBUTE_DIRECTORY
;code
;...
.endif
I don't know if your code works (did not test it) but I
know this works...
mov eax, wfd.dwFileAttributes
.if eax & FILE_ATTRIBUTE_DIRECTORY
know this works...
mov eax, wfd.dwFileAttributes
.if eax & FILE_ATTRIBUTE_DIRECTORY
that is much more readable I'll use it