Commit graph

52989 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 0a679dbf86 [CONSRV]
Attempt to fix terminal window positioning at initialization. Some work also needs to be done in console.dll.

svn path=/branches/ros-csrss/; revision=58463
2013-03-10 15:56:35 +00:00
Hermès Bélusca-Maïto 17c9d97fe7 [CONSRV]
- Fix console initialization / uninitialization and resources release when initialization fails.
- Remove unneeded DPRINTs.

svn path=/branches/ros-csrss/; revision=58462
2013-03-10 15:37:22 +00:00
Hermès Bélusca-Maïto 4ec191c413 [CONSOLE.DLL-CONSRV]
Fix cursor size.

svn path=/branches/ros-csrss/; revision=58459
2013-03-10 02:23:46 +00:00
Hermès Bélusca-Maïto 840ea98cba Synchronize with trunk r58457.
svn path=/branches/ros-csrss/; revision=58458
2013-03-10 01:01:36 +00:00
Eric Kohl e850321ffc [LSASRV]
- Implement LSA dispatch routines LsapAllocateClientBuffer, LsapFreeClientBuffer, LsapCopyToClientBuffer and LsapCopyFromClientBuffer.
- LsapCallAuthenticationPackage and LsapLogonUser: Copy data from the callers address space into a local buffer and pass it to the authentication package.

svn path=/trunk/; revision=58457
2013-03-09 22:32:53 +00:00
Hermès Bélusca-Maïto b4413b4ef8 [KERNEL32-USER32]
No need to check ApiMessage.Status if you also check the returned value of CsrClientCallServer because, according to dll/ntdll/csr/connect.c:CsrClientCallServer, the (only) return value of CsrClientCallServer _is_ equal to ApiMessage.Status (vide line 169).

svn path=/branches/ros-csrss/; revision=58456
2013-03-09 22:16:26 +00:00
Hermès Bélusca-Maïto 5819952ab9 [CONSRV-USER32-WINSRV]
Pre-synchrosize with trunk, by applying some changes from revision r58411.

svn path=/branches/ros-csrss/; revision=58455
2013-03-09 21:52:12 +00:00
Hermès Bélusca-Maïto 62f4efcc97 [KERNEL32-CONSRV]
Remove the old implementation of GetConsoleInputWaitHandle which was commented-out for some time.

[BASESRV]
Correct few names.

svn path=/branches/ros-csrss/; revision=58454
2013-03-09 21:21:37 +00:00
Hermès Bélusca-Maïto c708f46621 [NTDLL]
Fix CsrCaptureTimeout (verified against Windows Server 2003).

[KERNEL32-CSRSRV-BASESRV-CONSRV-WINSRV]
Clean the code: remove unuseful comments and dprints, reorganize a little bit few source files.

svn path=/branches/ros-csrss/; revision=58453
2013-03-09 21:08:23 +00:00
Timo Kreuzer 4e493e9959 [USER32]
MsgiAnsiToUnicodeReply: Use heap buffer for MDICREATSTRUCT instead of returning a pointer to a stackbuffer.

svn path=/trunk/; revision=58452
2013-03-09 18:28:30 +00:00
Eric Kohl 3f5bf2bb48 [LSASRV]
- Move LsapLookupAuthenticationPackage, LsapCallAuthenticationPackage and LsapLogonUser from authport.c to authpackage.c.
- Make LsapCallAuthenticationPackage and LsapLogonUser call the matching authentication package functions.

svn path=/trunk/; revision=58451
2013-03-09 15:54:45 +00:00
Sylvain Petreolle e5ef5f569f [BOOTDATA]
CurrentVersion, CSDVersion and CurrentBuildNumber are REG_SZ strings, not REG_EXPAND_SZ.


svn path=/trunk/; revision=58450
2013-03-09 15:06:50 +00:00
Hermès Bélusca-Maïto fa34f9c8ee [KERNEL32]
Further correct 4 console winetests.

