reactos.git
13 years ago- Remove useless USE_W32API define from .rbuilds
Aleksey Bragin [Mon, 21 Jul 2008 09:15:15 +0000 (09:15 +0000)]
- Remove useless USE_W32API define from .rbuilds
- Fix compilation of a number of modules.
- Delete outdated fmifs.h, the one from ReactOS includes should be used instead.
- Move more libs to /lib directory.

svn path=/trunk/; revision=34627

13 years ago- Fix wrong paths to some rosapps utils.
Aleksey Bragin [Mon, 21 Jul 2008 09:11:30 +0000 (09:11 +0000)]
- Fix wrong paths to some rosapps utils.

svn path=/trunk/; revision=34626

13 years ago- Implement RamdiskReadWrite.
ReactOS Portable Systems Group [Mon, 21 Jul 2008 06:35:39 +0000 (06:35 +0000)]
- Implement RamdiskReadWrite.
- Implement RamdiskReadWriteReal.
- We now have a working copy loop for both read and write operations.
- Need to implement RamdiskMapPages and RamdiskUnmapPages -- then we'll nearly be done!

svn path=/trunk/; revision=34625

13 years agoPatch by Cameron Gutman (aicommander <at> gmail <dot> com)
Art Yerkes [Mon, 21 Jul 2008 05:44:10 +0000 (05:44 +0000)]
Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
- Forgot to remove UnlockRequest in last patch

svn path=/trunk/; revision=34624

13 years ago- Fix ARM exports to make up for the recent i386 changes.
ReactOS Portable Systems Group [Mon, 21 Jul 2008 01:41:04 +0000 (01:41 +0000)]
- Fix ARM exports to make up for the recent i386 changes.
- Implement MmGetPageProtect. MDL Probe And Lock now works.
- We get to RamdiskReadWrite now!

svn path=/trunk/; revision=34623

13 years ago- Get rid of 3 days of work due to complaints from our legal guy.
ReactOS Portable Systems Group [Mon, 21 Jul 2008 01:15:07 +0000 (01:15 +0000)]
- Get rid of 3 days of work due to complaints from our legal guy.

svn path=/trunk/; revision=34622

13 years ago- Implement IOCTL_CDROM_GET_LAST_SESSION and IOCTL_CDROM_READ_TOC.
ReactOS Portable Systems Group [Mon, 21 Jul 2008 01:12:17 +0000 (01:12 +0000)]
- Implement IOCTL_CDROM_GET_LAST_SESSION and IOCTL_CDROM_READ_TOC.
- The formet is a hack to support ReactOS' cdfs.

svn path=/trunk/; revision=34621

13 years agorbuild files use tab indentation
Timo Kreuzer [Sun, 20 Jul 2008 23:21:16 +0000 (23:21 +0000)]
rbuild files use tab indentation

svn path=/trunk/; revision=34620

13 years agoFix KeInsertQueueApc error checking
Jeffrey Morlan [Sun, 20 Jul 2008 23:00:18 +0000 (23:00 +0000)]
Fix KeInsertQueueApc error checking

svn path=/trunk/; revision=34619

13 years agoKiMoveApcState: Fix reversal of RepairList arguments. (Bug 1720)
Jeffrey Morlan [Sun, 20 Jul 2008 22:48:06 +0000 (22:48 +0000)]
KiMoveApcState: Fix reversal of RepairList arguments. (Bug 1720)

svn path=/trunk/; revision=34618

13 years ago- Now it compiles.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 19:56:09 +0000 (19:56 +0000)]
- Now it compiles.
- Add wdk_wnet_to_ros.diff to easily merge changes with any possible future WDK updates.

svn path=/trunk/; revision=34616

13 years ago- Add new CDFS driver.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 19:52:30 +0000 (19:52 +0000)]
- Add new CDFS driver.
- Does not compile.

svn path=/trunk/; revision=34615

13 years ago- Our resident GCC expert just informed me of an undocumented "enable Microsoft Compi...
ReactOS Portable Systems Group [Sun, 20 Jul 2008 19:39:55 +0000 (19:39 +0000)]
- Our resident GCC expert just informed me of an undocumented "enable Microsoft Compiler Extensions" flag that makes things like unnnamed members work.
- Apply the switch and remove our workaround hack.

svn path=/trunk/; revision=34614

13 years agoIn ConioConsoleCtrlEvent, don't wait for the thread to terminate; a misbehaving handl...
Jeffrey Morlan [Sun, 20 Jul 2008 19:34:18 +0000 (19:34 +0000)]
In ConioConsoleCtrlEvent, don't wait for the thread to terminate; a misbehaving handler could hang CSRSS indefinitely that way. Testing on Windows shows that no waiting is done when Ctrl-C is pressed; however, there is a wait of up to 5 seconds when attempting to close the window, so add a comment in GuiConsoleHandleClose mentioning this.

svn path=/trunk/; revision=34613

