Commit Graph
57252 Commits
Author SHA1 Message Date
Timo Kreuzer a12d2d5e6c [PSEH3]
Start factoring out compiler support for nested functions (neither CLANG not C++ support it, so we will add some other crazy hacks later ;-))

svn path=/trunk/; revision=62402
2014-03-02 22:04:15 +00:00
Amine Khaldi 2948ed43c5 [SHELL32]
* Comment out some unused variables.
* Remove some unused default debug channel declarations.

svn path=/trunk/; revision=62401
2014-03-02 21:45:44 +00:00
Amine Khaldi 665aba875f [PSDK]
* Fix a FIXME.. Actually, the LLVM/Clang folks did this ;)

svn path=/trunk/; revision=62400
2014-03-02 21:42:19 +00:00
Amine Khaldi cdcdc82cda [LIB/ATL]
* Who came up with this _declspec thing ? Was it you Arch ?

svn path=/trunk/; revision=62399
2014-03-02 21:40:58 +00:00
Amine Khaldi a82fcfc024 [SHELL32]
* Remove accidentally added line (you'll get this Drag and Drop fun later ;) ).

svn path=/trunk/; revision=62398
2014-03-02 21:35:18 +00:00
Amine Khaldi 4d03b99484 [PSDK][SHELL32]
* Fix ShellMessageBox{A,W} calling convention. Spotted by Clang.

svn path=/trunk/; revision=62397
2014-03-02 21:23:04 +00:00
Amine Khaldi 257374c12b [PSDK]
* Don't warn about ignored attributes in Clang build.

svn path=/trunk/; revision=62396
2014-03-02 21:18:32 +00:00
Amine Khaldi 0dd2f479dc [SHELL32]
* Remove what seems to be a useless source file. This variable is defined and used in shell32_main.cpp.

svn path=/trunk/; revision=62395
2014-03-02 21:04:20 +00:00
Amine Khaldi d4a5969c22 [CMAKE]
* Remove some unsupported warning from the Clang build.

svn path=/trunk/; revision=62394
2014-03-02 20:57:57 +00:00
Timo Kreuzer 9e835893d0 [PSEH3]
- Switch parameters in _SEH3$_RegisterFrame and _SEH3$_RegisterTryLevel (just for consistency)
- rename _SEH3$_RegisterTryLevel macro to _SEH3$_RegisterTryLevel_
- Add TryLevel and HandlerType fields to the scope table, since we'll need these later
- Start factoring out some Clang specific macros

svn path=/trunk/; revision=62393
2014-03-02 20:54:04 +00:00
Amine Khaldi cb992793ac [CMAKE]
* Add a Clang toolchain file. Only Windows build is tested ATM.

svn path=/trunk/; revision=62392
2014-03-02 20:51:42 +00:00
Amine Khaldi 4916e626c0 [CMAKE]
* Disable PCH in Clang builds. We'll inspect this later.

svn path=/trunk/; revision=62391
2014-03-02 20:47:34 +00:00
Amine Khaldi 96b7e0dd7b [NDK]
* Fix a Clang warning.

svn path=/trunk/; revision=62390
2014-03-02 20:43:19 +00:00
Amine Khaldi 3800bc28b3 [CRT/INTRIN_X86]
* In Clang these are built-ins.

svn path=/trunk/; revision=62389
2014-03-02 20:42:26 +00:00
Amine Khaldi 2675d2c145 [CMAKE]
* Disable the MS extensions warning in Clang build.

svn path=/trunk/; revision=62388
2014-03-02 20:41:36 +00:00
Amine Khaldi dd0002fc05 [CMAKE]
* Use the GCC compatible dialect in Clang builds.

svn path=/trunk/; revision=62387
2014-03-02 20:27:39 +00:00
Amine Khaldi 6d213f3658 [CMAKE]
* Remove some unsupported flags from the Clang build options.

svn path=/trunk/; revision=62386
2014-03-02 20:08:07 +00:00
Timo Kreuzer eaf929fbe9 [CMAKE]
Add simple clang support to configure.cmp (use "configure clang", which will use ninja as the generator and clang as the compiler)

svn path=/trunk/; revision=62385
2014-03-02 19:53:15 +00:00
Eric Kohl fd28183355 [SERVICES]
RSetServiceStatus: Protect the service type from changes by the caller.

svn path=/trunk/; revision=62384
2014-03-02 19:49:33 +00:00
Timo Kreuzer 62dc9b0d32 [PSEH3]
- Switch the registration asm functions from a complete custom calling convention to regparm(2), so that it can be used in "returns_twice" based algorithm (required by CLANG, which doesn't support "asm goto" construct)
- Add support for saving all non-volatiles in the registration frame (also required by CLANG, since without asm goto, we cannot give the compiler the required hints to save these registers itself)

svn path=/trunk/; revision=62383
2014-03-02 19:36:50 +00:00
Hermès Bélusca-Maïto b960a23921 [NTVDM]: Fix INT 10h, AH=8h,9h,Ah ; remove AH=12h because it corresponds to video "alternate function select" (and not scroll window). Stubplement INT 10h, AH=13h.
svn path=/branches/ntvdm/; revision=62381
2014-03-02 18:41:22 +00:00
Amine Khaldi e46cb53319 [TRANSLATIONS]
* Turkish translation update by Erdem Ersoy.
CORE-7861

svn path=/trunk/; revision=62380
2014-03-02 17:06:37 +00:00
Hermès Bélusca-Maïto cab63e90c0 [NTVDM]
Definitively fix console resizing when exiting the VDM.

svn path=/branches/ntvdm/; revision=62379
2014-03-02 15:04:56 +00:00
Hermès Bélusca-Maïto e53f7b173c [NTVDM]
Use a helper function for stopping the VDM (in case we add other steps for that), instead of just setting the flag to TRUE.

svn path=/branches/ntvdm/; revision=62378
2014-03-02 14:37:51 +00:00
Amine Khaldi 3958819ba0 [NTOSKRNL]
* Print RealFrameCount here.

svn path=/trunk/; revision=62377
2014-03-02 13:01:16 +00:00
Amine Khaldi acfa62fbeb [NTOSKRNL]
* Move the trace call before the debug print.

svn path=/trunk/; revision=62376
2014-03-02 12:27:42 +00:00
Amine Khaldi fc63b50ede [NTOSKRNL]
* Generate a trace when we hit this issue.

svn path=/trunk/; revision=62375
2014-03-02 11:49:18 +00:00
Aleksandar Andrejevic 8656d3a5f6 [BASESRV]
Move the GET_NEXT_VDM_COMMAND_DATA structure to a global header, and
rename it to VDM_COMMAND_INFO.
Implement BaseSrvCopyCommand, which moves the BASE_CHECK_VDM structure data
into a new VDM_COMMAND_INFO structure.
Implement BaseSrvFreeVDMInfo which frees a VDM_COMMAND_INFO structure and
everything in it.


svn path=/branches/ntvdm/; revision=62374
2014-03-02 02:50:40 +00:00
Hermès Bélusca-Maïto ab9978f190 [NTVDM]
- Finally get rid of console output handles in the BIOS.
- Move console text buffer copy from BIOS back into VGA memory (~= revert part of r61542), but do it ONLY when attaching the VGA emulation to the console.
- Fix cursor positioning in BIOS & VGA (work in progress).

- Initialize PS/2 after having setting basic console modes.
- Showing/hiding mouse cursor (see the option in the console menu) is done in while() loops to be sure the cursor is really shown/hidden (based on the return value of ShowConsoleCursor).

svn path=/branches/ntvdm/; revision=62373
2014-03-02 01:45:57 +00:00
Hermès Bélusca-Maïto 4472340957 [FTP]
Fix download with ftp.exe, the problem was that we didn't switch download mode to binary when needed, because of idiotic defines used that where pointless here. We have this bug since revision 12776...
Patch by Alexander Varnin, see CORE-3682 for details.
CORE-3682 #resolve #comment Committed in revision, cheers ;)

svn path=/trunk/; revision=62372
2014-03-01 22:42:38 +00:00
Hermès Bélusca-Maïto b152f5cf43 [NTVDM]
The RegisterConsoleVDM API (undocumented) allows NTVDM to get a VGA-like text framebuffer hold by the console server. This text framebuffer is unique, per-console (so that changing the active text screen buffer doesn't change the text framebuffer) and exists even if you use a graphics screen buffer.
NTVDM can write in this framebuffer, and when a call to InvalidateConsoleDIBits is done, it is painted on the screen.

Since RegisterConsoleVDM is unimplemented on ReactOS, I start an implementation of this API *inside* NTVDM (that will then be moved to kernel32/winsrv when it will work correctly).

I adapt the code of the VGA emulation to support RegisterConsoleVDM.

svn path=/branches/ntvdm/; revision=62371
2014-03-01 20:58:42 +00:00
Hermès Bélusca-Maïto 129e5d0305 [NTVDM]: Rework the code template to be used when we will support mice in ntvdm.
svn path=/branches/ntvdm/; revision=62370
2014-03-01 20:52:46 +00:00
Eric Kohl 5012425e7f [MSGINA]
MyLogonUser: Pass the sub status to the caller.

svn path=/trunk/; revision=62369
2014-03-01 20:45:10 +00:00
Eric Kohl dae5c99d12 [MSV1_0]
LsaApLogonUser: Add checks for account restrictions (account disabled and account locked).

svn path=/trunk/; revision=62368
2014-03-01 17:12:21 +00:00
Aleksandar Andrejevic d01148ac9b [BASESRV]
Implement a function that creates a pair of event handles - BaseSrvCreatePairWaitHandles.
As already explained in the comments of BaseCheckForVDM (in kernel32), the hParent parameter
is actually an event handle (or more precisely, the client event handle), not a process handle.


svn path=/branches/ntvdm/; revision=62367
2014-03-01 15:13:54 +00:00
Eric Kohl 27558e0b69 [NETAPI32]
NetUserSetInfo: Enable info levels 4, 22, 1017 and 1018.

svn path=/trunk/; revision=62366
2014-03-01 12:11:26 +00:00
Eric Kohl 2d1a100b57 [NETAPI32]
- NetUserSetInfo: Implement the info level 22.
- Update the users DACL according to the user flags for the info levels 1, 2, 3, 4, 22 and 1008.

svn path=/trunk/; revision=62364
2014-03-01 11:37:23 +00:00
Aleksandar Andrejevic f488f7003e [BASESRV]
Continue implementing BaseSrvCheckVDM.


svn path=/branches/ntvdm/; revision=62363
2014-03-01 04:37:01 +00:00
Hermès Bélusca-Maïto de68f2df0f [CMD][HELP]
Fix the IsConsoleHandle helper.

svn path=/trunk/; revision=62362
2014-02-28 23:55:40 +00:00
Hermès Bélusca-Maïto 4644ad4140 [CMAKE]
Make MSVC warning C4020 "Too many actual parameters" an error
CORE-7960 #resolve #comment Committed in revision 62361.

svn path=/trunk/; revision=62361
2014-02-28 23:34:32 +00:00
Amine Khaldi 9892a47037 [OPENGL32]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62360
2014-02-28 21:24:32 +00:00
Hermès Bélusca-Maïto 9e1ba5c534 [NTVDM]
Get rid of ConsoleInput handles in the BIOS; setting input console modes should be done in the emulator.c module itself (when setting user interface modes), and if a mouse is present, handle it in the ps2.c module.
Next step will be to get rid of ConsoleOutput handle in the BIOS.

svn path=/branches/ntvdm/; revision=62359
2014-02-28 21:21:41 +00:00
Amine Khaldi ccee4fcbce [IPHLPAPI]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62358
2014-02-28 18:39:29 +00:00
Amine Khaldi 66e64a9325 [DIRECTX]
* Mark some modules as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62356
2014-02-28 16:24:50 +00:00
Amine Khaldi 09dfcb5720 [USER32]
* Mark as hotpatchable.
* Uncomment out the hot patching attribute for ShowCursor() now that the feature is supported.
* More will come.
CORE-7959

svn path=/trunk/; revision=62355
2014-02-28 16:21:10 +00:00
Amine Khaldi 06a96d5805 [CMAKE]
* Add support for marking an image as hotpatchable.
[INCLUDES]
* Introduce a way to allow us to mark pretty much any function in our codebase as DECLSPEC_HOTPATCH (not just in Wine modules).
* Fix DECLSPEC_HOTPATCH define and enable this hot patching feature support.
CORE-7959

svn path=/trunk/; revision=62354
2014-02-28 16:18:41 +00:00
Aleksandar Andrejevic bde24e0bb4 [BASESRV]
Implement BaseSrvIsVdmAllowed.


svn path=/branches/ntvdm/; revision=62349
2014-02-27 22:44:56 +00:00
James Tabor 5729a923fe - Remove debug print.
svn path=/trunk/; revision=62348
2014-02-27 13:20:59 +00:00
Aleksandar Andrejevic 931a83808f [FAST486]
The FPU function number is actually just the REG component of a mod-reg-r/m byte.


svn path=/branches/ntvdm/; revision=62346
2014-02-27 06:11:05 +00:00
Aleksandar Andrejevic 2d9fbc6954 [FAST486]
Fix the previous commit. FPU_CHECK should be called after the fetch.


svn path=/branches/ntvdm/; revision=62345
2014-02-27 03:57:20 +00:00