Commit graph

29381 commits

Author SHA1 Message Date
Aleksey Bragin fcdad0ecd0 - Sync RPC headers with Wine.
svn path=/trunk/; revision=32114
2008-02-04 13:15:01 +00:00
Aleksey Bragin ac79d6ae4b - Make Mm allocation strategy low->high by default.
- Clean up Mm APIs which are not needed anymore.
- Get rid of the LOADER_HIGH_ZONE definition, now the real LoaderPagesSpanned value is calculated and used. As a result, minimum memory requirement (which was >= LOADER_HIGH_ZONE) is gone, and a maximum amount of memory which could be allocated is also gone (previously, not more that the LOADER_HIGH_ZONE).
- IMPORTANT: The FAT filesystem caching is disabled by default now due strange problems in 3rd boot stage, after switching the cache to use heap routines. Cache can't use non-heap routines anymore, since the memory will overlap the contigious modules memory space which ReactOS needs.
- More cleanup and more usage of the heap routines for temporary buffers.
- Fix a bug in MmAllocateMemoryWithType, where result of MmFindAvailablePages was checked against -1 in error case, when in reality it's 0 (spotted by Alex). NB: 0 page is marked as a reserved in x86 arch, so it's never going to be returned as an available.

svn path=/trunk/; revision=32113
2008-02-04 10:45:55 +00:00
Aleksey Bragin f971658fb8 - Make other filesystems use the new heap mm routines.
svn path=/trunk/; revision=32112
2008-02-04 09:37:59 +00:00
Timo Kreuzer 73bf020856 - recurse into IntGdiDeleteDC directly, instead of going back to NtGdiDeleteObjectApp and pass Force parameter on.
- add a FIXME for dangerous code

svn path=/trunk/; revision=32111
2008-02-04 03:31:09 +00:00
Timo Kreuzer edff92650c - simplify a check
- fix a check
- fix a region leak
- don't abuse GDIOBJ_LockObj to validate a handle, use GDIOBJ_ValidateHandle instead
- add some additional debug output

svn path=/trunk/; revision=32110
2008-02-04 03:22:27 +00:00
Timo Kreuzer faf0212f7b - remove GDIOB_XxxDbg functions
- enhance backtracing and debug output for GDI_DEBUG
- implement GDIOBJ_ValidateHandle()
Stack record dumping is commented out atm due to missing support from ntoskrnl

svn path=/trunk/; revision=32109
2008-02-04 03:17:37 +00:00
Aleksey Bragin 4c73dc576a - Revert 32105 to make trunk bootable, as agreed with Colin.
svn path=/trunk/; revision=32108
2008-02-03 21:47:35 +00:00
Aleksey Bragin c7a1042e5c - Make caching enable/disable a runtime switch instead of a compile time one.
svn path=/trunk/; revision=32107
2008-02-03 18:51:48 +00:00
Timo Kreuzer 005a190594 fix a DC handle leak
svn path=/trunk/; revision=32106
2008-02-03 14:26:52 +00:00
Colin Finck 77a3a581b7 - Use host/typedefs.h for rsym instead of reinventing the wheel for host types
- Get rsym to compile warning-free under any host

svn path=/trunk/; revision=32105
2008-02-03 13:53:27 +00:00
Colin Finck bec6c89c6d Get inflib_host to build warning-free
svn path=/trunk/; revision=32104
2008-02-03 13:36:10 +00:00
Colin Finck 720b53c4b2 Finally fix all cabman warnings and the 64-bit build
svn path=/trunk/; revision=32103
2008-02-03 11:52:42 +00:00
Aleksey Bragin 5b397144a9 - Remove accidentally committed stuff, noticed by Stefan.
svn path=/trunk/; revision=32102
2008-02-03 11:50:26 +00:00
Colin Finck da6d641d4e Fix many warnings (hopefully all) in cabman under different hosts.
We cast all ULONG's to UINT's here, because this is the only type for which we can be sure that it defines to "unsigned int".
ULONG is "unsigned long" with the Windows headers and "unsigned int" with the host headers (for 64-bit compatibility), therefore we need the casts.