13 years ago- Fix the way NlsOemLeadByteInfo is exported.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 19:19:02 +0000 (19:19 +0000)]
- Fix the way NlsOemLeadByteInfo is exported.
- Fix definition of PFAST_IO_UNLOCK_ALL_BY_KEY.
- Add IO_REPARSE and IO_REMOUNT definitions.
- Add IOCTL_CDROM_DISK_TYPE definition.
- Add FlagOn, BooleanFlagOn, SetFlag and ClearFlag definitions.
- Add FILE_READ_ONLY_VOLUME, FILE_SEQUENTIAL_WRITE_ONCE, FILE_SUPPORTS_TRANSACTIONS definitions.
- Add FSRTL_FLAG_ADVANCED_HEADER definition.
- Add FSRTL_FLAG2_PURGE_WHEN_MAPPED and FSRTL_FLAG2_IS_PAGING_FILE definitions.
- Add FILE_ID_FULL_DIR_INFORMATION and FILE_ID_BOTH_DIR_INFORMATION structures.
- Add FSRTL_FCB_HEADER_V0 and FSRTL_FCB_HEADER_V1 definitions.
- Add FSRTL_COMPARISION_RESULT enumeration.
- Add backwards compatibility support for non-AVL tree routines.
- Add RtlInsertElementGenericTableAvl, RtlDeleteElementGenericTableAvl, RtlLookupElementGenericTableAvl, RtlEnumerateGenericTableWithoutSplayingAvl prototypes.
- Add FsRtlSetupAdvancedHeader macro.
- Add FsRtlIsFatDbcsLegal prototype.
- Add FsRtlTeardownPerStreamContexts prototype.
- Add RtlFreeOemString, RtlOemStringToCountedUnicodeString, RtlUnicodeStringToCountedOemString, RtlOemToUnicodeN prototypes.
- Fix GenericTable prototypes in rtlfuncs.h
- It seems the ntoskrnl_i386.def exports file is totally incorrect with respect to mingw -- most FsRtl functions are not properly exported. We fixed the ones we need, someone needs to go fix this entire file.
- Add memcmp to the NTOS exports -- we're not entirely sure how you were even expecting 3rd party drivers to load in React?
- Fix FastFat's "VfatFastIoUnlockAllByKey" prototype to match the fixed up PFAST_IO_UNLOCK_ALL_BY_KEY definition.
- Clean-build-tested on i386.

svn path=/trunk/; revision=34611

13 years agomark the current keyboard layout as checked (in popup menu)
Matthias Kupfer [Sun, 20 Jul 2008 19:08:35 +0000 (19:08 +0000)]
mark the current keyboard layout as checked (in popup menu)

svn path=/trunk/; revision=34610

13 years agoFix memory leak in vfwprintf: Don't change 'mem' pointer before freeing it.
Jeffrey Morlan [Sun, 20 Jul 2008 16:48:24 +0000 (16:48 +0000)]
Fix memory leak in vfwprintf: Don't change 'mem' pointer before freeing it.

svn path=/trunk/; revision=34609

13 years ago- Write out all the IOCTLs the RAM Disk emulation core needs to handle.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 16:13:19 +0000 (16:13 +0000)]
- Write out all the IOCTLs the RAM Disk emulation core needs to handle.
- Looks like the React CDFS driver behaves very differently from the NT CDFS driver.

svn path=/trunk/; revision=34608

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Sun, 20 Jul 2008 14:58:35 +0000 (14:58 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak translation of several inf-files
- See #3518 for more details.

svn path=/trunk/; revision=34607

13 years ago- again, one more fix of damaged inf files
Matthias Kupfer [Sun, 20 Jul 2008 14:52:15 +0000 (14:52 +0000)]
- again, one more fix of damaged inf files
- please take care when committing this utf-16 files

svn path=/trunk/; revision=34606

13 years ago- Unlike NT, it seems React has a bug and does not automatically load the boot FS...
ReactOS Portable Systems Group [Sun, 20 Jul 2008 06:36:27 +0000 (06:36 +0000)]
- Unlike NT, it seems React has a bug and does not automatically load the boot FS driver regardless of start type.

svn path=/trunk/; revision=34605

13 years ago- Fix the parameters we were sending to IoCreateDevice for our drive FDO.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 06:32:23 +0000 (06:32 +0000)]
- Fix the parameters we were sending to IoCreateDevice for our drive FDO.
- Now the kernel attempts to mount us through CDFS!
- Start stubbing the work we'll need to do in RamdiskDeviceControl -- this is where the emulation magic will happen.

svn path=/trunk/; revision=34604

13 years ago- Ramdisk doesn't seem to work yet, we're not getting properly initialized yet.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 04:40:27 +0000 (04:40 +0000)]
- Ramdisk doesn't seem to work yet, we're not getting properly initialized yet.
- We end up crashing in CcRosTryToInitialzeFileCache because there is no SectionObjectPointer, and it is assumed this always exists.
- We need to verify if this is truly the case -- in either case, add an ASSERT, since all assumptions should be ASSERTed!

svn path=/trunk/; revision=34603

