wine
17 years agowidl: A structure with variance, but without conformance should be a complex struct...
Rob Shearman [Wed, 30 May 2007 21:42:03 +0000 (22:42 +0100)] 
widl: A structure with variance, but without conformance should be a complex struct instead of a conformant, varying struct.

17 years agontdll: Report end of file instead of broken pipe on char devices.
Alexandre Julliard [Thu, 31 May 2007 10:19:03 +0000 (12:19 +0200)] 
ntdll: Report end of file instead of broken pipe on char devices.

17 years agows2_32: Allocate iovec buffers statically using MSG_MAXIOVLEN.
Alexandre Julliard [Thu, 31 May 2007 10:15:08 +0000 (12:15 +0200)] 
ws2_32: Allocate iovec buffers statically using MSG_MAXIOVLEN.

17 years agoinclude: Fix the definition of MSG_MAXIOVLEN.
Alexandre Julliard [Thu, 31 May 2007 10:08:19 +0000 (12:08 +0200)] 
include: Fix the definition of MSG_MAXIOVLEN.

17 years agows2_32: Store the local iosb in the ws2_async structure to avoid a memory allocation.
Alexandre Julliard [Thu, 31 May 2007 10:07:14 +0000 (12:07 +0200)] 
ws2_32: Store the local iosb in the ws2_async structure to avoid a memory allocation.

17 years agows2_32: Reimplement WSARecvFrom along the lines of NtReadFile.
Alexandre Julliard [Thu, 31 May 2007 09:55:38 +0000 (11:55 +0200)] 
ws2_32: Reimplement WSARecvFrom along the lines of NtReadFile.

17 years agows2_32: Avoid memory allocations for sockaddr conversion.
Alexandre Julliard [Wed, 30 May 2007 18:11:58 +0000 (20:11 +0200)] 
ws2_32: Avoid memory allocations for sockaddr conversion.

17 years agomsadp32.acm: Constify some variables.
Andrew Talbot [Sun, 27 May 2007 18:38:55 +0000 (19:38 +0100)] 
msadp32.acm: Constify some variables.

17 years agomsacm32.drv: Constify some variables.
Andrew Talbot [Sun, 27 May 2007 16:52:34 +0000 (17:52 +0100)] 
msacm32.drv: Constify some variables.

17 years agomsacm32: Constify some variables.
Andrew Talbot [Sun, 27 May 2007 16:52:30 +0000 (17:52 +0100)] 
msacm32: Constify some variables.

17 years agoSome Spanish translations updated.
José Manuel Ferrer Ortiz [Fri, 25 May 2007 21:32:35 +0000 (14:32 -0700)] 
Some Spanish translations updated.

17 years agoadvapi32: Added implementation of RegDeleteTreeA/W.
Stefan Leichter [Fri, 25 May 2007 16:15:54 +0000 (18:15 +0200)] 
advapi32: Added implementation of RegDeleteTreeA/W.

17 years agonet.exe: Add NET START command.
Tim Schwartz [Mon, 28 May 2007 15:02:48 +0000 (10:02 -0500)] 
net.exe: Add NET START command.

17 years agokernel32: Clear the extra memory in LocalReAlloc16(h, bigger_size, LMEM_ZEROINIT).
Mikołaj Zalewski [Wed, 30 May 2007 08:06:34 +0000 (10:06 +0200)] 
kernel32: Clear the extra memory in LocalReAlloc16(h, bigger_size, LMEM_ZEROINIT).

17 years agouser32: Fix some compilation warnings in 64-bit mode.
Dmitry Timoshkov [Wed, 30 May 2007 10:32:24 +0000 (19:32 +0900)] 
user32: Fix some compilation warnings in 64-bit mode.

17 years agokernel32: Fix some compilation warnings in 64-bit mode.
Dmitry Timoshkov [Wed, 30 May 2007 10:31:52 +0000 (19:31 +0900)] 
kernel32: Fix some compilation warnings in 64-bit mode.

17 years agokernel32: Store global arena base as a pointer.
Alexandre Julliard [Wed, 30 May 2007 11:23:30 +0000 (13:23 +0200)] 
kernel32: Store global arena base as a pointer.