svn path=/trunk/; revision=32101
2008-02-03 11:23:31 +00:00
Daniel Reimer aab2c713d3 German Translations by Dark_Shadow@gmx.at
svn path=/trunk/; revision=32100
2008-02-03 08:34:44 +00:00
Daniel Reimer 920359cc1b German RC File Updates by (Dark_Shadow@gmx.at)
svn path=/trunk/; revision=32099
2008-02-03 08:21:00 +00:00
Christoph von Wittich 5751b595ac build unicode version
svn path=/trunk/; revision=32098
2008-02-02 22:49:24 +00:00
Christoph von Wittich 9c69b6f7f8 add support for /macrofile (bit hacky - but it should work for RosBE)
svn path=/trunk/; revision=32097
2008-02-02 21:52:46 +00:00
Christoph von Wittich f536a06a34 support for adding and deleting macros
doskey macroname=command
doskey macroname=

svn path=/trunk/; revision=32096
2008-02-02 21:32:11 +00:00
Christoph von Wittich 2b87bc4cd1 add doskey to bootcd
svn path=/trunk/; revision=32095
2008-02-02 21:26:26 +00:00
Christoph von Wittich 2b18c773d7 add doskey (not finished yet)
svn path=/trunk/; revision=32094
2008-02-02 21:23:38 +00:00
Christoph von Wittich 775daf6fd1 rewrote alias handling in cmd for doskey compatibility
implemented AddConsoleAliasA, GetConsoleAliasesLengthA, GetConsoleAliasesLengthW
halfplemented: AddConsoleAliasW, GetConsoleAliasW, GetConsoleAliasesW

svn path=/trunk/; revision=32093
2008-02-02 21:06:53 +00:00
Colin Finck 3fdd323b73 - Fix funky ways of checking for success, when calling SetFilePointer.
The only correct and always working way is checking for INVALID_SET_FILE_POINTER.
- Fix setting the file attributes.
  We didn't pass the destination directory before, so if the user specified another destination directory, the SetFileAttributes call failed.
- Simplify GetAttributesOnFile and SetAttributesOnFile

svn path=/trunk/; revision=32092
2008-02-02 19:21:35 +00:00
Aleksey Bragin 6a480b0db6 - Mark APIC's memory as WriteThrough / CacheDisabled.
svn path=/trunk/; revision=32090
2008-02-02 15:15:41 +00:00
Colin Finck b1d37b0e86 - Add an -M option to specify, which compression codec shall be used (either "raw" or "mszip")
- Enable the RAW codec in the SelectCodec() function
- Don't initialize a codec in the CCabinet constructor, this will be done by the ParseCmdline() function
- Fix parsing the -L and -P parameters, when there's no whitespace between the parameter and the value
- Remove some unneeded casts
- Remove the cabman vesion number, it was never updated, although there were many changes since the first version

svn path=/trunk/; revision=32089
2008-02-02 14:32:44 +00:00
Colin Finck 982e1cf181 Get it to compile warning-free under MSVC (at /W3)
svn path=/trunk/; revision=32087
2008-02-02 12:05:05 +00:00
Colin Finck 8dc242259f [FORMATTING] TABs -> 4 spaces
svn path=/trunk/; revision=32086
2008-02-02 11:57:16 +00:00
Christoph von Wittich d91afce7df display short version info for "ver" as default
use /c, /r or /w to get more details

svn path=/trunk/; revision=32085
2008-02-02 11:03:43 +00:00
Christoph von Wittich 696d5b4b7c move code to the correct position to handle all cases in 'if'
svn path=/trunk/; revision=32084
2008-02-02 10:52:29 +00:00
Christoph von Wittich 9b8be30ee9 don't overwrite terminating \0 char
some code cleanup

