Open cosminonea opened 11 years ago
Looking into it.
Which variant are you seeing this with? I'm not seeing any imports that even reference copyfile2. Hmm. Unless it's the VC12 CRT that's doing that.
zlib.redist.1.2.8.6\build\native\bin\v110\Win32\Debug\dynamic\cdecl\zlib.dll zlib.redist.1.2.8.6\build\native\bin\v110\Win32\Debug\dynamic\stdcall\zlib.dll
Try looking at these on a windows 7/ 2008 machine. It is CreateFile2 that is missing not CopyFile2, sorry.
Ah, thanks, that narrows it down for me. Hmm.
Did you mean CreateFile2
?
Ah, I see what's going on. Hmm. IOWin32 has support for WINRT and defines that by default.
We're going to have to use an additional set of pivots to support WinRT separately from windows.
this I think has already been fixed in another fork: https://github.com/madler/zlib/issues/49
would be handy to get this change made in nuget version
http://www.nuget.org/packages/zlib/
The nuget package was created on windows 8 or server 2012 and it fails to load on previous versions.
CopyFile2 method in kernel32.dll is not available on previous versions of windows and zlib requires it.