Commit Graph

91 Commits

Author SHA1 Message Date
Gerald Pfeifer 6b7957f4db winedos: Use DWORD instead of long for return values of SetFilePointer.
Adjust type of loop variable in INT21_Ioctl_Char().
2007-11-26 13:57:20 +01:00
Alexandre Julliard b8d1560ac3 winedos: Fix the device open code for the new NtCreateFile syntax for Unix files. 2007-06-18 12:53:40 +02:00
Andrew Talbot bf98c9d182 winedos: Declare some items static. 2007-02-05 17:11:51 +01:00
Alexandre Julliard d2abcecd94 winedos: Use NT instead of Unix calls to identify DOS device pseudo-files. 2006-10-31 20:24:14 +01:00
Michael Stefaniuc db4eaf5e6f winedos: Win64 printf format warning fixes. 2006-10-03 15:55:37 +02:00
Dan Kegel 91f9746d2f winedos: Limit reported disk space to 1GB. 2006-07-24 12:57:34 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard b7b7f2b679 Avoid importing _strlwr/_strupr from ntdll. 2006-01-24 12:24:05 +01:00
Rein Klazes 43694d9582 winedos: Open files with write access on read only media.
If the CreateFile in INT21_CreateFile fails with ERROR_WRITE_PROTECT,
retry without write access.
2006-01-10 12:12:46 +01:00
Eric Pouech 9577e5e296 ioctl 440F only returns non mapped drives (for now). 2005-10-17 08:54:28 +00:00
Christian Lupien 112115bd22 Avoid overflow in the read file limit check. 2005-09-18 11:11:36 +00:00
Alexandre Julliard d3dba4e56c Fixed gcc 4.0 warnings. 2005-09-12 10:52:38 +00:00
Eric Pouech 16df50efbe Moved DOS memory handling to winedos. 2005-05-10 15:22:09 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Rein Klazes b08f958157 In int21_ioctl - get device data-, set the "is console" bits if the
device handle is a tty or a proper console io handle.
2005-01-14 16:21:07 +00:00
Eric Pouech bcfa5b0900 ReadFile and WriteFile must be passed a parameter for the number of
handled bytes when no overlapped operation is done.
2004-12-22 18:38:31 +00:00
Eric Pouech eefb72c826 Fixed copy&paste error. 2004-12-13 12:04:14 +00:00
Francois Gouget 3bb5b093e8 Assorted spelling fixes. 2004-10-22 22:27:51 +00:00
Hans Leidekker 719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Markus Amsler 843e58d3bb Respect given buffer size in GET EXTENDED COUNTRY INFORMATION. 2004-09-08 19:05:43 +00:00
Markus Amsler c9b7791198 Fix filename terminator table, correct exclude_last value. 2004-09-07 22:45:58 +00:00
Andreas Mohr 6c3ef7e77d - fix int21 block device read/write
- moved device block access log messages to inner function used by two
  different places
- removed bogus CloseHandle()
2004-09-07 20:26:58 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Markus Amsler 9af457edd8 Add DOS editing key support in BUFFERED INPUT. 2004-08-14 00:49:39 +00:00
Markus Amsler ff828161fd Make FINDFIRST working with /. 2004-08-13 00:39:58 +00:00
Markus Amsler 448dc4fa1e Fixed drive mapping in GET ALLOCATION. 2004-08-09 23:39:12 +00:00
Marcus Meissner f4c813f74b Remove lvalue casts that are no longer supported. 2004-07-12 19:53:24 +00:00
Alexandre Julliard 225c6d2cee Check for non-existent directory in INT21_SetCurrentDirectory to
return a proper error when the directory is not on the current drive.
2004-06-17 04:26:17 +00:00
Rein Klazes a1e8ba9fc2 In INT21_GetFreeDiskSpace adjust the sectors-per-cluster value to make
the total number of clusters fit in a 16 bit register.
2004-06-03 23:20:35 +00:00
Jukka Heinonen 6844c3b59b Implement DOS7 canonicalize path function as a conversion to short
file name.
2004-04-26 20:05:30 +00:00
Alexandre Julliard 73d9e1a62f Fixed/updated the file attributes defines. 2004-04-19 23:11:31 +00:00
Alexandre Julliard bd1fdeddaa Update the drive environment strings when changing the current
directory from 16-bit or DOS code.
2004-04-16 00:08:11 +00:00
Alexandre Julliard 1a833442a1 Replaced create_file server requests by a call to NtCreateFile. 2004-04-14 04:31:55 +00:00
Alexandre Julliard 49b2f6d964 Get rid of the removable media handling in the server. 2004-04-06 23:41:01 +00:00
Alexandre Julliard 22508e576f FindFirstFile can return an empty short name if the long name is a
valid DOS name, fixed callers to handle that properly.
2004-03-17 01:50:27 +00:00
Alexandre Julliard 014099caf5 Changed the create_file server request to take NtCreateFile flags
instead of CreateFileW ones (based on a patch by Eric Pouech).
2004-03-12 01:56:49 +00:00
Alexandre Julliard 8045ad5c0e Removed some unnecessary definitions from file.h.
Got rid of drive.h.
2004-03-09 23:51:02 +00:00
Alexandre Julliard 16de1f7aff Changed handling of special DOS devices to use real file handles
instead of the server device object.
2004-02-24 01:07:52 +00:00
Eric Pouech 768008fa20 - got rid of FILE_Dup2 export from kernel32
- move all dos handle related code into dlls/kernel32
2004-01-14 04:34:20 +00:00
Steven Edwards cfcc449324 Porting fixes. 2003-11-26 22:29:30 +00:00
Uwe Bonnes 111b1cbf68 INT21_GetFreeDiskSpace(): The drive parameter is found in the DL
register.
2003-11-25 03:26:14 +00:00
Alexandre Julliard 436eda3071 Removed task.h. 2003-11-25 00:42:26 +00:00
Alexandre Julliard e983652363 Moved a number of DOS definitions out of the global headers and into
winedos private files. Removed the msdos.h header.
2003-11-15 00:13:20 +00:00
Alexandre Julliard adfa5e101f Repaired INT21_FindFirst/FindNext. 2003-11-14 06:22:32 +00:00
Eric Pouech 8ca6cadab1 - moved the remaining of int21 calls to dlls/winedos
- disabled drive enabling/disabling as well as disk serial number
  writing (for DLL separation issues)
- added volume management prototypes to include/winbase.h
- started DefineDosDevice (needed by first item in this list)
- removed int21 specific code from dlls/kernel
2003-11-14 04:54:39 +00:00
Jukka Heinonen 02a23461ae Implement fat32 extended free space function.
Make fat32 calls reset carry flag explicitly.
2003-11-03 22:13:25 +00:00
Jukka Heinonen 181a7cca2b Moved drive parameter block (DPB) routines to winedos. 2003-10-27 22:06:10 +00:00
Rolf Kalbermatter 76f13deb26 Use INVALID_FILE_ATTRIBUTES to test for failure of
GetFileAttributesA/W and not -1 or 0xFFFFFFFF.
2003-10-16 19:12:49 +00:00
Michael Stefaniuc 11346f94d1 Silence the FIXME's produced by a check for a dos32 extender. 2003-09-22 19:32:51 +00:00