wine
15 years agoole32/tests: Fix marshalling data layout for Win64.
Alexandre Julliard [Sat, 10 Jan 2009 20:06:09 +0000 (21:06 +0100)] 
ole32/tests: Fix marshalling data layout for Win64.

15 years agogdi32/tests: Fix an uninitialized value check and a structure size for Win64.
Alexandre Julliard [Sat, 10 Jan 2009 20:05:52 +0000 (21:05 +0100)] 
gdi32/tests: Fix an uninitialized value check and a structure size for Win64.

15 years agocomctl32/tests: Fix lparam checks in the treeview test for Win64.
Alexandre Julliard [Sat, 10 Jan 2009 20:05:32 +0000 (21:05 +0100)] 
comctl32/tests: Fix lparam checks in the treeview test for Win64.

15 years agocomctl32: Fix the COMBOBOXEXITEM structure and the treeview handles for Win64.
Alexandre Julliard [Sat, 10 Jan 2009 20:05:17 +0000 (21:05 +0100)] 
comctl32: Fix the COMBOBOXEXITEM structure and the treeview handles for Win64.

15 years agowinefile: Fix NULL pointer deref in read_tree.
Rich Ercolani [Sat, 10 Jan 2009 09:48:54 +0000 (04:48 -0500)] 
winefile: Fix NULL pointer deref in read_tree.

15 years agowined3d: Add a checkGLcall() after glReadBuffer.
Rico Schüller [Fri, 9 Jan 2009 10:23:04 +0000 (11:23 +0100)] 
wined3d: Add a checkGLcall() after glReadBuffer.

15 years agowined3d: Add code to cleanup device multistate_funcs.
Allan Tong [Wed, 7 Jan 2009 01:20:08 +0000 (20:20 -0500)] 
wined3d: Add code to cleanup device multistate_funcs.

15 years agowinex11: Select StructureNotifyMask input on all windows.
Vincent Povirk [Tue, 16 Dec 2008 00:47:24 +0000 (18:47 -0600)] 
winex11: Select StructureNotifyMask input on all windows.

15 years agourlmon/tests: Skip a couple of tests when IE is running in Enhanced Security Configur...
Ge van Geldorp [Thu, 8 Jan 2009 12:34:42 +0000 (13:34 +0100)] 
urlmon/tests: Skip a couple of tests when IE is running in Enhanced Security Configuration.

15 years agomshtml/tests: Skip a couple of tests when IE is running in Enhanced Security Configur...
Ge van Geldorp [Thu, 8 Jan 2009 12:34:42 +0000 (13:34 +0100)] 
mshtml/tests: Skip a couple of tests when IE is running in Enhanced Security Configuration.

15 years agowidl: Move "inline" right after the storage class specifier.
Michael Stefaniuc [Sat, 10 Jan 2009 01:43:54 +0000 (02:43 +0100)] 
widl: Move "inline" right after the storage class specifier.

15 years agoinclude: Change from long to LONG in the remaining DirectMusic headers.
Michael Stefaniuc [Sat, 10 Jan 2009 01:45:24 +0000 (02:45 +0100)] 
include: Change from long to LONG in the remaining DirectMusic headers.

15 years agoinclude: Use LONG instead of long in dmusics.h for Win64 compatibility.
Michael Stefaniuc [Sat, 10 Jan 2009 01:45:10 +0000 (02:45 +0100)] 
include: Use LONG instead of long in dmusics.h for Win64 compatibility.

15 years agoinclude: Change to LONG/ULONG in xcmc.h for Win64 compatibility.
Michael Stefaniuc [Sat, 10 Jan 2009 01:45:44 +0000 (02:45 +0100)] 
include: Change to LONG/ULONG in xcmc.h for Win64 compatibility.

15 years agoinclude: Change to ULONG in dmerror.h for Win64 compatibility.
Michael Stefaniuc [Sat, 10 Jan 2009 01:45:33 +0000 (02:45 +0100)] 
include: Change to ULONG in dmerror.h for Win64 compatibility.

15 years agoinclude: Use LONG instead of long in msacmdrv.h.
Michael Stefaniuc [Sat, 10 Jan 2009 01:45:55 +0000 (02:45 +0100)] 
include: Use LONG instead of long in msacmdrv.h.

