Commit Graph

65 Commits

Author SHA1 Message Date
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Ivan Leo Puoti 5b22e4d6ef Fix some wrong prototypes. 2005-11-03 11:35:11 +00:00
Detlef Riekenberg 2ee26f2145 Updated trace to support VERSIONED_PRINTER. 2005-10-26 12:05:17 +00:00
James Hawkins 0eddf4341f Check the size of the input buffer so we don't write past the end. 2005-10-04 11:30:20 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard 37871ce3f1 Store the result of the A/W conversions in the extra buffer space. 2005-08-29 15:10:02 +00:00
Paul Vriens 31d0e7421e Reserve extra space for conversions. 2005-08-29 14:17:27 +00:00
Alexandre Julliard 2bacc4631c Don't convert the return value on failure in VerQueryValueA/W. 2005-08-03 11:04:13 +00:00
Paul Vriens 5b2810bb2b Remove the no longer used ConvertVersionInfo32To16 function.
Add a (forgotten) RtlFreeUnicodeString.
2005-07-30 19:04:01 +00:00
Paul Vriens 111a913d5e Cleanup whitespace.
Conversion fixes.
2005-07-29 14:15:56 +00:00
Paul Vriens 00d8112196 New function VersionInfo32_QueryValue.
Made functions static.
2005-07-28 18:32:32 +00:00
Paul Vriens 72fba73ada VerQueryValue returns BOOL not DWORD. 2005-07-28 10:47:37 +00:00
Paul Vriens c232ce43e2 Cleanup print_vffi_debug. 2005-07-28 10:14:08 +00:00
Paul Vriens e5503f96c1 Remove 32bit references/checks in VERSION_GetFileVersionInfo_16. 2005-07-27 15:14:33 +00:00
Paul Vriens a16fcbe5ba Remove wrong check. 2005-07-27 12:05:38 +00:00
Paul Vriens 98e33334ae Rename bText to wType. 2005-07-26 18:25:34 +00:00
Paul Vriens b296b04230 Forward GetFileVersionInfoA to GetFileVersionInfoW. 2005-07-26 15:50:17 +00:00
Paul Vriens 8e541c8aeb Add tests for VerQueryValue[AW].
Don't convert the struct to a win16 one in GetFileVersionInfoA.
Convert the struct to win16 in VerQueryValueA (for now).
2005-07-20 10:29:29 +00:00
Robert Reif 18a1a6e194 Prevent crash from invalid last parameter in GetFileVersionInfo.
Prevent crash in VerQueryValue when return size not requested.
GetFileVersionInfo and VerQueryValue parameter tests added.
2005-01-04 20:35:46 +00:00
Dmitry Timoshkov 55cc226d82 Set last error values compatible with Win9x implementation
of GetFileVersionInfoSize, Quicken installer depends on it.
2004-08-31 17:31:40 +00:00
Dmitry Timoshkov 97551bcef5 Try to avoid loading 16-bit DLLs into memory for accessing version
info, this might lead to undesired side effects like loading a bunch
of other 16-bit DLLs.
2004-08-26 18:10:24 +00:00
Eric Pouech df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +00:00
Alexandre Julliard 82398e10c1 Set last error to 0 on success in VERSION_GetFileVersionInfo_PE now
that LoadLibraryW doesn't do this anymore.
2004-04-12 23:33:08 +00:00
Stefan Leichter 1ce19853c1 Moved implementation of GetFileVersionInfoSize from ascii to unicode,
fixed failing, crashing test cases.
2004-04-05 22:51:37 +00:00
Robert Shearman bcc80032ab Allow VerQueryValueW to query 16-bit resources. 2004-01-28 20:06:14 +00:00
Dimitrie O. Paun b99ab2dd18 Merge documentation/status/version into the version code. 2003-09-27 02:22:21 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Tony Lambregts 2e24a148bf Replace DPRINTF with TRACE. 2003-03-15 00:12:42 +00:00
François Gouget 1dc62b7ebf NT sets the error code to ERROR_RESOURCE_DATA_NOT_FOUND if the file
exists but does not contain version information.
2002-08-14 21:04:54 +00:00
Alexandre Julliard d1b43b8da3 Removed workaround for 16-bit loader bug. 2002-07-08 19:44:53 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Dmitry Timoshkov 0ca9bba60b Always call LoadLibrary.
Workaround a broken behaviour of the 16-bit loader.
2002-04-02 02:45:09 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Andreas Mohr bc35c50661 Remove unneeded WINAPI. 2001-06-06 21:06:12 +00:00
Francois Gouget a7580c53c7 ConvertVersionInfo32To16: the end of the child list may also be marked
by a 0-byte child.
2001-03-23 19:07:35 +00:00
Dmitry Timoshkov f7e7cd4aec Truncate version data if provided buffer is not large enough. 2001-03-19 19:15:36 +00:00
Dmitry Timoshkov 07b6e6e62e Fixed prototype of GetFileVersionInfoA/W. 2001-03-16 16:42:20 +00:00
Dmitry Timoshkov 4868e715a7 Return from GetFileVersionInfo(Size) if specified file found, but
VS_VERSION_INFO resource not.
2001-03-14 17:26:16 +00:00
Dmitry Timoshkov 8f73cd14ce Add version information (16 and 32 bit) to core built-in dlls:
krnl386.exe/kernel32.dll, user.exe/user32.dll, gdi.exe/gdi32.dll.
Provide a way for reading version information using standard API:
GetFileVersionInfoSize -> GetFileVersionInfo -> VerQueryValue.
2001-02-23 20:37:13 +00:00
Lawson Whitney 3437915594 If VerQueryValueA is called with a PE resource, translate the call to
VerQueryValueW.
2001-02-15 21:26:29 +00:00
Alexandre Julliard 24a62ab9b0 Got rid of the Wine internal lstrcpy* functions and of winestring.h. 2000-11-28 22:40:56 +00:00
Alexandre Julliard 0e44f63c9a Replaced HEAP_strdup* and lstrcpynAtoW calls by exported functions. 2000-11-16 00:28:52 +00:00
Alexandre Julliard b85a6adc58 Duplicate resource directory searching routines instead of calling
pe_resource.c internal functions.
Made GetFileResource16 and GetFileResourceSize16 callable directly
instead of defining extra internal functions.
2000-10-23 01:38:29 +00:00
Alexandre Julliard 072dfb57e3 Removed inclusion of wine/winestring.h from winbase.h and added it to
the C files that need it.
2000-09-25 23:30:56 +00:00
Alexandre Julliard c7e7df8b17 Replaced all lstr* calls from inside Wine code by their str* equivalent. 2000-08-14 14:41:19 +00:00
Alexandre Julliard 5ea22474bb Use the Unicode string functions from wine/unicode.h instead of the
crtdll ones.
2000-06-13 01:10:29 +00:00
Patrik Stridvall 2d6457c11a Added/fixed some documentation reported by winapi_check. 2000-03-28 20:22:59 +00:00
Patrik Stridvall 1c57a3ba2d Made some local functions static. 2000-02-25 20:55:54 +00:00
Ulrich Weigand f030d7527a Fixed alignment problem with VERSION_INFO members. 2000-01-08 22:19:46 +00:00