svn path=/branches/ros-csrss/; revision=58449
2013-03-09 14:18:10 +00:00
Hermès Bélusca-Maïto 7268b8776a [CONSRV]
Fix the initialization of screen buffers (concerning the cursor size).

[KERNEL32]
Fix almost all of the console winetests. Only 26 tests remain to be fixed, concerning principally WriteConsoleInputA/W and GetNumberOfConsoleInputEvents.

svn path=/branches/ros-csrss/; revision=58448
2013-03-09 01:39:49 +00:00
Hermès Bélusca-Maïto 818ee21a07 [CONSRV]
- Start to sort out things that depends only of the internals of a console, and things which are only related to "terminal emulators". Do it especially for (what I will call starting from now) the "GUI terminal emulator".
- Temporarily deactivate starting "TUI terminals".
- Temporarily break report that the terminal window is held by the current running console application in it (see r58107). This will be fixed later on.

svn path=/branches/ros-csrss/; revision=58447
2013-03-08 23:37:11 +00:00
Hermès Bélusca-Maïto 6a951babef [SERVICES-ADVAPI32]
- Check for possible null pointers (invalid address) before dereferencing them.
- Correct some DPRINT formatting.

svn path=/trunk/; revision=58446
2013-03-08 22:40:38 +00:00
Hermès Bélusca-Maïto 9883df5d8c The 'i' variable being only used for displaying the array of parameters (when debug output is enabled), disable it also to avoid "error: unused variable 'i'".
svn path=/trunk/; revision=58445
2013-03-08 21:22:05 +00:00
Hermès Bélusca-Maïto 5cd9147a13 [SERVICES]
- Disable an unuseful DPRINT.
- Remove a redundant variable lpConfig.

svn path=/trunk/; revision=58444
2013-03-08 21:19:12 +00:00
Hermès Bélusca-Maïto 4691b190f5 [SERVICES]
* Fix some format specifiers (part 2 of r58442). Thanks Amine :)
* Remane two "global" static variables to avoid name collision warnings.

svn path=/trunk/; revision=58443
2013-03-08 20:56:18 +00:00
Amine Khaldi 94c53e8fbe [SERVICES]
* Fix some format specifiers.

svn path=/trunk/; revision=58442
2013-03-08 20:49:03 +00:00
Amine Khaldi 53ec8df8cf [CRT]
* Annotate excpt.h.

svn path=/trunk/; revision=58441
2013-03-08 13:55:06 +00:00
Amine Khaldi 387de1766c [CRT]
* Annotate wchar.h.

svn path=/trunk/; revision=58440
2013-03-07 16:46:59 +00:00
Amine Khaldi c6fad56a65 [CRT]
* Annotate string.h.

svn path=/trunk/; revision=58439
2013-03-07 16:45:18 +00:00
Amine Khaldi e51c446164 [CMAKE]
* Add "/nologo" to the MSVC resource compilation rule. Brought to you by Yu Pan (binsys {at} 163 dot com).
CORE-6997 #resolve #comment Committed in r58438.

svn path=/trunk/; revision=58438
2013-03-07 16:22:49 +00:00
Timo Kreuzer fedc58ea2a [WIN32K]
Use _SEH2_YIELD to return from except block. Thanks Hermes.

svn path=/trunk/; revision=58437
2013-03-05 20:03:30 +00:00
Giannis Adamopoulos cf181301af [win32k]
- Initialize NewPos before using it in co_WinPosShowWindow

svn path=/trunk/; revision=58436
2013-03-05 13:39:04 +00:00
Amine Khaldi c58d8a18b1 [CRT]
* Annotate ctype.h.