15 years agoinclude: Use LONG instead of long in dmusici.h for Win64 compatibility.
Michael Stefaniuc [Sat, 10 Jan 2009 01:44:57 +0000 (02:44 +0100)] 
include: Use LONG instead of long in dmusici.h for Win64 compatibility.

15 years agoinclude: Change MUSIC_TIME from long to LONG for Win64 compatibility.
Michael Stefaniuc [Sat, 10 Jan 2009 01:44:41 +0000 (02:44 +0100)] 
include: Change MUSIC_TIME from long to LONG for Win64 compatibility.

Fix also 192 printf format warnings produced by this change.

15 years agoddrawex: Remove redundant NULL check before HeapFree (Smatch).
Michael Stefaniuc [Sat, 10 Jan 2009 01:43:44 +0000 (02:43 +0100)] 
ddrawex: Remove redundant NULL check before HeapFree (Smatch).

15 years agoddraw: Fix double unlock of critical section.
Andrew Talbot [Fri, 9 Jan 2009 22:09:07 +0000 (22:09 +0000)] 
ddraw: Fix double unlock of critical section.

15 years agoconfigure: Check for HAL and GnuTLS even if pkg-config is not present.
Francois Gouget [Fri, 9 Jan 2009 19:22:22 +0000 (20:22 +0100)] 
configure: Check for HAL and GnuTLS even if pkg-config is not present.

15 years agoriched20: Add stub IOleClientSite interface.
Juan Lang [Fri, 9 Jan 2009 17:08:35 +0000 (09:08 -0800)] 
riched20: Add stub IOleClientSite interface.

15 years agocryptui: Don't make certificate status control disabled.
Juan Lang [Fri, 9 Jan 2009 16:31:51 +0000 (08:31 -0800)] 
cryptui: Don't make certificate status control disabled.

This allows using the scrollbar when there are lots of usages set for
the certificate.

15 years agocryptui: Improve control spacing.
Juan Lang [Fri, 9 Jan 2009 16:26:41 +0000 (08:26 -0800)] 
cryptui: Improve control spacing.

This makes the two static control borders between the three regions on
the general page appear to be the same height.

15 years agosetupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA.
Alexandre Julliard [Fri, 9 Jan 2009 22:22:42 +0000 (23:22 +0100)] 
setupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA.

15 years agoshell32/tests: Fix some uninitialized handle checks for Win64.
Alexandre Julliard [Fri, 9 Jan 2009 17:09:03 +0000 (18:09 +0100)] 
shell32/tests: Fix some uninitialized handle checks for Win64.

15 years agorpcrt4/tests: Fix an uninitialized pointer check for Win64.
Alexandre Julliard [Fri, 9 Jan 2009 17:08:57 +0000 (18:08 +0100)] 
rpcrt4/tests: Fix an uninitialized pointer check for Win64.

15 years agogdi32/tests: Fix an uninitialized pointer check for Win64.
Alexandre Julliard [Fri, 9 Jan 2009 17:08:50 +0000 (18:08 +0100)] 
gdi32/tests: Fix an uninitialized pointer check for Win64.

15 years agoinclude: Fix a number of mmsystem.h structure for Win64.
Alexandre Julliard [Fri, 9 Jan 2009 16:46:46 +0000 (17:46 +0100)] 
include: Fix a number of mmsystem.h structure for Win64.

15 years agoinclude: Fix packing of the msacm structures.
Alexandre Julliard [Fri, 9 Jan 2009 16:46:36 +0000 (17:46 +0100)] 
include: Fix packing of the msacm structures.

15 years agoinclude: Fix packing of the STRRET structure.
Alexandre Julliard [Fri, 9 Jan 2009 16:46:24 +0000 (17:46 +0100)] 
include: Fix packing of the STRRET structure.

15 years agoddrawex: Add a test for the permanent DC function.
Stefan Dösinger [Thu, 18 Dec 2008 15:43:06 +0000 (16:43 +0100)] 
ddrawex: Add a test for the permanent DC function.

