Austin English
6b36d7cfef
kernel32: Add SetSearchPathMode stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 22:16:50 +09:00
Francois Gouget
aea94f5134
kernel32/tests: Declare childPrintf() as a printf-style function.
...
And fix the corresponding warnings.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:36 +09:00
Francois Gouget
f6dc7c88ba
kernel32/tests: Help the tests portably declare printf()-syle functions.
...
To do so they can now use the WINETEST_PRINTF_ATTR() macro.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:33 +09:00
Austin English
57d1171208
kernel32: Add GetConsoleScreenBufferInfoEx/SetConsoleScreenBufferInfoEx stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 00:50:48 +09:00
Hugh McMaster
66974e5502
kernel32: Remove incorrect comment from !i386 version of GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:32 +01:00
Sebastian Lackner
dfe42ca506
kernel32: Clamp maximum console window size to screen buffer size.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:31 +01:00
Hugh McMaster
c3ea629f3c
kernel32/tests: Add tests for GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:08:02 +01:00
Hugh McMaster
b36cc985a4
kernel32/tests: Refresh the console to clear the console font table.
...
The testScreenBuffer function unintentionally causes the console font
table to increase from 14 entries to about 40.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:45 +01:00
Hugh McMaster
c9364659aa
kernel32: Add a stub for SetConsoleFont.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:42 +01:00
Hugh McMaster
dd6477966b
kernel32: Implement GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:37 +01:00
Nikolay Sivov
ae1fe69e39
kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:29 +01:00
Nikolay Sivov
c9c138f53f
ntdll/tests: Some tests for NtQuerySystemInformationEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:20 +01:00
Austin English
5d186034c1
kernel32: Make CompareStringEx semi-stub flag FIXME only show once.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 12:04:05 +01:00
Jeremy White
7dea64279e
kernel32: Revise GetLongPathNameA to avoid overriding the input on long names.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:57 +01:00
Jeremy White
ee1260e0d2
kernel32/tests: Test GetLongPathNameA when the file name case differs from the input.
...
This shows that the original buffer is unmodified if the filename is long,
but the actual file name is returned when the filename is short.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:35 +01:00
Jeremy White
9f3f918f2c
kernel32: Preserve a '/' delimiter in GetLongPathName and GetShortPathName.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:55:36 +01:00
Jeremy White
17ddd0474f
kernel32/tests: Add a test for GetShortPathName using a slash delimieter.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:57 +01:00
Jeremy White
60836b41fa
kernel32/tests: Add tests for GetLongPathName using a slash delimiter.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:48 +01:00
Jeremy White
440030b938
kernel32: Advance over the input buffer when stripping ./.
...
This is the same fix for GetLongPathName that was contained in a fix for
GetShortPathName in commit 9178d037d7
.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:36 +01:00
Jeremy White
81ccc7b816
kernel32/tests: Add path tests for the ./../foo case.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:30 +01:00
Sebastian Lackner
a0b6bf86f7
kernel32/tests: Add test for process object destruction.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:07 +01:00
Alex Henrie
60226ee37d
kernel32: Add TRACE to SetCommState.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:33:19 +01:00
Nikolay Sivov
fe2f86e934
kernel32/tests: Some tests for ZombifyActCtx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:16:52 +01:00
Sebastian Lackner
6cf682d207
kernel32/tests: Remove unnecessary call to GetExitCodeProcess in process tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:10 +01:00
Viliam Lejcik
157d2e961a
kernel32/nls: Regional settings translation for Czech and Slovak.
...
Signed-off-by: Viliam Lejcik <lejcik@host.sk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:35:28 +09:00
Alexandre Julliard
5468e37508
kernel32: Also check OS version to detect old binaries in GlobalMemoryStatus.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-01 21:02:19 +09:00
Hugh McMaster
7223330ffc
kernel32: Replace NULL argument with pointer to DWORD.
...
On Windows, passing in NULL can cause a memory access violation.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:47:28 +09:00
Sebastian Lackner
0346040889
kernel32/tests: Add tests for committing stack guard pages.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Joachim Priesner
ceb57b7817
kernel32/tests: Add tests for GetDriveType with invalid drive spec.
...
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:32 +09:00
Andrey Gusev
8bfc9bd2ee
Assorted typos fixes.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Sebastian Lackner
9f18d217a7
kernel32/tests: Avoid busy-looping in APC deadlock tests.
...
Spotted by Amine Khaldi.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:20 +09:00
Sebastian Lackner
46a208d6fa
kernel32/tests: Add tests for calling wait functions with pseudo handles.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:16 +09:00
Alexandre Julliard
9ae90b354c
kernel32/tests: Avoid testing the D: drive which may not exist.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-24 00:25:02 +09:00
Hugh McMaster
b1b05e62e9
kernel32: Remove un-needed VK_DEL entries from the console keymap.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:19 +09:00
Hugh McMaster
bbe3c9cfbd
kernel32: Interpret Shift-Backspace as Backspace when using the Win32 keymap in wineconsole.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:18 +09:00
Hugh McMaster
7dcfc00dc3
kernel32: Use virtual-key codes in the console StdKeyMap.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:17 +09:00
Sebastian Lackner
ace9d329e9
server: Fix crash when calling SetNamedPipeHandleState on partially closed pipe.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner
ee02530bc4
server: Fix crash when calling GetNamedPipeHandleState on partially closed pipe.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner
78948b24b7
kernel32/tests: Add tests for calling WriteFile on pipe when other end is closed.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Sebastian Lackner
e235b0670d
kernel32/tests: Add tests for sending empty message in combination with CloseHandle.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Adam Martinson
563865c654
kernel32/tests: Add tests for closing named pipes with CloseHandle.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:14 +09:00
Jacek Caban
6a7363b694
kernel32: Call registry functions with full key path.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 23:56:39 +09:00
Andrew Eikum
df718b8ab8
kernel32: Always uninitialize the terminal for the console shell process.
...
The terminal raw IO check and the console shell process check are used
separately to initialize the terminal in different ways. However, if
either check fails during uninitialization, then no uninitialization
will occur at all and modified terminfo settings will remain instead of
being restored. We should check each condition individually and
uninitialize each part as required.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:02 +09:00
Hugh McMaster
11669fa5e2
Assorted spelling and grammar fixes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Nikolay Sivov
e528765af4
kernel32: Fix context initialization for EnumDateFormatsExEx.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:14:12 +09:00
Jacek Caban
1130a11cce
kernel32: Added DECLSPEC_HOTPATCHABLE to WinExec function.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 11:53:04 +09:00
Sebastian Lackner
71581f71d5
kernel32: DeleteFile should open the file without read/write permissions.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner
4857f95803
server: Return STATUS_CANNOT_DELETE when trying to open readonly file with FILE_DELETE_ON_CLOSE.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner
c74bb13d2e
kernel32/tests: Add some more tests for opening a file with FILE_DELETE_ON_CLOSE.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:21 +09:00
Nikolay Sivov
61c49bd78e
kernel32: Implement EnumTimeFormatsEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:24 +09:00