Commit Graph

2423 Commits

Author SHA1 Message Date
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
Nikolay Sivov 49e5b9c2a4 kernel32: Added support for TIME_NOSECONDS, restructured EnumTimeFormats implementation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:11 +09:00
Nikolay Sivov 6f35351f81 kernel32: EnumTimeFormatsA() doesn't support TIME_NOSECONDS.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:03 +09:00
Nikolay Sivov 982c3ede72 kernel32: GetLocaleInfoA() doesn't support LOCALE_SSHORTTIME.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:07:43 +09:00
Nikolay Sivov 5bcbfde33a nls: Added LOCALE_SSHORTTIME locale data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:10:05 +09:00
Alexandre Julliard 3b7cdc0b84 kernel32/tests: Fix some todo tests that succeed or fail depending on the kernel version.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Nikolay Sivov 3d728e68d3 kernel32: Implement EnumDateFormatsExEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:51 +09:00
Nikolay Sivov 292e4153cf kernel32: Simplify EnumDateFormats & EnumDateFormatsEx.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:50 +09:00
Sebastian Lackner 659e585166 kernel32/tests: Add a test to demonstrate a deadlock by suspending a thread during a system APC.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Austin English 7c92862071 kernel32: Add SetConsoleKeyShortcuts stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 23:12:03 +09:00
Austin English 4bfe66e702 kernel32: Add AllocateUserPhysicalPages stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster 77a75d74a2 kernel32/tests: Add tests for GetConsoleFontSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster 4925f75869 kernel32: Implement GetConsoleFontSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00