[PATCH 1/2] wpcap: Implement pcap_dump_open and pcap_dump
Jianqiu Zhang
zhangjianqiu_133 at yeah.net
Wed Feb 10 23:14:44 CST 2016
>You do not have to create your own translation tables. Just translate the NTSTATUS into
>an error code, similar to how its done in kernel32:
>
>SetLastError(RtlNtStatusToDosError(status));
>
I found SetLastError(RltNtStatusToDosError(status)) behaved not correct , when the file length is very long , It give the error code ERROR_INVALID_PARAMETER
but Windows give the ERROR_FILENAME_EXCED_RANGE
should I omit this and just use SetLastError(RtlNtStatusToDosError(status)) or maullay set the error code to ERROR_FILENAME_EXCED_RANGE?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160211/d873166a/attachment.html>
More information about the wine-devel
mailing list