Artifact 5dc183bdbcf5799107f235cf8e88df639207a472
- File
src/win32/lzexpand.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
/***********************************************************************\ * lzexpand.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.lzexpand; pragma(lib, "lz32"); private import win32.winbase, win32.windef; enum : LONG { LZERROR_BADINHANDLE = -1, LZERROR_BADOUTHANDLE = -2, LZERROR_READ = -3, LZERROR_WRITE = -4, LZERROR_GLOBALLOC = -5, LZERROR_GLOBLOCK = -6, LZERROR_BADVALUE = -7, LZERROR_UNKNOWNALG = -8 } extern (Windows): deprecated { LONG CopyLZFile(INT, INT); void LZDone(); INT LZStart(); } INT GetExpandedNameA(LPSTR, LPSTR); INT GetExpandedNameW(LPWSTR, LPWSTR); void LZClose(INT); LONG LZCopy(INT, INT); INT LZInit(INT); INT LZOpenFileA(LPSTR, LPOFSTRUCT, WORD); INT LZOpenFileW(LPWSTR, LPOFSTRUCT, WORD); INT LZRead(INT, LPSTR, INT); LONG LZSeek(INT, LONG, INT); version (Unicode) { alias GetExpandedNameW GetExpandedName; alias LZOpenFileW LZOpenFile; } else { alias GetExpandedNameA GetExpandedName; alias LZOpenFileA LZOpenFile; }