svn path=/trunk/; revision=32083
2008-02-02 10:38:37 +00:00
Christoph von Wittich ddf20ad13d fix length calculation for :~
svn path=/trunk/; revision=32082
2008-02-02 09:29:42 +00:00
Christoph von Wittich 18e69dbf76 set correct varNameLen for %~dp0
svn path=/trunk/; revision=32081
2008-02-02 09:21:22 +00:00
Christoph von Wittich 3a1bd096c1 fix formatting
svn path=/trunk/; revision=32080
2008-02-01 23:27:27 +00:00
Colin Finck 7901978873 Wrote a Win32 Font Editor for our VGA Fonts used in blue.sys.
It has a MDI user interface, imports binary fonts (.bin) and PC Screen Fonts (.psf) and exports .bin fonts.
Compiles without any warnings with GCC and MSVC (at /W3).

The "misc.c" file was taken from devmgmt (thanks Ged!) and modified.
The used bitmaps and icons were all done myself, but partly consist of characters of the cp737 font we have in media/vgafont.

svn path=/trunk/; revision=32079
2008-02-01 21:40:18 +00:00
Christoph von Wittich 817d837921 fix a problem with length calculation
handle vars with exclamation marks instead of %
like !errorlevel!

svn path=/trunk/; revision=32078
2008-02-01 21:25:21 +00:00
Colin Finck 821c381455 Remove some redefined macros from "winnls.h"
As we set #pragma GCC system_header, all warnings are suppressed for that header, but in MSVC they are shown again.

svn path=/trunk/; revision=32077
2008-02-01 21:22:02 +00:00
Christoph von Wittich 8872eea630 ZeroMemory the batchfile path
svn path=/trunk/; revision=32076
2008-02-01 20:30:51 +00:00
Aleksey Bragin 6db22908ce - Filip Navara: Take into account non-fast/non-hash indices in CmPrepareHive.
- Apply similar changes to freeldr's registry importing function.

svn path=/trunk/; revision=32075
2008-02-01 18:53:43 +00:00
Peter Ward 4e8df678d2 - Make dp0 give the directory the batch was run from instead of the current directory.
svn path=/trunk/; revision=32074
2008-02-01 14:15:41 +00:00
Christoph von Wittich cf39f6646d fix a bug in goto
a stubs for setlocal and endlocal (our default is delayed expansion)

svn path=/trunk/; revision=32073
2008-02-01 09:49:58 +00:00
Sebastian Gasiorek 8c1cafd4fb Polish resource changes:
- change Wine to ReactOS in "Run" dialog
- insert and translate IDS_RESTART

svn path=/trunk/; revision=32072
2008-01-31 23:17:24 +00:00
Timo Kreuzer e8c790f781 fix definitions of WM_MOUSEWHEEL and WM_MOUSELAST
svn path=/trunk/; revision=32071
2008-01-31 21:29:03 +00:00
Christoph von Wittich 76569bc213 handle call :Label
fix goto :Label

svn path=/trunk/; revision=32070
2008-01-31 20:55:05 +00:00
Christoph von Wittich 97b5e11eba handle %dp0
svn path=/trunk/; revision=32069
2008-01-31 19:01:23 +00:00
Christoph von Wittich 11ca34b0e3 support else
handle negative values in special envvars
stdin,out,err can't be redirected for windows gui apps

svn path=/trunk/; revision=32068
2008-01-31 17:59:02 +00:00
Christoph von Wittich 00e33fbce3 don't print the new color value when echo is off
svn path=/trunk/; revision=32067
2008-01-31 17:26:57 +00:00
Daniel Reimer c3148085fe Bug 3021: slovak translations of rosapps (kario@szm.sk)
svn path=/trunk/; revision=32066
2008-01-31 16:41:33 +00:00
Christoph von Wittich 8f8faff777 allow nested (...) blocks (but still no support for else)
svn path=/trunk/; revision=32065
2008-01-31 15:11:25 +00:00
Christoph von Wittich 4a894bb597 rename it back to matrix.src to get it included on bootcd again
svn path=/trunk/; revision=32064
2008-01-31 10:35:34 +00:00
Christoph von Wittich 871c1fe88e fix storing and loading registry settings
svn path=/trunk/; revision=32063
2008-01-31 10:05:02 +00:00