17 years agowinedos: Merge a number of tiny source files into interrupts.c.
Alexandre Julliard [Wed, 30 May 2007 11:12:09 +0000 (13:12 +0200)] 
winedos: Merge a number of tiny source files into interrupts.c.

17 years agodmusic: Fix license headers that mistakenly use GPL instead of LGPL.
Alexandre Julliard [Wed, 30 May 2007 10:54:07 +0000 (12:54 +0200)] 
dmusic: Fix license headers that mistakenly use GPL instead of LGPL.

Confirmed by the original author and the major contributors.

17 years agowinex11.drv: Fix compilation warnings in 64-bit mode.
Dmitry Timoshkov [Wed, 30 May 2007 08:52:11 +0000 (17:52 +0900)] 
winex11.drv: Fix compilation warnings in 64-bit mode.

17 years agogdi32: Fix compilation warnings in 64-bit mode.
Dmitry Timoshkov [Wed, 30 May 2007 08:51:47 +0000 (17:51 +0900)] 
gdi32: Fix compilation warnings in 64-bit mode.

17 years agooleaut32: Fix the references in function descriptions returned for dual IDispatch...
Rob Shearman [Wed, 30 May 2007 08:01:22 +0000 (09:01 +0100)] 
oleaut32: Fix the references in function descriptions returned for dual IDispatch interfaces.

Do this by changing references from other interfaces (and possibly other
typelibs) to uniquely identify them.

Add special handling to GetRefTypeInfo to cope with this.

17 years agoinclude: Fix a typo in wincred.h.
Rob Shearman [Wed, 30 May 2007 08:00:26 +0000 (09:00 +0100)] 
include: Fix a typo in wincred.h.

The Attribute field of the CREDENTIALA/W structs should instead be
Attributes.

17 years agooleaut32: For automatic-value-getting in ITypeInfo::Invoke, it doesn't matter what...
Rob Shearman [Wed, 30 May 2007 07:59:44 +0000 (08:59 +0100)] 
oleaut32: For automatic-value-getting in ITypeInfo::Invoke, it doesn't matter what flag(s) the function was executed with, just what type of function is being invoked.

17 years agogdi32: Make SetDCHook 64-bit safe.
Dmitry Timoshkov [Wed, 30 May 2007 03:50:35 +0000 (12:50 +0900)] 
gdi32: Make SetDCHook 64-bit safe.

17 years agowincrypt: Fix typo.
Juan Lang [Wed, 30 May 2007 02:56:25 +0000 (19:56 -0700)] 
wincrypt: Fix typo.

17 years agowordpad: Add program icon.
Alexander Nicolaysen Sørnes [Tue, 29 May 2007 20:19:36 +0000 (22:19 +0200)] 
wordpad: Add program icon.

17 years agomsi: Perform a forced reboot if a custom action returns ERROR_INSTALL_SUSPEND.
James Hawkins [Tue, 29 May 2007 19:03:05 +0000 (12:03 -0700)] 
msi: Perform a forced reboot if a custom action returns ERROR_INSTALL_SUSPEND.

17 years agomsi: Set the MsiNTProductType property.
James Hawkins [Tue, 29 May 2007 21:13:59 +0000 (14:13 -0700)] 
msi: Set the MsiNTProductType property.

17 years agomsi: Fall back to checking if the cab exists if the volume name doesn't match.
James Hawkins [Tue, 29 May 2007 17:43:50 +0000 (10:43 -0700)] 
msi: Fall back to checking if the cab exists if the volume name doesn't match.

17 years agomsi: Create the destination directory if it doesn't exist when duplicating files.
James Hawkins [Tue, 29 May 2007 17:09:44 +0000 (10:09 -0700)] 
msi: Create the destination directory if it doesn't exist when duplicating files.

17 years agoserver: When starting a new process, use the token from the calling process, if one...
Rob Shearman [Mon, 28 May 2007 17:41:51 +0000 (18:41 +0100)] 
server: When starting a new process, use the token from the calling process, if one exists.

17 years agoserver: Move most of the duplicate_token request to a new function, token_duplicate...
Rob Shearman [Mon, 28 May 2007 17:39:33 +0000 (18:39 +0100)] 
server: Move most of the duplicate_token request to a new function, token_duplicate, to enable the code to be used inside wineserver.

