Commit Graph

2361 Commits

Author SHA1 Message Date
Sebastian Lackner a54d972868 kernel32: Forward threadpool cleanup group functions to ntdll. 2015-07-03 13:07:18 +09:00
Michael Stefaniuc c50f6a304c kernel32/tests: The result of a comparison is already a BOOL. 2015-06-30 17:40:27 +09:00
Michael Müller d0ae2b0d3d kernel32: Implement GetNumaProcessorNode. 2015-06-29 19:07:51 +09:00
Michael Müller 81142c9985 kernel32/tests: Add tests for GetNumaProcessorNode. 2015-06-29 19:07:51 +09:00
Nikolay Sivov 15eba39978 kernel32: Implement EnumCalendarInfoExEx(). 2015-06-29 19:07:46 +09:00
Nikolay Sivov c1c42d3caf kernel32: Simplify the way EnumCalendarInfo vs EnumCalendarInfoEx are handled internally. 2015-06-29 19:07:45 +09:00
Marcus Meissner c1d262f66d kernel32: GetCurrentDirectoryW gets characters, not bytes. 2015-06-26 20:35:06 +09:00
Sebastian Lackner d082ea3eab ntdll: Implement support for AT_ROUND_TO_PAGE flag in NtMapViewOfSection. 2015-06-26 20:35:05 +09:00
Sebastian Lackner 7a8470ea94 ntdll: NtMapViewOfSection should fail if both addr_ptr and zero_bits is set. 2015-06-26 20:35:05 +09:00
Sebastian Lackner b80bbd5986 kernel32/tests: Add GetVolumePathNameW tests. 2015-06-23 20:46:09 +09:00
Sebastian Lackner d01c135aed kernel32/tests: Add a lot of picky GetVolumePathName tests. 2015-06-23 20:46:08 +09:00
Erich E. Hoover ed151a5efc kernel32: Handle device paths in GetVolumePathName.
NT-style paths that have a device prefix (\??\) also return the drive
of the current working directory (even if they're valid devices).
2015-06-23 20:46:08 +09:00
Erich E. Hoover 5a84969f39 kernel32: Handle bogus DOS paths in GetVolumePathName.
Paths that are not NT and not even close to DOS don't actually fail
catastrophically.  Even though MSDN suggests that it returns the boot
drive in this case, tests indicate that it returns the drive of the
current working directory.
2015-06-23 20:46:07 +09:00
Erich E. Hoover e8e13308ea kernel32: Handle semi-DOS paths in GetVolumePathName.
Add support for "semi-DOS" paths, these paths revert to the drive
letter specified in the first character.
2015-06-23 20:46:03 +09:00
Erich E. Hoover 62279b7f4d kernel32/tests: Add a bunch more GetVolumePathName tests. 2015-06-23 20:44:25 +09:00
Erich E. Hoover b29b0d2cff kernel32/tests: Convert GetVolumePathName tests into a list. 2015-06-23 20:44:25 +09:00
Erich E. Hoover f6c7e247ad kernel32: Implement GetVolumePathName.
The purpose of this function is to return the most fundamental path
without leaving a filesystem.  Steam uses this so that it can use inode
searches, without this functionality some installations/validations will
fail if the Steam Library is not on the same drive as Steam
itself (symlink'd to another location).
2015-06-23 20:44:21 +09:00
Nikolay Sivov 0824771423 kernel32: Export RtlCopyMemory(). 2015-06-19 19:10:45 +09:00
Olivier F. R. Dierick 01e5385882 kernel32: Implement SetFileCompletionNotificationModes as a stub. 2015-06-15 17:27:38 +09:00
Erich E. Hoover 5e817e93de kernel32: Implement GetSystemTimes. 2015-06-11 15:58:34 +09:00
Louis Lenders 305a73bcb5 kernel32/tests: Add tests for GetSystemTimes. 2015-06-11 15:58:15 +09:00
Michael Müller 7fe0b56e15 kernel32: Forward SetFileInformationByHandle FileDispositionInfo class to ntdll. 2015-06-11 15:34:42 +09:00
Michael Müller fd8fae105b kernel32: Improve stub for SetFileInformationByHandle. 2015-06-11 15:32:26 +09:00
Alexandre Julliard 3494fb7f72 kernel32: Avoid resolving imports against the advapi32 forwards. 2015-06-10 15:26:05 +09:00
Jacek Caban 09176c3aa0 kernel32: Treat empty locale name as LOCALE_INVARIANT. 2015-06-10 15:00:15 +09:00
Nikolay Sivov 5742497a35 kernel32/tests: Some tests for invalid classes in SetFileInformationByHandle(). 2015-06-09 18:05:48 +09:00
Sebastian Lackner 8ddab2c2f4 ntdll: Fix status code when NtMapViewOfSection parameter check fails. 2015-06-08 15:34:04 +09:00
Sebastian Lackner 5204d89dc9 kernel32/tests: Add tests for virtual memory alignment behaviour.
AT_ROUND_TO_PAGE is only available on 32-bit non-wow64 systems.
2015-06-08 15:33:59 +09:00
Nikolay Sivov b17e4376d5 kernel32: Fail properly for unsupported classes in GetFileInformationByHandleEx. 2015-06-08 15:29:44 +09:00
Michael Müller 803e9cfb66 kernel32: Correctly check for an empty short filename in GetShortPathNameW (Coverity). 2015-06-01 14:46:34 +09:00
André Hentschel a18f84c0b1 ntdll: Add stub for __chkstk on ARM. 2015-05-29 15:03:05 +09:00
Jacek Caban 12a134fdc4 kernel32: Fixed buffer overflow in GetShortPathNameW. 2015-05-25 21:43:17 +09:00
Francois Gouget 8efa0fb0c4 kernel32/tests: Fix compilation on systems that don't support nameless unions. 2015-05-25 14:34:07 +09:00
Alexandre Julliard c4fb1f617d kernel32: Get rid of the hardcoded NUL device in QueryDosDeviceW. 2015-05-21 17:37:42 +09:00
Alexandre Julliard f32600d3c1 kernel32: Check NT symlink first for all devices in QueryDosDeviceW. 2015-05-21 17:37:14 +09:00
Martin Storsjo 68b654ad2f kernel32: Implement a few more classes in GetFileInformationByHandleEx. 2015-05-21 14:26:34 +09:00
André Hentschel 1e8759805e kernel32/tests: Add ARM and ARM64 arch strings. 2015-05-20 22:10:50 +09:00
Martin Storsjo c9c5ceccb4 kernel32: Implement GetSystemTimePreciseAsFileTime.
This just falls back to doing the same as GetSystemTimeAsFileTime.
2015-05-20 17:28:37 +09:00
Michael Müller f556d0e936 kernel32: Return correct device type for cd devices without medium. 2015-05-19 19:24:20 +09:00
Sebastian Lackner 7ebe22e99c kernel32/tests: Add tests for delete behaviour of CopyFileEx. 2015-05-19 19:24:20 +09:00
Christian Faure 9cffed782f kernel32: Fix a crash in GetStringTypeW() on NULL input string. 2015-05-18 14:07:48 +09:00
Grazvydas Ignotas 2e21381177 kernel32: Don't leak an event handle on errors. 2015-05-18 14:07:21 +09:00
Andrew Eikum d9a27e9ca0 kernel32: Implement CheckNameLegalDOS8Dot3. 2015-05-13 22:05:42 +09:00
Mark Harmstone e468f15d20 kernel32: Add GetFileMUIInfo stub. 2015-05-12 15:30:47 +09:00
Nikolay Sivov 2c98d5b90c kernel32: Implement GetDynamicTimeZoneInformation(). 2015-05-11 15:39:24 +09:00
Nikolay Sivov dde69d617b kernel32: Fixed couple of comments regarding atom calls. 2015-05-11 15:39:24 +09:00
Francois Gouget 5ea2bdda5d kernel32/tests: Silence some loader and locale traces that generate too many lines. 2015-05-11 15:19:05 +09:00
Andrew Eikum 65f2690203 kernel32: Support extended pathnames in GetShortPathName. 2015-05-06 08:36:04 +09:00
Sebastian Lackner ee6a477cab ntdll: Return failure in NtProtectVirtualMemory when last argument is omitted. 2015-05-05 23:15:31 +09:00
Sebastian Lackner 1119da47ee kernel32: Do not omit mandatory argument for VirtualProtect. 2015-05-04 20:07:54 +09:00
Sebastian Lackner 152b575eed kernel32/tests: Add tests for calling VirtualProtect with NULL as last argument. 2015-05-04 20:07:51 +09:00
Sebastian Lackner 10ee3f44b1 kernel32/tests: Add tests for deleting readonly files with NtCreateFile.
Wine currently implements DeleteFile based on NtCreateFile with access mask
GENERIC_READ | GENERIC_WRITE | DELETE, but this is wrong. This test shows that
NtCreateFile with FILE_DELETE_ON_CLOSE should also fail without explicitly
requesting read/write access.
2015-04-30 19:58:01 +09:00
Francois Gouget ad2c07888e kernel32/tests: Make test_StartupNoConsole() static. 2015-04-27 15:08:50 +09:00
Erich E. Hoover 4b559f02dd kernel32: Invalid console handles for new processes are 0, not INVALID_HANDLE_VALUE. 2015-04-23 15:06:36 +09:00
Sebastian Lackner a7247df6ca server: Implement waiting for job objects. 2015-04-07 23:16:20 +09:00
Sebastian Lackner 7984fb9fbe kernel32/tests: Add tests for waiting on an job object. 2015-04-07 23:16:01 +09:00
Andrew Cook 1d359a5827 server: Implement TerminateJobObject. 2015-04-07 23:15:47 +09:00
Sebastian Lackner 4ae0ef44d2 kernel32: Add stub for PowerClearRequest. 2015-04-07 15:14:40 +09:00
Sebastian Lackner 25505995af kernel32: Add stub for PowerSetRequest. 2015-04-07 15:14:35 +09:00
Sebastian Lackner 966dd5074d kernel32: Add stub for PowerCreateRequest. 2015-04-07 15:14:29 +09:00
Mark Harmstone ed0c6746dd kernel32: Stub out GetFileMUIPath. 2015-04-06 12:49:03 +09:00
Sebastian Lackner 51c21cca98 kernel32: Fix calculation of returned buffer in get_registry_locale_info.
Fixes a regression introduced by 8826ba1bc8.
2015-04-06 12:06:18 +09:00
Andrew Cook 47ffeaee74 server: Implement io completion messages for job objects. 2015-04-03 00:33:29 +09:00
Andrew Cook 0dbe5adc21 server: Implement job inheritance. 2015-04-03 00:33:29 +09:00
Andrew Cook ecd41d1de7 server: Implement job limit flags. 2015-04-03 00:33:29 +09:00
Andrew Cook 3affd63b34 server: Implement IsProcessInJob. 2015-04-01 22:34:19 +09:00
Andrew Cook 98132f0364 server: Implement AssignProcessToJobObject. 2015-04-01 22:34:18 +09:00
Andrew Cook e30a6bbcbd kernel32/tests: Extend IsProcessInJob tests. 2015-04-01 17:02:34 +09:00
Sebastian Lackner ddd3d1689c kernel32/tests: Add tests for adding a terminated process to a job object. 2015-03-31 00:04:42 +09:00
Andrew Cook 6cd34c9002 kernel32/tests: Add tests for job inheritance.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook f0ef853d9d kernel32/tests: Add tests for JOB_OBJECT_LIMIT_BREAKAWAY_OK.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook 3ca0282e5f kernel32/tests: Add tests for JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook 6c2b0eb011 kernel32/tests: Add tests for job object completion ports.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:40 +09:00
Andrew Cook d4fd3c899e kernel32/tests: Add tests for QueryInformationJobObject.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 22:35:27 +09:00
Andrew Cook ad04b7305b kernel32/tests: Add tests for TerminateJobObject.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 20:22:35 +09:00
Andrew Cook f40bffaf67 kernel32/tests: Add tests for IsProcessInJob.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 20:22:29 +09:00
Sebastian Lackner 978597e8ab kernel32/tests: Allow multiple subprocess commands in process tests. 2015-03-30 20:15:53 +09:00
Austin English 88362a0770 kernel32: Add a stub for QueryThreadCycleTime. 2015-03-30 19:49:11 +09:00
Frédéric Delanoy f6a341c747 Assorted spelling/grammar fixes. 2015-03-27 22:29:48 +09:00
Michael Müller 8f0d5a37a3 kernel32/tests: Add tests for GetFinalPathNameByHandleA/W. 2015-03-27 00:11:36 +09:00
Nikolay Sivov 85a3d09329 kernel32: Implement GetProcessIdOfThread(). 2015-03-20 21:31:57 +09:00
Francois Gouget f505e6fb4a Assorted spelling fixes. 2015-03-19 21:54:14 +09:00
Bruno Jesus 24fc876e61 kernel32: Only zero the buffer up to 32767 bytes in GetTempPathW. 2015-03-18 20:56:39 +09:00
Sebastian Lackner ab91c01112 ntdll: RtlFindActivationContextSectionString should accept a NULL pointer as data. 2015-03-17 16:02:25 +09:00
Mark Jansen f091ff5851 kernel32/tests: Parameter validation tests for FindActCtxSectionString. 2015-03-17 16:02:19 +09:00
Sebastian Lackner 5bab75166c kernel32: Fix leak of dynamic_buffer in QueryFullProcessImageNameW (Coverity). 2015-03-17 14:52:08 +09:00
Sebastian Lackner d48e3a0bea kernel32: Fix file handle leak in exec_process (Coverity). 2015-03-17 14:52:08 +09:00
Francois Gouget ecc04f6996 kernel32: Remove unneeded NONAMELESSXXX directives. 2015-03-13 00:28:19 +09:00
Michael Stefaniuc a7daccb674 kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio). 2015-03-09 22:06:56 +09:00
Bruno Jesus 81598be9cf kernel32: In GetTempPathW only copy the path if it fits and zero the buffer when it doesn't. 2015-03-05 21:42:32 +09:00
Michael Stefaniuc dbe6c5576d kernel32/tests: Actually test a return value (PVS-Studio). 2015-03-04 21:50:42 +09:00
Bruno Jesus f16cf54106 kernel32: GetTempPathW must zero the remaining buffer. 2015-03-02 23:00:31 +09:00
Bruno Jesus 300c2dedac kernel32/tests: Add more GetTempPath tests. 2015-02-24 22:59:40 +09:00
Alexandre Julliard 5a6cda458d kernel32/tests: Try harder to empty the pipe for completion notification. 2015-02-24 21:55:46 +09:00
Austin English 295f194804 kernel32: Add SetVolumeMountPointA/W stubs. 2015-02-12 22:12:22 +09:00
Alex Henrie 6bcf9e4bd8 kernel32: Support UTF-7 in MultiByteToWideChar.
Portions of utf7_mbstowcs were written by Sebastian Lackner.
2015-02-09 20:41:42 +09:00
Alex Henrie 054fa77de0 kernel32: Support UTF-7 in WideCharToMultiByte.
Portions of utf7_wcstombs were written by Sebastian Lackner.
2015-02-09 20:37:27 +09:00
Austin English b331c4f931 kernel32: Add CreateHardLinkTransactedA/W stubs. 2015-02-05 22:42:22 +09:00
Nikolay Sivov d1243bcc85 kernel32/tests: Remove a couple of duplicated constants. 2015-02-03 20:52:51 +09:00
Nikolay Sivov fdda480df5 kernel32: Fix writing resource section as a last section in UpdateResource(). 2015-01-28 21:30:01 +01:00