13 years ago- Finish implementing RamdiskCreateDiskDevice -- we should now have a working ramdisk...
ReactOS Portable Systems Group [Sun, 20 Jul 2008 04:39:01 +0000 (04:39 +0000)]
- Finish implementing RamdiskCreateDiskDevice -- we should now have a working ramdisk drive that should receive read/write requests.

svn path=/trunk/; revision=34602

13 years ago- Looks like this FIXME was fixed.
ReactOS Portable Systems Group [Sun, 20 Jul 2008 04:38:26 +0000 (04:38 +0000)]
- Looks like this FIXME was fixed.

svn path=/trunk/; revision=34601

13 years agoPatch by Cameron Gutman (aicommander <at> gmail <dot> com)
Art Yerkes [Sun, 20 Jul 2008 04:33:53 +0000 (04:33 +0000)]
Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
- Fixes some issues with releasing locks
- Verify that we have an MDL before trying to unlock it

svn path=/trunk/; revision=34600

13 years agofrench translation for media/inf files
Sylvain Petreolle [Sun, 20 Jul 2008 00:44:09 +0000 (00:44 +0000)]
french translation for media/inf files

svn path=/trunk/; revision=34598

13 years ago- Fixup some more structure and prototype details to make more sense.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 22:42:18 +0000 (22:42 +0000)]
- Fixup some more structure and prototype details to make more sense.
- Start building the drive FDO extension by capturing most of the input data and our strings.

svn path=/trunk/; revision=34597

13 years ago- Create the RAM Disk Drive Device Object.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 22:21:38 +0000 (22:21 +0000)]
- Create the RAM Disk Drive Device Object.
- Create the name for it, based on the GUID sent by the kernel.
- Create the DOS Device Symbolic Link if requested and if possible.
- Create the DOS Drive Letter if requested.
- (drivers/storage/class/ramdisk/ramdisk.c:440) Creating symbolic link: \DosDevices\C: to \Device\Ramdisk{d9b257fc-684e-4dcb-79ab-f6a2cf0350b7}
- Need to continue implementing..

svn path=/trunk/; revision=34596

13 years ago- Implement the main RamdiskWorkerThread work loop.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 21:19:41 +0000 (21:19 +0000)]
- Implement the main RamdiskWorkerThread work loop.
- Now we have to implement RamdiskCreateDiskDevice for real.

svn path=/trunk/; revision=34594

13 years ago- We break your build, you break ours...
ReactOS Portable Systems Group [Sat, 19 Jul 2008 21:04:31 +0000 (21:04 +0000)]
- We break your build, you break ours...

svn path=/trunk/; revision=34593

13 years ago- Usually a good idea to fill out the device relation count instead of leaving it...
ReactOS Portable Systems Group [Sat, 19 Jul 2008 20:57:31 +0000 (20:57 +0000)]
- Usually a good idea to fill out the device relation count instead of leaving it uninitailized to 2 billion.
- Fixes all the ramdisk problems -- need to implement RamdiskWorkerThread now.

svn path=/trunk/; revision=34592

13 years ago- No, it isn't "ramdisk" that's misbehaving, it's your code. PnP needs to handle...
ReactOS Portable Systems Group [Sat, 19 Jul 2008 20:55:49 +0000 (20:55 +0000)]
- No, it isn't "ramdisk" that's misbehaving, it's your code. PnP needs to handle BusRelations instead of ignoring them.

svn path=/trunk/; revision=34591

13 years ago- It doesn't make sense to dereference an I/O Work Item... did you perhaps mean to...
ReactOS Portable Systems Group [Sat, 19 Jul 2008 20:52:52 +0000 (20:52 +0000)]
- It doesn't make sense to dereference an I/O Work Item... did you perhaps mean to dereference the device object?
- Fixes a crash when IoInvalidateRelations is called, as well as a reference leak.

svn path=/trunk/; revision=34590