15 years agoddrawex: Make the GetDC test more generic.
Stefan Dösinger [Thu, 18 Dec 2008 15:16:33 +0000 (16:16 +0100)] 
ddrawex: Make the GetDC test more generic.

15 years agoddrawex: Implement a GetDC special behavior Internet Explorer depends on.
Stefan Dösinger [Thu, 18 Dec 2008 15:13:06 +0000 (16:13 +0100)] 
ddrawex: Implement a GetDC special behavior Internet Explorer depends on.

Tests show that in ddrawex.dll it is legal to create a surface with
both DDSCAPS_VIDEOMEMORY and DDSCAPS_SYSTEMMEMORY flag set. A surface
created that way shows different behavior in IDirectDrawSurface::GetDC.

15 years agoddrawex: Create a surface wrapper.
Stefan Dösinger [Thu, 18 Dec 2008 14:40:55 +0000 (15:40 +0100)] 
ddrawex: Create a surface wrapper.

15 years agoddrawex: Add a refcount test.
Stefan Dösinger [Wed, 7 Jan 2009 12:48:17 +0000 (13:48 +0100)] 
ddrawex: Add a refcount test.

15 years agoddraw[ex]: Show a caps handling difference.
Stefan Dösinger [Fri, 9 Jan 2009 11:32:24 +0000 (12:32 +0100)] 
ddraw[ex]: Show a caps handling difference.

15 years agoddrawex: Start some tests.
Stefan Dösinger [Fri, 9 Jan 2009 11:24:49 +0000 (12:24 +0100)] 
ddrawex: Start some tests.

15 years agoddrawex: Implement a wrapper around IDirectDraw.
Stefan Dösinger [Fri, 9 Jan 2009 11:23:17 +0000 (12:23 +0100)] 
ddrawex: Implement a wrapper around IDirectDraw.

This allows us to cleanly implement the differences between ddraw.dll and
ddrawex.dll without private functions and if checks if an object was created
by ddraw or ddrawex. A similar wrapper will be added for IDirectDrawSurface.

15 years agolocalspl: Call DrvDriverEvent in AddPrinterDriverEx.
Detlef Riekenberg [Thu, 8 Jan 2009 14:11:29 +0000 (15:11 +0100)] 
localspl: Call DrvDriverEvent in AddPrinterDriverEx.

15 years agoiphlpapi: Remove unused function.
Andrew Talbot [Thu, 8 Jan 2009 20:15:00 +0000 (20:15 +0000)] 
iphlpapi: Remove unused function.

15 years agoshell32: Add stub for ordinal 526.
Stefan Leichter [Fri, 9 Jan 2009 11:26:40 +0000 (12:26 +0100)] 
shell32: Add stub for ordinal 526.

15 years agomshtml: Implement IHTMLStyle get/set Attribute.
Alistair Leslie-Hughes [Mon, 5 Jan 2009 10:22:35 +0000 (21:22 +1100)] 
mshtml: Implement IHTMLStyle get/set Attribute.

15 years agocryptui: Fix crash with native riched20.
Juan Lang [Fri, 9 Jan 2009 05:06:34 +0000 (21:06 -0800)] 
cryptui: Fix crash with native riched20.

15 years agocryptui: Call CryptUIWizImport from the certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 17:45:41 +0000 (09:45 -0800)] 
cryptui: Call CryptUIWizImport from the certificate manager dialog.

15 years agocryptui: Set appropriate radio button in CryptUIWizImport if the destination store...
Juan Lang [Thu, 8 Jan 2009 17:43:47 +0000 (09:43 -0800)] 
cryptui: Set appropriate radio button in CryptUIWizImport if the destination store is specified.

15 years agocryptui: Implement removing certificates from certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 17:43:22 +0000 (09:43 -0800)] 
cryptui: Implement removing certificates from certificate manager dialog.

15 years agocryptui: Show usages for selected cert in certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 01:46:17 +0000 (17:46 -0800)] 
cryptui: Show usages for selected cert in certificate manager dialog.

15 years agocryptui: Show selected certificate when requested in the certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 01:45:58 +0000 (17:45 -0800)] 
cryptui: Show selected certificate when requested in the certificate manager dialog.

