https://bugs.winehq.org/show_bug.cgi?id=53960
--- Comment #13 from cqwrteur euloanty@live.com --- Example of code break //a.dll dynamically linked with ucrt __declspec(dllexport) extern "C" void export_fp(FILE* fp) noexcept { fprintf(fp, "%s", "hello world"); //crash }
//main.exe uses function from a.dll //main.exe compiled with msvc __declspec(dllimport) extern "C" void export_fp(FILE* fp) noexcept;
int main() { FILE* fp = fopen("a.txt", "wb"); export_fp(fp); fclose(fp); }