svn path=/trunk/; revision=58435
2013-03-05 11:27:06 +00:00
Timo Kreuzer b17a7cae7a [WIN32K]
- Fix a bug in EngLoadModuleEx
- Fix a bug in co_IntLoadSysMenuTemplate
- Fix / improve a number of annotations
- Improve code in NtGdiExtGetObjectW
- Check return value of ZwAllocateVirtualMemory and handle error in GdiPoolAllocate
- Fix possible memory leaks in NtGdiPolyDraw
- Check for NtGdiExtCreatePen == NULL instead of passing it to ProbeForRead in NtGdiExtCreatePen
- Simplify code in NtGdiGetTextMetricsW
- Fix a number of format specifiers

svn path=/trunk/; revision=58434
2013-03-05 08:47:51 +00:00
Timo Kreuzer 74f7fce21f [RTL]
Formatting, no code change.

svn path=/trunk/; revision=58433
2013-03-05 08:38:18 +00:00
Timo Kreuzer 09e3d1eace [CMAKE]
Add -mstackrealign option for GCC 4.7+. Seems to fix some problems.

svn path=/trunk/; revision=58432
2013-03-05 08:25:22 +00:00
Timo Kreuzer 3d64816d02 [CDMAKE]
Fix a warning with new RosBE

svn path=/trunk/; revision=58431
2013-03-05 08:07:21 +00:00
Amine Khaldi 9df9d495fb [CRT]
* Annotate stdio.h.

svn path=/trunk/; revision=58430
2013-03-04 21:59:28 +00:00
Amine Khaldi 385dfc1785 [SAL]
* Add _Field_size_part_ annotation.

svn path=/trunk/; revision=58429
2013-03-04 21:58:35 +00:00
Amine Khaldi d8015035d6 [NDK]
* Correct the annotation of ObOpenObjectByName's 4th param.

svn path=/trunk/; revision=58428
2013-03-04 21:49:07 +00:00
Eric Kohl b5aaf7147d [LSASRV]
- Get all procedure addresses of the loaded authentication packages and keep them in the authentication package entry.
- Implement parts of the lda dispatch table (allocate heap and free heap) and pass the table to LsaApInitializePackage call.
- Implement authentication package lookup by name.

[MSV1_0]
- Store the dispatch table entries passed to the LsaApInitializePackage call and use them to allocate a STRING to return the package name.

svn path=/trunk/; revision=58427
2013-03-04 21:32:44 +00:00
Amine Khaldi 66ec3cf59b [CRT]
* Annotate assert.h.

svn path=/trunk/; revision=58426
2013-03-04 21:24:47 +00:00
Amine Khaldi b150ca1663 [SAL]
* Add _Deref_post_opt_valid_, _Deref_pre_opt_valid_, _Deref_pre_z_, _Deref_prepost_opt_valid_, _Deref_prepost_z_, _Out_writes_all_ and _Out_writes_all_opt_ annotations.

svn path=/trunk/; revision=58425
2013-03-04 16:32:18 +00:00
Sylvain Petreolle 36d1ad39aa [TRANSLATION]
Erdem Ersoy : 
- Fix Turkish translation of solitaire and winmine.
- Fix typos of Turkish spider resource file and Ukrainian winmine resource file.
CORE-6991 #resolve #comment Committed in r58424, thanks.


svn path=/trunk/; revision=58424
2013-03-03 23:24:55 +00:00
Amine Khaldi da7afa5eeb [CRT]
* Annotate stdlib.h.

svn path=/trunk/; revision=58423
2013-03-03 22:28:47 +00:00
Amine Khaldi 23ad6ed95e [SAL]
* Add _Inout_opt_z_, _Inout_z_, _Out_writes_bytes_all_opt_, _Post_maybez_, _Prepost_opt_z_ and _Prepost_z_ annotations.

svn path=/trunk/; revision=58422
2013-03-03 21:33:22 +00:00
Eric Kohl 5f16c2b7ed [LSASRV]
- Add authentication package loader code.
- Load registered authentication packages before the rpc server is started.

svn path=/trunk/; revision=58421
2013-03-03 19:43:33 +00:00
Eric Kohl c8725cc1ca [MSV1_0]
Add authentication package stub and add it to the registry.