15 years agocryptui: Enable/disable controls based on selection in certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 01:45:41 +0000 (17:45 -0800)] 
cryptui: Enable/disable controls based on selection in certificate manager dialog.

15 years agocryptui: Filter shown certs according to purpose selection in certificate manager...
Juan Lang [Thu, 8 Jan 2009 01:02:05 +0000 (17:02 -0800)] 
cryptui: Filter shown certs according to purpose selection in certificate manager dialog.

15 years agocryptui: Refresh cert view when purpose selection is changed in the certificate manag...
Juan Lang [Thu, 8 Jan 2009 01:01:40 +0000 (17:01 -0800)] 
cryptui: Refresh cert view when purpose selection is changed in the certificate manager dialog.

15 years agocryptui: Add saved purposes to the purpose selection in the certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 01:00:56 +0000 (17:00 -0800)] 
cryptui: Add saved purposes to the purpose selection in the certificate manager dialog.

15 years agocryptui: Save purposes in certificate manager dialog's advanced dialog.
Juan Lang [Thu, 8 Jan 2009 00:58:51 +0000 (16:58 -0800)] 
cryptui: Save purposes in certificate manager dialog's advanced dialog.

15 years agocryptui: Recall usage state from registry in certificate manager dialog's advanced...
Juan Lang [Thu, 8 Jan 2009 00:32:45 +0000 (16:32 -0800)] 
cryptui: Recall usage state from registry in certificate manager dialog's advanced dialog.

15 years agocryptui: Allow toggling a usage in the certificate manager dialog's advanced dialog.
Juan Lang [Thu, 8 Jan 2009 00:32:00 +0000 (16:32 -0800)] 
cryptui: Allow toggling a usage in the certificate manager dialog's advanced dialog.

15 years agocryptui: Add known usages to certificate manager dialog's advanced dialog.
Juan Lang [Thu, 8 Jan 2009 00:31:27 +0000 (16:31 -0800)] 
cryptui: Add known usages to certificate manager dialog's advanced dialog.

15 years agocryptui: Add a (empty) advanced dialog to the certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 00:31:01 +0000 (16:31 -0800)] 
cryptui: Add a (empty) advanced dialog to the certificate manager dialog.

15 years agocryptui: Refresh store display when a tab is switched or the purpose selection is...
Juan Lang [Thu, 8 Jan 2009 00:29:19 +0000 (16:29 -0800)] 
cryptui: Refresh store display when a tab is switched or the purpose selection is changed in the certificate manager dialog.

15 years agocryptui: Display contents of certificate store in certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 00:20:25 +0000 (16:20 -0800)] 
cryptui: Display contents of certificate store in certificate manager dialog.

15 years agocryptui: Show names of stores certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 00:18:46 +0000 (16:18 -0800)] 
cryptui: Show names of stores certificate manager dialog.

15 years agocryptui: Add purpose selection and column headings to certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 00:16:42 +0000 (16:16 -0800)] 
cryptui: Add purpose selection and column headings to certificate manager dialog.

15 years agocryptui: Add a (empty) certificate manager dialog.
Juan Lang [Thu, 8 Jan 2009 00:15:05 +0000 (16:15 -0800)] 
cryptui: Add a (empty) certificate manager dialog.

15 years agomshtml: Declare a function static.
Andrew Talbot [Thu, 8 Jan 2009 21:30:57 +0000 (21:30 +0000)] 
mshtml: Declare a function static.

15 years agod3dxof: Declare a function static.
Andrew Talbot [Thu, 8 Jan 2009 21:43:24 +0000 (21:43 +0000)] 
d3dxof: Declare a function static.

15 years agomsacm32: Declare a variable static.
Andrew Talbot [Thu, 8 Jan 2009 21:30:53 +0000 (21:30 +0000)] 
msacm32: Declare a variable static.

15 years agoshell32/tests: Skip a test on Vista.
Paul Vriens [Fri, 9 Jan 2009 06:46:11 +0000 (07:46 +0100)] 
shell32/tests: Skip a test on Vista.

15 years agoshell32/tests: Fix test failures on Vista.
Paul Vriens [Thu, 8 Jan 2009 20:44:44 +0000 (21:44 +0100)] 
shell32/tests: Fix test failures on Vista.