17 years agoshell32/tests: Remove duplicate code.
Misha Koshelev [Mon, 28 May 2007 01:01:13 +0000 (20:01 -0500)] 
shell32/tests: Remove duplicate code.

17 years agoshell32: Handle default DDE application names.
Misha Koshelev [Mon, 28 May 2007 01:01:10 +0000 (20:01 -0500)] 
shell32: Handle default DDE application names.

17 years agoshell32/tests: Add tests for default DDE application name.
Misha Koshelev [Mon, 28 May 2007 01:01:06 +0000 (20:01 -0500)] 
shell32/tests: Add tests for default DDE application name.

17 years agoshell32: Fix execute_from_key to conform to native behavior.
Misha Koshelev [Mon, 28 May 2007 01:01:01 +0000 (20:01 -0500)] 
shell32: Fix execute_from_key to conform to native behavior.

17 years agoshell32/tests: Add tests for ShellExecute DDE behavior.
Misha Koshelev [Mon, 28 May 2007 01:00:52 +0000 (20:00 -0500)] 
shell32/tests: Add tests for ShellExecute DDE behavior.

17 years agokernel32: Remove the fixme about MB_USEGLYPHCHARS.
Alexandre Julliard [Tue, 29 May 2007 21:31:35 +0000 (23:31 +0200)] 
kernel32: Remove the fixme about MB_USEGLYPHCHARS.

17 years agolibwine: Add support for glyph chars mapping in OEM codepage tables.
Alexandre Julliard [Tue, 29 May 2007 21:31:14 +0000 (23:31 +0200)] 
libwine: Add support for glyph chars mapping in OEM codepage tables.

17 years agowininet: Fixed compilation without SSL.
Alexandre Julliard [Tue, 29 May 2007 21:27:08 +0000 (23:27 +0200)] 
wininet: Fixed compilation without SSL.

17 years agourlmon: There is no need to make slash conversion in BindToStorage as URL is already...
Jacek Caban [Tue, 29 May 2007 01:41:12 +0000 (03:41 +0200)] 
urlmon: There is no need to make slash conversion in BindToStorage as URL is already canonized in the constructor.

17 years agowinebuild: Mark builtin DLLs as IMAGE_FILE_LARGE_ADDRESS_AWARE on a 64-bit platform.
Dmitry Timoshkov [Mon, 28 May 2007 04:44:46 +0000 (13:44 +0900)] 
winebuild: Mark builtin DLLs as IMAGE_FILE_LARGE_ADDRESS_AWARE on a 64-bit platform.

17 years agowininet: Add a new NETCON_query_data_available function.
Rob Shearman [Mon, 28 May 2007 10:16:06 +0000 (11:16 +0100)] 
wininet: Add a new NETCON_query_data_available function.

Use it to implement the behaviour where InternetReadFileExA does a
synchronous request if the data is available and asynchronous otherwise.

17 years agowininet: Don't close the connection if the caller passes in zero for the number of...
Rob Shearman [Mon, 28 May 2007 10:13:36 +0000 (11:13 +0100)] 
wininet: Don't close the connection if the caller passes in zero for the number of bytes to be read.

Only close the connection when the bytes read equals the content length.

Fixup HTTP_DrainContent, which relied on the previous incorrect
behaviour to instead close connections with no content length manually.

17 years agoAssorted spelling fixes.
Francois Gouget [Sun, 27 May 2007 23:10:17 +0000 (01:10 +0200)] 
Assorted spelling fixes.

17 years agooleaut32/tests: Fix the Visual C++ double to float conversion warnings.
Francois Gouget [Sun, 27 May 2007 23:20:18 +0000 (01:20 +0200)] 
oleaut32/tests: Fix the Visual C++ double to float conversion warnings.

17 years agodsound/tests: Fix the Visual C++ double to float conversion warnings.
Francois Gouget [Sun, 27 May 2007 23:20:07 +0000 (01:20 +0200)] 
dsound/tests: Fix the Visual C++ double to float conversion warnings.

