参考这个代码 wine-devel maling list
>>Am 07.01.2016 um 09:49 schrieb Jianqiu Zhang:
>>> +pcap_dumper_t* CDECL wine_pcap_dump_open(pcap_t *p, const char *fname)
>>> + return pcap_dump_open(p, fname);
>>This can't work, the wpcap function might be called with fname set to "C:dump.pcap" and the native function will be confused by that.
> Ah, I see, I didn't take this scheme in to consideration, I will try to use a helper function to convert the fname to UNIX fname
> Do you think it's a solution?
Wine needs to do that in other functions, have a look for wine_nt_to_unix_file_name