Commit Graph

270 Commits

Author SHA1 Message Date
Michael Stefaniuc d9f1e0cc1c version/tests: Use wide-char string literals.
Constify some variables in that process.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-09 10:27:45 +01:00
Rémi Bernon a195c9a513 version/tests: Fix some format-overflow warnings.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-12 16:54:03 +01:00
Alexandre Julliard ecce06841d version: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-25 08:46:32 +02:00
Alexandre Julliard ae89bc8a9b version: Move implementation into kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-21 22:51:55 +02:00
Michael Müller 91f96b2827 version: Correctly return VFF_CURNEDEST in VerFindFileA.
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 11:24:51 +02:00
Piotr Caban 2e2278177c version: Don't use strncasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-01 21:54:32 +02:00
Alex Henrie 15e9bbe13a version: Simplify null check in VerQueryValueW.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 10:34:51 +01:00
Michael Stefaniuc 552f7f7c45 version: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:02 +02:00
Michael Stefaniuc 2dc9af8e75 version/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-31 09:24:49 +02:00
Michael Müller df3dfa7baf version: Return ERROR_FILE_NOT_FOUND for Win 9x when a file was not found in GetFileVersionInfoSize.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-17 14:23:33 +02:00
Zebediah Figura bec279d8c1 version: Use the string value length when converting strings.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Akihiro Sagawa 9af3dffaf3 kernel32: Add localized version resource.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 16:23:09 +01:00
Akihiro Sagawa 7811de1b73 version: Add support for FILE_VER_GET_LOCALISED flag.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 16:17:20 +01:00
Akihiro Sagawa e0b4a3527b version/tests: Check the translation resource before testing.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 16:17:01 +01:00
Akihiro Sagawa b027a7db50 Use CP 1200 (Unicode) for Win32/Win64 version info.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-06 19:49:17 +01:00
Akihiro Sagawa e804e9a5bc version/tests: Add tests for GetFileVersionInfoEx.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 22:18:45 +01:00
Akihiro Sagawa 8e1335b3a3 version: Ignore flag values in Ex functions.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 22:18:42 +01:00
André Hentschel ded403c4f3 version: Remove dead assignments (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:58:36 +01:00
Andrey Gusev d3177504b1 Assorted spelling and typos fixes. 2015-08-31 20:18:46 +09:00
Austin English 324acd5f1e version: Move GetFileVersionInfo(A/W) implementation to GetFileVersionInfoEx(A/W). 2015-05-26 18:45:34 +09:00
Austin English e3ae89e8e2 version: Move GetFileVersionInfoSize(A/W) implemementation to GetFileVersionInfoSizeEx(A/W). 2015-05-26 18:45:33 +09:00
Michael Stefaniuc e8b76b32e6 version: VS_FILE_INFO is already and INTRESOURCE (PVS-Studio). 2015-03-05 21:22:08 +09:00
Austin English 61fc9ac92f version: Add stubs for GetFileVersionInfoExA/W. 2014-12-23 15:30:50 +01:00
Austin English caaf6aafa9 version: Add stubs for GetFileVersionInfoSizeExA/W. 2014-12-22 19:18:21 +01:00
Bruno Jesus 395289a30a version: Handle NULL puLen parameter for VerQueryValueA/W. 2014-11-12 20:07:55 +09:00
Akihiro Sagawa 05b3d7b69b version: Don't convert binary version resource to ANSI texts. 2014-03-14 17:17:04 +01:00
Akihiro Sagawa 66933d71ee version/tests: Add more VerQueryValueA tests. 2014-03-14 17:17:01 +01:00
André Hentschel fc678b4e11 version: Use boolean return value in boolean function. 2014-01-29 17:30:17 +01:00
Frédéric Delanoy 91f2435469 Assorted spelling fixes. 2014-01-09 17:39:59 +01:00
Alexandre Julliard 2a7cdcf3c5 version: Load the resource that corresponds to the current language first. 2014-01-03 17:25:18 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Frédéric Delanoy b1fd27eb2d version/tests: Constify some character strings. 2013-12-31 12:24:52 +01:00
Frédéric Delanoy 13b9fee833 version: Use BOOL type where appropriate. 2013-11-26 10:16:03 +01:00
André Hentschel ae206d7517 version/tests: Fix tests compilation with __WINESRC__ defined. 2013-10-24 10:48:23 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Dmitry Timoshkov e2791cdfb1 include: Make IMAGE_RESOURCE_DIRECTORY_ENTRY match PSDK definition. 2013-04-29 13:33:54 +02:00
Nikolay Sivov f3f81387f1 version: Remove 'return' from void function. 2012-12-19 14:38:58 +01:00
Michael Stefaniuc d8bc018487 version/tests: Check the correct variable. 2012-05-15 16:26:38 +02:00
Francois Gouget 8eef0cc258 dlls: Remove unneeded include directives in resource files. 2011-11-14 15:25:23 +01:00
Francois Gouget 6a8ba3616c version: Fix printing NULL strings. 2011-09-20 16:21:39 +02:00
Alexandre Julliard 702941eae1 version: Check the Windows directory first in VerFindFileA/W. 2011-09-09 13:27:14 +02:00
André Hentschel 87ebfe5d18 version: Return VIF_CANNOTREADSRC if no source path could be generated. 2011-08-30 11:54:20 +02:00
André Hentschel 89beac4719 version: Don't initialize the variable twice (clang). 2011-07-14 14:45:09 +02:00
Marcus Meissner d8ed83e3c1 version: Merge all 3 C source files into one. 2011-05-25 16:35:05 +02:00
Alexandre Julliard 0136bc27d1 version: Allocate the full virtual size of the section when loading PE resources. 2011-03-14 12:13:39 +01:00
Austin English 35a39e3cf6 version/tests: Remove win9x hacks. 2011-02-24 15:50:50 +01:00
Austin English 121885dd2d version/tests: Make sure return values are used (LLVM/Clang). 2011-02-09 09:26:23 -06:00
Alexandre Julliard deaf2f593d version: Don't bother importing lz32, all the functions are in kernel32. 2010-09-24 15:45:55 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00