17 years agoddraw/tests: Fix the Visual C++ double to float conversion warnings.
Francois Gouget [Sun, 27 May 2007 23:20:03 +0000 (01:20 +0200)] 
ddraw/tests: Fix the Visual C++ double to float conversion warnings.

17 years agod3d9/tests: Fix the Visual C++ double to float conversion warnings.
Francois Gouget [Sun, 27 May 2007 23:19:58 +0000 (01:19 +0200)] 
d3d9/tests: Fix the Visual C++ double to float conversion warnings.

17 years agod3d8/tests: Fix the Visual C++ double to float conversion warnings.
Francois Gouget [Sun, 27 May 2007 23:19:48 +0000 (01:19 +0200)] 
d3d8/tests: Fix the Visual C++ double to float conversion warnings.

17 years agopsapi/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 23:17:28 +0000 (01:17 +0200)] 
psapi/tests: Fix a signed/unsigned int mismatch.

17 years agogdi32/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 23:17:34 +0000 (01:17 +0200)] 
gdi32/tests: Fix a signed/unsigned int mismatch.

17 years agontdll/tests: Remove an inappropriate const qualifier.
Francois Gouget [Sun, 27 May 2007 23:13:24 +0000 (01:13 +0200)] 
ntdll/tests: Remove an inappropriate const qualifier.

17 years agosetupapi/tests: There is no strncasecmp() on Windows. So use CompareString() instead.
Francois Gouget [Sun, 27 May 2007 23:12:12 +0000 (01:12 +0200)] 
setupapi/tests: There is no strncasecmp() on Windows. So use CompareString() instead.

17 years agorpcrt4/tests: Fix a Visual C++ double to float conversion warning.
Francois Gouget [Sun, 27 May 2007 23:17:17 +0000 (01:17 +0200)] 
rpcrt4/tests: Fix a Visual C++ double to float conversion warning.

17 years agorpcrt4/tests: Fix signed/unsigned and 32/64bit issues with the wiredatalen parameter.
Francois Gouget [Sun, 27 May 2007 23:11:20 +0000 (01:11 +0200)] 
rpcrt4/tests: Fix signed/unsigned and 32/64bit issues with the wiredatalen parameter.

17 years agowininet: Cope with non-nul-terminated header strings being passed to HttpSendRequestW.
Rob Shearman [Fri, 25 May 2007 11:07:26 +0000 (12:07 +0100)] 
wininet: Cope with non-nul-terminated header strings being passed to HttpSendRequestW.

17 years agowininet: Fix basic authentication by putting Basic directing into the scheme field...
Rob Shearman [Fri, 25 May 2007 11:06:11 +0000 (12:06 +0100)] 
wininet: Fix basic authentication by putting Basic directing into the scheme field, as the pszAuthValue can have an optional realm string appended.

17 years agoddraw/tests: Fix compilation with Visual C++ 2005.
Francois Gouget [Sun, 27 May 2007 14:08:39 +0000 (16:08 +0200)] 
ddraw/tests: Fix compilation with Visual C++ 2005.

17 years agoschannel: Use FIELD_OFFSET instead of offsetof.
Alexandre Julliard [Tue, 29 May 2007 11:25:50 +0000 (13:25 +0200)] 
schannel: Use FIELD_OFFSET instead of offsetof.

17 years agoschannel: Fix the name of the SetContextAttributes field of SECPKG_FUNCTION_TABLE.
Francois Gouget [Sun, 27 May 2007 11:36:48 +0000 (13:36 +0200)] 
schannel: Fix the name of the SetContextAttributes field of SECPKG_FUNCTION_TABLE.

17 years agoschannel: The PSDK defines no SECPKG_FUNCTION_TABLE_SIZE_* macro.
Francois Gouget [Sun, 27 May 2007 11:36:30 +0000 (13:36 +0200)] 
schannel: The PSDK defines no SECPKG_FUNCTION_TABLE_SIZE_* macro.

17 years agoinclude: The PSDK does not define the DEFINE_SHLGUID() macro anymore.
Francois Gouget [Sun, 27 May 2007 11:37:55 +0000 (13:37 +0200)] 
include: The PSDK does not define the DEFINE_SHLGUID() macro anymore.

