Commit graph

21420 commits

Author SHA1 Message Date
Magnus Olsen
e862b8b461 patch from w3seek :Bug #: 1667 : NTOSKRNL: Fix GCC4 warning and return correct error code in NtSignalAndWaitForSingleObject
svn path=/trunk/; revision=23041
2006-07-13 12:30:56 +00:00
Aleksey Bragin
d5f8964338 Free the buffer as MSDN says
svn path=/trunk/; revision=23040
2006-07-13 07:17:13 +00:00
Alex Ionescu
77203d0406 - Add some TIMER values to the ddk.
- Add DPC Settings (Queue Depths, Rates, etc)
- Cleanup System/Run Time Update code.
- Always increase kernel time in PRCB when inside kernel-mode code.
- Get rid of superflous interlocked commands when not needed.
- Improve detection of DPC vs non-DPC time.
- Respect and apply DPC queue/rate rules.
- Allow future use of non-fulltick time increments.

svn path=/trunk/; revision=23039
2006-07-13 06:23:34 +00:00
Alex Ionescu
e037b1c36b - Add ASSERT_QUEUE macro.
- Cleanup queue.c
- Add some ASSERTs
- Properly check for SPecialApcDisable before aborting a wait.
- Fix a bug in KiWaitQueue which was causing us not to remove the queue from the thread's wait list.

