Commit Graph

497 Commits

Author SHA1 Message Date
Michael Stefaniuc 6ab10f2eb0 vbscript: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-29 20:28:59 +01:00
Alex Henrie e04a1c4210 vbscript/tests: Fix first-day-of-week test on mixed locales.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-03 23:26:21 +01:00
Piotr Caban f595523413 vbscript: Don't leak IEnumVARIANT in interp_enumnext.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 20:22:09 +01:00
Piotr Caban a2438ce810 vbscript: Don't return error on VBScript_SetScriptState(SCRIPTSTATE_DISCONNECTED) call.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 20:22:03 +01:00
Piotr Caban c8a94b5d7a vbscript: Add for each tests on array.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 20:21:59 +01:00
Piotr Caban a85d12af44 vbscript: Add support for "for each" on arrays.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 20:21:52 +01:00
Piotr Caban e95492bc83 vbscript: Add UBound implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 18:13:12 +01:00
Dmitry Kislyuk 31ef99245a vbscript: Improve parsing of separators in functions and classes.
Signed-off-by: Dmitry Kislyuk <dimaki@rocketmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 19:33:06 +01:00
Alex Henrie 4438b2706b vbscript/tests: Fix test for WeekDayName(foo, bar, 0).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 19:12:07 +01:00
Alex Henrie 8d8ebc9641 vbscript/tests: Try calling GetObject again if it fails the first time.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-24 19:09:17 +02:00
Dmitry Kislyuk 5193b6fa69 vbscript: Improve parsing of separators after Option Explicit.
Signed-off-by: Dmitry Kislyuk <dimaki@rocketmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 14:23:27 +02:00
Piotr Caban 0b5473c166 vbscript: Reimplement array_access function.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 14:23:25 +02:00
Piotr Caban 8f0d12e261 vbscript/tests: Add more function call tests with array arguments.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 14:23:22 +02:00
Piotr Caban c4d7243833 vbscript/tests: Expose todo_wine_ok function to scripts.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 20:00:08 +02:00
Piotr Caban 775671c3d8 vbscript: Be more verbose on unexpected error in a script.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 20:00:05 +02:00
Piotr Caban 0a15f2e02f vbscript: Add Array implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 20:00:03 +02:00
Dmitry Kislyuk 56b31ba2e1 vbscript: Improve parsing of separators in loops and switches.
Signed-off-by: Dmitry Kislyuk <dimaki@rocketmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 19:45:37 +02:00
Dmitry Kislyuk 4ecc00f6ff vbscript: Allow colons at the end of first line of loops.
Signed-off-by: Dmitry Kislyuk <dimaki@rocketmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-03 17:15:05 +02:00
Francois Gouget 8ab8a92d75 vbscript: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
And standardize their parameter names.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 13:15:46 +01:00
Alistair Leslie-Hughes 73924a45d6 vbscript: Coerce datatype in StrComp.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-10 10:11:48 +01:00
Jacek Caban c46dbfb131 vbscript: Call GetItemInfo() with original item name.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-07 16:59:55 +01:00
Nikolay Sivov 5c6aa8d6c3 vbscript: Implement StrComp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-04 14:56:03 +01:00
Sebastian Lackner 39dfd38d82 vbscript/tests: Fix operator priority in ok() condition.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 00:49:11 +09:00
Alexandre Julliard d8cc1dccba makefiles: Add makedep pragmas in all IDL source files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:22 +09:00
Alistair Leslie-Hughes ae119b4205 vbscript/tests: Show IActiveScriptSite OnScriptError is called on error.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:09 +09:00
Jacek Caban 392736c5e8 vbscript: Treat empty regexp pattern the same way as NULL pattern. 2015-06-29 21:14:35 +09:00
Thomas Faller 06dfe8fcd6 vbscript: Fix for unchecked memory access. 2015-05-26 20:00:42 +09:00
Shuai Meng 287d419e5e vbscript: Fixed Hex. 2015-04-03 11:56:21 +09:00
Shuai Meng 56ab12ccef vbscript: Implemented Oct. 2015-04-01 22:34:20 +09:00
Nikolay Sivov 4b15e6fd09 vbscript: Use CP_ACP instead of its numeric value. 2015-03-09 22:06:21 +09:00
Jacek Caban 0de7b95c37 vbscript: Added a helper for getting default IDispatch value. 2015-03-06 00:02:08 +09:00
Alexandre Julliard 39f6d04aa0 Revert "shell32: Also return Attributes in GetFolderDefinition."
This reverts commit 0becff8244.
The wrong patch was committed.
2015-03-04 11:34:15 +09:00
Jacek Caban 33c5a7d14c vbscript: Added DISPATCH_PROPERTYPUTREF tests. 2015-03-03 23:16:53 +09:00
Jacek Caban bd42594da9 vbscript: Leave converting object to trivial values up to calee. 2015-03-03 23:16:52 +09:00
Jacek Caban 62bc8aeb0f vbscript: Leave assigning value up to add_dynamic_var callers. 2015-03-03 23:16:51 +09:00
Jacek Caban 86283b31db vbscript: Fail to set non-object values with DISPATCH_PROPERTYPUTREF flag. 2015-03-03 23:16:50 +09:00
Jacek Caban 4bca1665c4 vbscript: Convert VT_DISPATCH propput value to trivial value if DISPATCH_PROPERTYPUTREF is not set. 2015-03-03 23:16:49 +09:00
Jacek Caban 571b09ce42 vbscript: Pass DISPATCH_PROPERTYPUTREF flag to InvokeEx when apropriate. 2015-03-03 23:16:48 +09:00
Jacek Caban 128f79ee77 vbscript: Added support for DISPATCH_PROPERTYPUTREF flag. 2015-03-03 23:16:47 +09:00
Shuai Meng 0becff8244 shell32: Also return Attributes in GetFolderDefinition. 2015-03-03 11:46:22 +09:00
Nikolay Sivov dba0fe3614 vbscript: Fix potential crash if script site creation failed. 2015-02-16 19:18:46 +09:00
Gerald Pfeifer 69a6138350 vbscript: Avoid use of uninitialized variable in Global_InStrRev(). 2015-02-16 19:18:42 +09:00
Jacek Caban 9b0ebaeb78 vbscript: Added InStrRev implementation. 2015-02-11 22:21:49 +09:00
Jacek Caban 3873c93891 vbscript: Allow omitting optional function parameters in call expressions. 2015-01-28 21:30:10 +01:00
Nikolay Sivov e584edd379 vbscript: Support 'End If' for single line If statements. 2015-01-16 17:33:00 +01:00
Shuai Meng 7a48601047 vbscript: Implemented Timer. 2014-10-14 21:04:58 +09:00
Shuai Meng 0480bbfb34 vbscript: Implemented RGB. 2014-10-01 14:48:38 +02:00
Jacek Caban 85b989927f vbscript: Don't try to convert int to short in return_int. 2014-09-22 19:07:51 +02:00
Shuai Meng fdf4b1e792 vbscript: Implemented Time. 2014-08-28 20:52:28 +02:00
Shuai Meng 88d7f611a4 vbscript: Implemented Date. 2014-08-28 20:52:25 +02:00