17 years agoshlwapi/tests: The PSDK does not define IID_IDelayedRelease anymore.
Francois Gouget [Sun, 27 May 2007 11:37:37 +0000 (13:37 +0200)] 
shlwapi/tests: The PSDK does not define IID_IDelayedRelease anymore.

17 years agoshell32/tests: With recent PSDKs, CSIDL_MYDOCUMENTS is a synonym for CSIDL_PERSONAL...
Francois Gouget [Sun, 27 May 2007 11:37:14 +0000 (13:37 +0200)] 
shell32/tests: With recent PSDKs, CSIDL_MYDOCUMENTS is a synonym for CSIDL_PERSONAL. So define our own constant.

17 years agoIn the PSDK HRESULT_FROM_WIN32() is now an inline function, and it is __HRESULT_FROM_...
Francois Gouget [Sun, 27 May 2007 11:28:58 +0000 (13:28 +0200)] 
In the PSDK HRESULT_FROM_WIN32() is now an inline function, and it is __HRESULT_FROM_WIN32() which is a macro.

17 years agoddraw: Fix the name of DDSPD_IUNKNOWNPOINTER.
Francois Gouget [Sun, 27 May 2007 11:24:21 +0000 (13:24 +0200)] 
ddraw: Fix the name of DDSPD_IUNKNOWNPOINTER.

17 years agocomctl32/tests: The PSDK does not define ListView_InsertItemA() so don't use it.
Francois Gouget [Sun, 27 May 2007 11:31:21 +0000 (13:31 +0200)] 
comctl32/tests: The PSDK does not define ListView_InsertItemA() so don't use it.

17 years agokernel32/tests: src[i] is a char so there is no point trying to stuff 0xcafedead...
Francois Gouget [Sun, 27 May 2007 11:30:42 +0000 (13:30 +0200)] 
kernel32/tests: src[i] is a char so there is no point trying to stuff 0xcafedead into it.

17 years agod3d9/tests: Fix compilation with Visual C++ 2005.
Francois Gouget [Sun, 27 May 2007 11:25:46 +0000 (13:25 +0200)] 
d3d9/tests: Fix compilation with Visual C++ 2005.

17 years agoshell32/tests: We need NTDDI_VERSION >= NTDDI_WINXPSP1 to get SEE_MASK_NOZONECHECKS...
Francois Gouget [Sun, 27 May 2007 11:23:37 +0000 (13:23 +0200)] 
shell32/tests: We need NTDDI_VERSION >= NTDDI_WINXPSP1 to get SEE_MASK_NOZONECHECKS with the PSDK.

17 years agouser32/tests: SWP_STATECHANGED is an undocumented flag so define it ourselves. Fixes...
Francois Gouget [Sun, 27 May 2007 11:22:25 +0000 (13:22 +0200)] 
user32/tests: SWP_STATECHANGED is an undocumented flag so define it ourselves. Fixes compilation with the PSDK.

17 years agomsvcrt/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 11:19:10 +0000 (13:19 +0200)] 
msvcrt/tests: Fix a signed/unsigned int mismatch.

17 years agomsi/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 11:18:49 +0000 (13:18 +0200)] 
msi/tests: Fix a signed/unsigned int mismatch.

17 years agokernel32/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 11:18:36 +0000 (13:18 +0200)] 
kernel32/tests: Fix a signed/unsigned int mismatch.

17 years agousp10/tests: Fix a signed/unsigned int mismatch.
Francois Gouget [Sun, 27 May 2007 11:17:56 +0000 (13:17 +0200)] 
usp10/tests: Fix a signed/unsigned int mismatch.

17 years agowinex11.drv: Exclude unused headers.
Andrew Talbot [Fri, 25 May 2007 14:38:17 +0000 (15:38 +0100)] 
winex11.drv: Exclude unused headers.

17 years agowininet: Exclude unused headers.
Andrew Talbot [Fri, 25 May 2007 14:38:21 +0000 (15:38 +0100)] 
wininet: Exclude unused headers.

17 years agowineps.drv: Exclude unused headers.
Andrew Talbot [Fri, 25 May 2007 14:38:14 +0000 (15:38 +0100)] 
wineps.drv: Exclude unused headers.