svn path=/trunk/; revision=23038
2006-07-13 05:20:43 +00:00
Alex Ionescu
5ecb728b0e - Fix KiAcquireMutexContended, it was broken in contended cases.
- Inline Acquiring/Leaving guarded regions and the gmutex code, instead of going through 3-4 indirect calls.
- Add a mountain of ASSERTs to detect incorrect usage/state.
- Set ->SpecialApcDisable in the Guarded Mutex.
- Fix broken KTHREAD definition. SpecialApcDisable and KernelApcDisable were incorrectly marked as USHORT instead of SHORT, which could cause severe trouble under optimized builds (At least under MSVC, since MSVC wouldn't allow a negative number in an unsigned short).
- Use GM_LOCK_BIT_V.
- Fix broken KeTryToAcquireGuardedMutex prototype.
- Fix broken KGUARDED_MUTEX typedef and add bit values.
- Fix broken Interlocked* prototypes in regards to volatileness.

svn path=/trunk/; revision=23037
2006-07-13 04:20:18 +00:00
James Tabor
b71f24ddc1 -User32: Consolidated InsertMenu and ModifyMenu A&W flags processing. Misc changes too, some based on wine.
svn path=/trunk/; revision=23036
2006-07-12 22:43:45 +00:00
Ged Murphy
f13b4799a6 DIALOG -> DIALOGEX to correctly handle MS Shell Dlg
svn path=/trunk/; revision=23035
2006-07-12 21:52:08 +00:00
Magnus Olsen
7611f8028a patch from w3seek :Bug #: 1669 : Probing macros improvements and fixes
svn path=/trunk/; revision=23034
2006-07-12 21:42:08 +00:00
Magnus Olsen
c80f9e7cea patch from w3seek : Bug#: 1671 : RTL: Fix checking the SACL data area in the Win64 version of RtlSelfRelativeToAbsoluteSD2
svn path=/trunk/; revision=23033
2006-07-12 21:36:05 +00:00
Aleksey Bragin
1d5bff3624 - Fix a mistake with outputting always non-initialized buffer in a DPRINT1
- Add a branch for stopping the screensaver
- Prettify the tracing debug message (it shows now if it's a start or a stop request)
- Add a success-check for RegOpenKeyExW too

svn path=/trunk/; revision=23032
2006-07-12 21:33:14 +00:00
Johannes Anderwald
d94f7c6e2b conio.c:
* create a CSRSS_SCREEN_BUFFER object before TuiInit/GuiInit 
  -> required for variable screen buffer sizes
* improve error handling in CsrCreateScreenBuffer

guiconsole.c:
* directly store WindowSize in CSRSS_CONSOLE struct
* read ScreenBufferSize value from registry and store result in CSRSS_SCREEN_BUFFER 
* use default values for ScreenBufferSize / WindowSize

tuiconsole.c:
* set screenbuffer size to size of physical console size in init

svn path=/trunk/; revision=23031
2006-07-12 21:06:21 +00:00
Hervé Poussineau
b06a110bee Symbolic link should start with \??\, to be able to open the object from kernel mode
svn path=/trunk/; revision=23030
2006-07-12 20:41:28 +00:00
Johannes Anderwald
c19c207f4e * set FontName array to max of LF_FACESIZE
* read WindowSize from registry
* create GUI_CONSOLE_DATA directly in GuiInitConsole
* wait untill GuiWindow has been created (needed for synchronization with variable window sizes)

svn path=/trunk/; revision=23028
2006-07-12 16:48:58 +00:00
Hervé Poussineau
b042f11818 Implement the 'You need to reboot' wizard page, and use it instead of the network message box.
Main advantage is that the message box doesn't appear anymore during second stage setup.

svn path=/trunk/; revision=23027
2006-07-12 15:30:09 +00:00
Aleksey Bragin
fe866c5c43 Stub one more WMI api used by drivers. Kernel just ignores WMI information for now, but drivers are happy since they successfully submit it.
svn path=/trunk/; revision=23026
2006-07-12 14:00:21 +00:00
The Wine Synchronizer
a7e2f91d3f Autosyncing with Wine HEAD
svn path=/trunk/; revision=23024
2006-07-12 12:40:40 +00:00
Johannes Anderwald
48786b8392 revert prev commit
svn path=/trunk/; revision=23023
2006-07-12 12:36:31 +00:00
Aleksey Bragin
8008e440cd Add flags for CryptAcquireCertificatePrivateKey() API
svn path=/trunk/; revision=23022
2006-07-12 12:27:46 +00:00
Johannes Anderwald
e2ff912acc * remove unused/unimplemented clb library
* you need to delete Makefile.auto after this commit

svn path=/trunk/; revision=23021
2006-07-12 12:27:26 +00:00
Johannes Anderwald
9d114d7b18 * norwegian translation by LMH1 from bug(1645)
svn path=/trunk/; revision=23020
2006-07-12 12:08:39 +00:00
Johannes Anderwald
484c24fda3 * set svn:eolstyle native
svn path=/trunk/; revision=23019
2006-07-12 12:00:34 +00:00
Johannes Anderwald
50b81c4cb2 * fix a typo
* fix identation
* bugreport & patch by Jones111
* fixes bug 1656

svn path=/trunk/; revision=23018
2006-07-12 11:55:14 +00:00
Hervé Poussineau
2c576de1f1 Enable plug and play manager in livecd.
svn path=/trunk/; revision=23017
2006-07-12 11:54:04 +00:00
Hervé Poussineau
604e593d4d LiveCD change: don't directly name the shell executable in SYSTEM\Setup key, but run setup.exe, which then loads syssetup.dll, which then runs the selected shell.
This is the first step to do custom operations when running the livecd.

svn path=/trunk/; revision=23016
2006-07-12 11:30:17 +00:00
Filip Navara
7a738ccc46 Fix the RET insns for @InterlockedCompareExchange@12. Spotted by Alex & Aleksey.
svn path=/trunk/; revision=23015
2006-07-11 22:45:45 +00:00
Alex Ionescu
d2e356eda6 - Implement Fast Referencing and fix EX_FAST_REF definition.
- Implement ObReferenceEx and ObDereferenceEx.
- Split off ObpDeferObjectCompletion. A new win2003/vista API requires direct acess to being able to defer deletes.
- Fix some bugs in Process Token management and make it all properly use Fast Referencing.
- When duplicating a token in a new process, don't de-reference it before it's even created, and also insert it.
- Change ExpChangeRundown macro to fix warnings in msvc.

svn path=/trunk/; revision=23013
2006-07-11 19:45:16 +00:00
Johannes Anderwald
f8aab41375 * fix typo
* patch & bug report by Coviti
* fixes bug 1663
* set svn:eol-style native for other resource files

svn path=/trunk/; revision=23012
2006-07-11 17:52:38 +00:00
Alex Ionescu
59a0d277ae - Fix up some stuff in Kernel Gates support.
- Fix up some implementation bugs in Executive Rundown support.

svn path=/trunk/; revision=23011
2006-07-11 15:36:44 +00:00
Hervé Poussineau
05917e3fee Don't change PortData pointer, as it is allocated memory, and so, it is easier to free it when needed.
svn path=/trunk/; revision=23010
2006-07-11 13:38:59 +00:00
Hervé Poussineau
9976565e9f [FORMATTING] Replace tabs by spaces.
No code change

svn path=/trunk/; revision=23009
2006-07-11 13:01:00 +00:00
The Wine Synchronizer
e00e9c842b Autosyncing with Wine HEAD
svn path=/trunk/; revision=23008
2006-07-10 21:39:10 +00:00
The Wine Synchronizer
2a02dd2d72 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23007
2006-07-10 21:32:49 +00:00
The Wine Synchronizer
ca1ba81a06 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23006
2006-07-10 21:25:32 +00:00
Aleksey Bragin
9afe9c3b5c [FORMATTING] / [AUDIT]
- Cleanup a big coding-style mess
- Add UNIMPLEMENTED macro in empty functions (otherwise we will never know if they are being called by a 3rd-party driver)
- Add proper debug headers inclusion in every file
- Add documentation headers into almost every file (except mcb.c and context.c - will be added later)
- Standardize per-file headers (some files still lack contributors names, they will be added later too)

No code change except for adding UNIMPLEMENTED macros in the code. Name.c unlocked because the implementations of functions are trivial and in fact could be derived from their names. Not documented functions will be further reviewed.

svn path=/trunk/; revision=23005
2006-07-10 21:03:26 +00:00
Magnus Olsen
5dd17c2315 fixing broken asm code.
tcslen, wsclen did not check if the string was null or not. 
Adding a NULL pointer check. This make user32 test working and alot other apps. 
  

svn path=/trunk/; revision=23004
2006-07-10 20:02:12 +00:00
Magnus Olsen
06f4494f85 Fixing two user mode crash for menu.
Do not try reading from NULL pointer and compare the value. 
This let me come bit futer with user32_winetest.exe, but we still have some user mode crash with menu. 
  


svn path=/trunk/; revision=23003
2006-07-10 19:32:24 +00:00
Christoph von Wittich
fa1e866a00 -get rid of DllMain@12 because MSVC defaults to_DllMainCRTStartup@12 when using CRT
svn path=/trunk/; revision=23001
2006-07-10 18:16:28 +00:00
Johannes Anderwald
5cfd59e722 * make resources compilable with msvc
svn path=/trunk/; revision=23000
2006-07-10 16:22:03 +00:00
Magnus Olsen
ebb0cc9c2b Fixing a small bug, value where never devliver from SPI and that did make screensaver start direcky and start mulitetimes.
svn path=/trunk/; revision=22998
2006-07-10 15:02:43 +00:00
Johannes Anderwald
a1586aefb1 * set svn:eol-style native
svn path=/trunk/; revision=22997
2006-07-10 14:11:12 +00:00
Johannes Anderwald
c9130e29e7 * fix a few msvc compilation errors (MS powercfg.h does not use include guards)
svn path=/trunk/; revision=22996
2006-07-10 13:47:11 +00:00
Johannes Anderwald
71b51f58d6 * make resource files msvc compilable
* fix size of text in various languages

svn path=/trunk/; revision=22995
2006-07-10 13:30:17 +00:00
Aleksey Bragin
98e2bc66e5 Add DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export function
svn path=/trunk/; revision=22994
2006-07-10 13:10:22 +00:00
Aleksey Bragin
6f20e7b31b Thomas Weidenmueller: Fix GCC4 warnings
svn path=/trunk/; revision=22993
2006-07-10 11:42:28 +00:00
Aleksey Bragin
c3ecaa36f1 - Remove IopGetLowestDevice() call from IoRegisterDeviceInterface() (hpoussin approved this change)
- Add a few DPRINTs to easier see failures of exported APIs

svn path=/trunk/; revision=22992
2006-07-10 09:54:50 +00:00
Aleksey Bragin
645a3280f5 Sync with Wine: Update EDIT_EM_SetMargins in EDIT control.
svn path=/trunk/; revision=22991
2006-07-10 08:56:02 +00:00
Aleksey Bragin
e11e4547e1 Dmitry Philippov: Fix a bug with firstly overwriting the value, and then trying to use variable for comparation (should be vice-versa: firstly compared what was passed, then overwrite with a new value)
svn path=/trunk/; revision=22990
2006-07-10 08:33:02 +00:00
James Tabor
496f31dce3 - User32 menu
- Fixed and modified MenuDrawBitmapItem, MenuGetBitmapItemSize and MenuCalcItemSize. Based on Wine ports.
 - Fixed menu bar drawing and maintained most callback changes (for Miranda). Implemented flat menu support. Some other misc changes. Owner drawing is still broken (Free pascal project Lazarus). Run user32_crosstest from Wine, still more rewriting is needed.

svn path=/trunk/; revision=22989
2006-07-10 05:52:41 +00:00
Magnus Olsen
7ad01239f2 Implement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if it work
svn path=/trunk/; revision=22988
2006-07-10 01:48:46 +00:00
Magnus Olsen
b38fbf4730 putting back Christoph_vW patch that was revert by me
svn path=/trunk/; revision=22987
2006-07-10 01:45:03 +00:00