15 years agoshell32/tests: Fix remaining test failures on NT4.
Paul Vriens [Thu, 8 Jan 2009 20:34:21 +0000 (21:34 +0100)] 
shell32/tests: Fix remaining test failures on NT4.

15 years agoshell32/tests: Fix some test failures on Vista.
Paul Vriens [Thu, 8 Jan 2009 16:48:07 +0000 (17:48 +0100)] 
shell32/tests: Fix some test failures on Vista.

15 years agoshell32/tests: Fix some errors on NT4 (FO_DELETE).
Paul Vriens [Thu, 8 Jan 2009 16:38:56 +0000 (17:38 +0100)] 
shell32/tests: Fix some errors on NT4 (FO_DELETE).

15 years agoshell32/tests: Fix the last test failure on Win9x.
Paul Vriens [Thu, 8 Jan 2009 16:09:44 +0000 (17:09 +0100)] 
shell32/tests: Fix the last test failure on Win9x.

15 years agoinclude: Fix packing of the setupapi structures.
Alexandre Julliard [Fri, 9 Jan 2009 13:03:57 +0000 (14:03 +0100)] 
include: Fix packing of the setupapi structures.

15 years agooleaut32/tests: Only compare the initialized part of DECIMAL variants.
Alexandre Julliard [Fri, 9 Jan 2009 13:03:30 +0000 (14:03 +0100)] 
oleaut32/tests: Only compare the initialized part of DECIMAL variants.

15 years agowined3d: Remove stray tabs.
Henri Verbeet [Fri, 9 Jan 2009 09:23:43 +0000 (10:23 +0100)] 
wined3d: Remove stray tabs.

15 years agowined3d: Rewrite BeginStateBlock() to use CreateStateBlock() instead of duplicating...
Henri Verbeet [Fri, 9 Jan 2009 09:23:43 +0000 (10:23 +0100)] 
wined3d: Rewrite BeginStateBlock() to use CreateStateBlock() instead of duplicating the code.

15 years agowined3d: Remove a silly check in drawStridedInstanced().
Henri Verbeet [Fri, 9 Jan 2009 09:23:42 +0000 (10:23 +0100)] 
wined3d: Remove a silly check in drawStridedInstanced().

15 years agowined3d: Simplify checking if an attribute is used in loadNumberedArrays().
Henri Verbeet [Fri, 9 Jan 2009 09:23:42 +0000 (10:23 +0100)] 
wined3d: Simplify checking if an attribute is used in loadNumberedArrays().

15 years agowined3d: Failing HeapAlloc() should be an ERR.
Henri Verbeet [Fri, 9 Jan 2009 09:23:42 +0000 (10:23 +0100)] 
wined3d: Failing HeapAlloc() should be an ERR.

15 years agowined3d: Use GL_ALIASED_POINT_SIZE_RANGE to retrieve the max point size.
Henri Verbeet [Fri, 9 Jan 2009 09:23:42 +0000 (10:23 +0100)] 
wined3d: Use GL_ALIASED_POINT_SIZE_RANGE to retrieve the max point size.

15 years agokernel32: Fix the sysctl() usage and the CPU detection on NetBSD.
Francois Gouget [Fri, 9 Jan 2009 08:34:55 +0000 (09:34 +0100)] 
kernel32: Fix the sysctl() usage and the CPU detection on NetBSD.

15 years agoxinput1_3/tests: Add a trailing '\n' to an ok() call.
Francois Gouget [Thu, 8 Jan 2009 18:23:16 +0000 (19:23 +0100)] 
xinput1_3/tests: Add a trailing '\n' to an ok() call.

15 years agosetupapi: Fix the StringTableLookUpStringEx() prototype.
Francois Gouget [Thu, 8 Jan 2009 18:23:08 +0000 (19:23 +0100)] 
setupapi: Fix the StringTableLookUpStringEx() prototype.

15 years agowordpad: Use unicode version of CBEM_GETITEM message.
Dylan Smith [Thu, 8 Jan 2009 19:17:55 +0000 (14:17 -0500)] 
wordpad: Use unicode version of CBEM_GETITEM message.

