Commit Graph

62 Commits

Author SHA1 Message Date
Sebastian Lackner d638df9f3e kernel32: Fix possible leak of directory handle in RemoveDirectoryW.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:27 +09:00
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
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 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 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
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
Thomas Faller 9178d037d7 kernel32: Fix invalid write.
Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:21 +09:00
Piotr Caban ff698220c1 include: Fix CreateSymbolicLink and TryAcquireSRWLockExclusive prototypes.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-01 22:53:52 +09:00
Jacek Caban 8294722142 kernel32: Pass SYNCHRONIZE flag to NtOpenFile.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 21:01:59 +09:00
Jacek Caban 0c8edbcc80 kernel32: Pass SYNCHRONIZE access flag to NtCreateFile.
Office clicktorun patched ntdll functions expect them to be set.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:09 +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
Jacek Caban 12a134fdc4 kernel32: Fixed buffer overflow in GetShortPathNameW. 2015-05-25 21:43:17 +09:00
Andrew Eikum d9a27e9ca0 kernel32: Implement CheckNameLegalDOS8Dot3. 2015-05-13 22:05:42 +09:00
Andrew Eikum 65f2690203 kernel32: Support extended pathnames in GetShortPathName. 2015-05-06 08:36:04 +09:00
Bruno Jesus 24fc876e61 kernel32: Only zero the buffer up to 32767 bytes in GetTempPathW. 2015-03-18 20:56:39 +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
Bruno Jesus f16cf54106 kernel32: GetTempPathW must zero the remaining buffer. 2015-03-02 23:00:31 +09:00
Austin English b331c4f931 kernel32: Add CreateHardLinkTransactedA/W stubs. 2015-02-05 22:42:22 +09:00
Stefan Leichter 9668dddfc9 kernel32: Add stubs for CreateSymbolicLinkA/W. 2014-12-05 11:24:51 +01:00
Akihiro Sagawa 4aea5ca72b kernel32: Fix incorrect lastpart in GetFullPathNameA with DBCS. 2014-10-14 14:20:05 +09:00
Dmitry Timoshkov eba2f43221 kernel32: Add special case for "." and ".." to GetLongPathName. 2013-10-30 09:43:40 +01:00
Dmitry Timoshkov d57444a622 kernel32: Add special case for "." and ".." to GetShortPathName. 2013-10-30 09:43:30 +01:00
Nikolay Sivov 41057a174d kernel32: Support activation context in SearchPath(). 2013-09-12 11:02:22 +02:00
Alexandre Julliard fe64e21e3b kernel32: Don't call from A to W function in Get/SetCurrentDirectory. 2013-08-18 19:57:05 +02:00
Dmitry Timoshkov 4cc482bc0d kernel32: GetShortPathName for a non-existent short file name should fail. 2013-07-22 19:31:13 +02:00
Austin English 758911a8da kernel32: Fix a typo in a comment. 2013-04-18 12:23:39 +02:00
Charles Davis 5a3ff7ccc1 kernel32: Make CopyFile(Ex)() succeed even if the source file is delete-locked. 2013-01-18 13:29:01 +01:00
Charles Davis e21c805fbe kernel32: Make CopyFile() call CopyFileEx() instead of the other way around. 2013-01-18 13:29:00 +01:00
Dmitry Timoshkov 99c10bd7a1 kernel32: Print in the CopyFileW trace also fail_if_exists parameter. 2012-06-07 19:48:03 +02:00
Frédéric Delanoy b5a33dab88 dlls: Assorted spelling fixes. 2011-08-02 20:47:51 +02:00
Louis Lenders 8819ae1e66 kernel32: Fix GetTempFileName with invalid path.
Found by Oskar Eisemuth.
2010-10-22 17:19:12 +02:00
Harry Jeffery 4faf80280c Fixed various spelling mistakes. 2010-07-26 13:34:20 +02:00
Damjan Jovanovic f56be472c6 kernel32: Deal with unix paths in wine_get_dos_file_name. 2010-07-23 13:05:32 +02:00
Alexandre Julliard 9f7bc109d2 kernel32: Avoid returning the same name when GetTempFileName is called twice in a short interval. 2010-06-24 11:01:56 +02:00
Damjan Jovanovic 06de0195d0 kernel32: Stop CopyFile from overwriting a file with itself. 2010-06-16 19:38:58 +02:00
Damjan Jovanovic 44aa45036b kernel32: Revert 3f1404bf29 and add better CopyFile tests. 2010-06-14 14:14:16 +02:00
Damjan Jovanovic 3f1404bf29 kernel32: CopyFile cannot overwrite a file with itself. 2010-06-11 11:36:42 +02:00
Andrey Turkin de79a63838 kernel32: Implement CreateHardLink. 2010-05-17 14:43:26 +02:00
Alexandre Julliard 2530304f1c ntdll: Fix the return status of NtQueryValueKey for a too small buffer. 2010-02-16 14:28:41 +01:00
Michael Stefaniuc 0f5d042ff2 kernel32: Don't use HIWORD to check for swapped args in GetCurrentDirectoryA. 2010-02-10 14:33:35 +01:00
Alexandre Julliard 5f9f260e42 kernel32: Avoid truncating the output buffer length in GetCurrentDirectoryA. 2010-02-01 13:22:41 +01:00
Nikolay Sivov 6d270a1d48 kernel32: Fix SearchPath parameter validation with tests. 2009-12-22 13:48:25 +01:00
Paul Vriens d58bd680b1 kernel32: Fix a crash with GetLongPathNameW and UNC path names. 2009-12-17 13:25:51 +01:00
Alexandre Julliard aadf703fc0 ntdll: The meaning of the flag is inverted between RtlWow64EnableFsRedirection and RtlWow64EnableFsRedirectionEx. 2009-10-28 10:55:19 +01:00
Alexandre Julliard 03d6da0894 kernel32: Add implementation of GetSystemWow64DirectoryA/W. 2009-07-07 11:42:03 +02:00
Alexandre Julliard 26caf2fdda kernel32: Forward the Wow64 redirection functions to ntdll. 2009-07-06 15:09:29 +02:00
Alexandre Julliard fb04bcf638 Fix position of CDECL qualifier for functions that return pointers. 2009-02-06 14:54:01 +01:00
Hans Leidekker 2095ba19bb kernel32: Add stub implementations of Wow64DisableWow64FsRedirection and Wow64RevertWow64FsRedirection. 2009-01-29 12:17:58 +01:00