svn path=/trunk/; revision=58420
2013-03-03 19:11:22 +00:00
Hermès Bélusca-Maïto beff3acbf2 [CONSOLE.DLL]
Use a new unique sample text for fonts and colors overview.

[CONSRV]
Remove few DPRINTs.

svn path=/branches/ros-csrss/; revision=58419
2013-03-03 17:39:44 +00:00
Timo Kreuzer b6825a1328 [WIN32K]
Properly handle glyph positions and take target coordinate transformation into account when caching glyphs. (This is suboptimal, since we might cache duplicates of the same glyphs, but it works). Fixes CORE-4657.

svn path=/trunk/; revision=58418
2013-03-03 17:20:44 +00:00
Hermès Bélusca-Maïto aeed6a7831 [README]
- Precise which target we are primarily aiming at, update the readme a little bit.
- Add it to the installed files.

svn path=/trunk/; revision=58417
2013-03-03 17:16:29 +00:00
Hermès Bélusca-Maïto cfb68e9fdd [CONSOLE.DLL]
Code formatting only (tab --> space indentation)

svn path=/branches/ros-csrss/; revision=58416
2013-03-03 15:47:52 +00:00
Hermès Bélusca-Maïto 28842d99ad [CONSOLE.DLL-KERNEL32-CONSRV]
Fix the console properties dialog, when launching and transmitting console properties. Before, the properties dialog was directly launched by the console server (consrv), running with CSRSS (System) privileges, what constituted a security hole. Now, I create a remote thread in the running process owning the console for launching the properties dialog (thus it has only user privileges, and not System ones anymore). For that purpose, I basically took the technique described in the following paper (Cesar Cerrudo, "Story of a dumb patch", http://www.argeniss.com/research/MSBugPaper.pdf or http://www.scn.rain.com/~neighorn/PDF/MSBugPaper.pdf), where basically the console server shares the console properties via a shared memory section with the console properties dialog dll. The address of the thread which launches the dialog in the context of the console app is given to the console server the same way as we do for the control handler (called e.g. when you press Ctrl-C, etc...)
Of course this is quite hackish, because you have the GUI interface split between the console server and the console properties dialog dll. Something far more elegant would be to put all the GUI thingie into a dedicated dll or exe, running with the same privileges as the console program itself (a kind of console -- or terminal -- emulator).

[CONSOLE.DLL]
Fix retriving / setting colors.c and other things.

[CONSRV.DLL]
- Fix retrieving / setting console properties from the registry (via the HKCU\Console\* keys), via the shell shortcuts (not totally done at the moment, because somebody has to implement properly that thing : http://msdn.microsoft.com/en-us/library/windows/desktop/bb773359(v=vs.85).aspx (NT_CONSOLE_PROPS structure stored as a shortcut data block) (at application launching time), and via the console properties dialog.
- Few DPRINTs removed.

svn path=/branches/ros-csrss/; revision=58415
2013-03-03 15:35:12 +00:00
Timo Kreuzer 858bf16c6d [WIN32K]
Add support for arbitrary scaling matrices when rendering glyphs.
Partly fixes CORE-4657
Todo: handle glyph coordinates

svn path=/trunk/; revision=58414
2013-03-03 14:43:53 +00:00
Eric Kohl 74fa508092 [ADVAPI32]
Remove LsaRegisterPolicyChangeNotification and LsaUnregisterPolicyChangeNotification because they are not exported by advapi32.dll. These functions are exported by secur32.dll instead.

svn path=/trunk/; revision=58413
2013-03-03 13:07:33 +00:00
Dmitry Gorbachev 4e3246a215 [TRANSLATION]
Update/add Turkish translations. Arda Tanrıkulu (ardatanrikulu~AT~gmail~DOT~com).

svn path=/trunk/; revision=58412
2013-03-03 03:30:57 +00:00