15 years agowordpad: Use winelib's sprintfW for floating point formatting.
Dylan Smith [Thu, 8 Jan 2009 18:15:33 +0000 (13:15 -0500)] 
wordpad: Use winelib's sprintfW for floating point formatting.

This fixes a regression introduced by commit
ef23ef93357689335749310957f68a3ad9179d4a.

15 years agoole32: Some tests for IMoniker::IsRunning with NULL args.
Nikolay Sivov [Thu, 8 Jan 2009 16:39:04 +0000 (19:39 +0300)] 
ole32: Some tests for IMoniker::IsRunning with NULL args.

15 years agoole32: Fix some comment typos.
Nikolay Sivov [Thu, 8 Jan 2009 15:14:55 +0000 (18:14 +0300)] 
ole32: Fix some comment typos.

15 years agorichedit: Missing condition for inserting newline before table.
Dylan Smith [Thu, 8 Jan 2009 14:14:10 +0000 (09:14 -0500)] 
richedit: Missing condition for inserting newline before table.

This case occurs when the cursor is at the start of the table, the
table is at the start of the text, and there is no selection.

15 years agowinhlp32: Make some functions static in macro.c.
Francois Gouget [Thu, 8 Jan 2009 13:16:50 +0000 (14:16 +0100)] 
winhlp32: Make some functions static in macro.c.

15 years agowinhlp32: Reorder some functions to avoid forward declarations in macro.c.
Francois Gouget [Thu, 8 Jan 2009 13:16:40 +0000 (14:16 +0100)] 
winhlp32: Reorder some functions to avoid forward declarations in macro.c.

15 years agowinedbg: Fix pointer cast warnings on 64-bit.
Alexandre Julliard [Thu, 8 Jan 2009 16:34:26 +0000 (17:34 +0100)] 
winedbg: Fix pointer cast warnings on 64-bit.

15 years agowinhlp32: Use GetWindowLongPtr to retrieve a pointer, and make sure there is enough...
Alexandre Julliard [Thu, 8 Jan 2009 16:34:08 +0000 (17:34 +0100)] 
winhlp32: Use GetWindowLongPtr to retrieve a pointer, and make sure there is enough space for it.

15 years agowinhlp32: Use LONG instead of long for data loaded from a file.
Alexandre Julliard [Thu, 8 Jan 2009 16:33:44 +0000 (17:33 +0100)] 
winhlp32: Use LONG instead of long for data loaded from a file.

15 years agowineconsole: Replace a couple of handle casts by the appropriate server function.
Alexandre Julliard [Thu, 8 Jan 2009 16:33:07 +0000 (17:33 +0100)] 
wineconsole: Replace a couple of handle casts by the appropriate server function.

15 years agoquartz: Use SetWindowLongPtr to store a pointer value.
Alexandre Julliard [Thu, 8 Jan 2009 16:30:57 +0000 (17:30 +0100)] 
quartz: Use SetWindowLongPtr to store a pointer value.

15 years agoddraw: Fix an uninitialized variable warning on non-i386.
Alexandre Julliard [Thu, 8 Jan 2009 16:30:22 +0000 (17:30 +0100)] 
ddraw: Fix an uninitialized variable warning on non-i386.

15 years agorpcrt4: Fix an unused value warning on non-i386.
Alexandre Julliard [Thu, 8 Jan 2009 16:30:09 +0000 (17:30 +0100)] 
rpcrt4: Fix an unused value warning on non-i386.

15 years agomsvcrt: Fix an unused function warning on non-i386.
Alexandre Julliard [Thu, 8 Jan 2009 16:29:59 +0000 (17:29 +0100)] 
msvcrt: Fix an unused function warning on non-i386.

15 years agows2_32: Fix an error return value in bind().
Alexandre Julliard [Thu, 8 Jan 2009 16:29:27 +0000 (17:29 +0100)] 
ws2_32: Fix an error return value in bind().

15 years agowineps.drv: Use INT_MAX instead of LONG_MAX to initialize a LONG value.
Alexandre Julliard [Thu, 8 Jan 2009 16:29:14 +0000 (17:29 +0100)] 
wineps.drv: Use INT_MAX instead of LONG_MAX to initialize a LONG value.