Commit Graph

546 Commits

Author SHA1 Message Date
Oleg Prokhorov 947c61e4f7 Avoid HeapReAlloc of a NULL pointer. 2003-10-09 19:49:05 +00:00
Alexandre Julliard 2f4f2908ae Removed dependency on ntdll_misc.h. 2003-10-08 03:52:11 +00:00
Alexandre Julliard 01def427b7 Pass the cdrom device path in CDROM_InitRegistry so that ntdll doesn't
need to call DRIVE_GetDevice.
Get rid of GetDriveType calls.
2003-10-08 02:59:22 +00:00
Alexandre Julliard af192f83b6 Store a "removable" flag instead of the full drive type in the server
file object; this way we don't need to use GetDriveTypeW in the loader
code.
Make sure we always have a valid builtin_load_info pointer.
2003-10-08 00:25:32 +00:00
Alexandre Julliard 841f898663 Converted process creation to Unicode. 2003-10-04 04:09:41 +00:00
Pavel Roskin c8160055e8 Implemented GetCompressedFileSize[AW]. 2003-10-03 03:31:46 +00:00
Alexandre Julliard 4137aecaa5 Changed LdrLoadDll to only search for the dll in the specified path,
using ntdll functions.
Moved LOAD_WITH_ALTERED_SEARCH_PATH functionality to LoadLibraryEx
where it belongs.
2003-10-02 04:58:49 +00:00
Alexandre Julliard ae78c3c62f Hack to update ntdll current directory value in DRIVE_Chdir. 2003-10-02 04:44:32 +00:00
Alexandre Julliard f80b869939 Converted most of the loader code to Unicode. 2003-09-29 20:42:24 +00:00
Alexandre Julliard 2d13956285 The "Path" value of the "App Paths" entry should be handled in
ShellExecute by changing PATH in the new process, instead of being
done in SearchPath.
2003-09-26 04:35:01 +00:00
Alexandre Julliard 240b0a9b48 Moved the Windows version code to dlls/ntdll, and implemented
RtlGetVersion and RtlVerifyVersionInfo.
Moved the 16-bit and DOS version support to dlls/kernel.
2003-09-24 05:26:00 +00:00
Alexandre Julliard 8db8368ee7 Keep the file handle of 16-bit modules open while the module is
loaded. This makes it possible to remove the InstallShield hack in
OpenFile16.
Moved LoadLibrary32_16 to kernel.
2003-09-18 04:35:34 +00:00
Alexandre Julliard 2ac34461ad Reimplemented the 16-bit FindFirstFile, FindNextFile and FindClose
functions on top of their 32-bit counterpart, and moved them to
dlls/kernel.
2003-09-18 04:25:31 +00:00
Alexandre Julliard 65e7196fed Moved most kernel string functions to dlls/kernel. 2003-09-16 20:35:42 +00:00
Alex Pasadyn 33854afbe0 - Use HeapAlloc instead of GlobalAlloc in FindNextFile.
- Add test for FindNextFile that checks last error value.
2003-09-16 01:22:05 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Stefan Leichter a98f12973e Moved implementation of QueryDosDevice from ascii to unicode. 2003-09-02 18:14:50 +00:00
Alexandre Julliard 94463d7bbe Moved profile functions to dlls/kernel. 2003-08-26 02:54:37 +00:00
Alexandre Julliard 5fbb446cfc Moved most of the 16-bit task support and NE module loader to
dlls/kernel.
2003-08-23 00:03:40 +00:00
Eric Pouech f3d2a8d42d Removed the DOSFS_ specific time related conversion routine, and make
use of the ntdll equivalents.
2003-08-20 03:40:21 +00:00
Eric Pouech 7435723e11 Removed code for handling ${VAR} constructs in .ini files. 2003-08-20 03:39:07 +00:00
Alexandre Julliard e0deb0c627 Replaced remaining calls to PROFILE_GetWineIniString/Bool by direct
registry accesses.
2003-08-19 03:21:04 +00:00
Alexandre Julliard 19b6a49845 Allocate DebugInfo field for all critical sections (based on a patch
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
2003-08-12 23:50:54 +00:00
Mike McCormack 5ef127a000 Fix a couple of bugs in CDROM_GetSerial:
- it would fail if DeviceIoControl succeeded.
 - it would leak handles in some cases.
2003-07-21 20:02:23 +00:00
Alexandre Julliard d9780a8b3e Fixed compile when functions are not inlined. 2003-07-03 18:12:38 +00:00
Stefan Leichter eec7e0c734 Added line wrapping for a FIXME. 2003-06-27 19:40:56 +00:00
Eric Pouech 9bd4f6bf15 - made async.h ready for use in ntdll: replaced all calls to kernel32
functions with ntdll equivalent
- replaced status setter/getter for wine async structures with direct
  access to a (now included) IO_STATUS_BLOCK structure
- since we now have a IO_STATUS_BLOCK in async_private, we no longer
  need in most of the user (derivated) structures a field for
  LPOVERLAPPED (it's stored as the IO_STATUS_BLOCK)
- rewrote the async.h users accordingly
- implemented ntdll.Nt{Read|Write}File and let
  kernel32.{Read|Write}File(Ex)? use those new ntdll functions
- rewrote smb read/write interfaces to be more ntdll stylish (no
  overlapped yet)
2003-06-26 02:08:17 +00:00
Bill Medland af81a021a0 A little SMB preparatory work:
Don't publish internal information.
Add a function for detecting UNC names.
Account for the fact that NT allows either separator character.
2003-06-24 19:23:25 +00:00
Alexandre Julliard dc4b0c7655 Moved tape.c to dlls/kernel.
Moved critical section and resource update functions to dlls/kernel.
Started moving some of the thread functions too.
2003-06-24 03:34:15 +00:00
Eric Pouech f6a70969e1 - start moving a few file related functions from files/file.c to
dlls/kernel subdir (also splitting 16bit APIs in a separate file)
- implemented ntdll.Nt{Lock|Unlock}File, and made use of those for the
  kernel32 equivalent
- implemented a few information classes in NtQueryInformationFile and
  NtSetInformationFile (still lots of missing classes)
- enhanced the get_file_info server request in order to implement
  correctly NtQueryInformationFile (change time & file alloc size)
- rewrote registry loading to comply with latest changes
2003-06-24 02:32:01 +00:00
Eric Pouech c962a6997c - in kernel32, replaced all {Enter|Leave}CriticalSection calls with
ntdll counterparts
- {Enter|Leave}CriticalSection is now a pure forward from kernel32 to
  ntdll (we now longer can use {Enter|Leave}CriticalSection in kernel32)
- replaced a few kernel32 heap management calls from ntdll, with
  RtlHeap* equivalents
2003-06-23 18:12:28 +00:00
Eric Pouech 412d37f6e6 - adapted kernel32 so that it no longer (directly) manages console
handles as wineserver handles
- console input handle object is no longer waitable (input record
  synchronisation is now implemented as a simple semaphore), and removed
  FD_TYPE_CONSOLE from fd types in wineserver
- console handles now always have their two lower bit set so one can
  distinguish a console handle from a kernel object handle
- implemented some undocumented kernel32 console related APIs
  (CloseConsoleHandle, GetConsoleInputWaitHandle, OpenConsoleW,
  VerifyConsoleIoHandle, DuplicateConsoleHandle)
- allowed a few kernel32 APIs to take console pseudo-handles
  (FlushFileBuffer, GetFileType, WaitFor*Object*)
- simplified the console inheritance at process creation
- in console tests, no longer create a console if one already exists
2003-06-21 02:07:10 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Alexandre Julliard 693bbd79b6 Make it possible to retrieve an inheritable handle in open_named_pipe
(spotted by Uwe Bonnes).
2003-06-14 01:31:56 +00:00
Francois Gouget 61aac4eaa1 Fix some typos. 2003-06-04 20:29:05 +00:00
Jukka Heinonen f07dfff17b Migrate most int21 ioctl routines to winedos.
Migrate int21 set drive routine to winedos.
2003-06-04 20:17:52 +00:00
Mike McCormack 11d09a8330 Removed unnecessary casts. 2003-05-19 19:04:28 +00:00
Philip Mason 1840e1890f Force FILE_GetTempFileName to continue looking for new temp file name
if error returned from CreateFileW is ERROR_SHARING_VIOLATION.
2003-05-15 22:57:48 +00:00
Eric Pouech b6338878a8 Moved kernel32.FlushFileBuffers to ntdll.NtFlushBuffersFile. 2003-04-22 04:04:17 +00:00
Michal Janusz Miroslaw eaee47e755 Fixed typo in comment. 2003-04-19 02:48:34 +00:00
Michal Janusz Miroslaw 9786b058df On Linux: avoid blocking in DOSFS_OpenDir_VFAT if specified path is
not a directory.
2003-04-19 02:47:08 +00:00
Michal Janusz Miroslaw ac1d1056d4 Refuse to read non-block device set in config.
Avoid blocking on open if user sets device to unconnected pipe.
2003-04-17 02:13:01 +00:00
Uwe Bonnes 0de21b651e FindFirstFile on root directory should fail. 2003-04-17 02:10:04 +00:00
Alexandre Julliard cce7e25827 Make DRIVE_FindRootW really behave like DRIVE_FindRoot. 2003-04-08 03:58:42 +00:00
Mike Hearn 1fc2142a28 Correct the error code returned when a file does not exist. 2003-04-04 22:05:10 +00:00
Adam Gundy 8e94fbf305 Don't read uninitialized data when a '$' is found. 2003-03-30 01:35:07 +00:00
Alexandre Julliard 5537dbbf40 Replaced WINE_CHECK_STRUCT_MEMBER autoconf macro by the standard
AC_CHECK_MEMBERS. Added check for si_fd in siginfo_t.
2003-03-28 00:36:12 +00:00
Alexandre Julliard 3e588e3a57 Implemented file change notifications, based on a patch by Mike
McCormack.
2003-03-26 23:41:43 +00:00
Gerald Pfeifer 7a9119207c Add trailing full-stop to warning in DIR_GetPath(). 2003-03-25 00:33:12 +00:00
Stefan Leichter b56950864b Moved implementation of GetPrivateProfileInt from ascii to unicode. 2003-03-23 20:03:13 +00:00