[wine] 将WindowsPath转为UnixPath的解决方案
参考这个代码 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…