17 years agomsxml3: Fixed compilation without libxml.
Alexandre Julliard [Tue, 29 May 2007 10:05:20 +0000 (12:05 +0200)] 
msxml3: Fixed compilation without libxml.

17 years agomsg711.acm: Constify some variables.
Andrew Talbot [Mon, 28 May 2007 17:11:40 +0000 (18:11 +0100)] 
msg711.acm: Constify some variables.

17 years agomscms: Constify some variables.
Andrew Talbot [Mon, 28 May 2007 17:11:29 +0000 (18:11 +0100)] 
mscms: Constify some variables.

17 years agomsdmo: Constify some variables.
Andrew Talbot [Mon, 28 May 2007 17:11:33 +0000 (18:11 +0100)] 
msdmo: Constify some variables.

17 years agogdiplus: Added stub implementation of gdiplus.dll.
Evan Stade [Fri, 25 May 2007 17:21:44 +0000 (10:21 -0700)] 
gdiplus: Added stub implementation of gdiplus.dll.

17 years agooleaut32: Add support for loading and drawing metafiles.
Dmitry Timoshkov [Mon, 28 May 2007 07:22:46 +0000 (16:22 +0900)] 
oleaut32: Add support for loading and drawing metafiles.

17 years agogdi32: Perform consistency checks when loading an EMF, add a test case.
Dmitry Timoshkov [Mon, 28 May 2007 07:21:58 +0000 (16:21 +0900)] 
gdi32: Perform consistency checks when loading an EMF, add a test case.

17 years agoddraw: Do not crash when Clipper is NULL.
Detlef Riekenberg [Sun, 27 May 2007 23:02:38 +0000 (01:02 +0200)] 
ddraw: Do not crash when Clipper is NULL.

17 years agolocalui/tests: Handle different results from XP.
Detlef Riekenberg [Sun, 27 May 2007 22:57:35 +0000 (00:57 +0200)] 
localui/tests: Handle different results from XP.

17 years agodsound: Fix stupid mistake.
Maarten Lankhorst [Sat, 26 May 2007 17:13:25 +0000 (19:13 +0200)] 
dsound: Fix stupid mistake.

17 years agompr: Constify some variables.
Andrew Talbot [Sat, 26 May 2007 22:23:10 +0000 (23:23 +0100)] 
mpr: Constify some variables.

17 years agomciwave: Constify a variable.
Andrew Talbot [Sat, 26 May 2007 16:55:33 +0000 (17:55 +0100)] 
mciwave: Constify a variable.

17 years agowininet: Pass context to InitializeSecurityContext in second parameter.
Rob Shearman [Sat, 26 May 2007 07:49:12 +0000 (08:49 +0100)] 
wininet: Pass context to InitializeSecurityContext in second parameter.

Otherwise, the call will now fail with SEC_E_INVALID_HANDLE.

17 years agosetupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog...
Rob Shearman [Sat, 26 May 2007 08:05:13 +0000 (09:05 +0100)] 
setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file.

17 years agows2_32: Make WS2_send trace more readble.
Kai Blin [Fri, 25 May 2007 23:11:39 +0000 (01:11 +0200)] 
ws2_32: Make WS2_send trace more readble.

17 years agosecur32: Downgrade WARN to TRACE, fix another TRACE.
Kai Blin [Fri, 25 May 2007 23:11:46 +0000 (01:11 +0200)] 
secur32: Downgrade WARN to TRACE, fix another TRACE.

17 years agowinmm: Exclude unused headers.
Andrew Talbot [Fri, 25 May 2007 16:51:45 +0000 (17:51 +0100)] 
winmm: Exclude unused headers.

17 years agows2_32: Exclude unused headers.
Andrew Talbot [Fri, 25 May 2007 16:51:53 +0000 (17:51 +0100)] 
ws2_32: Exclude unused headers.

17 years agocrypt32: Remove wrong test and parameter check.
Juan Lang [Thu, 24 May 2007 23:43:49 +0000 (16:43 -0700)] 
crypt32: Remove wrong test and parameter check.

17 years agowine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.
Dmitry Timoshkov [Thu, 24 May 2007 14:41:17 +0000 (23:41 +0900)] 
wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.