13 years ago- Seperate the Ramdisk device extension into the Bus Device Extension and the Drive...
ReactOS Portable Systems Group [Sat, 19 Jul 2008 18:44:31 +0000 (18:44 +0000)]
- Seperate the Ramdisk device extension into the Bus Device Extension and the Drive Device Extension.
- Rename the device types to Bus vs Drive, not FDO vs PDO (they're both FDOs).
- Use a common extension (the first 0x60 bytes or so) between Bus and Drive devices.
- Implement first pass of RamdiskCreateDiskDevice -- doesn't create anything, just validates the parameters.
- Implement our delayed work queue for handling requests asynchronously -- SendIrpToThread. Doesn't do anything for now.
- Implement RamdiskQueryDeviceRelations... not sure if we're doing the right thing. According to PnP, we get a warning that we are "misbehaving".
- Driver seems to crash right now, needs fixes.
- Some reformatting to make more lines fit inside 80 characters so it looks nice in joe.

svn path=/trunk/; revision=34589

13 years agoDisplay of ReactOS bitmap implemented.
Matthias Kupfer [Sat, 19 Jul 2008 17:20:20 +0000 (17:20 +0000)]
Display of ReactOS bitmap implemented.

svn path=/trunk/; revision=34588

13 years agoFixed i386 build
Pierre Schweitzer [Sat, 19 Jul 2008 08:04:47 +0000 (08:04 +0000)]
Fixed i386 build

svn path=/trunk/; revision=34586

13 years ago- Implement DebugService2, but don't make it do anything yet.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 06:53:36 +0000 (06:53 +0000)]
- Implement DebugService2, but don't make it do anything yet.
- Add ATTEMPTED_SWITCH_FROM_DPC bugcheck code.

svn path=/trunk/; revision=34585

13 years ago- Enable interrupts after probing and capturing parameters during a system call.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 06:53:03 +0000 (06:53 +0000)]
- Enable interrupts after probing and capturing parameters during a system call.
- Enable WFI during idle loop.
- Implement undefined exception handler, and get rid of reserved exception code -- this will never happen except for an SoC bug.
- Request an APC interrupt if the new thread we context switched to has APCs pending and enabled.
- Perform DPC watchdog debugging code if a DPC lasted more than a second.
- Do the appropriate bugcheck if DPCs are active during a context switch.
- Go over the FIXMEs in the assembly files too, and create a new FIXME-PERF category.

svn path=/trunk/; revision=34584

13 years ago- Cleanup some stray header issues for ARM.
ReactOS Portable Systems Group [Sat, 19 Jul 2008 06:13:10 +0000 (06:13 +0000)]
- Cleanup some stray header issues for ARM.
- Separate kernel FIXMEs into clearer groupings:
  - TODO FIXMEs are highest priority, as they are missing required functionality.
  - USER FIXMEs are the next highest priority, since they will be required for user mode support.
  - V6 FIXMEs and future groupings are lowest priority, since they relate to hardware support we don't care about for now.

svn path=/trunk/; revision=34583

13 years agoMove NUMC defines to FNIDs.
James Tabor [Sat, 19 Jul 2008 03:49:48 +0000 (03:49 +0000)]
Move NUMC defines to FNIDs.

svn path=/trunk/; revision=34582

13 years agoRtlpCreateCriticalSectionSem: use InterlockedCompareExchangePointer instead of Interl...
Timo Kreuzer [Fri, 18 Jul 2008 23:47:33 +0000 (23:47 +0000)]
RtlpCreateCriticalSectionSem: use InterlockedCompareExchangePointer instead of InterlockedCompareExchange for a handle

svn path=/trunk/; revision=34581

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Fri, 18 Jul 2008 21:08:52 +0000 (21:08 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Enhancement for basic Slovak keyboard layout added.
- See #1251 for more details.

svn path=/trunk/; revision=34580

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Fri, 18 Jul 2008 21:05:40 +0000 (21:05 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Enhancement for Slovak keyboard layout (QWERTY) added.
- See #3528 for more details.

svn path=/trunk/; revision=34579

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Fri, 18 Jul 2008 20:58:09 +0000 (20:58 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak and Czech translation of several rc-files
- See #3519 for more details.

svn path=/trunk/; revision=34578

13 years ago* update GUI interface, according to http://www.reactos.org/wiki/index.php/First_Stag...
Klemens Friedl [Fri, 18 Jul 2008 19:35:03 +0000 (19:35 +0000)]
* update GUI interface, according to reactos.org/wiki/index.php/First_Stage_GUI_Setup

svn path=/trunk/; revision=34576

13 years agoUpdate WinUser, CWPRETSTRUCT and MOUSEHOOKSTRUCTEX.
James Tabor [Fri, 18 Jul 2008 18:09:12 +0000 (18:09 +0000)]
Update WinUser, CWPRETSTRUCT and MOUSEHOOKSTRUCTEX.

svn path=/trunk/; revision=34575

13 years agoPatch by Cameron Gutman (aicommander <at> gmail <dot> com)
Art Yerkes [Fri, 18 Jul 2008 11:19:29 +0000 (11:19 +0000)]
Patch by Cameron Gutman (aicommander <at> gmail <dot> com)

- Reenable spinlocks in MiniIndicateData
- Don't raise IRQL when calling MiniDoRequest

svn path=/trunk/; revision=34574

13 years ago- gui template for 1st stage setup, english only
Matthias Kupfer [Fri, 18 Jul 2008 09:07:54 +0000 (09:07 +0000)]
- gui template for 1st stage setup, english only
- implemented, but still disabled - it's work in progress

svn path=/trunk/; revision=34572

13 years ago- Patch from Samuel "encoded" Serapion (samdwise51 at gmail dot com)
Stefan Ginsberg [Thu, 17 Jul 2008 22:25:03 +0000 (22:25 +0000)]
- Patch from Samuel "encoded" Serapion (samdwise51 at gmail dot com)
- Use "size_t" instead of "unsigned int" where appropriate

svn path=/trunk/; revision=34570

13 years ago- Fix a typo in the DC_ATTR structure: mxDevicetoWorld -> mxDeviceToWorld
Stefan Ginsberg [Thu, 17 Jul 2008 21:54:40 +0000 (21:54 +0000)]
- Fix a typo in the DC_ATTR structure: mxDevicetoWorld -> mxDeviceToWorld

svn path=/trunk/; revision=34569

13 years agoClean up console code a bit:
Jeffrey Morlan [Thu, 17 Jul 2008 21:53:39 +0000 (21:53 +0000)]
Clean up console code a bit:
- Get/SetConsoleTitle: Get rid of unnecessary handle creation; instead, just have csrss get the console from the ProcessData.
- Instead of using ShowX/ShowY to store the origin of the buffer, use the VirtualX member that was put there for this purpose. Rename it to VirtualY, though, since it's a row number. ShowX/ShowY should hold the position of the visible window, once that's implemented.
- From the CSRSS_CONSOLE structure: remove hActiveBuffer (redundant), CodePageId (unused), and hWindowIcon (only used as a temporary)
- Make cursor coordinates be "logical", not "physical". This simplifies various things.
- ConioConsoleFromProcessData: If process has no console, return STATUS_INVALID_HANDLE; don't pretend to succeed (causing many functions to access memory around address 0, which is probably not a good thing). Remove various Console != NULL checks which are now unnecessary.

svn path=/trunk/; revision=34568

13 years agoPatch by Cameron Gutman (aicommander <at> gmail <dot> com)
Art Yerkes [Thu, 17 Jul 2008 19:42:26 +0000 (19:42 +0000)]
Patch by Cameron Gutman (aicommander <at> gmail <dot> com)

- Don't mess with cancelled IRPs
- Don't attempt to cancel an already cancelled IRP
- Unmap MDL when then IRP gets completed

svn path=/trunk/; revision=34567

13 years agoFix argument parsing for label command. It should not split the arguments by spaces...
Jeffrey Morlan [Thu, 17 Jul 2008 16:46:09 +0000 (16:46 +0000)]
Fix argument parsing for label command. It should not split the arguments by spaces; on Windows you can do 'label c:x y z' and it will set the label to X Y Z. (Bug 3530 #2)

svn path=/trunk/; revision=34566

13 years ago- Patch by Cameron Gutman aicommander <at> gmail <dot> com
Stefan Ginsberg [Thu, 17 Jul 2008 14:43:36 +0000 (14:43 +0000)]
- Patch by Cameron Gutman   aicommander <at> gmail <dot> com
- Don't release the device spinlock twice if KeSynchronizeExecution returns false
See issue #3520 for more details.

svn path=/trunk/; revision=34564

13 years ago-PCHify OpenGL32
Stefan Ginsberg [Thu, 17 Jul 2008 11:37:49 +0000 (11:37 +0000)]
-PCHify OpenGL32

svn path=/trunk/; revision=34562

13 years agofix for getaddrinfo
Christoph von Wittich [Thu, 17 Jul 2008 08:07:37 +0000 (08:07 +0000)]
fix for getaddrinfo
patch by Yuri Sidorov <jura at cp-lab dot com>

svn path=/trunk/; revision=34560

13 years ago- CsrReleaseObject: Fix locking to prevent possibility of closing the same handle...
Jeffrey Morlan [Wed, 16 Jul 2008 23:16:40 +0000 (23:16 +0000)]
- CsrReleaseObject: Fix locking to prevent possibility of closing the same handle twice.
- GuiConsolePaint: Clip the paint area to the screen buffer, to stop heap corruption if the window gets oversized.
- ConioDeleteConsole: Do decrement the active screen buffer's refcount, but only after calling ConioCleanupConsole to destroy the window.
- Remove Win32CsrInsertObject. This function did two unrelated things (initialize lock and create handle), but in the only place it was used (CsrCreateScreenBuffer) the lock had already been initialized in CsrInitConsoleScreenBuffer, so this use was erroneous.
- Rename Win32CsrInsertObject2 (creates handle only) to Win32CsrInsertObject.

svn path=/trunk/; revision=34559

13 years agoCommit my test suite I used for verifying the behaviours of wctomb, wcstombs and...
Colin Finck [Wed, 16 Jul 2008 22:08:58 +0000 (22:08 +0000)]
Commit my test suite I used for verifying the behaviours of wctomb, wcstombs and WideCharToMultiByte and writing the reimplementations for ReactOS on request of Stefan

svn path=/trunk/; revision=34558

13 years ago- Remove 2 wrong versions of wctomb and 2 wrong versions of wcstombs
Colin Finck [Wed, 16 Jul 2008 21:40:09 +0000 (21:40 +0000)]
- Remove 2 wrong versions of wctomb and 2 wrong versions of wcstombs
- Implement new versions of wctomb and wcstombs, which consider the language set by setlocale() and work according to all behaviours I could find when testing under WinXP SP2.
  This was tested with an own test suite (which I can commit as well if anyone is interested)
- Do a real conversion to MultiByte characters using wctomb in fputwc and vfwprintf. (verified under WinXP SP2)
- Set 'MSVCRT___lc_codepage' and 'MSVCRT___lc_collate_cp' to 1252 by default ("C" locale) and not the current active codepage (which might not work with i.e. Eastern codepages)
- Add a new check for 'MultiByteCount < 0' to WideCharToMultiByte (also verified under WinXP SP2)
- Change MB_LEN_MAX back to 2, the value 5 only applies to newer CRT's (msvcrt only handles single-byte and double-byte characters)
- Don't compile the Wine-imported 'wcscpy_s', it isn't available in msvcrt

svn path=/trunk/; revision=34557

13 years agoadd new Slovak keyboard layout to first stage setup list
Matthias Kupfer [Wed, 16 Jul 2008 21:21:21 +0000 (21:21 +0000)]
add new Slovak keyboard layout to first stage setup list

svn path=/trunk/; revision=34556

13 years agoFLOATOBJ is a structure only on x86 in kernelmode, for usermode drivers and other...
Timo Kreuzer [Wed, 16 Jul 2008 21:12:27 +0000 (21:12 +0000)]
FLOATOBJ is a structure only on x86 in kernelmode, for usermode drivers and other architectures it's a FLOAT. Update winddi.h accordingly.

svn path=/trunk/; revision=34555

13 years agoPatch by Stefan Ginsberg:
Timo Kreuzer [Wed, 16 Jul 2008 20:16:30 +0000 (20:16 +0000)]
Patch by Stefan Ginsberg:
- remove XFORM members from DC structure and use MATRIX instead. Use MatrixS2XForm and XForm2MatrixS for intermediate conversion.
- this is a temporary solution (still using fpu) until I'm finished with FLOATOBJ rewrite + XFOROMOBJ api (soon)

svn path=/trunk/; revision=34554

13 years agoDC_AllocDc:
Timo Kreuzer [Wed, 16 Jul 2008 19:48:19 +0000 (19:48 +0000)]
DC_AllocDc:
- Set DC's iGraphicsMode to GM_COMPATIBLE when creating a DC
NtGdiRectangle:
- only exclude bottom/right pixels if dc is GM_COMPATIBLE
- fix indentation

svn path=/trunk/; revision=34553

13 years agoAdd MATRIX accelerator flag MX_SCALE and set it in XForm2MatrixS, when off-diagonal...
Timo Kreuzer [Wed, 16 Jul 2008 18:57:23 +0000 (18:57 +0000)]
Add MATRIX accelerator flag MX_SCALE and set it in XForm2MatrixS, when off-diagonal elements are zero.

svn path=/trunk/; revision=34552

13 years ago- Fix CurrentWnd when it has a NULL, see Bug 3527.
James Tabor [Wed, 16 Jul 2008 16:12:44 +0000 (16:12 +0000)]
- Fix CurrentWnd when it has a NULL, see Bug 3527.

svn path=/trunk/; revision=34550

13 years agoDmitry Gorbachev
Aleksey Bragin [Wed, 16 Jul 2008 16:02:32 +0000 (16:02 +0000)]
Dmitry Gorbachev
- Fix a problem in VgaIsPresent: Content of the Address Register goes to the Data Register, and vice versa. It also writes content of the Map Select Register (which is number 4) into the Bit Mask Register (number 8).
See issue #2125 for more details.

svn path=/trunk/; revision=34549

13 years agoFix build, broken in r34546
Colin Finck [Wed, 16 Jul 2008 14:33:47 +0000 (14:33 +0000)]
Fix build, broken in r34546
Reminder: Never apply patches twice (and test the latest changes before committing) :-)

svn path=/trunk/; revision=34547

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Wed, 16 Jul 2008 13:41:23 +0000 (13:41 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak keyboard layout (QWERTY) added.
- See #3528 for more details.

svn path=/trunk/; revision=34546

13 years ago- Implement freeaddrinfo and getaddrinfo.
Ged Murphy [Wed, 16 Jul 2008 12:49:15 +0000 (12:49 +0000)]
- Implement freeaddrinfo and getaddrinfo.
- Implement bare boned getprotobyname and getprotobynumber.
- Make winsock functions return proper error codes instead of success (will help to identify any probs with network apps)
- patch by Yuri Sidorov <jura at cp-lab dot com>

For future reference, freeaddrinfo and getaddrinfo should really call GetAddrInfoW and FreeAddrInfoW which should do the work, but our umode network layers are a mess anyway and by no means XP compatible
See issue #3523 for more details.

svn path=/trunk/; revision=34545

13 years agoFix build.
James Tabor [Wed, 16 Jul 2008 02:07:55 +0000 (02:07 +0000)]
Fix build.

svn path=/trunk/; revision=34542

13 years agoSorry for commit my test tree,,,, good for testing Bug 2451.
James Tabor [Wed, 16 Jul 2008 02:06:05 +0000 (02:06 +0000)]
Sorry for commit my test tree,,,, good for testing Bug 2451.

svn path=/trunk/; revision=34541

13 years agomake does like tabs, right? Fix build.
James Tabor [Wed, 16 Jul 2008 01:22:26 +0000 (01:22 +0000)]
make does like tabs, right? Fix build.

svn path=/trunk/; revision=34540

13 years agoIncrement a console's initial screen buffer's reference count *after* calling CsrInit...
Jeffrey Morlan [Wed, 16 Jul 2008 00:24:54 +0000 (00:24 +0000)]
Increment a console's initial screen buffer's reference count *after* calling CsrInitConsoleScreenBuffer (which sets the reference count to 0). Fixes bug 3524.

svn path=/trunk/; revision=34539

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Tue, 15 Jul 2008 22:29:42 +0000 (22:29 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak translation of several inf-files
- See #3518 for more details.

svn path=/trunk/; revision=34537

13 years agoRevert r34533 (except the nice indentation in the Makefile) for unbreaking trunk.
Colin Finck [Tue, 15 Jul 2008 22:04:16 +0000 (22:04 +0000)]
Revert r34533 (except the nice indentation in the Makefile) for unbreaking trunk.

This change is also not compatible with current cleaning scripts in RosBE and on the Buildslaves (which only delete "makefile.auto"), leading to possibly unclean builds if the generated makefile wouldn't be deleted.
The ultimate goal would be putting the generated makefiles into the intermediate directories, so we also save one cleaning step.

svn path=/trunk/; revision=34536

13 years agoFixed typos spotted by "jeanmichel" <jeanmichel.123@free.fr>
Pierre Schweitzer [Tue, 15 Jul 2008 21:05:20 +0000 (21:05 +0000)]
Fixed typos spotted by "jeanmichel" <jeanmichel.123@free.fr>
See issue #618 for more details.

svn path=/trunk/; revision=34535

13 years agoRename makefile.auto to makefile-$(ARCH).auto
Hervé Poussineau [Tue, 15 Jul 2008 20:42:08 +0000 (20:42 +0000)]
Rename makefile.auto to makefile-$(ARCH).auto

svn path=/trunk/; revision=34533

13 years ago- Delete the service key along with any subkeys
Ged Murphy [Tue, 15 Jul 2008 20:41:35 +0000 (20:41 +0000)]
- Delete the service key along with any subkeys
- Delete the service from the internal list
- patch by Yuri Sidorov <jura at cp-lab dot com>

See issue #3523 for more details.

svn path=/trunk/; revision=34532

13 years agoFix the mess created by SVN's inability to handle with UTF-16 files.
Colin Finck [Tue, 15 Jul 2008 20:11:26 +0000 (20:11 +0000)]
Fix the mess created by SVN's inability to handle with UTF-16 files.
Remove the svn:eol-style property and set svn:mime-type to application/octet-stream, so that these files aren't modified by SVN.

svn path=/trunk/; revision=34531

13 years ago- Revert inf back to LF, because of damaged line endings on checkout with CRLF (under...
Matthias Kupfer [Tue, 15 Jul 2008 19:43:28 +0000 (19:43 +0000)]
- Revert inf back to LF, because of damaged line endings on checkout with CRLF (under linux).
- Take care on further change, change only if you are absolutely sure, that all clients can handle it correctly!

svn path=/trunk/; revision=34530

13 years agoSet svn:eol-style CRLF for all *.inf files.
Colin Finck [Tue, 15 Jul 2008 17:54:28 +0000 (17:54 +0000)]
Set svn:eol-style CRLF for all *.inf files.
These are copied without any further processing, so they should always have a CRLF line-ending.

svn path=/trunk/; revision=34529

13 years ago- Save pointer to driver's section in DriverSection during driver loading.
Aleksey Bragin [Tue, 15 Jul 2008 14:24:47 +0000 (14:24 +0000)]
- Save pointer to driver's section in DriverSection during driver loading.
- Fix unloading function to check if a driver to be unloaded really has DriverSection set, and if not, fail.
- Inspired by bug 3221.
See issue #3221 for more details.

svn path=/trunk/; revision=34526

13 years agoYuriy Sidorov <jura@cp-lab.com>
Aleksey Bragin [Tue, 15 Jul 2008 14:00:37 +0000 (14:00 +0000)]
Yuriy Sidorov <jura@cp-lab.com>
- Fix BSOD in NtUserWaitForInputIdle because KeWaitForMultipleObjects expects actual pointers to objects, not handles.
- Fix failure branches to have UserLeave and/or object dereference where needed.
See issue #3522 for more details.

svn path=/trunk/; revision=34525

13 years agoDmitry Gorbachev
Aleksey Bragin [Tue, 15 Jul 2008 13:48:43 +0000 (13:48 +0000)]
Dmitry Gorbachev
- Include greek translation into shutdown's rsrc.rc.
See issue #3487 for more details.

svn path=/trunk/; revision=34523

13 years agoDmitry Gorbachev
Aleksey Bragin [Tue, 15 Jul 2008 13:44:14 +0000 (13:44 +0000)]
Dmitry Gorbachev
- Don't leak critical region when going through failure return branch.
See issue #3517 for more details.

svn path=/trunk/; revision=34522

13 years agoYuriy Sidorov <jura@cp-lab.com>
Aleksey Bragin [Tue, 15 Jul 2008 13:32:18 +0000 (13:32 +0000)]
Yuriy Sidorov <jura@cp-lab.com>
- Speed-up user mode exception handling by calling RtlDispatchException() first if there is no active user mode debugger. This avoids switches to kernel mode if exception can be handled by SEH.
See issue #3485 for more details.

svn path=/trunk/; revision=34521

13 years agoStefan Ginsberg <stefan__100__@hotmail.com>
Aleksey Bragin [Tue, 15 Jul 2008 13:20:38 +0000 (13:20 +0000)]
Stefan Ginsberg <stefan__100__@hotmail.com>
- Remove a hack in the executive handle implementation, which worked around a memory corruption bug. Revision 32770 should have fixed the bug hidden by this hack.
See issue #3512 for more details.

svn path=/trunk/; revision=34520

13 years agoMaciej Bialas <bjauy AT tlen DOT pl>
Matthias Kupfer [Tue, 15 Jul 2008 08:21:27 +0000 (08:21 +0000)]
Maciej Bialas <bjauy AT tlen DOT pl>
- Updated polish version of dll/cpl/usrmgr
- See issue #3480 for more details.

svn path=/trunk/; revision=34516

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Tue, 15 Jul 2008 08:10:44 +0000 (08:10 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak translation of several inf-files
- See #3518 for more details.

svn path=/trunk/; revision=34515

13 years agoIntRectangle:
Timo Kreuzer [Tue, 15 Jul 2008 02:06:38 +0000 (02:06 +0000)]
IntRectangle:
- use coordinate transformation
- if transform is not diagonal, call IntGdiPolygon
IntRectangle/IntGdiPolygon:
- use special locking order to avoid lockups
- don't unlock objects that weren't locked
IntGdiPie:
- if transform is cheese, call IntGdiCheeseCake

svn path=/trunk/; revision=34514

13 years ago- Fixes country codes.
Matthias Kupfer [Mon, 14 Jul 2008 22:55:37 +0000 (22:55 +0000)]
- Fixes country codes.
- See issue #3488 for more details.

svn path=/trunk/; revision=34513

13 years ago- fix some wrong country codes
Matthias Kupfer [Mon, 14 Jul 2008 22:41:54 +0000 (22:41 +0000)]
- fix some wrong country codes
- fix minor typo in German translation

svn path=/trunk/; revision=34511

13 years ago- Remove special ReactOS-specific PUSHORT GDT pointer (usual PKGDTENTRY works good...
Aleksey Bragin [Mon, 14 Jul 2008 21:24:13 +0000 (21:24 +0000)]
- Remove special ReactOS-specific PUSHORT GDT pointer (usual PKGDTENTRY works good enough now), spotted by Stefan Ginsberg.

svn path=/trunk/; revision=34508

13 years agoWhen duplicating a handle to a child process, only pass the actual attributes to...
Jeffrey Morlan [Mon, 14 Jul 2008 17:42:22 +0000 (17:42 +0000)]
When duplicating a handle to a child process, only pass the actual attributes to ObpIncrementHandleCount. Spurious attributes from the object pointer were making this call fail randomly.

svn path=/trunk/; revision=34507

13 years ago- change svn:eol-style to LF for compatibility
Matthias Kupfer [Mon, 14 Jul 2008 16:30:18 +0000 (16:30 +0000)]
- change svn:eol-style to LF for compatibility
- fix a problem in cpu.inf

svn path=/trunk/; revision=34506

13 years agoReplace uses of $(ROS_ARCH) by $(ARCH).
Colin Finck [Mon, 14 Jul 2008 13:06:52 +0000 (13:06 +0000)]
Replace uses of $(ROS_ARCH) by $(ARCH).
$(ROS_ARCH) will only work if an environment variable with the same name is set. But its value and the default value (if none was given) is stored in $(ARCH).

svn path=/trunk/; revision=34505

13 years agoAttempt to fix Live-CD
Colin Finck [Mon, 14 Jul 2008 12:50:39 +0000 (12:50 +0000)]
Attempt to fix Live-CD

svn path=/trunk/; revision=34504

13 years agoMario Kacmar <kario AT szm DOT sk>
Matthias Kupfer [Mon, 14 Jul 2008 10:23:39 +0000 (10:23 +0000)]
Mario Kacmar <kario AT szm DOT sk>
- Slovak translation patch for cpu.inf and cdrom.inf
- See #3518 for more details.

svn path=/trunk/; revision=34503

13 years agoBug 3505: Simplified Chinese Translation Patch by Zhangbing. I skipped Wordpad, becau...
Daniel Reimer [Mon, 14 Jul 2008 09:26:38 +0000 (09:26 +0000)]
Bug 3505: Simplified Chinese Translation Patch by Zhangbing. I skipped Wordpad, because we sync this with Wine and skipped appwiz, because it fails to build.

svn path=/trunk/; revision=34501