Compare commits

...

4579 Commits

Author SHA1 Message Date
Johannes Anderwald
a76c4d300d [USB-BRINGUP]
- Sync obname.c with trunk
- Implement ObIsDosDeviceLocallyMapped function

svn path=/branches/usb-bringup/; revision=54859
2012-01-07 15:39:22 +00:00
Johannes Anderwald
bc99540346 [USB-BRINGUP]
- Partly implement HidP_TranslateUsageAndPagesToI8042ScanCodes
- Needs key modifier state function to work correctly
- KBDHID should now receive translated keys (without key modifiers)

svn path=/branches/usb-bringup/; revision=54858
2012-01-07 10:24:10 +00:00
Johannes Anderwald
7bd9802f54 [KBDHID]
- Implement KbdHid_ReadCompletion routine
- Start implementing KbdHid_InsertScanCodes routine

svn path=/branches/usb-bringup/; revision=54856
2012-01-06 20:37:13 +00:00
Johannes Anderwald
524fab5e50 [USB-BRINGUP]
- Partial trunk sync

svn path=/branches/usb-bringup/; revision=54854
2012-01-06 19:40:46 +00:00
Johannes Anderwald
2d3a7c0d6c [USB-BRINGUP]
- Implement  IOCTL_KEYBOARD_QUERY_ATTRIBUTES, IOCTL_INTERNAL_KEYBOARD_CONNECT, IOCTL_INTERNAL_KEYBOARD_DISCONNECT, IOCTL_INTERNAL_KEYBOARD_ENABLE, IOCTL_INTERNAL_KEYBOARD_DISABLE

svn path=/branches/usb-bringup/; revision=54852
2012-01-06 18:32:35 +00:00
Timo Kreuzer
6df852ceb8 [SAL.h]
Add definitions for declspec based sal

svn path=/trunk/; revision=54851
2012-01-06 17:02:57 +00:00
Johannes Anderwald
065fd7dbd5 [USB-BRINGUP]
- Add keyboard hid driver template ripped off from mouhid driver
- Implement keyboard driver initialization

svn path=/branches/usb-bringup/; revision=54850
2012-01-06 16:35:55 +00:00
Rafal Harabien
e33649d62d [SHELL32]
- Fix few leaks and possible buffer overflows in New menu code
- Add icons of folder and shortcut to New menu
- Display message if file can't be created

svn path=/trunk/; revision=54848
2012-01-05 23:04:06 +00:00
Eric Kohl
658d817a6e [EVENTLOG]
- Implement LogfBackupFile.
- Fix a typo.

svn path=/trunk/; revision=54847
2012-01-05 23:03:40 +00:00
Eric Kohl
262ece40e1 [ADVAPI32]
Pass nt paths to ElfrBackupELFW and ElfrClearELFW.

svn path=/trunk/; revision=54846
2012-01-05 22:07:33 +00:00
Rafal Harabien
61e7814932 [SHELL32]
- Formatting. No code changes.

svn path=/trunk/; revision=54845
2012-01-05 18:34:35 +00:00
Rafal Harabien
898071bb08 [SHELL32]
- Rewrite Open With menu and dialog
- Load all applications
- Use treeview with Recommended and Other programs
- Don't allow duplicates
- Load registry keys in proper way

svn path=/trunk/; revision=54844
2012-01-05 18:31:18 +00:00
Johannes Anderwald
f53c2c4f14 [HID]
- Implement quering compatible ids
- Fix result status for quering instance id
- Fix bug in msmouse.inf

svn path=/branches/usb-bringup/; revision=54843
2012-01-05 18:22:48 +00:00
Rafal Harabien
9aae27bf4a [NOTEPAD][WORDPAD]
- Add version information
[BOOTDATA]
- Add Notepad, Wordpad and Paint to Applications registry key

svn path=/trunk/; revision=54842
2012-01-05 17:59:19 +00:00
Timo Kreuzer
5a729992d7 [CMAKE]
Add an option to compile with PREFAST enabled, when using MSVC

svn path=/trunk/; revision=54841
2012-01-05 17:19:15 +00:00
Timo Kreuzer
8266c38acf [SAL.H]
Add macros and types for attribute based SAL

svn path=/trunk/; revision=54840
2012-01-05 17:06:10 +00:00
Timo Kreuzer
73c64d97fb [PSDK/DDK/XDK]
- Add new style SAL definitions (only dummys for now)
- Move old style SAL definitions to sal_old.h
- Convert annotations in sspi.h to new style
- Allow new style annotations for C++ again, old style annotations are not possible with C++ and gcc headers

svn path=/trunk/; revision=54839
2012-01-05 11:20:28 +00:00
Johannes Anderwald
ee21e811d0 [USB-BRINGUP]
- Add a ReactOS hack to let the hid stack initialize
- Add input.inf
- HID Mouse initializes and starts, now win32k needs some work to open the mice

svn path=/branches/usb-bringup/; revision=54838
2012-01-05 04:05:10 +00:00
Johannes Anderwald
21fb64f0bf [USB-BRINGUP]
- Fix creating instance id
- Print debug message
- Sync msmouse with head and add hid installation
- Needs input.inf written
- HID stack starts to initializes and then fails the to enable the device interface (/drivers/hid/hidclass/pdo.c:511), Logs show that IoGetDeviceObjectPointer() fails with STATUS_UNSUCCESSFUL

svn path=/branches/usb-bringup/; revision=54837
2012-01-05 01:24:11 +00:00
Johannes Anderwald
4dc6e068e2 [USB-BRINGUP]
- Create a pesudo random instance id
- Fixes assert when plugin usb devices whose device descriptor don't provide a serial number

svn path=/branches/usb-bringup/; revision=54836
2012-01-05 00:13:50 +00:00
Johannes Anderwald
874bc6a408 [USB-BRINGUP]
- Fix build

svn path=/branches/usb-bringup/; revision=54835
2012-01-04 22:21:03 +00:00
Johannes Anderwald
d1e00dac5c [USB-BRINGUP]
- Implement a HID parsing library, which is based on Haiku`s exellent HID Stack
- Implement HidP_FreeCollection, HidP_GetCaps, HidP_GetCollectionDescription, HidP_MaxUsageListLength, HidP_GetSpecificValueCaps, HidP_GetUsages, HidP_GetScaledUsageValue
- hidparse driver is now implemented enough to support a hid mouse
- Tested in VBox 4.1.4 + WinXP + ReactOS usbohci+ mouhid+ hidclass+ hidparse+hidusb

svn path=/branches/usb-bringup/; revision=54834
2012-01-04 21:58:18 +00:00
Aleksey Bragin
430051bd93 [NTOS]
- Cast to actually returned types not just PVOID.

svn path=/trunk/; revision=54833
2012-01-04 12:22:38 +00:00
Aleksey Bragin
340ac9a8d6 [NDK]
- Fix a typo ("add more underscores!") in a struct forward declaration.

svn path=/trunk/; revision=54832
2012-01-04 12:18:23 +00:00
Pierre Schweitzer
612b04ffe2 [WININET]
Fix handle leak
Already sent & committed upstream: 85e2b4d7df

svn path=/trunk/; revision=54830
2012-01-03 20:45:28 +00:00
Pierre Schweitzer
1bb43abd3a [DPLAYX]
Fix handle leak
Already sent & committed upstream: 2d14f89fea

svn path=/trunk/; revision=54829
2012-01-03 20:44:42 +00:00
Pierre Schweitzer
de15bc1cbb [SHELL32_WINETEST]
Get back previously commented out tests

svn path=/trunk/; revision=54828
2012-01-03 20:41:32 +00:00
Timo Kreuzer
da309e313f [USBDRV]
remove hacks to fix build


svn path=/trunk/; revision=54827
2012-01-03 20:23:29 +00:00
Timo Kreuzer
dfb2191a95 Fix build
svn path=/trunk/; revision=54826
2012-01-03 20:15:25 +00:00
Timo Kreuzer
e198afb1c1 [XDK/DDK]
- Add sspi.h to xdk and and include it in ntifs.h.
Dedicated to Alex

svn path=/trunk/; revision=54825
2012-01-03 19:42:58 +00:00
Timo Kreuzer
1e610c23cc [PSDK]
- Add sal.h and include it in specstrings.h
- Inlude specstrigs.h from crtdfs.h

svn path=/trunk/; revision=54824
2012-01-03 19:41:18 +00:00
Pierre Schweitzer
f6bc586f58 [RTL]
Complete RtlpDosPathNameToRelativeNtPathName_Ustr() rewrite by properly handling relative names.
This fixes several regressions brought by r54804 (see winetests).
This also fixes file system corruption when using directory functions.
This may also fix general file system corruption, so, please retest bug #6720.

svn path=/trunk/; revision=54820
2012-01-03 19:08:46 +00:00
Sylvain Petreolle
362af7d9dc [ROSTESTS]
Fix oleaut32_winetest cmake build.

svn path=/trunk/; revision=54815
2012-01-03 11:38:21 +00:00
Pierre Schweitzer
73a5efbb25 [SHELL32_WINETEST]
Comment out yet another test.
Let's hope it will take testbot back and allow debugging.

svn path=/trunk/; revision=54814
2012-01-03 06:33:06 +00:00
Jérôme Gardou
bc74a80807 [CMAKE]
- add module module type, which is basically a DLL without entry point and use it for typelibs
- get rid of custom targets for generating .tlb files and use source file dependencies instead

svn path=/trunk/; revision=54813
2012-01-03 00:17:18 +00:00
Pierre Schweitzer
2d253f5f35 [SHELL32_WINETEST]
Fix build
*grmbl*

svn path=/trunk/; revision=54812
2012-01-02 23:56:55 +00:00
Pierre Schweitzer
fd8923e542 [SHELL32_WINETEST]
Comment out two series of tests untill a proper fix is available. Those lead to memory misuse in shell32.
This has been revealed by r54804.
Should fix both test bots.

svn path=/trunk/; revision=54811
2012-01-02 23:47:32 +00:00
Johannes Anderwald
07ae01f96c [USB-BRINGUP]
- Create PDO for each top level collection found
- Use the specified collection index instead of the first
- add collection id to hardware id when the device has more than one top level collection, see http://msdn.microsoft.com/en-us/windows/hardware/gg487473 for details

svn path=/branches/usb-bringup/; revision=54808
2012-01-02 12:00:51 +00:00
Pierre Schweitzer
443af3cd0f [KERNEL32]
Esthetical fixes.

svn path=/trunk/; revision=54807
2012-01-02 10:02:50 +00:00
Johannes Anderwald
842fe995ce [USB-BRINGUP]
- Fake status success for unimplemented IRP_MN_REMOVE_DEVICE
- Fix tons of bugs in the read report completion routine
- Implement function to re-use a complete report irp
- Use correct device object when invoking the mini driver's dispatch routine in the read function
- silence a few traces
- Mouse now works with with ReactOS USB stack + ReactOS HID stack (TBD: implement hidparse.sys)

svn path=/branches/usb-bringup/; revision=54806
2012-01-01 22:48:08 +00:00
Colin Finck
6960759eaa Graphical Happy New Year!
svn path=/trunk/; revision=54805
2012-01-01 21:05:40 +00:00
Pierre Schweitzer
1fbb5c18f9 [KERNEL32]
Reimplement CreateDirectoryA, CreateDirectoryExA, CreateDirectoryW, CreateDirectoryExW, RemoveDirectoryA, RemoveDirectoryW.
This reimplementation now matches the w2k3 one, properly handles reparse points (especially mount points) and also brings several fixes.

svn path=/trunk/; revision=54804
2012-01-01 17:22:35 +00:00
Pierre Schweitzer
206722861c [KERNEL32]
Implement BaseMarkFileForDelete. This will be used later.

svn path=/trunk/; revision=54803
2012-01-01 17:19:31 +00:00
Pierre Schweitzer
f6149178f5 [NTDLL]
Export RtlReleaseRelativeName

svn path=/trunk/; revision=54802
2012-01-01 17:18:13 +00:00
Pierre Schweitzer
f41bad823b [NDK/RTL]
Fix RtlIsDosDeviceName_U, RtlIsDosDeviceName_Ustr, RtlDosPathNameToRelativeNtPathName_U, RtlDosPathNameToRelativeNtPathName_U_WithStatus prototypes.

svn path=/trunk/; revision=54801
2012-01-01 17:17:07 +00:00
Pierre Schweitzer
bcf1cc76b6 [FASTFAT]
Revert r54788: it's not appropriate yet.

svn path=/trunk/; revision=54800
2012-01-01 17:15:25 +00:00
Pierre Schweitzer
f65362ce2f [REACTOS]
Temporarily hackfix r50254 (let's say for a year)
Happy New Year everyone!

svn path=/trunk/; revision=54799
2012-01-01 13:30:40 +00:00
Johannes Anderwald
f687f32e69 [USB-BRINGUP]
- Move attributes / device description to common struct
- Partly implement IRP_MJ_CREATE, IRP_MJ_CLOSE, IRP_MJ_READ

svn path=/branches/usb-bringup/; revision=54798
2011-12-31 19:09:26 +00:00
Johannes Anderwald
eb5e8a089b [USB-BRINGUP]
- Fix bug in HidUsb_AbortPipe, which passed the wrong handle
- Implement reset port routine
- Implement reset worker routine when reading report fails

svn path=/branches/usb-bringup/; revision=54797
2011-12-31 18:22:18 +00:00
Jérôme Gardou
63a8f26892 [CRT]
- define CRTDLL for crt and libcntpr for right usage of _CRTIMP macro

svn path=/trunk/; revision=54796
2011-12-31 17:44:51 +00:00
Jérôme Gardou
bc18a6c289 [NEWINFLIB]
- better fix for non standard use of swprintf, by Thomas Faber

svn path=/trunk/; revision=54795
2011-12-31 17:29:42 +00:00
Eric Kohl
50bbe47f26 [EVENTLOG]
Fix the record number hacks in ElfrNumberOfRecords and LogfWriteData by initializing the oldest record number to 1. 

svn path=/trunk/; revision=54794
2011-12-31 15:23:59 +00:00
Jérôme Gardou
000fca5bd8 [NEWINFLIB]
- use _snwprintf instead of swprintf (MSVC is not compliant with standard here)

svn path=/trunk/; revision=54793
2011-12-31 14:33:35 +00:00
Johannes Anderwald
d5ab604853 [USB-BRINGUP]
- Partly implement IRP_MN_START_DEVICE for PDO 
- PDO  now completely initializes
- Remaining IOCTL to implement IRP_MJ_CREATE, IRP_MJ_CLOSE, IRP_MJ_FLUSH, IRP_MJ_READ for partial mouse support in hidclass

svn path=/branches/usb-bringup/; revision=54792
2011-12-31 04:13:37 +00:00
Johannes Anderwald
a64411cfbf [USB-BRINGUP]
- Implement HidClassFDO_DeviceRelations
- Implement IOCTL_HID_GET_COLLECTION_INFORMATION,  IOCTL_HID_GET_COLLECTION_DESCRIPTOR
- Implement IRP_MN_QUERY_ID, IRP_MN_QUERY_CAPABILITIES, IRP_MN_QUERY_BUS_INFORMATION, IRP_MN_QUERY_PNP_STATE, IRP_MN_QUERY_DEVICE_RELATIONS, 
- HIDClass PDO is now created and starts initialization, needs IRP_MN_START_DEVICE request implementation
- Tested in Vbox 4.1.4 + WinXP + ReactOS hidusb,hidmou,hidclass

svn path=/branches/usb-bringup/; revision=54791
2011-12-31 03:33:14 +00:00
Johannes Anderwald
ef72bc2d72 [USB-BRINGUP]
- add missing defines

svn path=/branches/usb-bringup/; revision=54790
2011-12-31 03:21:11 +00:00
Pierre Schweitzer
10ce3354a3 [KERNEL32]
CreateDirectory: handle the case when the FS doesn't support EAs.
This should fix VBox and is mandatory if we want to support MS FSD with FAT32

svn path=/trunk/; revision=54789
2011-12-31 02:01:34 +00:00
Pierre Schweitzer
5de2462b2a [FASTFAT]
Return appropriate status when requesting extended attributes on FAT32

svn path=/trunk/; revision=54788
2011-12-31 00:09:57 +00:00
Johannes Anderwald
c671800d55 [USB-BRINGUP]
- Rename device extension
- Implement FDO Initialization (IRP_MN_START_DEVICE)

svn path=/branches/usb-bringup/; revision=54787
2011-12-30 14:34:07 +00:00
Pierre Schweitzer
aa518eae68 [EVENTVWR]
Fix handle leak

svn path=/trunk/; revision=54786
2011-12-30 13:31:44 +00:00
James Tabor
3168ab0a08 - Fix absolutes.
svn path=/trunk/; revision=54785
2011-12-30 02:52:43 +00:00
James Tabor
7ca70e7924 - Add ICM DC Attribute flags.
svn path=/trunk/; revision=54784
2011-12-30 01:28:02 +00:00
Cameron Gutman
3424617209 [NTOSKRNL]
- Fix the fix

svn path=/trunk/; revision=54783
2011-12-30 00:10:39 +00:00
Cameron Gutman
f7cb8a56e4 [NTOSKRNL]
- Remove an unneeded (and prone to race) RtlZeroMemory (found by Thomas Faber)
- Fix misuse of PAGE_MASK macro and broken PTE flag comparisons

svn path=/trunk/; revision=54782
2011-12-29 23:48:49 +00:00
Johannes Anderwald
ceb3f5ee43 [USB-BRINGUP]
- Implement AddDevice routine for hidusb
- Fix bug in Hid_DispatchUrb, which returned not initialized status code
- Implement IOCTL_HID_GET_REPORT_DESCRIPTOR, IOCTL_HID_READ_REPORT
- Add support routines for reseting / aborting pipe, not yet used
- TBD: implement error handling
- hidusb now works in combination with a usb mouse (other hid devices such as keyboards will require more ioctl implemented)
- Tested in Vbox 4.1.4 + WinXP + ReactOS usbhid.sys + ReactOS usbmou.sys
- Testing procedure -> inject usb mouse after startup (needs mouse integration disabled -> thanks to timo for pointing this out)

svn path=/branches/usb-bringup/; revision=54781
2011-12-29 19:03:40 +00:00
Pierre Schweitzer
b604379064 [SYSDM]
Fix the fix of the fix

svn path=/trunk/; revision=54780
2011-12-29 13:25:08 +00:00
Pierre Schweitzer
5e4f3477f3 [SYSDM]
Fix the fix...

svn path=/trunk/; revision=54779
2011-12-29 13:21:45 +00:00
Pierre Schweitzer
324daff6b4 [SYSDM]
Fix memory leak

svn path=/trunk/; revision=54778
2011-12-29 13:20:18 +00:00
Johannes Anderwald
7e231e2c92 [USBOHCI]
- Silence a few traces
- Add a hack for handling  URB_FUNCTION_CLASS_INTERFACE. The hid bus driver performs this request with zero buffer length, which is not valid. Needs more investigation

svn path=/branches/usb-bringup/; revision=54777
2011-12-29 10:13:36 +00:00
Johannes Anderwald
4e6638bcc3 [USB-BRINGUP]
- Usage page of zero is not used, increment, the MouHid_ButtonUpFlags / MouHid_ButtonDownFlags array
- Mouse clicks now work
- Implement flushing of the hid report queue
- Driver now works in VBox 4.1.4 + WinXP 
- Secondary mouse pointer does not move in VBox (either a Vbox bug / WinXP), tested with ms driver and the same results were reveiled

svn path=/branches/usb-bringup/; revision=54776
2011-12-29 10:07:00 +00:00
Johannes Anderwald
6717a4ecfe [USB-BRINGUP]
- Fix up / down button detection
- Fix move detection. Mouse changes are now detected
- Mouse does not yet work in Vbox, as mouclass driver is for unknown reasons not connecting to the mouhid, needs to be investigated
- Tested in VBox 4.1.4 + ReactOS mouhid.sys

svn path=/branches/usb-bringup/; revision=54775
2011-12-28 17:18:56 +00:00
Johannes Anderwald
b27438e17d [USB-BRINGUP]
- Fix a few bugs & race condition in the read report routine
- mouhid initializes and is able to read input reports
- button press / wheel state change is detected
- mouse move detection not yet working

svn path=/branches/usb-bringup/; revision=54774
2011-12-28 16:35:41 +00:00
Rafal Harabien
2ec1edae97 [WIN32K]
- Fix IntGdiSetBkColor setting wrong dirty flags. Fixes wrong background under text in Open With applications list.

svn path=/trunk/; revision=54773
2011-12-28 13:05:24 +00:00
Johannes Anderwald
012eac6d8f [USB-BRINGUP]
- Implement mouse move detection, wheel state detection

svn path=/branches/usb-bringup/; revision=54772
2011-12-28 11:36:05 +00:00
Cameron Gutman
4cf336fa2a [NTOSKRNL]
- Tweak the balancer to prevent an excessive buildup of user pages while cache is paged out completely each run
- Bugcheck if we've trimmed everything as much as possibly but we are still in need of pages

svn path=/trunk/; revision=54771
2011-12-28 01:18:35 +00:00
Rafal Harabien
f8e647e8a2 [SHELL32]
- Use file description in version block instead of filename for application name in Open With menu

svn path=/trunk/; revision=54770
2011-12-27 21:58:55 +00:00
Rafal Harabien
c969ec94e4 [SHELL32]
- Fix memory leak in Open With menu
- Show icons in Open With menu
- General code improvements

svn path=/trunk/; revision=54769
2011-12-27 15:25:32 +00:00
Johannes Anderwald
d4bb27774a [USB-BRINGUP]
- Partly implement mouse read completion
- Implement read initiation
- Implement MouHid_Create, MouHid_Close

svn path=/branches/usb-bringup/; revision=54768
2011-12-27 02:35:03 +00:00
Johannes Anderwald
05c20641db - Link to hal
- Implement mouse button change detection
- Implement support routine for dispatching mouse input data
- Allocate mdl for input report, not yet used

svn path=/branches/usb-bringup/; revision=54767
2011-12-27 00:46:10 +00:00
Cameron Gutman
74c9f0c170 [NTOSKRNL]
- Don't flush the TLB in MmEnableVirtualMapping and MmCreateVirtualMapping because the PTE is already invalid so it can't possibly be in the TLB per x86 spec
- Added explanations of why flushes are needed or not needed in certain places
- A few small code improvements
- Should speed up ROS a bit by avoiding unnecessary TLB entry flushing

svn path=/trunk/; revision=54766
2011-12-26 23:12:38 +00:00
Johannes Anderwald
bf1f779fff [USB-BRINGUP]
- Implement retrieving device / configuration descriptor
- Partly implement hid descriptor parsing
- Select configuration when initialization is complete
- Implement starting up device

svn path=/branches/usb-bringup/; revision=54765
2011-12-26 21:51:05 +00:00
Johannes Anderwald
c626190319 [USB-BRINGUP]
- Implement IOCTL_HID_GET_DEVICE_ATTRIBUTES, IOCTL_HID_GET_DEVICE_DESCRIPTOR for hidusb
- Partly implement pnp dispatch routines for hidusb

svn path=/branches/usb-bringup/; revision=54764
2011-12-26 18:20:32 +00:00
Eric Kohl
f042b9943a [EVENTLOG]
- Replace the log file critical section by a resource and use shared locks for read actions and exclusive locks for write actions.
- Add stubs for clear and backup actions.

svn path=/trunk/; revision=54763
2011-12-26 13:54:05 +00:00
Johannes Anderwald
3477d17d4b [USB-BRINGUP]
- Halfplement mouse hid driver, WIP, untested

svn path=/branches/usb-bringup/; revision=54762
2011-12-26 03:37:22 +00:00
Cameron Gutman
deebdc5f40 [NTOSKRNL]
- Don't change page protection while the memory area is being deleted

svn path=/trunk/; revision=54761
2011-12-26 02:52:26 +00:00
Johannes Anderwald
69dfb12f9a [HIDCLASS]
- Implement AddDevice routine

svn path=/branches/usb-bringup/; revision=54760
2011-12-25 23:07:50 +00:00
Johannes Anderwald
8632f8d0f0 [USB-BRINGUP]
- add template for hidclass driver 
- fix hidusb build

svn path=/branches/usb-bringup/; revision=54759
2011-12-25 20:21:34 +00:00
Johannes Anderwald
d13f78582b - - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54758
2011-12-25 18:28:57 +00:00
Johannes Anderwald
c9d5364c98 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54757
2011-12-25 18:25:18 +00:00
Johannes Anderwald
d8200951b5 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54756
2011-12-25 18:23:22 +00:00
Thomas Faber
89857ef31c [NTOSKRNL/FORMATTING]
- Trim trailing whitespace and get rid of tabs in Mm

svn path=/trunk/; revision=54755
2011-12-25 18:21:05 +00:00
Johannes Anderwald
3c59337294 - rearrange hid stack
svn path=/branches/usb-bringup/; revision=54754
2011-12-25 18:17:07 +00:00
Johannes Anderwald
b03bdfff2a - add directory for hid stack
svn path=/branches/usb-bringup/; revision=54753
2011-12-25 18:16:35 +00:00
Johannes Anderwald
1205becf05 [USB-BRINGUP]
- Implement HidP_UsageListDifference, HidP_GetUsagesEx, HidP_UsageAndPageListDifference
- Fix api prototypes
- Fix HidP_GetUsages linking

svn path=/branches/usb-bringup/; revision=54752
2011-12-25 17:09:09 +00:00
Eric Kohl
846be7ac13 [EVENTLOG]
Partially revert r54678.

svn path=/trunk/; revision=54751
2011-12-25 00:57:16 +00:00
Cameron Gutman
eec24f8325 [CDFS]
- Fix infinite loop of verification and read attempts when a disc change occurs on VMware while ROS is running

svn path=/trunk/; revision=54750
2011-12-25 00:14:01 +00:00
Thomas Faber
aa885e24d7 [RTL]
- ASSERT on damaged heap data structures instead of producing an infinite loop
See issue #5857 for more details.

svn path=/trunk/; revision=54749
2011-12-24 22:45:26 +00:00
Thomas Faber
42942c9fbe [NTDLL_APITEST]
- NtAllocateVirtualMemory: fix handling of an error condition; check that newly-committed memory is zeroed

svn path=/trunk/; revision=54748
2011-12-24 10:26:04 +00:00
Cameron Gutman
835bf4292b [NTOSKRNL]
- Fix a reference count check in the flush path (broken by r54745)

svn path=/trunk/; revision=54747
2011-12-24 05:43:36 +00:00
Cameron Gutman
6ababb3a3f [NTOSKRNL]
- Fix inconsistent locking

svn path=/trunk/; revision=54746
2011-12-24 03:57:10 +00:00
Cameron Gutman
ed15dc5d11 [NTOSKRNL]
- Reference the cache segment when flushing to avoid a race between deleting the file cache and the balancer flushing pages to disk which causes random cache segments to be freed while we're holding a lock on it
- Fixes a crash in KeReleaseMutex (used to be a crash in ExReleasePushLock) during periods of high memory load

svn path=/trunk/; revision=54745
2011-12-23 23:20:09 +00:00
Aleksey Bragin
eaa88b7445 [RAPPS]
- Bump putty version to 0.62.
See issue #6775 for more details.

svn path=/trunk/; revision=54744
2011-12-23 21:30:40 +00:00
Aleksey Bragin
79b3a82e81 [DNSAPI]
- Change file description in the resources.
See issue #6653 for more details.

svn path=/trunk/; revision=54743
2011-12-23 21:25:25 +00:00
Aleksey Bragin
b89657be3a [RTL]
- Samuel Serapion: Implement RtlIpv4AddressToStringEx A/W and minor enhancements RtlIpv4AddressToStringA/W. Fixes some ntdll:rtl winetests.
See issue #6779 for more details.

svn path=/trunk/; revision=54742
2011-12-23 20:40:02 +00:00
Cameron Gutman
4d1949f841 [FASTFAT]
- Revert r54731

svn path=/trunk/; revision=54738
2011-12-23 15:56:25 +00:00
Johannes Anderwald
df17bddc0f - Fix function declaration
- add missing constant

svn path=/branches/usb-bringup/; revision=54737
2011-12-23 15:21:28 +00:00
Johannes Anderwald
756f0b704b [USBEHCI]
- Implement URB_FUNCTION_ISOCH_TRANSFER, URB_FUNCTION_CLASS_ENDPOINT, URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE

svn path=/branches/usb-bringup/; revision=54736
2011-12-23 15:20:00 +00:00
Rafal Harabien
3a31942276 [CRT]
- Fix splitpath when called with filename without path

svn path=/trunk/; revision=54735
2011-12-22 23:52:51 +00:00
Thomas Faber
5f1afc0280 [EXPLORER][ADVAPI32][SETUPAPI][SYSSETUP]
- Fix some issues found by cppcheck. Patch by Vincenzo Cotugno

svn path=/trunk/; revision=54734
2011-12-21 21:49:22 +00:00
Sylvain Petreolle
47d022adac [KERNEL32]
Silence BaseComputeProcessSearchPath.

svn path=/trunk/; revision=54733
2011-12-21 20:54:14 +00:00
Cameron Gutman
b658cc77df [NTOSKRNL]
- Don't wait to flush dirty pages during shutdown
- This is a hack to fix KVM

svn path=/trunk/; revision=54732
2011-12-21 20:19:20 +00:00
Cameron Gutman
c0ce0f1558 [FASTFAT]
- Remove the old page file hack

svn path=/trunk/; revision=54731
2011-12-21 19:58:42 +00:00
Cameron Gutman
274217e861 [NTOSKRNL]
- Add a wait parameter to CcRosFlushDirtyPages and only block on the segment locks of it is safe

svn path=/trunk/; revision=54730
2011-12-21 19:46:07 +00:00
Cameron Gutman
80ee75c141 [NTOSKRNL]
- Change the method of segment locking from a push lock to a mutex
- Fixes the 'OldValue.Locked' assertion failure

svn path=/trunk/; revision=54729
2011-12-21 19:08:59 +00:00
Rafal Harabien
45c965ea82 [SHELL32] - Try to fix MSVC build
svn path=/trunk/; revision=54728
2011-12-21 15:47:17 +00:00
Dmitry Gorbachev
3d2e890820 [Translation]
Romanian changes by Fulea Stefan (bug #6782).

svn path=/trunk/; revision=54727
2011-12-21 15:09:46 +00:00
Rafal Harabien
25368bb1da [SHELL32]
- Fix opening properties in background context menu
- Fix broken ASSERT in Open With menu

svn path=/trunk/; revision=54726
2011-12-21 13:53:49 +00:00
Cameron Gutman
3afbe4b511 [NTOSKRNL]
- Wait to acquire locks in CcRosFlushDirtyPages
- This is needed because this path is used during critical times like shutdown and very low memory situations when flushes cannot fail

svn path=/trunk/; revision=54725
2011-12-21 05:30:16 +00:00
Cameron Gutman
2dc4238d90 [SHELL32]
- Fix a typo in a registry path

svn path=/trunk/; revision=54724
2011-12-21 02:43:36 +00:00
Rafal Harabien
bff7c0a637 [BOOTDATA]
- Remove "Explore from here" from context menu. It's useless, does not exist in Windows and can't be translated in current form.

svn path=/trunk/; revision=54723
2011-12-20 22:55:42 +00:00
Rafal Harabien
ec80415b49 [SHELL32]
- Fix broken code in drive.cpp. Spotted by r3ddr4g0n.
- General code improvements
- Don't try to create static open handler in registry when file properties are opened. Fixes two "Open" items in shortcuts context menu after opening properties window.
See issue #6746 for more details.

svn path=/trunk/; revision=54722
2011-12-20 22:30:55 +00:00
Pierre Schweitzer
1aeee458ae [UNIATA]
Add missing '}'

svn path=/trunk/; revision=54721
2011-12-20 21:28:34 +00:00
Pierre Schweitzer
93ff89b522 [GLU32]
Add missing '('

svn path=/trunk/; revision=54720
2011-12-20 21:05:04 +00:00
Pierre Schweitzer
e0ce4bc8f0 [KERNEL32]
Colon end SEH lines to allow proper static analysis

svn path=/trunk/; revision=54719
2011-12-20 21:02:53 +00:00
Pierre Schweitzer
d49404aad0 [KERNEL32]
Colon end SEH lines to allow proper static analysis

svn path=/trunk/; revision=54718
2011-12-20 21:01:30 +00:00
Pierre Schweitzer
d15e9684e8 [WIN32K]
Colon end SEH lines to allow proper static analysis

svn path=/trunk/; revision=54717
2011-12-20 21:00:19 +00:00
Pierre Schweitzer
3c8d98ab5a [STLPORT]
Fix misplaced #endif
Brought to you by aggro from cppcheck team

svn path=/trunk/; revision=54716
2011-12-20 20:52:09 +00:00
Rafal Harabien
ed0656f56f [SHELL32]
- Fix SHCreateSessionKey
[EXPLORER]
- Don't run startup applications if StartupHasBeenRun key exists. If it doesn't, create new key.
- Make startup code readable
See issue #1801 for more details.

svn path=/trunk/; revision=54715
2011-12-20 20:47:48 +00:00
Rafal Harabien
673f93ef3b [SHELL32]
- Implement SHCreateSessionKey
- Formatting of shlview.cpp

svn path=/trunk/; revision=54714
2011-12-20 19:56:46 +00:00
Alex Ionescu
f714427f9a [KERNEL32] Part 2 of the Path patch: rewrite SearchPathW to use the RtlDosSearchPath_UStr function implemented last week. No (visible) regressions seen... let's see what Testbot says.
svn path=/trunk/; revision=54713
2011-12-20 19:09:13 +00:00
Rafal Harabien
2397b92402 [SYSSETUP]
- Create shortcuts after shell32 registration. Fixes shortcuts not being created during installation.

svn path=/trunk/; revision=54712
2011-12-20 18:55:09 +00:00
Aleksey Bragin
8fa9f7b979 [NTOS]
- A number of fixes to CmpQueryKeyName():
 * Properly check the provided buffer size against needed size.
 * Don't overwrite user provided buffer.
 * Write as much data as could fit into the buffer (this is normal behaviour for any query function in the kernel), returning STATUS_INFO_LENGTH_MISMATCH if not all data were written.

Thanks to r3ddr4g0n for identifying the problem, testing with DPH and testing this patch.

svn path=/trunk/; revision=54711
2011-12-20 18:16:14 +00:00
Alex Ionescu
f10a6e4cc9 [KERNEL32]: Implement some VDM code that will be needed for future CreateProcessInternalW work. Not called yet.
svn path=/trunk/; revision=54710
2011-12-20 16:53:11 +00:00
Pierre Schweitzer
a16e45a07d [TELNETD]
Fix handle leaks

svn path=/trunk/; revision=54709
2011-12-20 16:37:21 +00:00
Pierre Schweitzer
0f0ba6a559 [TELNETD]
Fix handle leak
Fix memory leak

svn path=/trunk/; revision=54708
2011-12-20 16:19:58 +00:00
Pierre Schweitzer
8a5c8f4eac [SYSSETUP]
Fix memory leak

svn path=/trunk/; revision=54707
2011-12-20 14:56:22 +00:00
Rafal Harabien
4fde7b04ce [SHELL32]
- Simplify a bit
- Display 0% instead of 00% for empty drive space

svn path=/trunk/; revision=54706
2011-12-19 21:34:22 +00:00
Rafal Harabien
e72a2141d1 - Fix build
svn path=/trunk/; revision=54705
2011-12-19 21:21:34 +00:00
Rafal Harabien
bd0fcbb5b6 [SHELL32]
- General code improvements

svn path=/trunk/; revision=54704
2011-12-19 21:20:24 +00:00
Rafal Harabien
3559384588 [SHELL32]
- Fix exceptions when starting drive properties dialog

svn path=/trunk/; revision=54703
2011-12-19 20:08:33 +00:00
Rafal Harabien
2c53cb44ab [SHELL32]
- Formatting. No code changes.

svn path=/trunk/; revision=54702
2011-12-19 19:31:12 +00:00
Rafal Harabien
13b53b78ab [SHELL32]
- Properly close Open With dialog window (EndDialog works only for modal dialogs, modeless dialogs should be destroyed with DestroyWindow instead). Fixes folder window hang if Open With windows was opened twice (and also a window leak).

svn path=/trunk/; revision=54701
2011-12-19 19:28:38 +00:00
Cameron Gutman
235496f021 [NTOSKRNL]
- "Hyperspace is local!": OK, system PTE space isn't…
- Change the function name to reflect the real location of the mapping and match its partner MiUnmapPagesInZeroSpace()

svn path=/trunk/; revision=54700
2011-12-19 18:44:47 +00:00
Rafal Harabien
c073996652 [SHELL32/BOOTDATA]
- Move more shell32 registration to proper place

svn path=/trunk/; revision=54699
2011-12-19 12:45:58 +00:00
Rafal Harabien
4a02e70375 [SHELL32]
- Rename few classes
[BOOTDATA]
- Don't register classes from shell32

svn path=/trunk/; revision=54698
2011-12-19 12:01:22 +00:00
Rafal Harabien
36ff012625 [SHELL32]
- Properly check if PIDL is folder. Folders doesn't has "Open With" context menu item anymore.

svn path=/trunk/; revision=54697
2011-12-19 11:47:30 +00:00
Rafal Harabien
e145474ee5 [SHELL32]
- Move "Open With" context menu handler registration to shell32
- Improve Polish translation

svn path=/trunk/; revision=54696
2011-12-19 11:37:46 +00:00
Sylvain Petreolle
0eecf78205 [SSSTARS]
Fix include paths casing.

svn path=/trunk/; revision=54695
2011-12-19 10:22:06 +00:00
Cameron Gutman
e873fe63ce [NTOSKRNL]
- Lock the registry before flushing hives to avoid, among other things, use of an ERESOURCE without being inside a critical region

svn path=/trunk/; revision=54694
2011-12-19 09:33:40 +00:00
Cameron Gutman
b3677f395e [NTOSKRNL]
- Tweak the balancer a bit to favor RosMm allocations in low memory scenarios
- Fix the balancer out of memory warning

svn path=/trunk/; revision=54693
2011-12-19 08:49:42 +00:00
Cameron Gutman
85ba8df340 [NTOSKRNL]
- Always use push locks within a critical region

svn path=/trunk/; revision=54692
2011-12-19 08:22:16 +00:00
James Tabor
26f43d7060 [User32]
- Add back hack for CMD scroll bar tracking. Miscellaneous cosmetic changes. Still working on scroll regressions.

svn path=/trunk/; revision=54691
2011-12-19 06:45:37 +00:00
Cameron Gutman
4be8d4740d [NTOSKRNL]
- Only unmap pages if they were mapped
- Make sure the page reference counts are sane when freeing the cache memory area

svn path=/trunk/; revision=54690
2011-12-19 02:56:58 +00:00
Cameron Gutman
35c9fc7ae8 [NTOSKRNL]
- Fix a page reference leak when reading or writing pages to the swap file

svn path=/trunk/; revision=54689
2011-12-19 01:22:37 +00:00
Rafal Harabien
6146fd09b2 [SHELL32]
- Fix getting name for context menu item. Fixes two "find" items in My Computer context menu.
- Minor code and comments improvements

svn path=/trunk/; revision=54688
2011-12-18 23:41:49 +00:00
Rafal Harabien
9286dc7ef8 [SHELL32]
- Fix Recycle Bin attributes. Context menu does not have "Delete" option anymore.
- Minor code improvements

svn path=/trunk/; revision=54687
2011-12-18 22:56:13 +00:00
Rafal Harabien
0edd7dacb4 [ATL]
- Fix processing of binary data in registrar scripts

svn path=/trunk/; revision=54686
2011-12-18 22:37:47 +00:00
Rafal Harabien
9a7346e654 [SHELL32]
- Add back "Empty Recycle Bin" context menu item

svn path=/trunk/; revision=54685
2011-12-18 21:54:59 +00:00
Rafal Harabien
d3a1887d23 [SHELL32]
- Formatting + some minor changes

svn path=/trunk/; revision=54684
2011-12-18 21:54:04 +00:00
Rafal Harabien
a5ec468fe0 [SHELL32]
- Remove unused/empty files
- Improve directory layout

svn path=/trunk/; revision=54683
2011-12-18 15:47:41 +00:00
Cameron Gutman
af11491f7c [NTOSKRNL]
- Fix COW file mappings (modifications to the mappings no longer change the file on disk)
- Fixes bug #4308

svn path=/trunk/; revision=54682
2011-12-18 04:55:11 +00:00
Alex Ionescu
58e95a8607 [NTOSKRNL]: An old patch that implements most of the Query/Set classes for processes, and cleans up those that aren't yet implemented. Adds support for KeBoostPriorityThread, KeSetDisableBoostProcess, KeSetAutoAlignmentProcess, KeSetAffinityProcess and the scheduling impact of these APIs. Also fixes some bugs in existing classes.
svn path=/trunk/; revision=54681
2011-12-18 04:27:20 +00:00
Alex Ionescu
48b3130f83 [NDK/RTL]: Implement, define, fix, and comment RtlSetUnhandledExceptionFilter.
svn path=/trunk/; revision=54680
2011-12-18 01:50:11 +00:00
Rafal Harabien
1b0eb4aad4 [WIN32K]
- Fail if display name device is given to EnumerateDisplayDevices and index is not set to 0. Fixes hang in Display Settings -> Advanced -> Monitor.

svn path=/trunk/; revision=54679
2011-12-18 00:22:50 +00:00
Eric Kohl
8da34d541e [ADVAPI33/EVENTLOG]
- Determine the event generation time in ReportEventA/W and use it.
- Replace magic values by proper type size.

svn path=/trunk/; revision=54678
2011-12-17 23:47:28 +00:00
Rafal Harabien
d8322663ed - Try to fix build
svn path=/trunk/; revision=54677
2011-12-17 23:11:54 +00:00
Rafal Harabien
ceb51c901c [SHELL32]
- Fix a typo from previous commit

svn path=/trunk/; revision=54676
2011-12-17 22:57:01 +00:00
Rafal Harabien
e8e0af66e7 [NDK]
- Fix ASSERT macro

svn path=/trunk/; revision=54675
2011-12-17 22:55:05 +00:00
Rafal Harabien
60239d4e4c [SHELL32]
- Formatting. No code changes
- Remove not used shfldr_unixfs.cpp

svn path=/trunk/; revision=54674
2011-12-17 22:53:44 +00:00
Rafal Harabien
7a0ad93bff [SHELL32]
- Revert 54075 hack (registration from old shell32 based on WINE), so things does not get registered twice. Two Control Panels in MyComputer are no longer visible
- Fix all regressions, which was hack-fixed before. 
- Add more debug output in case of errors

svn path=/trunk/; revision=54673
2011-12-17 22:48:16 +00:00
Eric Kohl
4e9b968c96 [EVENTLOG]
- Implement ElfrReadELA.
- Improve LogfReadEvent in such a way that it can return ANSI and UNICODE log entries.
- Add a hack to ElfrReadELW in order to return a proper status code in case of an end-of-file situation.

svn path=/trunk/; revision=54672
2011-12-17 13:22:10 +00:00
Cameron Gutman
7f9124d391 [NTOSKRNL]
- Fix bad indentation

svn path=/trunk/; revision=54671
2011-12-17 12:59:01 +00:00
Cameron Gutman
9dc72d09dc [VIDEOPRT]
- "RegionSize must be zero" doesn't mean literally pass 0 for the region size...

svn path=/trunk/; revision=54670
2011-12-17 09:18:24 +00:00
Cameron Gutman
94322ba2cb [WIN32K]
EngAllocMem:
 - Respect the FL_NONPAGED_MEMORY flag (actually allocate the memory from non-paged pool)
 - Fix an improper flag comparison that caused memory allocated with both FL_NONPAGED_MEMORY and FL_ZERO_MEMORY set to not be zeroed as requested

svn path=/trunk/; revision=54669
2011-12-17 08:35:31 +00:00
Cameron Gutman
70bb5d0a00 [RTL]
- Pass size 0 when calling NtFreeVirtualMemory for MEM_RELEASE

svn path=/trunk/; revision=54668
2011-12-17 08:30:48 +00:00
Cameron Gutman
76f66ed7a2 [RTL]
- Don't pass stack garbage to ZwFreeVirtualMemory

svn path=/trunk/; revision=54667
2011-12-17 08:22:04 +00:00
Cameron Gutman
80ecdce6cc [RTL]
- Revert r54660 and properly fix NtAllocateVirtualMemory/NtFreeVirtualMemory usage

svn path=/trunk/; revision=54666
2011-12-16 20:12:28 +00:00
Rafal Harabien
6b5f6de9b9 [POWRPROF]
- Fix few resource leaks, possible buffer overflows and simplify code

svn path=/trunk/; revision=54665
2011-12-16 19:22:07 +00:00
Eric Kohl
a94be71456 [EVENTLOG]
Implement ElfrBackupELFA and ElfrReportEventA.

svn path=/trunk/; revision=54664
2011-12-16 18:18:20 +00:00
Dmitry Gorbachev
c36e04fa83 [TRANSLATIONS]
- Sync translated resource files (DeskADP and most of CPL) with English files.
- Small Czech update of DXDiag and TaskMgr translations by Radek Liska (bug #6774).

svn path=/trunk/; revision=54663
2011-12-16 17:18:05 +00:00
Aleksey Bragin
b8928d9e26 [REFORMATTING]
- Reindent the dbgbuffer.c code to the ReactOS Standard Indentation.

svn path=/trunk/; revision=54662
2011-12-16 15:45:09 +00:00
Sylvain Petreolle
ce424af08c [CRT/MSVCRT]
Follow original design/style of printf module
Always use dosmaperr to convert win32 errors to sane crt errors
Enable forgotten _get_doserrno, get_errno, set_doserrno and _gmtime32_s
Small fixes to pass more wine tests.

Patch by Samuel Serapión.

svn path=/trunk/; revision=54661
2011-12-16 15:44:37 +00:00
Aleksey Bragin
5bf403a592 [RTL/QDB]
- Fix a massive memory leak when running Opera 9.64 (because created QDBs were never freed).

svn path=/trunk/; revision=54660
2011-12-16 15:36:38 +00:00
Aleksey Bragin
82c522f2ea [NTDLL/LDR]
- Fix SxS path calculation, now it returns proper full path to the DLL instead of just "C:\ReactOS\winsxs". Spotted by AbiWord 2.9.2.

svn path=/trunk/; revision=54659
2011-12-16 13:39:48 +00:00
James Tabor
94367a3205 - Fix arrage iconic windows. Set the minimized window position.
svn path=/trunk/; revision=54658
2011-12-16 01:49:10 +00:00
Olaf Siejka
f6c62c272e [TRANSLATION]
- inetcpl romanian translation update, resource file update for all languages by Stefan Fulea (bug no. 6766);
- polish translation update of inetcpl and resources changed by revision 54644;

svn path=/trunk/; revision=54657
2011-12-15 23:59:54 +00:00
Eric Kohl
ab618427e0 [EVENTLOG]
- Implement ElfrClearELFA and ElfrClearELFW.
- Fix the module name conversion in ElfrOpenELA and ElfrRegisterEventSourceA.

svn path=/trunk/; revision=54656
2011-12-15 21:33:46 +00:00
James Tabor
ca6eeb6640 - Fix putty 0.62 dialog.
svn path=/trunk/; revision=54655
2011-12-15 00:42:14 +00:00
James Tabor
b3740c4b79 - Sync wine Imm32.
svn path=/trunk/; revision=54654
2011-12-15 00:40:35 +00:00
James Tabor
cb01664625 - Sync wine Imm32 tests.
svn path=/trunk/; revision=54653
2011-12-15 00:39:37 +00:00
Sylvain Petreolle
965b4e276c Fix amd64 build.
svn path=/trunk/; revision=54652
2011-12-14 23:46:23 +00:00
Sylvain Petreolle
b30bf6de31 [CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.

Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.

svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
Sylvain Petreolle
838328b1ed [MKSHELLLINK]
Fix MSVC build.

Patch by Samuel Serapion.

svn path=/trunk/; revision=54650
2011-12-14 21:58:53 +00:00
Cameron Gutman
73252334c4 [NTOSKRNL]
- Quiet down the paging path

svn path=/trunk/; revision=54649
2011-12-14 18:39:21 +00:00
Cameron Gutman
c6b88aa125 [NTOSKRNL]
- Don't page out locked pages
- Fixes random failed assertions in MmUnlockPages

svn path=/trunk/; revision=54648
2011-12-14 17:53:15 +00:00
Dmitry Gorbachev
f4065b5b2a [WIN32K]
Fix indentation, comments, debug messages. Lioncash (mathew1800\AT/gmail\DOT/com), bug #6762.

svn path=/trunk/; revision=54647
2011-12-14 04:07:06 +00:00
Alex Ionescu
b5381f1fd7 [RTL]: Implement, and export, RtlDosSearchPath_Ustr as well as RtlGetFullPathName_UstrEx. RtlGetFullPathName_U is still old code but it seems good enough for now, and isn't the next target.
Nothing calls this code yet (SearchPathW soon will), this is just an implementation commit. Code was tested to boot to 3rd stage after SearchPath modification, which is the next target (step 2).
After which, the only code in the loader paths that uses legacy path APIs will be the create process path, the third and final step.

svn path=/trunk/; revision=54646
2011-12-14 03:55:54 +00:00
Dmitry Gorbachev
24c26cc161 [TRANSLATION]
Add Romanian translation for BrowseUI, update many older translations.
Patch by Stefan Fulea. Bug #6765.

svn path=/trunk/; revision=54645
2011-12-14 00:53:58 +00:00
Dmitry Gorbachev
b49067f626 [TRANSLATION]
Sync translated files with English files.

svn path=/trunk/; revision=54644
2011-12-13 13:37:08 +00:00
Aleksey Bragin
f27f17fb97 [MSAFD]
- Handle SO_SNDBUF in WSPSetSockOpt so that it doesn't fall through to wshtcpip and result in "unknown level: 65536".
- Added more trace messages.
See issue #5477 for more details.

svn path=/trunk/; revision=54643
2011-12-12 22:31:09 +00:00
Eric Kohl
2116571788 [ADVAPI32]
ReportEventA/W: Strings must be passed to ElfrReportEventA/W as a pointer to an array of PANSI_STRINGs instead of a pointer to an array of ANSI_STRINGs. Now, strings appear in the event viewer.

svn path=/trunk/; revision=54642
2011-12-12 21:54:20 +00:00
Rafal Harabien
afac3095f0 [WIN32K] - Formatting. No code changes.
svn path=/trunk/; revision=54641
2011-12-11 20:09:53 +00:00
Johannes Anderwald
be38b5da3b [PORTCLS]
- Add support for IDrmPort, IDrmPort2
- more debug traces 

svn path=/trunk/; revision=54640
2011-12-11 10:51:37 +00:00
Sylvain Petreolle
df57cb5880 [WIN32K]
Fix MSVC build.

svn path=/trunk/; revision=54639
2011-12-10 21:30:17 +00:00
James Tabor
388f6d13c8 - missed this file.
svn path=/trunk/; revision=54638
2011-12-10 07:46:10 +00:00
James Tabor
527f83f57d [Win32k|User32]
- Fix Get/SetWindowPlacement and everything related. Which exposed the scroll bar over write issue, it's not refreshing the client window when it is maximized. Next thing to fix.
- Fix ShowWindowAsync, now restore and minimize all works. This is based on wine but in reality it's based on Windows queuing event messages used in server side internal calls. Also this patch includes the server side hooking points.
- Removed one ugly API.
- Fixes bug 6239, 6739 and client window restore from maximize and the incremental crawling down issue when parent window is minimized then restored.

svn path=/trunk/; revision=54637
2011-12-10 07:41:56 +00:00
James Tabor
e1207737c2 - Fix dialog themes support for get text.
svn path=/trunk/; revision=54636
2011-12-10 07:03:33 +00:00
James Tabor
64e13bde73 - Fix make window active so to restore window.
svn path=/trunk/; revision=54635
2011-12-10 07:00:09 +00:00
James Tabor
9adebc4bec [Win32k]
- Fixups to set focus and show window support, added notes. Add is window visible. Fix a binary bit return, 1 is TRUE. Fix get client rectangle. Minor fixups.

svn path=/trunk/; revision=54634
2011-12-10 06:08:29 +00:00
James Tabor
3c7096002a [Win32k]
- Get FlashWindow working, pass all but 2 tests. Add more win32k atoms.

svn path=/trunk/; revision=54633
2011-12-10 06:00:38 +00:00
Cameron Gutman
13adb6230a [USETUP]
- Cache the last data block and offset so we don't have to search from the start each time
- This avoids needless swapping of cabinet data in and out of RAM
- File copy in text-mode setup on 32 MB RAM is down from 8 minutes to 20 seconds (in my testing)

svn path=/trunk/; revision=54632
2011-12-10 04:20:39 +00:00
Cameron Gutman
80e8caa0b9 [NTOSKRNL]
- Print trimmed consumers during text-mode setup too

svn path=/trunk/; revision=54631
2011-12-10 04:11:19 +00:00
Roel Messiant
2e113743c9 [WIN32K]
Probe the whole GAMMARAMP struct before reading/writing from it. CID 14114 & 14115.

svn path=/trunk/; revision=54630
2011-12-10 00:14:31 +00:00
Aleksey Bragin
f9533e5eba [LDR]
- Fix invalid errors about "system DLL kernel32.dll was relocated in memory". This reverts my previous fix suggested by rafalh and puts a better explanation there in comments.

svn path=/trunk/; revision=54629
2011-12-09 21:43:03 +00:00
Pierre Schweitzer
a21d3b9a41 [USP10]
Fix memory leak.
Already sent & committed upstream: 06f65740b2

svn path=/trunk/; revision=54628
2011-12-09 20:51:43 +00:00
Aleksey Bragin
8dd55da5d6 [ACTCTX]
- One more leftover from 54623. Remove actctx_init() from the activation context stack allocation.

svn path=/trunk/; revision=54627
2011-12-09 16:47:50 +00:00
Pierre Schweitzer
9f956fd752 [NTDLL]
Include ReactOS internal headers first

svn path=/trunk/; revision=54626
2011-12-09 16:29:06 +00:00
Cameron Gutman
c18313aa3c [ACTCTX]
- Add a missing assignment
- Try #1 to fix KVM

svn path=/trunk/; revision=54625
2011-12-09 16:04:14 +00:00
Cameron Gutman
ffcd78f426 [USETUP]
- Optimize cabinet file processing by finding files sequentially instead of starting from the beginning each time

svn path=/trunk/; revision=54624
2011-12-09 14:51:57 +00:00
Aleksey Bragin
417b739dbe [ACTCTX]
- Improve and rewrite a few active context support functions in RTL, making them more close to their real functionality and throwing away wineisms.
- Uncomment a line in RtlAllocateActivationContextStack() which was causing it to always allocate a new activation context stack even if there was one. Thanks to my previous commit in kernel32 counterpart, this hack is not needed anymore and memory won't be wasted.
- Since we have mostly Wine's code in our activation context implementation, it makes sense to use it properly until it's rewritten, so first of all:
- Properly initialize current process's activation context support by calling actctx_init() from LdrpInitializeProcess instead of calling it all the time when a new context is created.
- Bring in create_module_activation_context and find_actctx_dll (newer version from Wine which supports manifests/assmeblies in local directories) and use it. Every place where it's used is marked as a HACK so it will be easy to detach it later.
- Remove actctx-related hack LdrpInitializeThread, now it works properly.
- Fix a typo in LdrpMapDll found by rafalh. Now the error-detection condition will be correctly evaluated.
See issue #6611 for more details.

svn path=/trunk/; revision=54623
2011-12-09 10:33:09 +00:00
Rafal Harabien
c3ae29cc85 - Revert a revert - KVM is broken
svn path=/trunk/; revision=54622
2011-12-08 23:14:54 +00:00
Roel Messiant
fac5897ff1 [SYSSETUP]
- When writing a newline, write just a newline. Prevents garbage in setuplog.txt. CID 14128.


svn path=/trunk/; revision=54621
2011-12-08 21:23:17 +00:00
Cameron Gutman
dfcc357969 [TCPIP]
- Fix IPPacket double free in IPSendDatagram failure case

svn path=/trunk/; revision=54620
2011-12-08 21:21:25 +00:00
Rafal Harabien
798a3cfa96 - Partially revert r54613 to fix test bot
svn path=/trunk/; revision=54619
2011-12-08 20:28:06 +00:00
Aleksey Bragin
470eb66aff [KERNEL32]
- Zero-initialize ActivationContextStack pointer before calling RtlAllocateActivationContextStack(). This allows to get rid of some hacks in the existing ActCtx support in the ntdll loader and actual implementation.

svn path=/trunk/; revision=54618
2011-12-08 19:40:25 +00:00
Roel Messiant
bf06b2113d [WIN32K]
- Probe the whole SIZE struct arguments, not a pointer size. LPSIZE -> SIZE. CID 14119, 14120.

svn path=/trunk/; revision=54617
2011-12-08 19:38:58 +00:00
Cameron Gutman
de4cb19466 [WS2_32]
- Store WSAPROTOCOL_INFOW struct on the stack

svn path=/trunk/; revision=54616
2011-12-08 19:29:20 +00:00
Rafal Harabien
1805dc67b0 [WS2_32] - Use size of struct instead of size of pointer. Don't copy szProtocol, because it's set later. CID 14129 and 54.
svn path=/trunk/; revision=54615
2011-12-08 19:21:01 +00:00
Cameron Gutman
5eb7f4cb10 [WS2_32]
- Allocate enough memory for the WSAPROTOCOL_INFOW struct

svn path=/trunk/; revision=54614
2011-12-08 19:16:24 +00:00
Rafal Harabien
5ef42e9838 [RSYM]
- Don't strip relocations for some sections. Linker knows better if they are needed. Fixes removed relocations for delayed imports in idata section. Bug traced by me, Timo and Amine.
See issue #6618 for more details.

svn path=/trunk/; revision=54613
2011-12-08 19:02:04 +00:00
Pierre Schweitzer
65b1bedcb3 [USP10]
Fix memory leaks.
Already sent & committed upstream: 783683be2d

svn path=/trunk/; revision=54612
2011-12-08 18:10:36 +00:00
James Tabor
af39483cdf [User32]
- Add more debugging prints for message types in WndProc callback.

svn path=/trunk/; revision=54611
2011-12-08 17:00:59 +00:00
Pierre Schweitzer
4a177f6424 [MSACM32]
Check allocation success.
Prevent buffer double free.
Already sent & committed upstream: 1ac7096728

svn path=/trunk/; revision=54610
2011-12-07 22:16:00 +00:00
Pierre Schweitzer
7da8d18879 [MSCTF]
Fix memory leaks.
Already sent & committed upstream: f566f38e2f

svn path=/trunk/; revision=54609
2011-12-07 22:12:17 +00:00
Sylvain Petreolle
f8a5a5e7ba [MSVCRT]
Spec fixes, spotted by Samuel Serapion.

svn path=/trunk/; revision=54608
2011-12-07 21:52:13 +00:00
Pierre Schweitzer
ed16e04814 [RAPPS]
Update all rapps applications.
There are no dead links any longer.

svn path=/trunk/; revision=54607
2011-12-07 21:26:02 +00:00
Aleksey Bragin
9a63c24e07 [NTDLL/LDR]
- Improve LdrpCheckForKnownDll by adding parameters validation, return status value, better failure paths handling.

svn path=/trunk/; revision=54606
2011-12-07 17:51:18 +00:00
Cameron Gutman
eb919ba888 [NTOSKRNL]
- Optimize the LRU segment selection a bit

svn path=/trunk/; revision=54605
2011-12-07 09:49:49 +00:00
James Tabor
0f285fa795 [User32]
- Sync up with wine controls. See http://www.winehq.org/pipermail/wine-cvs/ for log data.

svn path=/trunk/; revision=54604
2011-12-07 09:23:04 +00:00
James Tabor
b069e5d538 [Usp10]
- Sync up to wine head. This will be needed for edit controls. Waiting for Pierres patched to be added!

svn path=/trunk/; revision=54603
2011-12-07 05:16:30 +00:00
Dmitry Gorbachev
783d0965a3 [FREELDR]
HACK: Fix booting with Armenian and other "exotic" languages. Bug #6727.

svn path=/trunk/; revision=54602
2011-12-06 17:38:06 +00:00
Cameron Gutman
bf94fe34bc [NDIS]
- Call MiniportReturnPacket at DISPATCH_LEVEL

svn path=/trunk/; revision=54601
2011-12-05 23:38:14 +00:00
Cameron Gutman
a4be799408 [TCPIP]
- Make interface octets in/out stats more accurate

svn path=/trunk/; revision=54600
2011-12-05 18:42:21 +00:00
James Tabor
5c7cd6fe68 - Fix return properties from atom.
svn path=/trunk/; revision=54599
2011-12-05 07:43:29 +00:00
Cameron Gutman
b8680bd686 [TCPIP]
- Fix the overflow fix

svn path=/trunk/; revision=54598
2011-12-05 03:51:01 +00:00
Cameron Gutman
b855c23983 [TCPIP]
- Massive IPPacket usage overhaul (fix missing frees, initializations, and double frees)
- Make IP receive completely agnostic of the buffers and data location (part 2 of 2)
- Use paged pool for the majority of allocations during receive and assembly
- Implement ProtocolReceivePacket for faster performance with 3rd party NIC drivers
- Fix a buffer overflow if an IPv4 packet is received with a header larger than 20 bytes
- Many more improvements and bug fixes

svn path=/trunk/; revision=54597
2011-12-05 03:14:50 +00:00
James Tabor
fc99fd13d2 [Win32k]
- Fix more set active window API tests. The window postion change message with fixed lparam is erroneous. How can the address be the same since it originates from kernel space?

svn path=/trunk/; revision=54596
2011-12-05 01:09:25 +00:00
James Tabor
89a93a892d [Win32k]
- Fix crash in shutdown, see bug 6714.

svn path=/trunk/; revision=54595
2011-12-04 22:35:18 +00:00
Jérôme Gardou
07619e65c7 [ACPI]
- return correct status in case of unknown GUID passed for IRP_MN_QUERY_INTERFACE

svn path=/trunk/; revision=54594
2011-12-04 22:34:55 +00:00
Cameron Gutman
3b2e97595e [TCPIP]
- Avoid an extra copy operation when receiving packets
- Optimize loopback code a bit
- Make IP receive independent of the location of the data and continuity of buffers in the NDIS packet for ProtocolReceivePacket support (part 1 of x)

svn path=/trunk/; revision=54593
2011-12-04 22:31:49 +00:00
Alex Ionescu
37dc00b136 [KERNEL32]: Implement BasepComputeProcessPath.
[KERNEL32]: Replace BasepGetDllPath with BasepComputeProcessDllPath. Paths now work right. This is step 1. SearchPatchW is next (BasepComputeProcessPath), followed by CreateProcessInternalW (BasepComputeProcessExePath). Then all paths will work right.

svn path=/trunk/; revision=54592
2011-12-04 19:30:12 +00:00
Cameron Gutman
6764aa97c8 [NTOSKRNL]
- Fix a logic error
- Signal the balancer in the !CanWait case if we're too low on pages since it runs asynchronously as of recently

svn path=/trunk/; revision=54591
2011-12-04 19:22:51 +00:00
Roel Messiant
c42d4ae0f0 [REGEDIT]
- Prevent buffer overflow when creating the display value for a value of type REG_MULTI_SZ.
- Prevent processing excess data when preparing a value of type REG_MULTI_SZ for editing.

svn path=/trunk/; revision=54590
2011-12-04 19:19:33 +00:00
Cameron Gutman
768046255e [NTOSKRNL]
- Print a warning and signal RosMm to trim pages if we drop below MmMinimumFreePages in MiRemovePageByColor and MiUnlinkFreeOrZeroedPage

svn path=/trunk/; revision=54589
2011-12-04 19:06:40 +00:00
Alex Ionescu
ca193ad4a7 [RTL]: Clarify a comment.
svn path=/trunk/; revision=54588
2011-12-04 17:25:15 +00:00
Alex Ionescu
5bfc64af01 [KERNEL32]: Fix many bugs in BasepInitailizeEnvironment (and rename to BasePushProcessParameters):
- Depending on how big the full path is, either the application path or the full path should be used. Size the buffers correctly, too.
    - If the caller did not specify a window title, should use the app path as title.
    - Clear the current directory handle if InheritHandles is false.
    - Correctly handle CREATE_NEW_PROCESS_GROUP and CREATE_NEW_CONSOLE.
    - Check the failure codes of many APIs that we just assumed returned success.
    - STARTF_USEHOTKEY | STARTF_SHELLPRIVATE should be checked when inheriting console handles.
    - Handle 1MB and 16MB reservation requests.
    - Bugs remain: ImageSubsystem not written, and failure will leak. To be fixed later.

svn path=/trunk/; revision=54587
2011-12-04 16:34:58 +00:00
Alex Ionescu
778d8cec8a [RTL]: Fix a bug in RtlGetCurrentDirectory_U.
svn path=/trunk/; revision=54586
2011-12-04 16:27:32 +00:00
Alex Ionescu
aa165b016c [NDK]: Add missing define.
svn path=/trunk/; revision=54585
2011-12-04 16:27:14 +00:00
Johannes Anderwald
b77ebc4fd0 - add more debug traces
- see bug 6556

svn path=/trunk/; revision=54584
2011-12-04 16:20:07 +00:00
Olaf Siejka
a0fce830ee [TRANSLATION]
- Romanian translation update (bug no. 6704) by Stefan Fulea;
- Lithuanian UTF-8 translation fixes (bug no. 6716) by Edijs Kolesnikovics;
- sysdm translation update by myself;



svn path=/trunk/; revision=54583
2011-12-04 14:53:17 +00:00
Olaf Siejka
03a54ff941 [SSSTARS]
- Convert the remainder of PL strings to UTF-8 to fix build, since that RC is declared as Unicode. Convert italian resources to UTF-8 and place all rc in a single section;

svn path=/trunk/; revision=54582
2011-12-04 14:46:04 +00:00
Eric Kohl
fd7cf60b6b [BOOTDATA]
Log service control manager events in the system log.

svn path=/trunk/; revision=54581
2011-12-04 14:23:52 +00:00
Eric Kohl
ebf5940723 [EVENTLOG]
- Open the application log if the desired log does not exist.
- Log eventlog service stop and shutdown.

svn path=/trunk/; revision=54580
2011-12-04 10:53:43 +00:00
Cameron Gutman
4ce4744000 [NTOSKRNL]
- Release the address space lock before entering SEH because an exception would result in recursive acquisition of the address space lock when the fault handler tries to grab it

svn path=/trunk/; revision=54579
2011-12-04 08:25:35 +00:00
Cameron Gutman
16d77664e7 [NTOSKRNL]
- Fix usage of SEH

svn path=/trunk/; revision=54578
2011-12-04 06:11:47 +00:00
Cameron Gutman
a4479b14cd [NTOSKRNL]
- Gracefully fail when there is no more pool space left
- Mm already prints plenty of warnings in this case

svn path=/trunk/; revision=54577
2011-12-03 22:46:15 +00:00
Cameron Gutman
621c5a5680 [AFD]
- Fix the allocation size for AFD_ACTIVE_POLL to fix a 1 byte non-paged pool overrun

svn path=/trunk/; revision=54576
2011-12-03 21:34:49 +00:00
Eric Kohl
17954a4f65 [BOOTDATA]
Remove class2 and scsiport service keys from the registry because these drivers are loaded automatically when they are needed.

svn path=/trunk/; revision=54575
2011-12-03 21:17:11 +00:00
Kamil Hornicek
b388ffbe70 [TRANSLATION]
Improved Czech resources.

svn path=/trunk/; revision=54574
2011-12-03 18:39:11 +00:00
Johannes Anderwald
6903aa1ae1 [PORTCLS]
- Use parameters which have been already probed by ks
- re-enable traces for property handler bug
- see bug 6662 6663 

svn path=/trunk/; revision=54573
2011-12-03 17:39:19 +00:00
Johannes Anderwald
755f485b8e [KS]
- store property item when there are custom specific properties
- Fix bug where the property handle routine received an invalid pointer to the data

svn path=/trunk/; revision=54572
2011-12-03 16:59:47 +00:00
Johannes Anderwald
8ee7ad7bcb - debug code for bug 6663
svn path=/trunk/; revision=54571
2011-12-03 13:55:07 +00:00
Cameron Gutman
75bfaddc5e [LIBWINE]
- Try to fix build

svn path=/trunk/; revision=54570
2011-12-03 11:36:30 +00:00
Cameron Gutman
5c0462dfe2 [NTOSKRNL]
- Use SEH when copying values back to the caller from NtFreeVirtualMemory

svn path=/trunk/; revision=54569
2011-12-03 11:18:18 +00:00
Christoph von Wittich
5ab217133c [psdk]
add missing files

svn path=/trunk/; revision=54568
2011-12-03 11:08:05 +00:00
Christoph von Wittich
7a4e87f841 [libwine]
add register.c to CMakeLists.txt as well

svn path=/trunk/; revision=54567
2011-12-03 11:03:45 +00:00
Christoph von Wittich
adc5bbe1ae [libwine]
add wine dll registration functions to libwine (taken from winecrt0)

TODO: support for linking multiple res files
      rbuild/cmake: generating .rgs files from typelibs

svn path=/trunk/; revision=54566
2011-12-03 10:45:26 +00:00
Cameron Gutman
b3c3a8b9ea [NTOSKRNL]
NtFreeVirtualMemory:
- Handle the case where a region size of 0 is passed in
- Return the correct error status for failure
- Copy back the rounded values
- Add checks and prints to catch callers doing nasty things  (one is commented out because csrsrv triggers it trying to release the first 1 MB of RAM during video init, not sure what to do there)

- There is a heap bug where calling RtlReAllocateHeap on a large block allocation (HEAP_ENTRY_VIRTUAL_ALLOC is set) will cause a call to NtFreeVirtualMemory with an offset base (illegal) and a length smaller than the total pages reserved in the VM region (also illegal). This bug is exposed by setupapi when it parses large INF files (like the PRO/1000 driver INF).

svn path=/trunk/; revision=54565
2011-12-03 10:30:02 +00:00
Sylvain Petreolle
164b6995a0 Fix typo.
svn path=/trunk/; revision=54564
2011-12-02 21:28:10 +00:00
Sylvain Petreolle
ca78c02783 [CRT]
Normalize all crt dll entry points to be identical.
Implement a single per thread data structure, instead of ancient and incomplete
"wine port" hack and use it everywhere.
Remove completely unused HeapCreate calls that just wasted memory.
Update cpp.c and cppexcept.c to wine 1.3.33
Fix up strtok, wcstok, rand, and _beginthread_trampoline according to wine.
Add place holders for future locale stuff.

Patch by Samuel Serapion.

svn path=/trunk/; revision=54563
2011-12-02 21:18:42 +00:00
Johannes Anderwald
38734d95d1 - add debug code for handling bug 6663
svn path=/trunk/; revision=54562
2011-12-02 17:35:53 +00:00
Cameron Gutman
9bcecdfc3c [LWIP]
- Save a bit of memory by changing the way pbufs are allocated for transmission

svn path=/trunk/; revision=54561
2011-12-02 06:55:05 +00:00
Cameron Gutman
857e528264 [NDIS]
- Print miniport attribute flags

svn path=/trunk/; revision=54560
2011-12-02 03:21:21 +00:00
Cameron Gutman
77ed514f64 [NDIS]
- Implement NdisReturnPackets and do proper reference tracking of packets sent to ProtocolReceivePacket
- Plug a massive memory leak that resulted in leaking every packet descriptor that any deserialized miniport indicated to TCP/IP

svn path=/trunk/; revision=54559
2011-12-02 01:56:10 +00:00
Cameron Gutman
f5fda30d65 [NDIS]
- Call FreeCommonBuffer() synchronously if we're running at PASSIVE_LEVEL to avoid cases where the miniport could be freed before the work item runs

svn path=/trunk/; revision=54558
2011-12-01 23:04:22 +00:00
Cameron Gutman
0cc9adb789 [NDIS]
- Make NdisMAllocateSharedMemoryAsync and NdisMFreeSharedMemory safe to call at IRQL <= DISPATCH_LEVEL

svn path=/trunk/; revision=54557
2011-12-01 22:31:54 +00:00
James Tabor
eb9eb149da [Win32k|User32]
- Fix regressions, running RegEdit. Adding more support for scroll bar controls. Pass all but 7 tests including the two wine todos.

svn path=/trunk/; revision=54556
2011-12-01 12:42:05 +00:00
James Tabor
c156702b26 [Win32k|User32]
- Fix scrollbar class support. Sync ports from wine. Added the window scroll structure to the class. Pass all but 15 tests, two are wine todos lines 304 and 343.

svn path=/trunk/; revision=54555
2011-12-01 03:20:02 +00:00
Pierre Schweitzer
b1b439d600 [MSVCRT_APITEST]
Add MSDN example

svn path=/trunk/; revision=54554
2011-11-30 23:47:41 +00:00
Cameron Gutman
be25cf73ff [NDIS]
- Fix parsing of hex strings

svn path=/trunk/; revision=54553
2011-11-30 22:27:14 +00:00
Pierre Schweitzer
054f2fe7ce [CRT]
Fix error handling for j0, j1, y0, y1 Bessel functions.
Remove useless defines

svn path=/trunk/; revision=54552
2011-11-30 22:04:54 +00:00
Cameron Gutman
5a339d9479 [NTOSKRNL]
- Only flush pages if we can't satisfy Mm's target without using dirty pages

svn path=/trunk/; revision=54551
2011-11-30 21:58:46 +00:00
Pierre Schweitzer
12c5843d21 [MSVCRT_APITEST]
Add more tests

svn path=/trunk/; revision=54550
2011-11-30 21:03:35 +00:00
Cameron Gutman
f9794fddef [NTOSKRNL]
- Optimize CcRosTrimCache by eliminating an extra loop of all segments
- Allow swapping of dirty segments by flushing them first

svn path=/trunk/; revision=54549
2011-11-30 17:10:43 +00:00
Thomas Faber
246357c187 [NTDLL_APITEST]
- Add NtAllocateVirtualMemory test, which is a small stress test for virtual memory allocation/freeing/reuse
- Can be used to reproduce bug 5857 in third stage (install with VT-x enabled, then disable for the test)
- Shows that the bug is a race condition in Mm, and not heap's fault
- I've put ASSERTs instead of ok's for easier debugging

svn path=/trunk/; revision=54548
2011-11-30 17:00:23 +00:00
Rafal Harabien
487b1bdaec [SHELL32] - Restore functionality of Start Menu from old shell32
svn path=/trunk/; revision=54547
2011-11-30 12:21:27 +00:00
Rafal Harabien
f0fd524b40 [EXPLORER-NEW] - Improve start menu initialization a bit so it shows what failed
svn path=/trunk/; revision=54546
2011-11-30 12:20:08 +00:00
Dmitry Gorbachev
a2b753d441 [SsStars]
Update Starfield screensaver translations (bug #6270):
- Polish by Wojtek Kozlowski <=wojtekkozlo664=AT=op=DOT=pl=>;
- Russian by Evilslon <=evilslon=AT=mail=DOT=ru=>.

svn path=/trunk/; revision=54545
2011-11-30 11:27:50 +00:00
Cameron Gutman
ad13fe7571 [NTOSKRNL]
- Many balancer fixes for concurrency, improved swapping efficiency, and reduced code duplication
- Move the low memory case back under the PFN lock
- Debugging is on for now because I don't trust the paging code all that much (it was not used very much until recently)

svn path=/trunk/; revision=54544
2011-11-29 23:59:25 +00:00
Rafal Harabien
d6462341ba [SHLWAPI] - Add a diff file
svn path=/trunk/; revision=54543
2011-11-29 19:30:50 +00:00
Rafal Harabien
5d73fe256d [SHLWAPI] - PathIsUNC returns FALSE for paths starting with "\\?". Should be sent to wine.
svn path=/trunk/; revision=54542
2011-11-29 19:10:22 +00:00
Cameron Gutman
73bbc7c1e6 [NTOSKRNL]
- Call MmReleasePageMemoryConsumer with the consumer that was actually allocated (not always MC_CACHE)

svn path=/trunk/; revision=54541
2011-11-29 19:08:19 +00:00
Cameron Gutman
ff37949679 [NTOSKRNL]
- Always trim at least MiMinimumPagesPerRun for each call to MiTrimMemoryConsumer to reduce cache thrashing

svn path=/trunk/; revision=54540
2011-11-29 18:32:23 +00:00
Cameron Gutman
832bc7ab3f [NTOSKRNL]
- Revert part of r54530
- Try to rebalance RosMm's pages if we're low on memory in ARM3
- ROS runs with 48 MB RAM again (but setup is very slow due to horrendous paging caused by cache pollution)

svn path=/trunk/; revision=54539
2011-11-29 18:03:09 +00:00
Rafal Harabien
de008de9a4 [SHELL32]
- Make functions in folder_options.c static
- Register FolderOptions using folderoptions.rgs

svn path=/trunk/; revision=54538
2011-11-29 17:29:57 +00:00
Cameron Gutman
27588824f0 [NTOSKRNL]
- Don't signal the balancer from within the balancer
- Optimize usage of the balancer a bit so we don't have to wait on it as much

svn path=/trunk/; revision=54537
2011-11-29 17:05:56 +00:00
Alex Ionescu
c0fa34f162 [KERNEL32]: Write out the 3 internal APIs which will do path resolution, and define the structures that determine the search path order which each one will use. No functional change.
svn path=/trunk/; revision=54536
2011-11-29 15:04:31 +00:00
Dmitry Gorbachev
267dcf71eb [SOLITAIRE]
Change "Ok/Cancel" to "Yes/No". Lee Schroeder (=spaceseel=AT=gmail=DOT=com=), bug #6606.

[CPL][WIN32K]
Fix indentation, comments, debug messages. 
Lioncash (=mathew1800=AT=gmail=DOT=com=), bug #6562, bug #6621.

svn path=/trunk/; revision=54535
2011-11-29 14:55:58 +00:00
Cameron Gutman
62e97bd800 [NTOSKRNL]
- Fix a potential infinite loop in MmTrimUserMemory if we can't page out enough pages to meet the balancer's target

svn path=/trunk/; revision=54534
2011-11-29 08:13:56 +00:00
Dmitry Gorbachev
f6817e04bc [TRANSLATION]
MSPaint:
- Add Swedish translation by Michael Wu (bug #6695).
- Sync all translation files with American English file (bug #6700).

svn path=/trunk/; revision=54533
2011-11-29 07:01:37 +00:00
Cameron Gutman
8e44e89646 [NTOSKRNL]
- Don't remove pages with references left from the user PFN bitmap
- Patch by Nikolay Myltsev

svn path=/trunk/; revision=54532
2011-11-29 06:51:37 +00:00
Cameron Gutman
63db6b034d [NTOSKRNL]
- Add missing user PFN bitmap locking in MmRemoveLRUUserPage

svn path=/trunk/; revision=54531
2011-11-29 04:22:51 +00:00
Cameron Gutman
11b737b0e8 [NTOSKRNL]
- Remove a superfluous user LRU insertion and removal
- Add a missing user LRU insertion

svn path=/trunk/; revision=54530
2011-11-29 03:24:03 +00:00
Rafal Harabien
6f7115b541 [SHELL32]
- Display file size in bytes in file properties dialog
- Don't use ULONGLONG if ULONG is enough
- Change LARGE_INTEGER to ULARGE_INTEGER where it makes sense
- Fix calculation of file size in CountFolderAndFiles
- WM_GETTEXT receives size in bytes (not characters count)
- Use Get(Set)DlgItemTextW instead of SendDlgItemMessageW
Patch by Carlo Bramix. Improvements by me.
See issue #6294 for more details.

svn path=/trunk/; revision=54529
2011-11-28 21:54:45 +00:00
Aleksey Bragin
e86ebe01cc [NTOS]
- Nikolay Myltsev: Fix incorrect balancer thread id check.
See issue #5857 for more details.

svn path=/trunk/; revision=54528
2011-11-28 19:53:38 +00:00
Rafal Harabien
f88bacce5d [SHELL32]
- Use string IDs from rgs files
- Improve Polish translation

svn path=/trunk/; revision=54527
2011-11-28 11:21:15 +00:00
Rafal Harabien
4e112e9bee [SHELL32]
- Improve Polish translation of Folder Options
- Fix Start Menu folder having name "Menu" in Polish translation

svn path=/trunk/; revision=54526
2011-11-28 10:46:11 +00:00
Rafal Harabien
32a3103174 [CALC] - Fix buttons misalignment. Patch by Fulea Stefan.
svn path=/trunk/; revision=54525
2011-11-28 10:32:48 +00:00
Rafal Harabien
fc608fe00a [DESK] - Improve Polish translation
svn path=/trunk/; revision=54524
2011-11-28 10:22:27 +00:00
Rafal Harabien
5031e72c6a [SHELL32] - Don't fail if Shell folder cannot be created. This way shell registers more folders on LiveCD.
svn path=/trunk/; revision=54523
2011-11-28 10:01:24 +00:00
Rafal Harabien
5ea66e831b [LIVECD] - Add registration to LiveCD. Fixes #6597, #6613 and probably some more
svn path=/trunk/; revision=54522
2011-11-28 09:53:01 +00:00
Rafal Harabien
fb2da4e672 [RBUILD] - Create livecd shortcuts on rbuild too
svn path=/trunk/; revision=54521
2011-11-28 09:46:59 +00:00
Dmitry Gorbachev
cd19187c5d [DiskPart]
Remove unused file. Lee Schroeder, bug #6699.

svn path=/trunk/; revision=54520
2011-11-28 07:35:58 +00:00
Dmitry Gorbachev
81516fc73a [NTDLL]
Do not map already mapped section.

svn path=/trunk/; revision=54519
2011-11-28 07:35:51 +00:00
James Tabor
0155bc51c8 - fix GetNCHitEx, restore track mouse buttons in test system.
svn path=/trunk/; revision=54518
2011-11-28 06:37:45 +00:00
James Tabor
6bba47787d - Add padded boarder width to NONCLIENTMETRICS.
svn path=/trunk/; revision=54517
2011-11-28 04:16:54 +00:00
Rafal Harabien
aedcb1f1b0 [MKSHELLLINK] - Don't use stricmp. It's not a standard function.
svn path=/trunk/; revision=54516
2011-11-27 20:14:00 +00:00
Rafal Harabien
2d488d4d0e [MKSHELLLINK] - Don't use windows.h in host tool
svn path=/trunk/; revision=54515
2011-11-27 20:11:06 +00:00
Rafal Harabien
ff6d7b0236 [CMAKE] - Add shortcuts to CMake livecd.
All .lnk files in Windows has structure called "id list". This is something like a path (we can't use environment variables there) and it is relative to Desktop. Usually first element is My Computer folder. In our shortcuts it points to livecd_start.cmd in My Documents folder, which is simple batch file. It's functionality is to start application given in argument. Because command line parameter of shell links can have environment variables, our shortcuts does not depend on patch to system directory (especially the drive number). It's a bit complicated but I have not found a better way.
Now we have working shortcuts on Desktop and Start Menu. Control Panel will benefit in future because Admin Tools depend on Start Menu.

svn path=/trunk/; revision=54514
2011-11-27 19:59:14 +00:00
Rafal Harabien
71867403fd [CMAKE] - Add support for creating lnk files
svn path=/trunk/; revision=54513
2011-11-27 19:45:41 +00:00
Rafal Harabien
ea682b6909 [MKSHELLLINK]
- Add host tool for creating .lnk files

svn path=/trunk/; revision=54512
2011-11-27 19:41:52 +00:00
Eric Kohl
63ee24adb0 [CLASS2]
Switch to the 'new' disk geometry (63 sectors per track and 255 tracks per cylinder). This geometry is compatible with Windows, Linux and other Operating Systems.

ATTENTION: You must delete and re-create the partitions on your harddisk.

svn path=/trunk/; revision=54511
2011-11-27 14:18:40 +00:00
James Tabor
355e8279a6 - Fix GetNCHitEx rects.
svn path=/trunk/; revision=54510
2011-11-27 13:29:15 +00:00
James Tabor
8b61c2709d - Add window placement flag for async message mode. Yes we support this too now.
svn path=/trunk/; revision=54509
2011-11-27 12:58:01 +00:00
James Tabor
1b23396e60 [Win32k]
- Create Monitor from rect. This will be used for window placement support.

svn path=/trunk/; revision=54508
2011-11-27 12:47:43 +00:00
Eric Kohl
83bf20450a [USETUP]
Get rid of the ugly LIST_FOR_EACH macro.

svn path=/trunk/; revision=54507
2011-11-27 12:00:34 +00:00
Eric Kohl
2e001db9ee [TCPVCS]
- Report service status upon an interrogate request.
- Set the wait hint to a non-zero value.

svn path=/trunk/; revision=54506
2011-11-27 10:55:45 +00:00
Eric Kohl
02a1138b90 [FREELDR]
PcDiskGetDriveGeometry: Try to retrieve the extended disk geometry first.

svn path=/trunk/; revision=54505
2011-11-27 10:00:24 +00:00
Dmitry Gorbachev
320ca8654d [USETUP]
Load the font before displaying the Language Page.

svn path=/trunk/; revision=54504
2011-11-26 22:23:34 +00:00
Dmitry Gorbachev
6c5c7809dd [NTOSKRNL]
KDB: print more useful backtrace after double fault or NMI.

svn path=/trunk/; revision=54503
2011-11-26 22:23:00 +00:00
Eric Kohl
4b474cce59 [USETUP]
- Enable translations of the language page. Patch by Stefan Fulea.
- Simplified the clear text code.
- Fixed the german language page.
See issue #6637 for more details.

svn path=/trunk/; revision=54502
2011-11-26 18:27:42 +00:00
Aleksey Bragin
b687932799 [NTDLL/LDR]
- Fix incorrect DLL notify flag check. Spotted by Amine.

svn path=/trunk/; revision=54501
2011-11-26 10:00:33 +00:00
Aleksey Bragin
e0127be5e0 [NTOS]
- Remove an unnecessary semicolon. Spotted by tower.

svn path=/trunk/; revision=54500
2011-11-26 09:56:23 +00:00
James Tabor
9156d483f3 [Gdi32]
- Do the same for rbuild, link to msvcrt.

svn path=/trunk/; revision=54499
2011-11-25 22:25:06 +00:00
James Tabor
e24e938fa0 [User32]
- Fix errno in dialog.c by linking to msvcrt with rbuild. Cmake does not have this issue, already links to msvcrt. Gdi32 rbuild does link to crtdll instead of msvcrt. Should we fix this too, before the Cmake switch over to see anything is different?

svn path=/trunk/; revision=54498
2011-11-25 22:18:20 +00:00
Olaf Siejka
e00f86150c [TRANSLATION]
- Romanian translation update (bug no. 6677) by Stefan Fulea;


svn path=/trunk/; revision=54497
2011-11-24 23:45:38 +00:00
Thomas Faber
ad36bb50ec [LIBXML2][LIBXSLT]
- Suppress unhelpful warnings

svn path=/trunk/; revision=54496
2011-11-24 14:22:58 +00:00
Thomas Faber
4421e839ea [PSEH2_TEST]
- Suppress unhelpful warnings
- Remove unneeded compiler flags

svn path=/trunk/; revision=54495
2011-11-24 14:07:44 +00:00
Thomas Faber
cbab266b08 [CRT]
- Remove some differences to Wine. Fixes comparing a char against EOF in fgetwc.

svn path=/trunk/; revision=54494
2011-11-24 13:27:34 +00:00
Thomas Faber
251e9afb18 [EXPLORER]
- Fix incorrect virtual function override of Entry::do_context_menu. CID 1630

svn path=/trunk/; revision=54493
2011-11-24 13:12:56 +00:00
Amine Khaldi
618bd5e652 [IP]
* Remove unused value. CID 11342.

svn path=/trunk/; revision=54492
2011-11-24 12:51:27 +00:00
Amine Khaldi
4f7abdba44 [WIN32K]
* Comment out some unused but set variables.
* Check for NtDeviceIoControlFile returned status and warn on failure.

svn path=/trunk/; revision=54491
2011-11-24 12:38:26 +00:00
Amine Khaldi
ebcf61a63b [KS]
* Add a missing break. CID 13502.

svn path=/trunk/; revision=54490
2011-11-24 12:36:49 +00:00
Amine Khaldi
2b29282303 [SHELL32]
* Initialize fSite in the constructor. CID 15134.

svn path=/trunk/; revision=54489
2011-11-24 11:40:43 +00:00
Amine Khaldi
d72307c532 [SHLWAPI]
* Fix the syntax of some resource files (Spotted by windres).

svn path=/trunk/; revision=54488
2011-11-24 11:27:36 +00:00
Amine Khaldi
4696a40648 [HAL]
* Timo Kreuzer: Fix a NULL pointer dereference. CID 13453.

svn path=/trunk/; revision=54487
2011-11-24 11:25:40 +00:00
Amine Khaldi
d96e0b80cf [NTOSKRNL]
* Timo Kreuzer: Fix some dead code. CID 14595.

svn path=/trunk/; revision=54486
2011-11-24 11:22:18 +00:00
Amine Khaldi
b45deaaafd [SHELL32]
* Fix the syntax of the Japanese resource file (Spotted by windres).

svn path=/trunk/; revision=54485
2011-11-24 10:17:48 +00:00
Cameron Gutman
be4fb81c94 [SCSIPORT]
- Implement ScsiPortGetLogicalUnit

svn path=/trunk/; revision=54484
2011-11-24 00:07:15 +00:00
Giannis Adamopoulos
c1a19714f6 [win32k]
- Fix a typo in NtUserSetClipboardData that tried to print a struct as a pointer (cid 15051)
- Clean up clipboard.c a bit. note: this cleanup "fixes" cid 14599 and 14598, but even though they are false positives, this cleanup was needed
- Add missing break in NtUserQueryWindow (cid 13486)

svn path=/trunk/; revision=54483
2011-11-23 19:52:06 +00:00
Thomas Faber
d87dae2daa [SERVICES]
- Do not use an unsigned type for a value that can become negative in ScmAssignNewTag (CID 14665)

svn path=/trunk/; revision=54482
2011-11-23 18:15:26 +00:00
Thomas Faber
494f949f52 [SERVICES]
- Fix dwServiceType and dwServiceState checks in REnumServicesStatusW (see r54373)
- Fix a memory leak in RQueryServiceConfig2A

svn path=/trunk/; revision=54481
2011-11-23 17:13:53 +00:00
Jérôme Gardou
60c812a9dc [NTOSKRNL/MM]
- Also round down offset we're given when creating a page op, so we don't miss the one that could be running at the time

svn path=/trunk/; revision=54480
2011-11-23 00:24:29 +00:00
Pierre Schweitzer
235d1c5a42 [NTOSKRNL]
Don't attempt to free random address
Don't attempt to free null address

svn path=/trunk/; revision=54479
2011-11-22 22:07:35 +00:00
Jérôme Gardou
ef3f455441 [OOPS]
- I forgot this one

svn path=/trunk/; revision=54478
2011-11-22 22:05:02 +00:00
Jérôme Gardou
27d513df6e [NTOSKRNL/MM]
- create a page op when changing page protection attribute
- properly handle PAGE_NOACCESS protection change in NtProtectVirtualMemory
- Round down the address we're given when creating a page op, so we're sure there is o,ly one page op for running for one page
- Add a small hack
Now ReatOS boots with DPH enabled on low memory conditions

svn path=/trunk/; revision=54477
2011-11-22 22:01:06 +00:00
Rafal Harabien
397bb2c11e - Partially revert r54475 to check if it fixes KVM
svn path=/trunk/; revision=54476
2011-11-22 20:11:55 +00:00
Rafal Harabien
2e5bcdab25 [WIN32CSR]
- Fix process reference leak in case of GuiConsoleOpenUserRegistryPathPerProcessId failing to open registry key. Fixes console processes in LiveCD being ghosts.

svn path=/trunk/; revision=54475
2011-11-22 18:49:40 +00:00
Rafal Harabien
c3dc125256 [EXPLORER] - Close thread handle for startup processes in Run and RunOnce keys. Fixes cmd.exe ghost on first bootcd explorer startup.
svn path=/trunk/; revision=54474
2011-11-22 15:07:27 +00:00
Dmitry Gorbachev
4ce30245de [NTOSKRNL|KDCOM]
Allow to specify the serial port address, as requested by people on the forum.

svn path=/trunk/; revision=54473
2011-11-22 02:30:16 +00:00
Jérôme Gardou
2ffaaef5e6 [HALx86]
- Fix the fix (do not truncate ULONGLONG value)

svn path=/trunk/; revision=54472
2011-11-21 12:30:01 +00:00
Jérôme Gardou
f02069cdbe [HALx86]
- Hey Arch, it's an USHORT!

svn path=/trunk/; revision=54471
2011-11-21 12:17:57 +00:00
Jérôme Gardou
2a0fd0c988 [HALx86]
- fix various compiler warnings (msvc)
- fix a bug, where only the last IO map entry would be saved

svn path=/trunk/; revision=54470
2011-11-21 12:04:16 +00:00
Dmitry Gorbachev
01a74570f0 [Translation]
Changes in a registry file by Stefan Fulea (Romanian). Bug #6677.

svn path=/trunk/; revision=54469
2011-11-21 06:03:39 +00:00
Dmitry Gorbachev
b7f9a4b528 [NTOSKRNL]
- Do not repeat messages into serial port even when using other debug methods.
- Allow to specify debug log file name.
- When using the "Screen" method, show blue screen when entering KDB.
- Disable the repetition of previous KDB command with long many-page output.

[USETUP]
- Add "ReactOS (Screen)" entry to boot menu.

svn path=/trunk/; revision=54468
2011-11-21 05:28:08 +00:00
Cameron Gutman
34f3db310e [NDIS]
- Remove unicode debug stuff out of the spinlock
- Add a comment

svn path=/trunk/; revision=54467
2011-11-20 22:31:26 +00:00
Cameron Gutman
4c824654d4 [NDIS]
- Fix this indentation atrocity

svn path=/trunk/; revision=54466
2011-11-20 22:25:09 +00:00
Rafal Harabien
a600f07982 [SHELL32] - Fix running batch files from patch containing spaces in ShellExecute API
svn path=/trunk/; revision=54465
2011-11-20 22:22:42 +00:00
Cameron Gutman
c2a5965d39 [NDIS]
- Print debugging information if a mismatch occurs between requested and returned parameter types
- Print debugging information if a registry read returns a type that NDIS doesn't handle
- Ensure that all digits are less than the base during conversion from string to integer (otherwise it's a string)

svn path=/trunk/; revision=54464
2011-11-20 21:37:16 +00:00
Pierre Schweitzer
7393500ce7 [ADVAPI32_APITEST]
Add missing test to CD

svn path=/trunk/; revision=54463
2011-11-20 20:03:46 +00:00
Jérôme Gardou
659fcbe394 [RTL]
- explicitly truncate some values, so it doesn't count as an error for compiler/MSVC runtime checker

svn path=/trunk/; revision=54462
2011-11-20 19:45:06 +00:00
Jérôme Gardou
3808ea2f30 [HAL]
- truncate PCI vendor id instead of casting it.
MSVC chokes on it with /RTCc

svn path=/trunk/; revision=54461
2011-11-20 17:54:52 +00:00
Jérôme Gardou
99282b754f [FREELDR]
- fix potential integer overflow : casting ULONGLONG to ULONG_PTR is not a good idea.

svn path=/trunk/; revision=54460
2011-11-20 17:37:20 +00:00
Pierre Schweitzer
37bc0a5a08 [KERNEL32]
Properly fix GetEnvironmentVariableW and set error in case of RtlInitUnicodeStringEx failure

svn path=/trunk/; revision=54459
2011-11-20 17:00:39 +00:00
Pierre Schweitzer
c1f9c89d62 [NTOSKNRL]
Properly check for string

svn path=/trunk/; revision=54458
2011-11-20 16:39:31 +00:00
Aleksey Bragin
ee0296db7d [RBUILD]
- Convert SPACEs to TABs in .rbuild.

svn path=/trunk/; revision=54457
2011-11-20 16:34:16 +00:00
Rafal Harabien
21ac81fe72 [KERNEL32/WIN32CSR] - Use ShowCmd from STARTUPINFO when creating console window
svn path=/trunk/; revision=54456
2011-11-20 14:35:41 +00:00
Jérôme Gardou
17abc7b17d [CRT]
- implement _chkesp

svn path=/trunk/; revision=54455
2011-11-20 14:04:40 +00:00
Rafal Harabien
1f402857de [SHELL32] - Load iCmdShow value from .lnk files
svn path=/trunk/; revision=54454
2011-11-20 14:02:48 +00:00
Sylvain Petreolle
23e3ab342d [USETUP]
Use Reactos_Debug for unattended MSVC installs.

svn path=/trunk/; revision=54453
2011-11-19 22:50:04 +00:00
Pierre Schweitzer
4e74b02cd3 [CRT]
Break ReactOS CRT:
- Add back crash on NULL pointer arg. This is the behaviour on w2k3.
- Don't skip \\?\ prefix any longer. This is the behaviour on w2k3.

svn path=/trunk/; revision=54452
2011-11-19 22:29:03 +00:00
Pierre Schweitzer
df03d3cc8b [CRT]
Fix MSVC build.

svn path=/trunk/; revision=54451
2011-11-19 22:08:39 +00:00
Pierre Schweitzer
a9e9b29ff5 [MSVCRT_APITEST]
Force linking to msvcrt instead of ntdll. Purpose is to test crt from msvcrt not ntdll.
Patch by Sylvain Petreolle.

svn path=/trunk/; revision=54450
2011-11-19 22:06:18 +00:00
Pierre Schweitzer
363b460431 [MSVCRT_APITEST]
Fix tests according to the platform they are run on.
This fixes msvcrt_apitest crash on w2k3.

svn path=/trunk/; revision=54449
2011-11-19 21:59:12 +00:00
Eric Kohl
042f97270e [SYSDM]
- Display all hardware profiles
- Add the hardware profile copy dialog to most languages.
- Disable the Up, Down, Property, Copy, Rename and Delete buttons in the Hardware Profiles dialog. 

svn path=/trunk/; revision=54448
2011-11-19 19:10:18 +00:00
Pierre Schweitzer
7d1620fa34 [CRT]
Check for NaN and set error accordingly

svn path=/trunk/; revision=54447
2011-11-19 19:01:58 +00:00
Jérôme Gardou
ada492283a [NTOSKRNL]
- Add comment regarding r54445

svn path=/trunk/; revision=54446
2011-11-19 17:54:33 +00:00
Jérôme Gardou
e5a8d70847 [NTOSKRNL]
- Attempt to fix 3rd stage boot

svn path=/trunk/; revision=54445
2011-11-19 17:32:03 +00:00
Jérôme Gardou
a1c0d36034 [NTOSKRNL]
- add some debug prints

svn path=/trunk/; revision=54444
2011-11-19 17:20:39 +00:00
Rafal Harabien
9e8dbbaa34 [INF] - Don't place Polish translation in German section
svn path=/trunk/; revision=54443
2011-11-19 17:03:00 +00:00
Jérôme Gardou
8bdd44546a [WINDEF.H]
- you never use enough brackets

svn path=/trunk/; revision=54442
2011-11-19 16:13:31 +00:00
Jérôme Gardou
c2e72c38bd [NTOSKRNL]
- add (yet another) sanity ASSERT

svn path=/trunk/; revision=54441
2011-11-19 16:08:26 +00:00
Pierre Schweitzer
531147c111 [CRT]
Reimplemented _scalb properly.
This fixes 19 tests.

svn path=/trunk/; revision=54440
2011-11-19 15:51:45 +00:00
Jérôme Gardou
f3942a15e7 |NTOSKRNL]
- fix operands precedence

svn path=/trunk/; revision=54439
2011-11-19 15:50:53 +00:00
Jérôme Gardou
bc4029e9c3 [NTOSKRNL]
- do not compare (x & y) with TRUE

svn path=/trunk/; revision=54438
2011-11-19 15:45:20 +00:00
Pierre Schweitzer
83d38617e6 [MSVCRT_APITEST]
Add more tests

svn path=/trunk/; revision=54437
2011-11-19 15:05:26 +00:00
Amine Khaldi
3cd3e4c5a8 [NTOSKRNL]
* Fix a typo.

svn path=/trunk/; revision=54436
2011-11-19 14:18:23 +00:00
Pierre Schweitzer
30419eda7c [CRT]
Reimplemented _fpclass properly.
This fixes all failing _fpclass tests.
See: http://babbage.cs.qc.cuny.edu/IEEE-754/References.xhtml
Based on OpenAD implementation

svn path=/trunk/; revision=54435
2011-11-19 13:03:17 +00:00
Aleksey Bragin
a3e46bb8dd [RTL/HEAP]
- Bring more awesomeness to the heap manager by zefklop's request:
* Add support for settable user values and flags in RtlAllocateHeap and RtlReAllocateHeap.
* Return error if RtlSetUserValueHeap was unable to set the value.
* Fixes remaining 2 failures of the kernel32_winetest alloc test.

svn path=/trunk/; revision=54434
2011-11-19 11:02:24 +00:00
Pierre Schweitzer
744a62956f [CRT]
_fpclass never returns SNaN class, but only QNaN class.
This fixes 4 more tests

svn path=/trunk/; revision=54433
2011-11-19 10:49:11 +00:00
Pierre Schweitzer
b0adad4294 [CRT]
Fix _fpclass prototype
Fix headers included
Remove internal defines that were useless and even not matching real defines.
This fixes 4 tests

svn path=/trunk/; revision=54432
2011-11-19 10:39:58 +00:00
Pierre Schweitzer
47536a6d8e [CRT]
Windows has no _isnanl, _isinfl functions

svn path=/trunk/; revision=54431
2011-11-19 09:46:40 +00:00
Pierre Schweitzer
84212a76b6 [MSVCRT_APITEST]
Add more tests

svn path=/trunk/; revision=54430
2011-11-19 09:44:49 +00:00
James Tabor
e7ee1e3edf - Removes next phase for DesktopWndProcA.
svn path=/trunk/; revision=54429
2011-11-19 05:35:35 +00:00
James Tabor
2aea093e9f [User32]
- Updating MsgiAnsiToUnicodeReply fixed bug 4856 and 6650. Mirrored with it's counterpart. More work is needed.
- Adding some future DBCS char support.
- Miscellaneous changes.

svn path=/trunk/; revision=54428
2011-11-19 05:33:26 +00:00
Rafal Harabien
2eb96d5afb [SYSSETUP]
- Close opened handles
- Improve code a bit

svn path=/trunk/; revision=54427
2011-11-19 00:24:58 +00:00
Pierre Schweitzer
a31cce0995 [CRT]
Reimplemented _finite properly.
Removed unused _isinf function.

svn path=/trunk/; revision=54426
2011-11-18 22:53:13 +00:00
Pierre Schweitzer
73d88a5f6f [MSVCRT_APITEST]
Add test suite for IEEE floatting-point functions.
It's been tested on w2k3 and it has 0 failed tests.
Some are failing on ReactOS.

svn path=/trunk/; revision=54425
2011-11-18 22:26:35 +00:00
Rafal Harabien
f09717ab8d [SHELL32] - Fix dereferencing context menu object twice.
svn path=/trunk/; revision=54424
2011-11-18 21:07:18 +00:00
Rafal Harabien
63bbb13d4e [SHELL32] - Fix "No text" warnings when starting control panel
svn path=/trunk/; revision=54423
2011-11-18 20:50:26 +00:00
Rafal Harabien
e56b1c65be [SHELL32] - Improve method names and simplify _ILCreateCPanelApplet
svn path=/trunk/; revision=54422
2011-11-18 20:26:33 +00:00
Pierre Schweitzer
f7ea2bd8c6 [EXPLORER]
Remove not needed comment

svn path=/trunk/; revision=54421
2011-11-18 19:51:02 +00:00
Pierre Schweitzer
df0329148f [EXPLORER]
Remove dead code/file. ReactOS has its own implementation of those functions.
The file was even not built any longer.

svn path=/trunk/; revision=54420
2011-11-18 19:49:08 +00:00
Rafal Harabien
ccdac7c24c [SHELL32] - Remove "retrieve display name from control panel app" FIXME - it's already done + minor code improvements.
svn path=/trunk/; revision=54419
2011-11-18 19:30:21 +00:00
Cameron Gutman
aefaa2f4f9 [HALX86]
- Do not allow software interrupts to preempt code running with interrupts disabled during KfLowerIrql

svn path=/trunk/; revision=54418
2011-11-18 18:53:41 +00:00
Pierre Schweitzer
01323f857e [MSVCRT_APITEST]
Add msvcrt_apitest to CDs

svn path=/trunk/; revision=54417
2011-11-18 18:25:44 +00:00
Pierre Schweitzer
0bc955e9cf [MSVCRT_APITEST]
Build msvcrt_apitest

svn path=/trunk/; revision=54416
2011-11-18 18:23:43 +00:00
Cameron Gutman
84002dd3ba [I8042PRT]
- Implement support for hot plugging PS/2 mice if one was present at boot (same requirement as Windows)
- Fixes bug 1395

svn path=/trunk/; revision=54415
2011-11-17 23:41:18 +00:00
Pierre Schweitzer
1f282745da [CRT]
Fix _fpclass.
Spotted by: Vincenzo Cotugno
Reviewed by: Timo Kreuzer

svn path=/trunk/; revision=54414
2011-11-17 22:38:15 +00:00
Rafal Harabien
99f8b1fe06 [SHELL32] - Revert r54404
svn path=/trunk/; revision=54413
2011-11-17 22:19:48 +00:00
Cameron Gutman
88f0deaa71 [I8042PRT]
- Discard extra ACK packets from the mouse during reset
- Fixes certain mice that send the ACK out of order

svn path=/trunk/; revision=54412
2011-11-17 21:19:32 +00:00
Dmitry Gorbachev
e4382eb7d6 [SMSS]
Limit the size of swapfile (to 2GiB). Bug #4760.

svn path=/trunk/; revision=54411
2011-11-17 20:22:16 +00:00
Cameron Gutman
6dd897228b [INF]
- Fix ServiceType value for the ne2000 driver
- Should fix ne2000 installation

svn path=/trunk/; revision=54409
2011-11-17 18:21:58 +00:00
Rafal Harabien
34a7965726 [SHELL32] - Support keys with readable name and default value set to GUID in MyComputer name space. Fixes a warning about "Controls" not beeing GUID.
svn path=/trunk/; revision=54408
2011-11-17 17:33:22 +00:00
James Tabor
44cac5c127 - Add WndProc address to error prints.
svn path=/trunk/; revision=54407
2011-11-17 17:02:01 +00:00
Rafal Harabien
73a27600f4 [KERNEL32]
- Make sure GetEnvironmentVariableW does not use uninitialized variable
- Fix GetDllLoadPath not terminating string with NULL if PATH env variable is not defined. Fixes hang on manual INF selection in New Device wizard.
See issue #6480 for more details.

svn path=/trunk/; revision=54406
2011-11-17 16:44:51 +00:00
Dmitry Gorbachev
5d3b2bfa7c [SERIAL]
Pretend that functions IOCTL_SERIAL_{GET,SET}_{CHARS,HANDFLOW} are 
implemented. It allows PuTTY to set baud rate.

svn path=/trunk/; revision=54405
2011-11-17 15:37:47 +00:00
Rafal Harabien
c09009c2be [SHELL32] - Remove a not needed hack
svn path=/trunk/; revision=54404
2011-11-17 14:33:35 +00:00
Rafal Harabien
602b5f5ddd [SHELL32] - Register Printers folder in ControlPanel namespace. Fixes "Printers is not a GUID" warning
svn path=/trunk/; revision=54403
2011-11-17 14:31:19 +00:00
Cameron Gutman
0fb80083fc [NDIS]
- Fix a critical bug in registry entry parsing that was causing all REG_SZ values to be reported as NdisParameterTypeInteger
- Distinguish between NdisParameterTypeInteger and NdisParameterTypeHexInteger
- 3Com NICs are fully functional now [bug 4330]

svn path=/trunk/; revision=54402
2011-11-16 22:01:11 +00:00
Thomas Faber
6c0659ceac [ATL] - Fix buffer overflow in CComDynamicUnkArray::Add. Found by Coverity (CID 2474)
[NDK] - Remove meaningless const attribute from pointer rvalues to make Coverity's life easier

svn path=/trunk/; revision=54401
2011-11-16 21:17:38 +00:00
Thomas Faber
022c6505d0 [ADVAPI32_WINETEST]
- Fix running the test with a relative path. Already Sent Upstream(TM)
- Do the rest of that tiny Winesync, too, while we're at it. Now at 1.3.33
- Remove the spooler hack in the process. We don't actually need it

svn path=/trunk/; revision=54400
2011-11-16 20:53:18 +00:00
Olaf Siejka
d6414908c2 [TRANSLATION]
- Romanian translation update (bug no. 6654) by Stefan Fulea;
- Simplified Chineese translation of base/shell and system (bug no. 6655) by Song Fuchang;
- Slovak translation fixes (bug no. 6658) by Mario Kacmar;

svn path=/trunk/; revision=54399
2011-11-16 20:16:21 +00:00
James Tabor
e1f21de61b [Ole2]
- Fix Adobe Acrobat Reader 7.x from throwing exceptions at start up. Partial sync with wine, See bug 5560.

svn path=/trunk/; revision=54398
2011-11-16 17:01:04 +00:00
James Tabor
afe0f6cd2b [Win32k|User32]
- Correct more types.

svn path=/trunk/; revision=54397
2011-11-16 16:35:50 +00:00
James Tabor
cf1e809fa2 [Win32k|User32]
- Patch by Shinobu Maehara: fix for kernel-mode/user-mode marshalling of WM_DDE_ACK.

svn path=/trunk/; revision=54396
2011-11-16 16:24:18 +00:00
Cameron Gutman
2e7cf798a9 [NPFS]
- Execute the failure case while holding the mutex otherwise we crash

svn path=/trunk/; revision=54395
2011-11-16 04:39:49 +00:00
Cameron Gutman
846509e433 [NTOSKRNL]
- Fix another case where we fail to detach from a process before failing

svn path=/trunk/; revision=54394
2011-11-16 00:11:10 +00:00
Jérôme Gardou
800384214e [NTOSKRNL/MM]
- Fix bad comparison

svn path=/trunk/; revision=54393
2011-11-15 23:55:38 +00:00
Jérôme Gardou
50632f02d1 [NTOSKRNL/MM]
- Some more cleanup.
- Work with page rounded down addresses in SectionView page faults.
- You should not create a virtual mapping on a non page-aligned address range : ASSERT about that.
- Flush Tlb each time we change it
- Fix logic I broke in MmCreateVirtualMapping (thanks to Thomas Faber)

svn path=/trunk/; revision=54392
2011-11-15 23:50:04 +00:00
Jérôme Gardou
a9801fa996 [NTOSKRNL]
- Cleanup a bit, sorry.

svn path=/trunk/; revision=54391
2011-11-15 22:40:20 +00:00
Jérôme Gardou
177b29fbf8 [NTOSKRNL/MM]
- ensure that all callers of MM providing an user land address also provide a process.
- ASSERT about that
- Fix broken check

svn path=/trunk/; revision=54390
2011-11-15 22:34:04 +00:00
Cameron Gutman
75ff9ef0c0 [NTOSKRNL]
- Fix 2 broken failure cases (forgot to detach from process and/or forgot to dereference process)

svn path=/trunk/; revision=54389
2011-11-15 22:16:57 +00:00
Cameron Gutman
fcb309055e [NDIS]
- Implement NdisPciAssignResources

svn path=/trunk/; revision=54387
2011-11-15 18:41:34 +00:00
Jérôme Gardou
9cc9f6687b [NTOSKRNL/MM]
- call mm functions with a process, when we have one.
- Fix potential rounding issues
- Add some sanity ASSERTs
- You never use enough brackets ;-)

svn path=/trunk/; revision=54386
2011-11-15 18:36:26 +00:00
Rafal Harabien
a61f0b9cff [KBDTOOL] - Fix build under MSVC
svn path=/trunk/; revision=54385
2011-11-15 11:07:31 +00:00
Rafal Harabien
ba2815a03e [SYSSETUP]
- Don't redefine constants from psdk in source files
- Improve error message

svn path=/trunk/; revision=54384
2011-11-15 08:59:50 +00:00
Rafal Harabien
226db13685 [SYSSETUP] - Formatting. No code changes.
svn path=/trunk/; revision=54383
2011-11-15 08:44:37 +00:00
Cameron Gutman
7407aba5cf [HAL]
- Remove broken map register "prefetcher" code
- Check that we have enough space to grow our map registers
- Fix a bad hint to RtlFindClearBitsAndSet
- Queuing the grow work item is non-vital; treat it as such
- Fixes BSOD with CM3738 and VIA1723 sound cards [bug 6657]

svn path=/trunk/; revision=54382
2011-11-15 07:58:46 +00:00
Cameron Gutman
dbafcc923d [SERVICES]
- Always return ERROR_SUCCESS when ScmWaitForServiceConnect completes successfully instead of sometimes returning ERROR_PIPE_CONNECTED because the callers of this helper just look for ERROR_SUCCESS to indicate a successful call

svn path=/trunk/; revision=54381
2011-11-15 02:55:44 +00:00
Rafal Harabien
9e7c5f1a3e [SHELL32] - Rename CBitBucket to CRecycleBin
svn path=/trunk/; revision=54380
2011-11-14 22:46:37 +00:00
Rafal Harabien
a47aff870e [SHELL32]
- Export IContextMenu interface in RecycleBin object. Fixes recycle bin context menu.
- Export IShellPropSheetExt interface too and fix order.
See issue #6543 for more details.

svn path=/trunk/; revision=54379
2011-11-14 22:18:42 +00:00
James Tabor
dd2688a02d - Fix RosApps build.
svn path=/trunk/; revision=54378
2011-11-14 22:14:52 +00:00
Thomas Faber
8e8284168c [ADVAPI32_WINETEST]
- Make the Spooler -> Eventlog hack complete instead of half-doing it. "Fixes" test failure on Windows. See r53502

svn path=/trunk/; revision=54377
2011-11-14 18:43:26 +00:00
James Tabor
37fe8c8eff [Win32k|User32]
- Fix broadcast message, pass all wine tests. Code consolidation next round.

svn path=/trunk/; revision=54376
2011-11-14 15:20:48 +00:00
Sylvain Petreolle
d14aee58bb [NDK]
Fix definition of RtlExtendedLargeIntegerDivide.

svn path=/trunk/; revision=54375
2011-11-13 23:47:21 +00:00
Kamil Hornicek
432b05a591 [TRANSLATION]
Fix Czech resources that got broken by the UTF8 conversion.

svn path=/trunk/; revision=54374
2011-11-13 16:27:03 +00:00
Eric Kohl
77d6d4815b [SERVICES]
REnumServicesStatusExW: Fix dwServiceType and dwServiceState checks.

svn path=/trunk/; revision=54373
2011-11-13 12:13:16 +00:00
Cameron Gutman
6735cfc56e [NDIS]
- Fix a critical bug in NdisMGetDmaAlignment which was causing every NIC driver calling this function to crash because we thought we were passed an NDIS_DMA_BLOCK handle when in fact we receive an NDIS_MINIPORT_BLOCK handle
- Fixes RTL8169 and 3Com NICs (and probably several more) [bug 6651 and bug 4330]

svn path=/trunk/; revision=54372
2011-11-13 06:02:08 +00:00
Cameron Gutman
edc6eb9eca [HAL]
- Fix DMA on the EISA bus
- Fix a critical calculation error in map register size resulting in the map register allocation worker not allocating enough map registers for a dynamic resize

svn path=/trunk/; revision=54371
2011-11-13 05:49:33 +00:00
Eric Kohl
e4eecc98b8 [SERVICES]
RControlService: Initialize the callers service status information. 

svn path=/trunk/; revision=54370
2011-11-13 00:13:00 +00:00
Eric Kohl
2c472c9d01 [SERVICES]
RControlService returns ERROR_SERVICE_NOT_ACTIVE if the service has not been started.

svn path=/trunk/; revision=54369
2011-11-12 21:16:20 +00:00
Pierre Schweitzer
62089cfa4b [USETUP]
Added a half checkpoint to prevent testbot to wrongly assume ReactOS has crashed during setup

svn path=/trunk/; revision=54368
2011-11-12 20:20:41 +00:00
Jérôme Gardou
90875550df (FORMATTING)
-Grrr, you stupid software

svn path=/trunk/; revision=54367
2011-11-12 19:36:56 +00:00
Jérôme Gardou
0e2151927b (FORMATTING)
- get back this good ol' 4-space indentation

svn path=/trunk/; revision=54366
2011-11-12 19:26:26 +00:00
Alex Ionescu
174739a13c [KERNEL32]: Fix mailslot code to use the static unicode string in the TEB for conversion, and correctly handle failure cases to bound names to MAX_PATH as Win32 demands. Also fix timeout conversions to use the correct timeout value for infinite timeout.
[KERNEL32]: Reformat since 3-space identation is just murder.

svn path=/trunk/; revision=54365
2011-11-12 18:28:16 +00:00
Olaf Siejka
1898591063 [TRANSLATION]
- base/setup,shell and system conversion patch, by UTF-8 conversion patch by Elton Chung, see bug 6333;
- Romanian translation fixes and UTF-8 conversion by Stefan Fulea, see bug 6603;

svn path=/trunk/; revision=54364
2011-11-12 16:38:00 +00:00
Thomas Faber
e661f24f8a [KMTESTS/KE]
- Do not check IRQLs above HIGH_LEVEL. That's not very useful anyway. Fixes hang in kmtest:KeIrql.

svn path=/trunk/; revision=54363
2011-11-12 14:49:14 +00:00
Pierre Schweitzer
c24b5b0586 [MESA32]
Include headers in the proper order. Fixes mesa32 build.

svn path=/trunk/; revision=54362
2011-11-12 13:04:59 +00:00
Pierre Schweitzer
1558368570 [PSDK]
Revert r54359.

svn path=/trunk/; revision=54361
2011-11-12 12:27:01 +00:00
Pierre Schweitzer
29750a6026 [BLUE]
"Remove" dependencies with user-mode without breaking CSRSS.

svn path=/trunk/; revision=54360
2011-11-12 12:23:15 +00:00
Alex Ionescu
18e346207b [PSDK]: I forgot this was the OS where drivers (blue.sys) import from SDK headers. Fix header.
svn path=/trunk/; revision=54359
2011-11-12 08:20:30 +00:00
Alex Ionescu
e84bdd4857 [KERNEL32]: Refactor Beep such that opening the device happens first -- this makes sure the error codes are generated in the same order/conditions as on Windows.
[KERNEL32]: Add notes on how DeviceIoControl and Beep should support TS scenarios in the future (nod to Ged).
[KERNEL32]: Make Beep call NotifySoundSentry, and implement the latter, which sends a message to CSRSS w.r.t the previous commit. Obviously we are not anywhere close real sound sentry support, but at least part of the path is there now.

svn path=/trunk/; revision=54358
2011-11-12 08:18:18 +00:00
Alex Ionescu
c461e96188 [WIN32CSR/CSRSS]: Implement the Sound Sentry CSRSS API. Obviously won't work until a real winsrv.dll exists (and its job will be to call NtUserSoundSentry in win32k.sys).
svn path=/trunk/; revision=54357
2011-11-12 08:16:33 +00:00
Alex Ionescu
bfac43fe4e [PSDK]: Add missing Console APIs.
[CSRSS]: Add definition for the Sound Sentry CSRSS API.

svn path=/trunk/; revision=54356
2011-11-12 08:15:29 +00:00
Thomas Faber
2bc2e85140 [KMTESTS]
- Fix some typos in previous commit
- Make the driver object accessible to tests

svn path=/trunk/; revision=54355
2011-11-12 00:21:57 +00:00
Thomas Faber
d0133a99d0 [USBDRV]
- Get rid of some inline assembly

svn path=/trunk/; revision=54354
2011-11-12 00:07:42 +00:00
Thomas Faber
218b87ee29 [KMTESTS]
- Fix AMD64 build

svn path=/trunk/; revision=54353
2011-11-11 23:04:26 +00:00
Cameron Gutman
ec82957d59 [PNP]
- Kill some debug spam

svn path=/trunk/; revision=54352
2011-11-11 20:41:10 +00:00
James Tabor
46ea3777a8 [Shell32]
- Fix edit control window procedure, see Bug 4856.

svn path=/trunk/; revision=54351
2011-11-11 13:04:37 +00:00
Pierre Schweitzer
5576067299 [KERNEL32]
No need to init string to empty
This will make Coverity happier

svn path=/trunk/; revision=54350
2011-11-11 12:22:05 +00:00
Aleksey Bragin
7ef16b3746 [RTL]
- A bit more of the DPH code cleanup, no bugs found so far.

svn path=/trunk/; revision=54349
2011-11-11 11:55:49 +00:00
Thomas Faber
3f5b04a9d5 [SERVICES]
- Allow changing the image path with ChangeServiceConfig. Fixes timeout that shouldn't actually be a timeout in advapi32:service test.
See issue #6646 for more details.

svn path=/trunk/; revision=54348
2011-11-10 22:56:22 +00:00
Cameron Gutman
6293041a3f [BOOTDATA]
- Disable usbdrv
- I've heard too many reports of it breaking boot and too few reports of it actually working on real hardware (although it does work perfectly in QEMU)

svn path=/trunk/; revision=54347
2011-11-10 22:42:16 +00:00
Thomas Faber
bfebe892d9 [ADVAPI32_WINETEST]
- Skip service start timeout tests. They cannot time out until services uses asynchronous I/O.
See issue #6646 for more details.

svn path=/trunk/; revision=54346
2011-11-10 22:34:31 +00:00
Thomas Faber
33158a22a5 [SERVICES]
- Move utility functions to the top

svn path=/trunk/; revision=54345
2011-11-10 22:21:11 +00:00
Thomas Faber
8d6a6c95e5 [SERVICES]
- Do not use local memory functions (and possibly free the result using HeapFree!)
- Do not use double percent signs with _wcsnicmp
- DPRINT and style fixes

svn path=/trunk/; revision=54344
2011-11-10 21:29:34 +00:00
Aleksey Bragin
06d7831b89 [RTL]
- DPH: Improve RtlpPageHeapAllocate() code, make variable names consistent with the generic available/busy terms. Logic is absolutely unchanged.

svn path=/trunk/; revision=54343
2011-11-10 15:13:21 +00:00
Eric Kohl
725bbcb3aa [SERVICES]
Improve the parameter checks in RCreateServiceW.

svn path=/trunk/; revision=54342
2011-11-09 23:18:37 +00:00
Thomas Faber
3894ecbdc4 [USER32]
- Fix a TRACE. Spotted by Victor Martinez

svn path=/trunk/; revision=54341
2011-11-09 18:52:09 +00:00
Kamil Hornicek
63cc791584 [FASTFAT]
Don't report success for unsupported file information classes.
See issue #6628 for more details.

svn path=/trunk/; revision=54340
2011-11-08 17:08:04 +00:00
Alex Ionescu
6fc023d62d [KERNEL32]: Fix a bug when converting EXECUTE access.
svn path=/trunk/; revision=54339
2011-11-07 17:49:10 +00:00
Thomas Faber
b25b405747 [KERNEL32]
- Do not fail in CreateFileMappingW if write or execute access is requested

svn path=/trunk/; revision=54338
2011-11-07 16:53:04 +00:00
Alex Ionescu
f237a863e7 Hurray for misisng includes.
svn path=/trunk/; revision=54337
2011-11-07 15:44:07 +00:00
Alex Ionescu
6d37c787cd [KERNEL32]: Fix various bugs in the file mapping APIs, mainly related to lack of EXECUTE mappings and incorrect error codes.
svn path=/trunk/; revision=54336
2011-11-07 15:43:37 +00:00
Dmitry Gorbachev
bef20836c3 [TRANSLATION]
- Add some Romanian strings to the registry. Fulea Stefan, bug #6603.
- Add a few Russian strings, too.

svn path=/trunk/; revision=54335
2011-11-07 08:01:58 +00:00
Alex Ionescu
40b0836010 [KERNEL32]: Show some love to Get/SetCurrent/Windows/SystemDirectoryA/W. Only SearchPathW and loader stuff remains to be fixed. Also handle SetCurrentDirectory when directory is already current.
[KERNEL32]: Rewrite the tape APIs to use a single generic function, and in the process support pending I/O now, which wasn't handled before.
[KERNEL32]: Moved the interlocked APIs to synch.c instead of dllmain.c

svn path=/trunk/; revision=54334
2011-11-07 07:41:52 +00:00
Pierre Schweitzer
b7ad8c6fb9 [KERNEL32]
Fix wrong L usage in new code.

svn path=/trunk/; revision=54333
2011-11-07 06:45:17 +00:00
Alex Ionescu
a458290ab1 [KERNEL32]: Fix multiple, multiple, bugs in the last commits. Path is now down to 12 failures (way lower than before the streak), most unrelated to actual path APIs.
svn path=/trunk/; revision=54332
2011-11-07 05:07:58 +00:00
Cameron Gutman
c13946eae2 [TCPIP]
- Fix a potential double-completion of an IRP

svn path=/trunk/; revision=54331
2011-11-07 02:02:59 +00:00
Cameron Gutman
703b182d8f [NPFS]
- Fix an access-after-free bug

svn path=/trunk/; revision=54330
2011-11-07 01:47:55 +00:00
Alex Ionescu
1534ace5ad Forgotten file.
svn path=/trunk/; revision=54329
2011-11-07 01:40:33 +00:00
Cameron Gutman
945a5972a9 [NPFS]
- Fix a potential CCB state inconsistency if the IRP is canceled before adding it to the pending list
- Don't wait if the IRP has been canceled
- Preserve the return status of NpfsAddListeningServerInstance

svn path=/trunk/; revision=54328
2011-11-07 01:37:35 +00:00
Cameron Gutman
3eff89fe04 [NPFS]
- Fix several cancellation races and broken checks

svn path=/trunk/; revision=54327
2011-11-07 00:52:32 +00:00
Alex Ionescu
784e19a384 [KERNEL32]: Implement Wow64Enable/Disable/RevertWow64Direction, document the Rtl equivalents in NDK, export and implement them in NTDLL.
[KERNEL32]: Cleanup files a bit.
    - Bintype.c is gone and moved into VDM (these are functions for VDM support).
    - Npipe.c and pipe.c are merged.
    - Dosdev is moved into client, these are not quite File APIs.
    - Base(8Bit/Unicode) APIs are moved into utils.c
    - Wow64 APIs are moved into utils.c
    - The mess that was file.c has the Replace* file APIs going into move.c (similar behaviors), the Open* APIs into create.c (similar) and the Read/Write Scatter/Gather APIs into rw.c (where they belong). What remained in file.c were mostly Set/Query functions, so it becomes fileinfo.c
    - The remaining APIs in file.c were all about paths -- at the file level, specifically filenames, so they go into filename.c
    - Move some File API functions from certain files into other files where they belong more.

svn path=/trunk/; revision=54326
2011-11-07 00:18:13 +00:00
Cameron Gutman
35a7096ebc [NPFS]
- Make the initial NpfsRead wait uninterruptible since it's really being used like a mutex (avoid the kernel stack being paged out during the wait causing memory corruption)
- Handle interrupted waits that were missed in certain cases
- Fix a potential deadlock that would happen if more I/O was done on a file object after the previous operation was interrupted by an APC or alert

svn path=/trunk/; revision=54325
2011-11-06 23:40:06 +00:00
Thomas Faber
1f8bcd7af2 [KERNEL32_WINETEST]
- Do not use strcat_s. It is not guaranteed to exist on Windows.

svn path=/trunk/; revision=54324
2011-11-06 23:38:39 +00:00
Alex Ionescu
1a2f9d3279 [KERNEL32]: Move the "curdir.c" APIs into path.c as well, as they are Path APIs. No code changes (just formatting and moving to DPRINTs).
svn path=/trunk/; revision=54323
2011-11-06 23:01:04 +00:00
Alex Ionescu
bc813e0cee [KERNEL32]: Give the same treatement to SearchPathA. Also add a comment on why exactly the A<->W conversion has to be more complex than what Wine was attempting.
svn path=/trunk/; revision=54322
2011-11-06 22:46:31 +00:00
Alex Ionescu
504de2415f [KERNEL32]: Fix infinite loop in FindLFNorSFN_U.
[KERNEL32]: Reimplement GetFullPathNameA to implement similar functionality and checks as the other reimplemented A functions, especially w.r.t ANSI/OEM and DBCS strings.

svn path=/trunk/; revision=54321
2011-11-06 21:00:10 +00:00
Alex Ionescu
3bdf1b6e8a [KERNEL32]: Fix some bugs in previous two commits (thanks Thomas).
svn path=/trunk/; revision=54320
2011-11-06 19:42:59 +00:00
Cameron Gutman
ee06a00c1a [NPFS]
- Fix wait parameters so we can break out of a wait if a user APC is delivered and the file object is opened with FILE_SYNCHRONOUS_IO_ALERT
- Fixes hanging ntdll:pipe winetest (only 1 failure out of 53 tests now)

svn path=/trunk/; revision=54319
2011-11-06 18:47:51 +00:00
Alex Ionescu
1bdbaed2a7 [KERNEL32]: Rewrite GetLong/ShortPathNameW away from Wine. Some changes:
- Windows allows the two input buffers to overlap. This means we have to be very careful with copying (and always use RtlMoveMemory) -- the old function was not handling this at all.
   - We also have to handle cases where we need to make our own local buffer copy.
   - Length validation is more stringent now.
   - Checking for short/long path names wasn't correct w.r.t ANSI file mode, as it was calling Rtl which assumes OEM.
   - Shortcuts were taken while parsing slashes and path separators. We now call into Rtl to support this, and also support unlimited slashes (note that \\??\c:\\\windows\\\\system32 is actully a valid path, for example).
   - ErrorMode is now correctly set for the thread, to avoid "Insert floppy" or "Close CDROM bay door" errors as we are using the FindFile API.
   - Correct LastError is set where appropriate.
   - An application compatibility flag is now supported.

svn path=/trunk/; revision=54318
2011-11-06 17:17:16 +00:00
Thomas Faber
61db405237 [KERNEL32]
- Use the correct buffer length in GetDllDirectoryA
- Do not always return FALSE from BasepIsCurDirAllowedForPlainExeNames
- Some cosmetic fixes

svn path=/trunk/; revision=54317
2011-11-06 15:52:20 +00:00
Alex Ionescu
36a7df4966 [KERNEL32]: Reimplement GetLong/ShortPathNameA to get rid of Wineisms and fix the fact they were forcing paths to MAX_PATH when doing A->W->A conversion. The correct behavior is to call W to get the true, real path length (no matter how big), and then deal with the sizing issues when downconverting back to A.
svn path=/trunk/; revision=54316
2011-11-06 15:34:39 +00:00
Thomas Faber
0b595ead09 [SERVICES]
- Use FIELD_OFFSET for variable-length structure sizes
- Handle an invalid parameter condition in RCreateServiceW. Fixes an advapi32:service test
- Do not dereference a NULL-pointer on out-of-memory

svn path=/trunk/; revision=54315
2011-11-06 14:23:39 +00:00
Thomas Faber
ac825c5ef6 [ADVAPI32][SERVICES]
- Remove unnecessary casts, fix some const-ness, fix a DPRINT, some spacing

svn path=/trunk/; revision=54314
2011-11-06 13:33:29 +00:00
Thomas Faber
4cabf96ae6 [MSVCRTEX]
- Fix some warnings
- Remove a ros-diff in favor of mingw-w64's solution

svn path=/trunk/; revision=54313
2011-11-06 13:07:43 +00:00
Thomas Faber
bf96abff4b [CRT]
- Export _resetstkoflw from msvcrt. Implementation from Wine 1.3.32

svn path=/trunk/; revision=54312
2011-11-06 12:51:18 +00:00
Thomas Faber
aeacf320c4 [SYSSETUP]
- Do not rely on setupapi's FileExists function, which shouldn't even be exported

svn path=/trunk/; revision=54311
2011-11-06 12:17:42 +00:00
Alex Ionescu
3b9a6f799a [KERNEL32]: The ANSI/OEM stubs were never initialized... it's a miracle this ever worked, probably because someone added a #define to at least one of them to hack it into working. Initialize the value snow, fixes boot.
svn path=/trunk/; revision=54310
2011-11-06 04:13:21 +00:00
Alex Ionescu
e1ecfcf440 [KERNEL32]: Move path-related APIs away from dir.c, and into path.c instead.
[KERNEL32]: Fix SetDllDirectoryW:
 - Fail if ";" is in path
 - Use RtlCreateUnicodeString instead of manual string management -- if the allocation fails, do not free the current base directory string! Older API would always free the current directory string, even if setting up the new one failed.
  - Don't assume lpPathName is filled out, it can be NULL, and this means the DLL directory should be cleared.
[KERNEL32]: Fix SetDllDirectoryA as above, additionally use RtlInitAnsiStringEx to protect against overflow, and use Basep8BitStringToUnicodeString, to add support for OEM paths instead of assuming ANSI.
[KERNEL32]: GetDllDirectoryW: correctly NULL-terminate and check lengths
[KERNEL32]: GetDllDirectoryA: same as above, plus use BasepUnicodeString* APIs to correctly support OEM paths instead of assuming ANSI.
[KERNEL32]: NeedCurrentDirectoryForExePath(A/W): call internal BasepIsCurDirAllowedForPlainExeNames instead of converting from A->W, this isn't needed.
[KERNEL32]: GetFullPathNameW just calls RtlGetFullPathName_U, no extra checks/etc are needed.
Next steps are GetFullPathNameA, GetShort/LongPathNameA, GetShort/LongPathNameW, hoping to bring the wine test failures closer to zero.

svn path=/trunk/; revision=54309
2011-11-06 02:00:56 +00:00
Alex Ionescu
f0199db57b [KERNEL32]: Actually properly support ANSI vs OEM SetFileAPI instead of assuming Unicode->ANSI for most things. Note this just adds support, there's still many wine-synched APIs that are using the FileNameA2W hacks and similar, which force ANSI. But it's a step in the right direction.
svn path=/trunk/; revision=54308
2011-11-06 01:47:49 +00:00
Alex Ionescu
ec9698366a [NTDLL]: Export RtlImageNtHeaderEx and LodrLoadAlternateResourceModule.
[NDK]: Add LdrLoadAlternateResourceModule. Fix RtlDosApplyFileIsolationRedirection_UStr and add flags.
[NTDLL]: Halfplement LdrLoad/UnloadAlternateResourceModule.

svn path=/trunk/; revision=54307
2011-11-06 01:34:06 +00:00
Pierre Schweitzer
485d80b662 [KERNEL32]
Fix c/p mistake.
Brought to you by Vincenzo Cotugno

svn path=/trunk/; revision=54306
2011-11-06 00:09:33 +00:00
Sylvain Petreolle
32212570af -Add missing struct to winnt.h.
svn path=/trunk/; revision=54305
2011-11-06 00:04:57 +00:00
Thomas Faber
238b9ff6c3 [MSHTML][SHDOCVW]
- Initialize OLEINPLACEFRAMEINFO.cb for IOleInPlaceSite::GetWindowContext. Fixes explorer "Web" button assert. Already applied upstream.
See issue #6011 for more details.

svn path=/trunk/; revision=54304
2011-11-05 20:40:59 +00:00
Claudiu Mihail
c10be1a84f [shell32]
- Fix a few more winetests in shlfolder tests.

svn path=/trunk/; revision=54303
2011-11-05 20:09:30 +00:00
Cameron Gutman
2506e5967c [LWIP]
- Properly sync to lwIP 1.4.0
- No code changes (except unit tests)

svn path=/trunk/; revision=54302
2011-11-05 18:54:49 +00:00
Amine Khaldi
64e1212557 [SHELL32]
* Fix rbuild build.
* Remove a debug breakpoint that is no longer needed.

svn path=/trunk/; revision=54301
2011-11-05 17:56:10 +00:00
Claudiu Mihail
eee7297139 [shell32]
- Fix ParseDisplayName based on wine by checking for paths that are parsable through IEParseDisplayNameWithBCW. Score 2 failed wine tests in shlfolder

svn path=/trunk/; revision=54300
2011-11-05 16:40:42 +00:00
Thomas Faber
325e646e25 [KERNEL32]
- Fix MSVC build

svn path=/trunk/; revision=54299
2011-11-05 11:39:37 +00:00
Thomas Faber
e325aa3a89 [CRT]
- Gracefully fail on NULL for gmtime functions. Fixes msvcrt:time crash

svn path=/trunk/; revision=54298
2011-11-05 10:24:24 +00:00
Thomas Faber
48680406d2 [CRT]
- Sync heap.c and undname.c with Wine 1.3.32
- Remove incorrect casts. Undo an incorrect warning fix. Fixes hang in msvcrt:cpp test

svn path=/trunk/; revision=54297
2011-11-05 10:08:06 +00:00
Thomas Faber
e2d5a05b09 [MSVCRT_WINETEST]
- Sync to Wine 1.3.32

svn path=/trunk/; revision=54296
2011-11-05 09:54:41 +00:00
Thomas Faber
c5eb6b4cdf [PSDK][KERNEL32]
- Fix some DWORD vs SIZE_T confusion for memory functions

svn path=/trunk/; revision=54295
2011-11-05 09:07:39 +00:00
James Tabor
98c56da01a [Win32k]
- Reposition IntCallWndProc/Ret so it call when sending to client.

svn path=/trunk/; revision=54294
2011-11-05 06:01:05 +00:00
James Tabor
c30a8a6e49 [User32]
- Fixed Dialog Ansi and color control brush acquisition.
- Added stack protection for message recursion. Due to wine message bug when in dialog initialization. See bug 6126.
- Miscellaneous fixups.

svn path=/trunk/; revision=54293
2011-11-05 05:18:57 +00:00
Alex Ionescu
888f1950e9 [KERNEL32]: Fix a missing "~" in GlobalReAlloc and LocalReAlloc, which caused a flag never to be removed.
svn path=/trunk/; revision=54292
2011-11-05 04:53:18 +00:00
Alex Ionescu
d30964b0fb [KERNEL32]: Implement CreateJobSet
[KERNEL32]: Acquire SE_INCREASE_WORKING_SET_PRIVILEGE in SetInformationJobObject if needed.
[KERNEL32]: Only do conversion of Process Priority Class in SetInformationJobObject if the limit flags request it.
[KERNEL32]: Add missing size checks in QueryInformationJobObject.
[KERNEL32]: Use RtlEncode/DecodePointer to protect the top level exception handler pointer, as done on NT 5.2+
[KERNEL32]: Fix IsBadRead/WritePtr to use the correct page size from the CSRSS shared section.
[KERNEL32]: Fix IsBad(String)Read/WritePtr loops
[KERNEL32]: SetErrorMode now handles SEM_NOALIGNMENTFAULTEXCEPT.
[KERNEL32]: Set/GetErrorMode do not set LastError on failure.
[KERNEL32]: RaiseException can simply use memcpy instead of copying argument by argument.
[KERNEL32]: Minor formatting changes.

svn path=/trunk/; revision=54291
2011-11-05 01:19:52 +00:00
Thomas Faber
c0f989c66a [RICHED20_WINETEST]
- Sync to Wine 1.3.32

svn path=/trunk/; revision=54290
2011-11-04 23:07:16 +00:00
James Tabor
2db8caa0e5 - Fix build.
svn path=/trunk/; revision=54289
2011-11-04 13:21:13 +00:00
James Tabor
bc031d7389 [Win32k|User32]
- Move control color support to Win32k.

svn path=/trunk/; revision=54288
2011-11-04 13:16:48 +00:00
Kamil Hornicek
600cd17828 [KERNEL32]
Fix a copypasta.
See issue #6635 for more details.

svn path=/trunk/; revision=54287
2011-11-03 13:48:23 +00:00
Alex Ionescu
549dd7a686 [KERNEL32]: BaseNamedObjectDirectory should work on demand, instead of on startup. Also, support cases when the thread is doing impersonation, to make sure it uses its real session ID and security access. Also, support cases when the BNO directory is not available, and use the BNO\Restricted directory instead (we should have our CSRSS create it).
svn path=/trunk/; revision=54286
2011-11-03 07:00:48 +00:00
Alex Ionescu
4ba4fdcb2c [KERNEL32]: Fix multiple issues in BaseCreateStack:
- StackLimit was set incorrectly.
- Code was not using BaseStaticServerdata, but querying NT instead.
- Fix memory leak in failure case.
- StackCommit and StackReserved values were not aligned correctly.
- Windows Server 2003+ feature of "Guaranteed Stack Commit Size" was not respected.
- Some math was screwy.
- Failure to get NT headers was not handled.

svn path=/trunk/; revision=54285
2011-11-03 06:46:22 +00:00
Alex Ionescu
e5f31ab0a9 [KERNEL32]: Rearrange and rename some base functions.
[KERNEL32]: Fix some error cases in the helper string functions.
[KERNEL32]: Implement BasepIsRealtimeAllowed.
[KERNEL32]: Don't need RPL_MASK when setting up the CONTEXT, this now matches what Windows sets up (and also helps us validate the kernel is doing the right thing).

svn path=/trunk/; revision=54284
2011-11-03 00:30:44 +00:00
Jérôme Gardou
b63701a2c9 [KERNEL32]
- Small performance improvement : Directly reference dll when getting its handle instead of just checking it's there and then load it

svn path=/trunk/; revision=54283
2011-11-02 23:37:38 +00:00
Kamil Hornicek
b9abf0ef06 [KERNEL32]
Fix GetEnvironmentStringsA/W.
See issue #6633 for more details.

svn path=/trunk/; revision=54282
2011-11-02 20:10:02 +00:00
Eric Kohl
09de8a1431 [SYSDM]
Handle the user wait interval.

svn path=/trunk/; revision=54281
2011-11-01 17:47:18 +00:00
Cameron Gutman
7be8df8976 [USETUP]
- Fix FAT32 boot sector pointer arithmetic
- Fixes setup error when installing FAT32 boot sector to file

svn path=/trunk/; revision=54280
2011-10-31 07:32:00 +00:00
Alex Ionescu
5671dd839b [KERNEL32]: In failure cases we should return one more byte for ANSI_NULL as well. Also fix another length check.
svn path=/trunk/; revision=54279
2011-10-30 21:41:12 +00:00
Jérôme Gardou
5ef1d7f8d2 [NTOSKRNL]
- Fix typo

svn path=/trunk/; revision=54278
2011-10-30 19:19:49 +00:00
Jérôme Gardou
daf8019f6c [WIN32K]
- Allocate lokkaside lists from non paged pool.
- Add allocation failure check.

svn path=/trunk/; revision=54277
2011-10-30 18:37:30 +00:00
Alex Ionescu
9f4d272bac [KERNEL32]: Fix many bugs and confusion regarding string sizes in previous commit.
svn path=/trunk/; revision=54276
2011-10-30 16:49:25 +00:00
James Tabor
12f502c35b [Win32k]
- don't hangup on the user while in send message.

svn path=/trunk/; revision=54275
2011-10-30 15:44:31 +00:00
Alex Ionescu
0bf4287f08 [KERNEL32]: Rewrite (in some cases, simply clean-up) environment handling functions for better string handling, error codes, and performance. Part of ongoing kernel32 work.
svn path=/trunk/; revision=54274
2011-10-30 01:07:09 +00:00
Jérôme Gardou
bfc68fc3a1 [CDFS]
- Read all blocks at once for misaligned read.

svn path=/trunk/; revision=54273
2011-10-30 00:58:21 +00:00
Eric Kohl
f39c8938c3 [UMPNPMGR]
- Implement PNP_GetHwProfInfo.
- Fix PNP_GetClassRegProp: Set the transfer length only in case of success.

svn path=/trunk/; revision=54272
2011-10-29 21:54:24 +00:00
Jérôme Gardou
f6d2cc099e [CDFS]
- fix non cached reading when offset or length is not aligned on block size

svn path=/trunk/; revision=54271
2011-10-29 20:34:08 +00:00
Jérôme Gardou
d028b2cb22 [NTOSKRNL]
- add missing lock/unlock of kernel address space

svn path=/trunk/; revision=54270
2011-10-29 16:25:11 +00:00
Cameron Gutman
79721ed8cb [USETUP]
- Use a separate function, InstallFat12BootCodeToFloppy(), to install the floppy boot code
- Format the floppy to FAT12 before writing to it
- Booting FreeLoader from floppy works again (bug #6495)

svn path=/trunk/; revision=54269
2011-10-29 15:10:11 +00:00
Cameron Gutman
daaf78f524 [FSLIB]
- Don't call the callback if the caller didn't give one

svn path=/trunk/; revision=54268
2011-10-29 15:03:01 +00:00
Cameron Gutman
f89a5c926a [FLOPPY]
- Prevent a deadlock on very old controllers by sending the configure and version commands before resetting the controller

svn path=/trunk/; revision=54267
2011-10-29 14:19:30 +00:00
Cameron Gutman
9267b63627 [FLOPPY]
- Improve the floppy controller initialization code to fix several cases where the controller could deadlock or otherwise malfunction on us

svn path=/trunk/; revision=54266
2011-10-29 13:22:18 +00:00
Cameron Gutman
fabd252d70 [NTOSKRNL]
- Fix handling of HAL returning a different address space than we thought

svn path=/trunk/; revision=54265
2011-10-29 12:18:25 +00:00
Thomas Faber
5fc47e3025 [USER32]
- Fix MSVC build

svn path=/trunk/; revision=54264
2011-10-28 22:15:53 +00:00
Cameron Gutman
48f72b0826 [WININET]
- Disable connection keep-alive to avoid calling into msafd to close the connection later during DLL_PROCESS_DETACH

svn path=/trunk/; revision=54263
2011-10-28 18:58:43 +00:00
Jérôme Gardou
ae2c3ea022 [NTOSKRNL]
- remove unused variables/arguments
- Add small check in MmNotPresentFaultSectionView

svn path=/trunk/; revision=54262
2011-10-28 16:34:48 +00:00
James Tabor
7a4e31a240 [User32]
- Icon title, menu and scroll bar do not set the death bit. Menu and scroll bar set the id only on specific window messages.


svn path=/trunk/; revision=54261
2011-10-28 12:00:07 +00:00
Cameron Gutman
9485661218 [FREELDR]
- Check VESA BIOS signature before reporting VESA extensions are present

svn path=/trunk/; revision=54260
2011-10-27 19:11:22 +00:00
James Tabor
c59fc2237c [User32]
- Fix function ids, setting of the death bit when in NC destroy.
- Implement get control brush and color.
- Patch by Alexander LAW, Replicate Windows behavior of WM_SETTEXT handler regarding WM_CTLCOLOR*

svn path=/trunk/; revision=54259
2011-10-27 12:17:44 +00:00
Sylvain Petreolle
3c1d785188 [KERNEL32]
Use ERROR_SUCCESS instead of 0.
Dedicated to Pierre.

svn path=/trunk/; revision=54258
2011-10-27 09:38:14 +00:00
Sylvain Petreolle
7d118f02b6 [KERNEL32]
CreateFile has to set last error on success.
Fixes kernel32:file test cancellation.

svn path=/trunk/; revision=54257
2011-10-26 19:02:32 +00:00
Cameron Gutman
f8459fbb45 [NTOSKRNL]
- Pass a placeholder trap information, indicating that we are unlocked, to MmAccessFault in MmProbeAndLockPages as temporary hack until Mm locking is fixed
- Fixes "Assertion 'GuardedMutex->Owner == KeGetCurrentThread()' failed" when faulting in pages via MmProbeAndLockPages
- Dedicated to Jim :)

svn path=/trunk/; revision=54256
2011-10-26 14:38:57 +00:00
James Tabor
c796f0b844 [User32]
- Up Dialog.c to 1.3.31, sync port and minimized differences.
- Sync Information:
  Alexandre Julliard <julliard@winehq.org> : Don't overwrite the default button id when creating the dialog structure.
  Michael Stefaniuc <mstefani@redhat.de>: Avoid using long. Avoid using HIWORD() on atoms/resources.

svn path=/trunk/; revision=54255
2011-10-26 02:17:02 +00:00
James Tabor
46520a9bbe - Port wine right.
svn path=/trunk/; revision=54254
2011-10-25 02:53:44 +00:00
James Tabor
ee477c63ed - Fix crash in cursoricon test.
svn path=/trunk/; revision=54253
2011-10-25 02:14:38 +00:00
Cameron Gutman
9bd7961e1c [NTOSKRNL]
- Fix debug prints for 64-bit values

svn path=/trunk/; revision=54252
2011-10-24 21:09:58 +00:00
Cameron Gutman
84409cef86 [NDIS]
- Implement NdisMSetupDmaTransfer, NdisMCompleteDmaTransfer, NdisSetupDmaTransfer, NdisCompleteDmaTransfer, and NdisAllocateDmaChannel

svn path=/trunk/; revision=54251
2011-10-24 20:38:36 +00:00
James Tabor
da83a8919e [User32]
- Fix class window procedure checks, prevents misbehaving applications from calling wrong class procs.

svn path=/trunk/; revision=54250
2011-10-24 14:49:25 +00:00
James Tabor
519e75748d [User32]
- Fix class window procedure checks, prevents misbehaving applications from calling wrong class procs.
- Fixed callout for static control color brush.

svn path=/trunk/; revision=54249
2011-10-24 14:47:59 +00:00
James Tabor
3581e033d0 [User32]
- Use SetWindowTextA/W so that it passes through defwnd to be processed for themes.
- Fix validation of the dialog window and procedure.

svn path=/trunk/; revision=54248
2011-10-24 14:16:53 +00:00
James Tabor
6027ff60e6 [User32]
- Fix SetWindowTextA/W so that it passes through defwnd to be processed for themes.
- Fix desktop checks.
- Add create window flags.

svn path=/trunk/; revision=54247
2011-10-24 14:13:19 +00:00
Cameron Gutman
27c384324c [NDIS]
- Stub and export NdisMSetupDmaTransfer and NdisMCompleteDmaTransfer

svn path=/trunk/; revision=54246
2011-10-24 09:33:29 +00:00
Cameron Gutman
d8f0d214d2 [NDIS]
- Fix addressing constraints for slave DMA devices that don't have 32-bit address support

svn path=/trunk/; revision=54245
2011-10-24 09:12:34 +00:00
Cameron Gutman
bc55323de3 [NDIS]
- Demote some debug prints

svn path=/trunk/; revision=54244
2011-10-24 08:22:56 +00:00
Sylvain Petreolle
3361be2360 [ROSAPPS]
Add rosapps to build.

svn path=/trunk/; revision=54243
2011-10-23 12:30:42 +00:00
Sylvain Petreolle
3ed5f76537 [ROSAPPS]
Add cmake base files with ssstars.

svn path=/trunk/; revision=54242
2011-10-23 12:30:27 +00:00
Eric Kohl
813bcdc401 [DISKPART]
- Add a simple usage function (/? option).
- Simplify the interpreter loop a little bit.

svn path=/trunk/; revision=54241
2011-10-23 12:04:48 +00:00
Cameron Gutman
51ca9e5645 [VIDEOPRT]
- Store the slot number we find in the device extension by legacy detection

svn path=/trunk/; revision=54240
2011-10-23 04:04:17 +00:00
Cameron Gutman
c64e8b00c0 [VIDEOPRT]
- Support passing a resource requirements list to VideoPortGetAccessRanges

svn path=/trunk/; revision=54239
2011-10-23 03:55:35 +00:00
Cameron Gutman
69fdb2ac71 [NTOSKRNL]
- Fix a major off-by-one bug in resource conflict checking
- Respect requested alignment when checking for valid port/memory ranges

svn path=/trunk/; revision=54238
2011-10-23 03:06:23 +00:00
Cameron Gutman
25eae4b916 [VIDEOPRT]
- Report legacy resources to the PnP manager via IRP_MN_FILTER_RESOURCE_REQUIREMENTS
- Report legacy access ranges in response to VideoPortGetAccessRanges
- TODO: Handle an optional resource requirements list in VideoPortGetAccessRanges

svn path=/trunk/; revision=54237
2011-10-23 02:45:09 +00:00
Cameron Gutman
68be9235cf [VIDEOPRT]
- Check all PCI buses not just the first 8

svn path=/trunk/; revision=54236
2011-10-23 01:16:54 +00:00
Cameron Gutman
dfb06c0abf [VIDEOPRT]
- Slot is an output parameter not an input parameter. Treat it as such.
- Don't use magic constants
- Remove a duplicate check
- Set RangeShareable for port resources based on the resource descriptor
- Initialize and set RangeShareable for memory and port access ranges instead of leaving garbage in there

svn path=/trunk/; revision=54235
2011-10-22 23:32:51 +00:00
Thomas Faber
9d229f5644 [RICHED20]
- Fix ME_CharFromPoint relying on Wine's incorrect behavior of GetTextExtentExPointW. Already sent upstream(TM)
See issue #6196,5784,6037,6095,6187,6513 for more details.

svn path=/trunk/; revision=54234
2011-10-22 20:55:11 +00:00
Eric Kohl
53a2d1fe4f [DISKPART]
Implement argument processing. Patch by Lee Schroeder.

The original patch was modified to fix the following issues:
- Indentation and coding style.
- Remove obsolete code: 1. The if-statement around the for-loop is not needed. 2. The call to wcsicmp() is already case insensitive (it is the 'i' in wcsicmp).
- Check the existence of a script file name and a timeout value before trying to process them.
- Call run_script() after the argument list has been processed. This fixes the argument order issue.


See issue #6552 for more details.

svn path=/trunk/; revision=54233
2011-10-22 19:52:17 +00:00
Rafal Harabien
4772994fec [WINLOGON]
- Move playing log on sound to HandleLogon
- Don't use HKEY_CURRENT_USER for accessing user registry key. This key points to settings of user which started Winlogon process (SYSTEM) instead of logged user. Instead use HKU\SID.
See issue #5436 for more details.

svn path=/trunk/; revision=54232
2011-10-22 18:28:05 +00:00
Thomas Faber
a29cf1d59d [EXPLORER_NEW]
- Fix rectangle copypasta in ITrayWindowImpl_RegLoadSettings. Patch by Elton Chung

svn path=/trunk/; revision=54231
2011-10-22 15:27:29 +00:00
Giannis Adamopoulos
db3c333ce8 [comctl32]
- merge r53027 that missed the merge from themes branch
- fixes floods of debug output by CombineRgn

svn path=/trunk/; revision=54230
2011-10-22 11:35:13 +00:00
Rafal Harabien
0835a3801d - Update Liberation fonts to 1.07.1
svn path=/trunk/; revision=54229
2011-10-22 10:01:49 +00:00
Rafal Harabien
1f46cba81b [WIN32K] - SystemParametersInfo does not support SPIF_UPDATEINIFILE for SPI_SETDEFAULTINPUTLANG
svn path=/trunk/; revision=54228
2011-10-21 21:47:16 +00:00
Rafal Harabien
9e2f17bd8e [WIN32K]
- Mouse code cleanup
- Support MOUSEEVENTF_VIRTUALDESK flag in MOUSEINPUT properly
- Support MOUSE_VIRTUAL_DESKTOP flag in MOUSE_INPUT_DATA properly
- Do not ignore MK_SHIFT and MK_CONTROL flags in some mouse messages

svn path=/trunk/; revision=54227
2011-10-21 21:23:51 +00:00
Cameron Gutman
2ca62c7af9 [CMBATT]
- Fix a deadlock caused by forwarding IRPs to ourself

svn path=/trunk/; revision=54226
2011-10-21 16:38:56 +00:00
Rafal Harabien
5d67b60839 [WIN32K] - Implement SPI_GETDEFAULTINPUTLANG.
svn path=/trunk/; revision=54225
2011-10-21 15:18:04 +00:00
Rafal Harabien
0d2b2baf4d [TXTSETUP] - Add Polish (214) layout. It's now visible in usetup.
svn path=/trunk/; revision=54224
2011-10-21 15:10:52 +00:00
Rafal Harabien
af5cf6965c [WIN32K]
- Don't set every loaded layout as default. Instead implement SPI_SETDEFAULTINPUTLANG. Fixes some minor problems with wrong layout loaded.
- Fix removing hotkey not associated with window (fixes winetest).

svn path=/trunk/; revision=54223
2011-10-21 14:54:22 +00:00
Rafal Harabien
7940686557 [FASTFAT]
- Fix memory corruption if long file name entry is invalid.
- Minor improvements.

See issue #6546 for more details.

svn path=/trunk/; revision=54222
2011-10-21 13:21:56 +00:00
Kamil Hornicek
06c9dfcef7 [REGISTRY]
Mark the VGA driver as VgaCompatible too so it doesn't take precedence over the VBE driver in case both are installed.
See issue #6578 for more details.

svn path=/trunk/; revision=54221
2011-10-21 12:14:25 +00:00
Cameron Gutman
0d2539a1ff [NDIS]
- Demote some informational debug prints

svn path=/trunk/; revision=54220
2011-10-21 08:44:14 +00:00
Dmitry Gorbachev
a325b1bd0c [TRANSLATION]
- SysSetup: add a very tiny enhancement to Spanish translation (Elhoir, bug #6596).
- USetup: change encoding of Brazilian Portuguese file to CP 850.
- USetup: fix a few bugs in German and Italian translations.

svn path=/trunk/; revision=54219
2011-10-21 08:37:12 +00:00
Thomas Faber
c7a9875e75 [SPIDER]
- Use a Yes/No message box for "Quit the current game?" instead of Ok/Cancel. Patch by Lee Schroeder
See issue #6589 for more details.

svn path=/trunk/; revision=54218
2011-10-21 07:42:00 +00:00
Johannes Anderwald
50023c1e97 [SHELL32]
- Hackfix shell new item service
- Add support for SID_IFolderView

svn path=/trunk/; revision=54217
2011-10-20 20:28:30 +00:00
Rafal Harabien
420fff03dc [LIVECD]
- Fix profiles path. FIXES ICONS IN LIVECD!
- Add few interfaces to livecd registry so it doesn't spam the log so much

svn path=/trunk/; revision=54216
2011-10-20 19:00:02 +00:00
Amine Khaldi
d3c0541613 [CMAKE]
* Don't even create the stlport static lib. No working C++ module links to it, and until we have a proper STL support the other modules won't compile either.

svn path=/trunk/; revision=54215
2011-10-20 18:30:56 +00:00
Rafal Harabien
f40283d816 [KBDPL] - Properly implement Polish (214) keyboard layout
[KBDPL1] - Minor fixes

svn path=/trunk/; revision=54214
2011-10-20 15:15:09 +00:00
Thomas Faber
54cbf04c4a [CMAKE]
- Add VC11 support in configure.cmd

svn path=/trunk/; revision=54213
2011-10-20 14:53:02 +00:00
Rafal Harabien
7255e6ef04 [WINLOGON]
- If no keyboard layout can be loaded, load US layout
- Try to load all layouts from Preloaded key even if some of them fail

svn path=/trunk/; revision=54212
2011-10-20 13:26:39 +00:00
Rafal Harabien
28b24fc9ba - Add Polish keyboard layout (there was only "Polish programmer" layout). It should fix installing ROS in Polish.
svn path=/trunk/; revision=54211
2011-10-20 13:16:40 +00:00
James Tabor
a87d86ea1a [Win32k]
- Fix path support, now all wine path tests pass.
- Need a PolyDraw test for non-path functions! The non-path code was synced ported, but still failed 16 path tests, then path was moved out. Purged missing patches from the last trunk freeze, tested with the program Area.
- Sync Information:
  Evan Stade <estade@gmail.com> : Improved PolyDraw in path closed case. Added PATH_PolyDraw.

svn path=/trunk/; revision=54210
2011-10-20 12:02:15 +00:00
James Tabor
6bbe25388c [Win32k]
- Fix crash in PATH_ExtTextOut. See bug 6587.
- Sync Information:
  Huw Davies <huw@codeweavers.com> : Add support for ETO_PDY and improve world transform support.
  Massimo Del Fedele <max@veneto.com> : Fix PATH_add_outline when mapping mode != MM_TEXT. PATH_ExtTextOut remove incorrect shift to DC origin. Correctly handle space char on Path_ExtTextOut().
  Dmitry Timoshkov <dmitry@codeweavers.com> : The MAT2 parameter of GetGlyphOutline is mandatory.





svn path=/trunk/; revision=54209
2011-10-19 23:50:54 +00:00
Kamil Hornicek
8fce909318 [POWERCFG]
Sync with the english resource file to fix some misplaced controls.

svn path=/trunk/; revision=54208
2011-10-19 21:40:45 +00:00
Rafal Harabien
63c64e6b0c - Fix Linux build
svn path=/trunk/; revision=54207
2011-10-19 21:02:41 +00:00
Rafal Harabien
f67cd4de8f - Really fix build
svn path=/trunk/; revision=54206
2011-10-19 20:18:42 +00:00
Rafal Harabien
3e3de2a6b0 - Fix build
svn path=/trunk/; revision=54205
2011-10-19 20:08:25 +00:00
Rafal Harabien
969de356e3 - Forgotten file
svn path=/trunk/; revision=54204
2011-10-19 20:07:41 +00:00
Rafal Harabien
db62557f8c [WIN32K|USER32]
- Make keyboard layouts code more compatible
- Layouts and kbd files are user objects
- Preloaded layouts are added by Winlogon, not win32k
- Support Keyboard Layout substitutes in registry

svn path=/trunk/; revision=54203
2011-10-19 20:03:50 +00:00
Rafal Harabien
f00c31f3ff [WIN32K] - Don't define things from PSDK in source code
svn path=/trunk/; revision=54202
2011-10-19 19:25:45 +00:00
Giannis Adamopoulos
14a0a871ad [user32]
- When themes are active and the text of a window changes, we should send the WM_NCUAHDRAWCAPTION message instead of drawing the window directly ( which will result painting a classic caption on the themed window)
- Fixes explorer window that is repainted with a classic style when a subfolder is opened

svn path=/trunk/; revision=54201
2011-10-19 19:21:59 +00:00
Rafal Harabien
b2ff221e37 [USER32] - Fix a typo
svn path=/trunk/; revision=54200
2011-10-19 16:37:34 +00:00
Rafal Harabien
d03bee3aa9 [USER32] - Simplify DrawCaret
svn path=/trunk/; revision=54199
2011-10-19 16:17:32 +00:00
Rafal Harabien
51a410c228 [WIN32K]
- Don't use exclusive lock when shared is enough
- Don't declare functions in source code

svn path=/trunk/; revision=54198
2011-10-19 16:00:46 +00:00
Rafal Harabien
c9134c871b [WIN32K]
- Simplify monitors code
- fix few minor bugs (ie. not updating last error)
- Make monitor object more compatible to windows

svn path=/trunk/; revision=54197
2011-10-19 15:40:17 +00:00
James Tabor
963dfffc01 - Move mouse history to mouse.c and it is not effected by the hook bypass.
svn path=/trunk/; revision=54196
2011-10-19 01:07:19 +00:00
Rafal Harabien
4ba68ec5ab [WIN32K]
- Add missing locks in monitors API
- Set proper last error when allocation fails

svn path=/trunk/; revision=54195
2011-10-18 23:01:29 +00:00
Cameron Gutman
9368b91f31 [STREAM]
- Fix a typo
- Search for bad !! usage inspired by r54193

svn path=/trunk/; revision=54194
2011-10-18 20:36:54 +00:00
Giannis Adamopoulos
dddc64fe69 [uxtheme]
- Fix a stupid typo that caused all fonts defined in the theme file to be italic

svn path=/trunk/; revision=54193
2011-10-18 20:18:19 +00:00
Rafal Harabien
4a58461a9e [USER32] - Formatting. No code changes.
svn path=/trunk/; revision=54192
2011-10-18 18:12:35 +00:00
Johannes Anderwald
0605f7832f [KS]
- Probe input / output parameters when requests are coming from user mode
- Fix KspPinPropertyHandler to use the correct output parameter location
- Fix KsHandleSizedListQuery to use the correct output parameter location
- Tested in Vbox 4.1.4 r74291
- May fix a few sound drivers who are having user mode extra utility apps

svn path=/trunk/; revision=54191
2011-10-18 18:02:56 +00:00
Johannes Anderwald
bb8b519d56 [PORTCLS]
- Don't modify status code of irps which are not handled

svn path=/trunk/; revision=54190
2011-10-18 14:00:20 +00:00
Giannis Adamopoulos
5071383cac [desk.cpl]
- Apply a wallpaper and desktop background only when they have changed
- Fixes changing desktop background to the color defined by the theme

svn path=/trunk/; revision=54189
2011-10-18 13:36:44 +00:00
Timo Kreuzer
8dba8e4af8 [WIN32K]
Copy the BITMAPINFO to a safe kernel mode buffer, before accessing it. Fixes bug 6587.

svn path=/trunk/; revision=54188
2011-10-18 13:13:37 +00:00
Giannis Adamopoulos
8451dca5ee [user32_apitest]
- Add one more testcase and fix another one for SPI_SETNONCLIENTMETRICS

svn path=/trunk/; revision=54187
2011-10-18 11:19:24 +00:00
Giannis Adamopoulos
144e71d4b2 [win32k]
-Force all top level windows to update the size and position of their non client area when SPI_SETNONCLIENTMETRICS is used
-Should fix changing the non client metrics like caption height for open windows (before this we needed to close and reopen existing windows to let them be painted properly)

svn path=/trunk/; revision=54186
2011-10-18 10:54:13 +00:00
Giannis Adamopoulos
049399ec77 [win32k]
- Do not send message WM_NCCALCSIZE asynchronously because we need its return value from the receiver. Should fix resizing or moving the non-client area of windows

svn path=/trunk/; revision=54185
2011-10-18 10:48:03 +00:00
James Tabor
c27a66c36c - Add hits to track callback and winproc faults.
svn path=/trunk/; revision=54184
2011-10-18 00:39:06 +00:00
Johannes Anderwald
2387a1229b [SHELL32]
- Remove unwanted change

svn path=/trunk/; revision=54183
2011-10-17 16:53:16 +00:00
Johannes Anderwald
3768a08bef [SHELL32]
- Check first it the path is a drive path
- Fixes launching drive property dialog when clicked in the shell view area

svn path=/trunk/; revision=54182
2011-10-17 16:51:46 +00:00
Jérôme Gardou
c935929442 [WinMM]
- fix typo, sorry.

svn path=/trunk/; revision=54181
2011-10-17 16:47:42 +00:00
Giannis Adamopoulos
f8cd9ebd14 [user32_apitest]
- Add some tests for the messages that are sent when SPI_SETNONCLIENTMETRICS is used

svn path=/trunk/; revision=54180
2011-10-17 16:35:22 +00:00
Jérôme Gardou
0f43aad8b9 [WinMM]
- avoid buffer overrun.
- do not try to unload uninitialized driver.
See issue #6343 for more details.

svn path=/trunk/; revision=54179
2011-10-17 16:35:10 +00:00
Dmitry Gorbachev
89d452ac46 [TRANSLATION]
- Change time zone information for Russia.
- Add Russian translation of country list.
- Recode Swedish translation of USetup from CP 1252 to 850. Bug #6574.
- Fix Dutch tr. of USetup. Bug #6510, patch by <congruwer.AT.yahoo.DOT.co.DOT.uk>.

svn path=/trunk/; revision=54178
2011-10-17 14:55:03 +00:00
Johannes Anderwald
2ada141a03 [SHELL32]
- Remove unused code
- Display file extension based on Edijus patch
See issue #6310 for more details.

svn path=/trunk/; revision=54177
2011-10-17 14:42:47 +00:00
Johannes Anderwald
fc4054d9e9 - Fix launching of properties dialog in the detail view
- Based on Edijus patch (terminedijsatyahoodotcom)
See issue #6571 for more details.

svn path=/trunk/; revision=54176
2011-10-17 13:22:20 +00:00
James Tabor
2c56678681 - Remove Fixme.
svn path=/trunk/; revision=54175
2011-10-17 05:22:33 +00:00
Cameron Gutman
e066e5f500 [WINE]
- Undefine HAVE_GETADDRINFO
- Even though this is fully implemented (and used other parts of ROS), it seems to enable broken code paths in some WINE code
- Fixes the rapps regression

svn path=/trunk/; revision=54174
2011-10-17 04:47:32 +00:00
Cameron Gutman
4963104e56 [WINE]
- Fix a couple of incorrect definitions
- Rapps is still regressed since r54146

svn path=/trunk/; revision=54173
2011-10-17 04:24:26 +00:00
James Tabor
c20327df7c [Win32k]
- Fix TME. Not complete. These changes will allow theme highlighting to work.
- Passes wine test_TrackMouseEvent.
- Adamopoulos TME tests are proving to be difficult in locking down thread issues. On a slow system in CMD not redirected the test passes all but 15. Slow systems in CMD redirected to a output file or on real hardware in CMD not redirected, the results vary from 15 when the CMD buffer is full to 35 when it is not. When isolating each test, it passes. The QS bit issue will be handled later.

svn path=/trunk/; revision=54172
2011-10-17 02:07:24 +00:00
Cameron Gutman
18254a9593 [TCPIP]
- Differentiate between incomplete and complete NCEs with regard to the timeout
- Change the IP timer to fire only once each second
- Remove unneeded completion functions

svn path=/trunk/; revision=54171
2011-10-17 01:37:56 +00:00
James Tabor
97eddfb464 [Win32k]
- Fix timer resolution so it will run every 10 ms +/-1ms. This is the default setting when the user provides less than 10 ms for the period to wait for the timer event. Pass wine test_timers_no_wnd.

svn path=/trunk/; revision=54170
2011-10-17 01:33:55 +00:00
Cameron Gutman
fa391315db [TCPIP]
- Do not transmit fragments recursively since it can cause a kernel stack overflow with large packets
- Big thanks to hto for his work on this bug which has eluded me since last year
See issue #5796 for more details.

svn path=/trunk/; revision=54169
2011-10-17 00:38:46 +00:00
Olaf Siejka
9e9b67bc8f [TRANSLATION]
- Romanian translation of userenv, winmm, ntvdm, and win32csr (bug no. 6580) and inf (bug no. 6577) by Stefan Fulea (minor corrections by me);
- Polish translation update/cleanup of inf by me;
- Spanish inetcpl translation (bug no. 6472) and French subst translation (bug no. 6166) by Jason Genie;

svn path=/trunk/; revision=54168
2011-10-16 23:39:00 +00:00
Cameron Gutman
6e8abd6c56 [TCPIP]
- Prevent corruption of the search context list using a combination of references and broader spin lock usage
- Fixes bug 6506

svn path=/trunk/; revision=54167
2011-10-16 22:21:41 +00:00
Alex Ionescu
a4ea03f3c4 [KERNEL32]: Move some definitions to header file.
[KERNEL32]: MoveBasepLocateExeLdrEntry to utils.c.

svn path=/trunk/; revision=54166
2011-10-16 17:05:16 +00:00
Amine Khaldi
f0ac874b67 [MSXML3]
* Don't link to libxslt in rbuild build. Dedicated to Alex.

svn path=/trunk/; revision=54165
2011-10-16 16:28:47 +00:00
Kamil Hornicek
cc8c53a925 [EXPLORER]
Make the Network connections start menu item open the net connections folder. Trim a misleading message.

svn path=/trunk/; revision=54164
2011-10-16 16:12:55 +00:00
Rafal Harabien
49793fea10 [WIN32K]
- Remove ReadRegistryValue in kbdlayout.c as we already implement RegQueryValue for reading from registry in W32k. This function additionally checks value type.
- Rename KBL to KL based on Techwiki
- HKCU\Keyboard Layout\Preload value is REG_SZ (not REG_EXPAND_SZ)
- NtUserLoadKeyboardLayoutEx should set last error if flags are invalid
- Minor keyboard layout code cleanup

svn path=/trunk/; revision=54163
2011-10-16 15:39:07 +00:00
Thomas Faber
a8c53e6e1a [KERNEL32]
- Reapply the ConvertThreadToFiberEx changes from r52804, they were lost in r52805. Confirmed by Alex.
See issue #6394 for more details.

svn path=/trunk/; revision=54162
2011-10-16 15:04:26 +00:00
Rafal Harabien
1a1bb9dde4 - Fix MSVC build based on ThFabba suggestion
svn path=/trunk/; revision=54161
2011-10-16 14:59:29 +00:00
Rafal Harabien
1a70d9f223 [WIN32K] - Formating... No code changes.
svn path=/trunk/; revision=54160
2011-10-16 12:26:22 +00:00
Rafal Harabien
7ab2968d8e [WIN32K]
- Merge KeyboardInput thread and MouseInputThread into Raw Input Thread (RIT)

svn path=/trunk/; revision=54159
2011-10-16 11:39:47 +00:00
Thomas Faber
5d40c09bb6 [NTDLL_WINETEST]
- Fix MSVC build. Already sent upstream(TM)

svn path=/trunk/; revision=54158
2011-10-16 11:26:06 +00:00
Thomas Faber
5d81a5433d [CMAKE]
- Do not exclude itss, msxml3 and qmgr from MSVC build, as they build just fine

svn path=/trunk/; revision=54157
2011-10-16 09:33:22 +00:00
Timo Kreuzer
7dae81f20e [WIN32K]
- Fix insertion of the GRAPHICS_DEVICE into the global list. Fixes mode enumeration when the 2nd adapter is used.
- Remove a hack.

svn path=/trunk/; revision=54156
2011-10-16 09:15:19 +00:00
Thomas Faber
d11dc6f620 [TRANSLATION]
- Fix some German formal addressing

svn path=/trunk/; revision=54155
2011-10-16 07:57:59 +00:00
Thomas Faber
c2077e0952 [SYSDM]
- Increase size of the homepage link control to correctly show the complete focus rectangle. Patch by Elton Chung (elton328 at gmail dot com)
See issue #5038 for more details.

svn path=/trunk/; revision=54154
2011-10-16 07:27:33 +00:00
James Tabor
c537b5111e [Win32k]
- Fix timer resolution to match what windows uses. Now pass wine test_timers_no_wnd.

svn path=/trunk/; revision=54153
2011-10-15 21:35:40 +00:00
Timo Kreuzer
435e9fc9dd [registry]
Mark the VBE driver as VgaCompatible. This is an outrageous lie, but it lets us use 3rd party drivers, like VBoxVideo, while VBE is installed. Consider this a hack, which is to be fixed bei either making vbemp really vga compatible or by fixing whatever keeps the VBoxVideo from replacing vbemp.

svn path=/trunk/; revision=54152
2011-10-15 21:29:11 +00:00
Timo Kreuzer
de06265192 [WIN32K]
- Fix a bug when iterating through the DEVMODE list
- Handle VgaCompatible flag differently, by reading this value from the registry for every installed driver.
- Priorize non-vga compatible devices over vga compatible, unless /BASEVIDEO is requested
- Fall back to vga compatible driver when no other is present

svn path=/trunk/; revision=54151
2011-10-15 21:22:19 +00:00
James Tabor
1d1913a81e [Win32k]
- Fix timer resolution for once a millisecond. Now pass wine test_timers_no_wnd.

svn path=/trunk/; revision=54150
2011-10-15 21:01:24 +00:00
Timo Kreuzer
f61cba4449 [PSDK]
- don't define _cdecl and __cdecl to nothing on MSVC builds.
- define cdecl and CDECL to nothing
- add #pragma once
- this file is full of hacks

svn path=/trunk/; revision=54149
2011-10-15 19:54:51 +00:00
Rafal Harabien
64f569b38d - Fix build
svn path=/trunk/; revision=54148
2011-10-15 18:45:48 +00:00
Rafal Harabien
b25d2f3093 [NTOSKRNL] - Don't exit from NtWaitForMultipleObjects with kernel lock held
svn path=/trunk/; revision=54147
2011-10-15 18:41:45 +00:00
Amine Khaldi
861247d1df [WINE/WS2_32]
* Sync config.h with recent Wine and remove some now unneeded defines. By Samuel Serapion.
See issue #6174 for more details.

svn path=/trunk/; revision=54146
2011-10-15 13:50:26 +00:00
Timo Kreuzer
179ef3b363 [ISOBTRT]
call it 13h with es set to 0, instead of the transfer buffer segment, that we loaded it with. Fixes KVM boot.

svn path=/trunk/; revision=54145
2011-10-15 13:42:43 +00:00
Amine Khaldi
21d1032f30 [KERNEL32/LIBWINE/USP10]
* Move the wctype table from kernel32 to libwine in preparations for implementing crt locale support. By Samuel Serapion.
See issue #6538 for more details.

svn path=/trunk/; revision=54144
2011-10-15 13:17:52 +00:00
Amine Khaldi
9a4a03d719 [UNICODE]
* Update unicode tool to wine 1.3.29. By Samuel Serapion.
See issue #6537 for more details.

svn path=/trunk/; revision=54143
2011-10-15 12:39:23 +00:00
James Tabor
df27194993 [Win32k]
- Properly set the timer event id's to match tests and add one more bit for track.
- Restore TME user API (now in mouse.c) and Hover Timer, these are not the Droids you are looking for.
- Restore TME cancellation point in co_MsqInsertMouseMessage and duplicate the the same in co_IntProcessMouseMessage. First thing, pDesk->spwndTrack is never NULL. The Theme TME patch code was setting the wrong QS bit and sending to the wrong queue instead of the pDesk->spwndTrack queue. Surprising this was working at all.
- Tested with Themes, passes wine test_TrackMouseEvent and fixes bug (6257 <-- !).
Notes:
  It's all in the sequencing. Locate cancellation points, tracking mouse moves and set the hit test and track window. When the window message queue does not match the current thread, check it again and restore the mouse hover window if it is the same window as the track window and the hover bit set. Track cancellation points and clear the bits at the same time. Not when in WM_MOUSEMOVE. Guess when posting or sending to another thread? co_MsqInsertMouseMessage?

svn path=/trunk/; revision=54142
2011-10-15 00:38:23 +00:00
Rafal Harabien
6882857840 [WIN32K]
- Get rid of RETURN macro in input functions
- Don't check functions parameters when USER lock is held
- Improve formatting

svn path=/trunk/; revision=54141
2011-10-14 19:01:35 +00:00
Rafal Harabien
77fc4e22d1 [WIN32K] - Move mouse specific input processing from input.c to mouse.c
svn path=/trunk/; revision=54140
2011-10-14 18:41:06 +00:00
Kamil Hornicek
de942cd1e5 [VGAMP]
Fix the confusion between mode index 12 and video mode 12h introduced more than six years ago. ReactOS should now boot again when VGA is selected in the 1st stage.

svn path=/trunk/; revision=54139
2011-10-14 18:09:30 +00:00
Amine Khaldi
d1532096b8 [WIN32K]
* Fix a copy-paste error in EngBitBlt() and improve DIB_32BPP_ColorFill() behaviour in case when input rectangle is invalid (RECTL structure fields are signed, so "jle" instruction should be used instead of "jbe").
* Patch by Igor Sudarikov <4seev3 at gmail [dot] com>
See issue #4423 for more details.

svn path=/trunk/; revision=54138
2011-10-14 18:03:07 +00:00
Rafal Harabien
bf47d19f10 [WIN32K] - Fix sending WM_SYSKEYUP for ALT. Fixes rest of user32:input winetest (6). It's finally green!
svn path=/trunk/; revision=54137
2011-10-14 17:59:16 +00:00
Amine Khaldi
4ee928adff [CMD]
* Reduce the scope of some variables.

svn path=/trunk/; revision=54136
2011-10-14 17:50:16 +00:00
Timo Kreuzer
87ba1dad43 [VIDEOPRT]
Remove an old hack, that caused an inconsistency between the display's device object name and the name of its symbolic link / registry key. The hack isn't needed anymore, because win32k now loads the next device if one isn't available. Fixes VBoxVideo being loaded together with framebuf.dll instead of VBoxDisp.dll and now the mouse pointer integration works completely.

svn path=/trunk/; revision=54135
2011-10-14 14:50:22 +00:00
Rafal Harabien
a7dfeac07a [WIN32K]
- Keyboard state is update when msg is peeked from queue (not posted) and before virtual keys are simplified. Fixes 2 user32:input winetests.

svn path=/trunk/; revision=54134
2011-10-14 14:21:51 +00:00
Timo Kreuzer
d4fd0cd125 [WIN32K]
- Since some display drivers don't do as they should - return the drisplay driver name in the DEVMODE's dmDisplayName field - but return the miniport driver name, fix that name when creating the mode list. This fixes loading of VBox driver, when it is installed properly, which needs to be fixed as well.

svn path=/trunk/; revision=54133
2011-10-14 13:41:03 +00:00
Timo Kreuzer
883f9dd2ba [CRT]
Fix rbuild...

svn path=/trunk/; revision=54132
2011-10-14 08:50:13 +00:00
Timo Kreuzer
e3a81ccca5 [CRT]
- Remove _fltused from alldiv_asm.s / mscmain.c and use fltused.c instead.
- Remove amd64/alldiv.S
- Implement amd64 ceil, ceilf with sse
[NTOSKNRL]
- Fix amd64 exports
[ASM]
- Fix amd64 asm files to conform to the new syntax

svn path=/trunk/; revision=54131
2011-10-14 08:33:22 +00:00
Dmitry Gorbachev
38ed2303d8 [UNIATA]
Nathan Lineback <~lineback~AT~toastytech~DOT~com~>:
- Apply the Linux fix to UniATA. Bug #6500.

svn path=/trunk/; revision=54130
2011-10-14 05:33:49 +00:00
James Tabor
78208f96bf - Fix timers.
svn path=/trunk/; revision=54129
2011-10-14 02:44:48 +00:00
Rafal Harabien
ed013220f7 [WIN32K/CSRSS]
- Remove outdated comments
- Make Raw Input Thread CSRSS thread too
Thanks to Smiley and ThFabba for investigating TEB issue

svn path=/trunk/; revision=54128
2011-10-13 22:38:58 +00:00
Rafal Harabien
35e585def8 [CSRSS] - Remove DbgBreakPoint
svn path=/trunk/; revision=54127
2011-10-13 22:26:00 +00:00
Rafal Harabien
cea000b473 [WIN32K]
- Added Print Screen support in previous comit accidentally...
- Fix build and warning about global object being removed

svn path=/trunk/; revision=54126
2011-10-13 22:24:02 +00:00
Rafal Harabien
81a9b72e90 [WIN32K/CSRSS]
- Spawn keyboard and mouse input threads in csrss user-mode process so they are valid Win32 threads and have TEB

svn path=/trunk/; revision=54125
2011-10-13 22:22:49 +00:00
Giannis Adamopoulos
b4721b55d7 [win32k]
- Fix and simplify retrieving the current process window station. All processes that enter win32k have a window station (including csrss)

svn path=/trunk/; revision=54124
2011-10-13 22:16:58 +00:00
Cameron Gutman
1f28d5c2e2 [BOOTDATA]
- Enable usbdrv.sys in 1st stage setup and the system hive
- USB keyboards and mice work now (file bugs if you have problems)

svn path=/trunk/; revision=54123
2011-10-13 22:16:52 +00:00
Cameron Gutman
a911d394c6 [USBDRV]
- Rename usbdriver to usbdrv (Freeloader can't load files that aren't 8.3 - needs looking into)
- Include usbdrv in build

svn path=/trunk/; revision=54122
2011-10-13 22:07:31 +00:00
Amine Khaldi
65de2fca72 [RTL]
* Fix unix build.

svn path=/trunk/; revision=54121
2011-10-13 21:48:10 +00:00
Cameron Gutman
358cc6d2aa [KBDCLASS]
- Add a small hack to bind all keyboard port devices to the same keyboard class device when no default setting is present (circumvents win32k not supporting multiple keyboard class FDOs)

svn path=/trunk/; revision=54120
2011-10-13 21:38:07 +00:00
Olaf Siejka
b7d70a78e7 [TRANSLATION]
- serialui, setupapi, shimgvw and tapiui romanian translation, patch by Stefan Fulea;
See issue #6558 for more details.

svn path=/trunk/; revision=54119
2011-10-13 21:32:37 +00:00
Rafal Harabien
14e29265a0 [WIN32K] - Add more clipboard internal functions for use by Print Screen support
svn path=/trunk/; revision=54118
2011-10-13 20:49:03 +00:00
Kamil Hornicek
9a45ad55e8 [WINED3D]
Finally recognize Mesa's GDI driver as HW_VENDOR_SOFTWARE. This commit was blessed by the Wine team.

svn path=/trunk/; revision=54117
2011-10-13 19:57:31 +00:00
Aleksey Bragin
360430be4d [RTL]
- Fix two bugs revealed by the newly added test in r54114.
 * Original length of the passed string should be used when checking for out-of-buffer access in the loop
 * PathChars should be updated if a DOS device name was found in the given string.
See issue #6390 for more details.

svn path=/trunk/; revision=54116
2011-10-13 18:15:50 +00:00
Johannes Anderwald
2e871fddb3 [HID]
- Implement HidD_GetIndexedString, HidD_GetMsGenreDescriptor, HidD_GetConfiguration, HidD_SetConfiguration, HidP_GetUsagesEx

svn path=/branches/usb-bringup/; revision=54115
2011-10-13 17:51:13 +00:00
Aleksey Bragin
d9f8633b4e - Add a new RtlIsDosPathName_Ustr test which shows a flaw in the existing implementation.
svn path=/trunk/; revision=54114
2011-10-13 17:42:19 +00:00
Rafal Harabien
eaf2462310 [EXPLORER] - If Start Menu is open, WIN key hides it
svn path=/trunk/; revision=54113
2011-10-13 15:50:24 +00:00
Timo Kreuzer
143732711e [ASM]
Improve .proc / .endproc syntax, so that the full symbolic name is passed, which allows to create fastcall symbols. Remove the need to pass the function name to .endp

svn path=/trunk/; revision=54112
2011-10-13 15:16:29 +00:00
Kamil Hornicek
9955d0ed84 [GDI32_WINETEST]
Bail out of compare_emf_bits earlier. This way we only record one skipped test, but it allows us to actually complete the metafile tests. Restore formatting to its previous glory.

svn path=/trunk/; revision=54111
2011-10-13 14:11:50 +00:00
Rafal Harabien
db72017f94 [NOTEPAD] - Characters in ANSI windows are fixed so finally mark notepad as unicode
svn path=/trunk/; revision=54110
2011-10-13 14:02:21 +00:00
Rafal Harabien
412bc985ed [USER32|WIN32K]
- Convert wParam in WM_*CHAR messages to ANSI in GetMessageA instead of win32k. Fixes wrong characters used in cmake notepad which is ANSI.

svn path=/trunk/; revision=54109
2011-10-13 14:01:01 +00:00
Kamil Hornicek
5b1ee500b6 fix build
svn path=/trunk/; revision=54108
2011-10-13 13:38:22 +00:00
Rafal Harabien
bb162a6c86 [WIN32K]
- Right ALT on some keyboard sends LCONTROL and RALT key events
- Shift has never extended bit in key messages
- Fixes about 32 user32:input winetest
- Don't allow to register hotkeys with special keys combinations (eg. WIN key)
- Set last error in RegisterHotKey if hotkey is already registered

svn path=/trunk/; revision=54107
2011-10-13 13:23:57 +00:00
Timo Kreuzer
f886d23efc [GDI32_APITEST]
- Add tests for CreateDIBitmap
- more tests for AddFontResource, GetPixel, SetSysColors

svn path=/trunk/; revision=54106
2011-10-13 12:52:25 +00:00
Kamil Hornicek
caf14d848f [SYSSETUP]
Allow creating of shortcuts with icon indexes != 0.
[EXPLORER]
Shuffle the resources a bit so icons with indexes 0 and 1 match those in windows explorer.
See issue #6544 for more details.

svn path=/trunk/; revision=54105
2011-10-13 12:38:24 +00:00
James Tabor
1a69f5d9b4 [Win32k]
- Restore global class operations.
[ComCtl32]
- Use local class since this has higher priority over all global classes.
[Themes]
- Tested with XP Luna and two others. Rune and another Luna.


svn path=/trunk/; revision=54104
2011-10-13 11:57:38 +00:00
Kamil Hornicek
b329afaddd [GDI32]
Partial winesync to reduce code duplication and fix a crash in gdi32 font winetest.

svn path=/trunk/; revision=54103
2011-10-12 23:07:22 +00:00
James Tabor
8b3cab8db4 [Rtl]
- Replace RtlQueryInformationActiveActivationContext and set it based on wine.


svn path=/trunk/; revision=54102
2011-10-12 22:48:01 +00:00
James Tabor
fdcbfe037e [Win32k]
- Support Active SxS for the window structures.


svn path=/trunk/; revision=54101
2011-10-12 22:46:07 +00:00
Kamil Hornicek
1212f4fec9 [SHELL32]
Use COPYRIGHT_YEAR in the Authors dialog.
See issue #6496 for more details.

svn path=/trunk/; revision=54100
2011-10-12 21:54:10 +00:00
Kamil Hornicek
951482674a one .rbuild file ought to be enough for anybody
svn path=/trunk/; revision=54099
2011-10-12 21:33:48 +00:00
Rafal Harabien
43562431ef [DESK]
- Fix duplicated entries in screensaver selector. Patch by Carlo Bramix <carlo dot bramix at libero dot it>.
See issue #6533 for more details.

svn path=/trunk/; revision=54098
2011-10-12 21:30:50 +00:00
Timo Kreuzer
d0d304b342 [RTL]
On x86 builds use the asm versions of the byte swap functions. This is neccessary for RtlUlonglongByteswap, because the function breaks the calling convention on Windows, not cleaning up the stack. Make the asm compatible to ML and improve it a bit. Investigated by Thomas Faber.

svn path=/trunk/; revision=54097
2011-10-12 21:11:02 +00:00
Timo Kreuzer
a38e883762 [NTOSKRNL]
Do not use image base addresses above MmHighestUserAddress in MmMapViewOfSection, because it would first succeed when checking for conflicting memory areas, and thus not try to find a better address, but later fail in MmMapViewOfSegment, which cannot create a memory area in system space (only possible with MmKernelAddressSpace / PsIdleProcess).
See issue #5680 for more details.

svn path=/trunk/; revision=54096
2011-10-12 19:26:45 +00:00
Timo Kreuzer
2e7ccdc07c [SERVICES]
- Do not keep the process handle of a started process open
- when sending a STOP command to a process failed, then succeed and mark the process as stopped.
Fixes ghost processes, when terminating a service with taskmgr and allows to restart services that got terminated or possibly crashed.

svn path=/trunk/; revision=54095
2011-10-12 14:26:01 +00:00
Amine Khaldi
24bcd11f8e * Improve some includes.
svn path=/trunk/; revision=54094
2011-10-12 12:24:19 +00:00
Thomas Faber
b98f465c6d [RTL]
- Handle a NULL buffer in RtlIpv4AddressToStringA as Windows does. Fixes crash in ntdll:rtl test
[CRT]
- Fail on qsort with 0 size. Fixes hang in ntdll:string test

svn path=/trunk/; revision=54093
2011-10-12 11:58:46 +00:00
Thomas Faber
0f71d87a65 [STLPORT]
- Revert r54088
[GLU32]
- Do not use stlport headers with MSVC, as they are broken. Should really fix MSVC build

svn path=/trunk/; revision=54092
2011-10-12 11:49:25 +00:00
Thomas Faber
bdd81004f4 [RTL]
- Rewrite RtlFindCharInUnicodeString. Fixes timeout in ntdll:rtlstr test.

svn path=/trunk/; revision=54091
2011-10-12 11:36:52 +00:00
Thomas Faber
b2d43ccd3c [KMTESTS/RTL]
- Add a test for RtlFindCharInUnicodeString

svn path=/trunk/; revision=54090
2011-10-12 11:25:34 +00:00
Thomas Faber
bab9f940a1 [RPCRT4_WINETEST]
- Sync to Wine 1.3.30. Fixes crash in rpcrt4:rpc test
See issue #5778 for more details.

svn path=/trunk/; revision=54089
2011-10-12 11:02:41 +00:00
Thomas Faber
7bdbe2072c [STLPORT]
- Do not define min() or max() when standard headers are included. Should fix MSVC build

svn path=/trunk/; revision=54088
2011-10-12 09:05:23 +00:00
Timo Kreuzer
2381ccd2f0 [NTOSKRNL]
Handle some ros specific codes in KD64 version of KdSystemDebugControl (tab-k, ...)

svn path=/trunk/; revision=54087
2011-10-11 21:29:13 +00:00
Amine Khaldi
8620ccc0da [SHELL32]
* Igor Paliychuk: Convert shell32 resources to utf-8.
See issue #6379 for more details.

svn path=/trunk/; revision=54086
2011-10-11 20:13:47 +00:00
Giannis Adamopoulos
9adbc29775 [win32k]
- do not use RETURN macro in keyboard functions

svn path=/trunk/; revision=54085
2011-10-11 19:22:07 +00:00
Amine Khaldi
daa8000263 [CMAKE]
* Fix a typo.

svn path=/trunk/; revision=54084
2011-10-11 18:52:28 +00:00
Amine Khaldi
c5f4c39fe9 [FREELDR]
* Comment out some unused variables.

svn path=/trunk/; revision=54083
2011-10-11 18:43:34 +00:00
Amine Khaldi
26a4093349 [CMAKE]
* Use the gcc toolchain-provided STL.
* Use STLport only on MSVC builds.
[KSPROXY]
* Set imagebase, properly set its entry point, use set_cpp() instead of hardcoded definition/includes and add no exceptions/rtti gcc flags.
[GLU32]
* Use set_cpp() instead of the hardcoded target_link_libraries().
[PORTCLS]
* Use set_module_type() with proper entry point, instead of expanded macro calls, and get rid of hardcoded target_link_libraries().

* Commit Dedicated to Olaf Siejka (Caemyr).

svn path=/trunk/; revision=54082
2011-10-11 18:31:35 +00:00
Timo Kreuzer
f3a426e89f [NTOSKRNL]
Implement SystemTimeAdjustmentInformation case in NtSetSystemInformation. This silences the annoying messages caused by VBoxService

svn path=/trunk/; revision=54081
2011-10-11 16:11:59 +00:00
Timo Kreuzer
072e367a5d [ntdll_apitests]
Fix rbuild build

svn path=/trunk/; revision=54080
2011-10-11 16:09:34 +00:00
Timo Kreuzer
802e11b708 [ntdll_apitests]
Add tests for NtQuery/SetSystemInformation

svn path=/trunk/; revision=54079
2011-10-11 15:29:25 +00:00
Amine Khaldi
dae5e3c843 [NDIS]
* Fix NdisMWanIndicateReceiveComplete params.

svn path=/trunk/; revision=54078
2011-10-11 14:36:41 +00:00
James Tabor
d118a53f82 - Fix applications that depend on KF_DLGMODE flag.
- Added the Alt-Tab intercept for win32k.

svn path=/trunk/; revision=54077
2011-10-11 03:48:47 +00:00
Timo Kreuzer
d5a6da4ea8 [EXPLORER]
Implement support for hotkeys for run, show desktop and logoff
currently it also causes the startmenu to open, like with win-E, but this is a different bug

See issue #1512 for more details.

svn path=/trunk/; revision=54076
2011-10-10 22:12:39 +00:00
Amine Khaldi
8605da369f [SHELL32]
* Improve the registration. By Johannes Anderwald.

svn path=/trunk/; revision=54075
2011-10-10 18:17:25 +00:00
Giannis Adamopoulos
f795eac952 [win32k]
- revert last commit as these headers are really broken 

svn path=/trunk/; revision=54074
2011-10-10 16:11:49 +00:00
Giannis Adamopoulos
6b9fdd4057 [win32k]
- move some includes to pch.h

svn path=/trunk/; revision=54073
2011-10-10 15:48:37 +00:00
Kamil Hornicek
48afa1dc33 [CDFS]
Fix a buffer overrun that was corrupting the FCB.
See issue #4086 for more details.

svn path=/trunk/; revision=54072
2011-10-10 13:37:19 +00:00
Thomas Faber
756c9d6dc2 [KERNEL32]
- Properly copy image name in TH32CreateSnapshotSectionInitialize. Fixes truncated file names in kernel32:toolhelp test

svn path=/trunk/; revision=54071
2011-10-10 12:14:12 +00:00
James Tabor
d458a31a34 - Fix get atom name so seh will not lock it up.
svn path=/trunk/; revision=54070
2011-10-10 04:49:53 +00:00
Thomas Faber
24e4f7e73d [ADVAPI32]
- Hackfix RtlGenRandom to be slightly less dependent on the current time, while staying very un-random.
- Should fix services problems (no joke) due to non-unique RPC UUIDs
See issue #6542 for more details.

svn path=/trunk/; revision=54069
2011-10-10 00:17:02 +00:00
Amine Khaldi
d38c1a938a [SHELL32]
* Mark some functions as static.
* Fix a typo in My_VideoW.

svn path=/trunk/; revision=54068
2011-10-09 23:19:35 +00:00
Rafal Harabien
2cce447ebb [WIN32K] - Fix translating syskeys to characters. Fixes user32:input winetest.
svn path=/trunk/; revision=54067
2011-10-09 20:56:57 +00:00
Rafal Harabien
b63c511bbf [WIN32K] - Formatting... No code change.
svn path=/trunk/; revision=54066
2011-10-09 20:41:09 +00:00
Rafal Harabien
28e930a691 [WIN32K] - Rename xxxDoHotKeyStuff to co_UserProcessHotKeys on smiley request
svn path=/trunk/; revision=54065
2011-10-09 20:27:08 +00:00
Rafal Harabien
bc0f7d3b4f - Fix build
svn path=/trunk/; revision=54064
2011-10-09 20:17:33 +00:00
Rafal Harabien
2a799f8ad8 [WIN32K]
- Use 64 byte bitmap for keystate instead of 256 elements array (like Windows)
- Fix GetAsyncKeyState lowest bit meaning. See MSDN
- Call low level keyboard hook before setting async key state for keys which distinguish between left and right hand. Fixes user32:GetKeyState apitest failure
- Improve IsHotKey and delete GetHotKey function to avoid code duplication
- Support WIN key in hotkeys code instead of keyboard.c

svn path=/trunk/; revision=54063
2011-10-09 20:12:12 +00:00
Timo Kreuzer
0386650c63 [FREELDR]
set CF, ZF and SF based on REGS structure, when doing int's. Fixes slowness during 2nd stage boot in QEMU. Dedicated to Samuel.

svn path=/trunk/; revision=54062
2011-10-09 16:26:19 +00:00
Rafal Harabien
975d94d909 [RTL] - Make sure RtlInitUnicodeString(Ex) don't set odd length. Fixes ntdll:rtlstr winetest.
svn path=/trunk/; revision=54061
2011-10-09 09:55:40 +00:00
Rafal Harabien
34c8ab588c [USER32_APITEST] Fix GetSystemMetrics test output which was interpret by testman as crash.
svn path=/trunk/; revision=54060
2011-10-09 09:41:49 +00:00
Eric Kohl
458a6cc78b [SETUPAPI]
- SetupDiCreateDeviceInfoW: return the proper error code. Fixes a winetest.
- Implements parts of SetupDiRegisterDeviceInfo.

svn path=/trunk/; revision=54059
2011-10-09 00:39:30 +00:00
Rafal Harabien
8b395029ee [WIN32K]
- Rename gKeyStateTable to gafAsyncKeyState: it's a proper name
- Fix accelerators regression

svn path=/trunk/; revision=54058
2011-10-08 23:33:26 +00:00
Aleksey Bragin
79d4c34950 [LDR]
- Implement proper security cookie initialization code (same algorithm as in sdk/crt, however using as much data directly available as possible).
- Don't initialize security cookie as a 32bit value when 16bit security cookie was requested. This fixes msi-related crashes (or any other executables which has 16bit security cookie set).
See issue #6341 for more details.

svn path=/trunk/; revision=54057
2011-10-08 22:33:56 +00:00
Amine Khaldi
af2aafbc94 [SHELL32]
* Sync brsfolder.cpp with Wine.
* Reduce the scope of some variables.

svn path=/trunk/; revision=54056
2011-10-08 17:33:21 +00:00
Amine Khaldi
41fe0a5043 [CMAKE]
* Temporarily go back to using the ret^H^H^H previous way of using debug info. Build will, for example, be slower, take double the disk space it needs right now, but...
* Introduce __ROS_DWARF__ for the meaning __ROS_CMAKE__ implied previously.

svn path=/trunk/; revision=54055
2011-10-08 16:47:57 +00:00
Timo Kreuzer
0fa1475dfd [RTL]
- Fix possible integer overflow in RtlpInitializeHeapSegment
- Simplify loop in RtlIsDosDeviceName_Ustr
- Make MonthLengths an array of UCHARs instead of ints
- Remove pointless loops in RtlTimeToTimeFields
- Fix MSVC warnings

svn path=/trunk/; revision=54054
2011-10-08 13:50:14 +00:00
Amine Khaldi
56e0a450bd [SHELL32]
* Use the previous registration mechanism. Fixes several shell32 regressions.
* Dedicated to Claudiu Mihail and Johannes Anderwald.

svn path=/trunk/; revision=54053
2011-10-08 13:19:45 +00:00
James Tabor
0e07cb488c - Add register class name proc.
svn path=/trunk/; revision=54052
2011-10-08 02:18:04 +00:00
Rafal Harabien
dfb39c9849 [WIN32K]
- Do not call UserSetCursor in MsqCleanupMessageQueue because it uses current thread queue instead of queue in cleanup (they can be different).
See issue #6530 for more details.

svn path=/trunk/; revision=54051
2011-10-07 20:23:24 +00:00
Rafal Harabien
71f55db0d5 [NTOSKRNL] - Fix a copy-pasta. Fixes hand in 2nd stage.
svn path=/trunk/; revision=54050
2011-10-07 19:31:47 +00:00
Timo Kreuzer
2165832424 [SMSS]
Remove a hack for MSVC.

svn path=/trunk/; revision=54049
2011-10-07 18:25:41 +00:00
Rafal Harabien
3e65380ea6 [NTOSKRNL]
- Rename KTHREAD.DispatchHeader to Header
- Remove KeInitializeDispatcherHeader and initialize dispatcher headers depending on object type. Fixes all ntos:KeEvent and KeTimer kmtests.

svn path=/trunk/; revision=54048
2011-10-07 16:18:52 +00:00
Rafal Harabien
b2b0280779 [KMTESTS\NTOS_KE] - Add KeTimer test stub which tests only KeInitializeTimerEx (Note: this function initializes more fields of dispatch header than KeInitializeEvent).
svn path=/trunk/; revision=54047
2011-10-07 16:13:03 +00:00
Timo Kreuzer
2d9f70c370 [CMAKE]
Remove duplicate base address

svn path=/trunk/; revision=54046
2011-10-07 14:41:47 +00:00
Timo Kreuzer
ef30424435 [RTL]
Silence a debugprint

svn path=/trunk/; revision=54045
2011-10-07 14:31:00 +00:00
James Tabor
52690510da [Win32k]
- Implement get atom name for user32.


svn path=/trunk/; revision=54044
2011-10-07 13:56:25 +00:00
Giannis Adamopoulos
67a1cadac9 [win32k]
- SetActiveWindow should call SetWindowPos without SWP_NOACTIVATE parameter

svn path=/trunk/; revision=54043
2011-10-07 10:10:23 +00:00
Cameron Gutman
89107a6e11 [KBDCLASS/MOUCLASS]
- Better fix for the race condition

svn path=/trunk/; revision=54042
2011-10-07 05:52:52 +00:00
Cameron Gutman
8b969e61ec [KBDCLASS/MOUCLASS]
- Fix a race condition in IRP queuing that can cause an assertion to fail in the cancellation routine

svn path=/trunk/; revision=54041
2011-10-07 05:23:16 +00:00
Cameron Gutman
bfafe61483 [NTOSKRNL]
- Fix symbolic link creation with a reference string
- Audio devices start successfully again (sound still seems to be regressed however)

svn path=/trunk/; revision=54040
2011-10-07 03:13:58 +00:00
James Tabor
fe79fcb3b4 - Add new CreateWindowEx flags.
svn path=/trunk/; revision=54039
2011-10-07 01:18:29 +00:00
Thomas Faber
79a2a27b57 [SETUPAPI]
- Implement a FIXME in SetupDiOpenDeviceInfoW

svn path=/trunk/; revision=54038
2011-10-06 22:34:45 +00:00
Thomas Faber
9bcb3b3a2e [SETUPAPI]
- Do not fail in SetupDiInstallDevice if the inf file already exists. Fixes VirtualBox 4.1.x additions
See issue #6522 for more details.

svn path=/trunk/; revision=54037
2011-10-06 22:33:06 +00:00
Thomas Faber
d604269b40 [SETUPAPI]
- Correctly interpret the result of compare_files in SetupCopyOEMInfW. Prevents random failures

svn path=/trunk/; revision=54036
2011-10-06 22:31:29 +00:00
Cameron Gutman
d974e84e77 [HALACPI]
- Work around a race condition related to devices reported before the I/O subsystem is fully up
- Fixes bug #6271

svn path=/trunk/; revision=54035
2011-10-06 21:50:07 +00:00
Pierre Schweitzer
c91f9ef382 [REGEXPL]
Fix memory leaks
Fix broken if condition
Use delete[] operator for allocations made with new[] operator
Properly check for failed allocations by not throwing exception

svn path=/trunk/; revision=54034
2011-10-06 21:36:10 +00:00
Pierre Schweitzer
7e02fbd0dd [PEDUMP]
Fix memory & resource leaks

svn path=/trunk/; revision=54033
2011-10-06 20:45:06 +00:00
Pierre Schweitzer
ae16f78ede [MAN]
Fix memory leaks

svn path=/trunk/; revision=54032
2011-10-06 20:35:52 +00:00
Pierre Schweitzer
c89df83f91 [FRAGINATOR]
Use vector<>::empty() instead of vector<>::size() to check for vector emptyness

svn path=/trunk/; revision=54031
2011-10-06 20:24:19 +00:00
Pierre Schweitzer
cc5d780806 [COMP]
Fix resource leak


svn path=/trunk/; revision=54030
2011-10-06 20:13:54 +00:00
Dmitry Gorbachev
d2a93ea6d9 [NTOSKRNL]
Fix dbg output.

svn path=/trunk/; revision=54029
2011-10-06 19:59:27 +00:00
Dmitry Gorbachev
9fc97e9f95 [HAL]
Do not write past the end of buffer.

svn path=/trunk/; revision=54028
2011-10-06 19:59:20 +00:00
Rafal Harabien
59730dc09c [NTOSKRNL] - Set special value in Next ptr when Ex(f)InterlockedPopEntryList is called on checked build. Fixes all ntos:ExSingleList kmtests.
svn path=/trunk/; revision=54027
2011-10-06 19:53:51 +00:00
Rafal Harabien
dea1bad044 [NTOSKRNL]
- Save special values in F/Blink when Ex(f)InterlockedRemoveHeadList is called on checked build. Fixes all ntos:ExDoubleList kmtests

svn path=/trunk/; revision=54026
2011-10-06 19:39:37 +00:00
Giannis Adamopoulos
1a2f1828f4 [user32_apitest]
- Add a couple of tests for the messages sent when changing the z-oder of windows with DeferWindowPos (this test ignores owners z-order)

svn path=/trunk/; revision=54025
2011-10-06 14:19:04 +00:00
Timo Kreuzer
41d37ba9a2 [WIN32K]
use GreCreateBitmapEx in IntSetDIBits as well to handle RLE images. Fixes bug 6388

svn path=/trunk/; revision=54024
2011-10-06 13:38:45 +00:00
Giannis Adamopoulos
1e41f9ec85 [user32_apitest]
- remove all previous SetActiveWindow tests as they were completely wrong. This is because changing the z-order of the owner windows is done by SetWindowPos as tested in the same test suite. However SetActiveWindow calls SetWindowPos without SWP_NOOWNERZORDER parameter which leads to changing the zorder of owner windows 

svn path=/trunk/; revision=54023
2011-10-06 13:06:52 +00:00
Giannis Adamopoulos
59b0d94ae2 [user32_apitest]
- Add some more tests for SetWindowPos with or without SWP_NOOWNERZORDER. This clears the misunderstanding on changing owner window z-order once and for all

svn path=/trunk/; revision=54022
2011-10-06 12:46:21 +00:00
Amine Khaldi
da997a7c0e [SPEC2DEF]
* Support thiscall and float specifiers. By Samuel Serapion.
See issue #6539 for more details.

svn path=/trunk/; revision=54021
2011-10-06 11:10:54 +00:00
Timo Kreuzer
1c23f7c0ef [WIN32K]
Remove a debug breakpoint that was not supposed to be comitted.

svn path=/trunk/; revision=54020
2011-10-06 11:02:44 +00:00
Timo Kreuzer
6d6eced5da [WIN32K]
Fix handling of RLE compressed bitmaps in NtGdiStretchDIBitsInternal, by using similar code as in NtGdiSetDIBitsToDeviceInternal calling GreCreateBitmapEx instead of NtGdiCreateDIBitmapInternal.
Fixes bug 6168.

svn path=/trunk/; revision=54019
2011-10-06 10:56:58 +00:00
Aleksey Bragin
cf694ce4ea [RTL]
- Post-r52687 implementation of RtlIsDosDeviceName_U is more advanced than pre-r52687 one and covers more corner cases which may not be tested by existing winetests.
- Thus bring back the post-r52687 and also introduce fixes for the following bugs in it:
* Incorrect extension/space-at-the-end truncation
* Incorrect encoding of returned offset/length pair
* Incorrect condition for for-loop exit
* Incorrect calculation of the return length in case of COMx/AUX devices (it should not include the terminating 0 character)
- After those trivial fixes (mostly oneliners and typos), the function works as expected and passes all ntdll_winetest path tests. Sorry for any inconviniences!

svn path=/trunk/; revision=54018
2011-10-05 22:20:30 +00:00
Cameron Gutman
a26bd506cc [NETSHELL]
- Fix a typo
- Intel PRO/1000 shows a link speed of 1 Gbps now

svn path=/trunk/; revision=54017
2011-10-05 20:58:54 +00:00
Cameron Gutman
3b4a9ade09 [HAL]
- Implement support for scatter/gather DMA
- Tested with Intel's NDIS 5.1 PRO/1000 driver (but more testing would be helpful to weed out bugs)
[NDIS]
- Report NDIS 5.1 now since S/G DMA is supported
- Stop warning when S/G DMA is used

svn path=/trunk/; revision=54016
2011-10-05 20:36:20 +00:00
Thomas Faber
36f0a82476 [SETUPAPI]
- Fix installation failure of services without a load order group

svn path=/trunk/; revision=54015
2011-10-05 19:15:08 +00:00
Rafal Harabien
b59b756955 [WIN32K] - Don't send unicode characters in WM_CHAR to ascii windows
svn path=/trunk/; revision=54014
2011-10-05 19:11:00 +00:00
Rafal Harabien
6b2108b368 [KBDGR] - 1, 4, 5 keys should support CAPSLOCK.
See issue #5296 for more details.

svn path=/trunk/; revision=54013
2011-10-05 18:11:21 +00:00
Amine Khaldi
68cfb4ea83 [SOL/SPIDER]
* Reduce the scope of some variables.

svn path=/trunk/; revision=54012
2011-10-05 17:54:07 +00:00
Rafal Harabien
8347800656 [WIN32K]
- Fix AltGr keys sending WM_SYSCHAR* messages
- Improve debug messages

svn path=/trunk/; revision=54011
2011-10-05 15:48:39 +00:00
Giannis Adamopoulos
080c9a5b1e [user32_apitest]
- Add some message tests for DeferWindowPos

svn path=/trunk/; revision=54010
2011-10-05 14:44:45 +00:00
Rafal Harabien
9909d74da7 - Fix build
svn path=/trunk/; revision=54009
2011-10-05 14:17:21 +00:00
Cameron Gutman
e8060bd6bc [NTOSKRNL]
- Wait to reinitialize drivers until all drivers have loaded

svn path=/trunk/; revision=54008
2011-10-05 14:13:22 +00:00
Rafal Harabien
bb7482a50b [I8042PRT]
- Do not treat all extended keys as power keys in HandlePowerKeys. Fixes WM_KEYDOWN not being send right after extended key has been pressed.
See issue #3212 for more details.

svn path=/trunk/; revision=54007
2011-10-05 14:13:00 +00:00
Rafal Harabien
f64577c1ea [WIN32K]
- Rewrite keyboard input processing to match windows behavior
- Deduplicate code, add comments, mark functions static
- Support keyboard LEDs in SendInput API
- Set last error in more places
- Make keyboard layouts compatible with Windows
- Add some defines from keyboard layouts to kbd.h and use names from MS file
- Move kbd.h from ntoskrnl to NDK as it has nothing to do with kernel
- More fixes which I don't remember
- Please test CAPSLOCK key with AltGr characters (RALT+X) for layouts which support it. If something fails, report it to me on IRC

svn path=/trunk/; revision=54006
2011-10-05 14:09:51 +00:00
Timo Kreuzer
dbdc451624 [FREELDR]
Fix a bug, spotted by Brian Palmer

svn path=/trunk/; revision=54005
2011-10-05 13:41:50 +00:00
Thomas Faber
7b34590b30 [GDI32_WINETEST][KERNEL32_WINETEST]
- Fix MSVC build. Sent and applied upstream.

svn path=/trunk/; revision=54004
2011-10-05 09:35:25 +00:00
Thomas Faber
3f170e114a [KERNEL32_WINETEST]
- Restore a ros-diff lost during wine sync. Should fix kernel32:volume crash
- Better mark ros diffs in testlist.c and also bring it somewhat into sync

svn path=/trunk/; revision=54003
2011-10-05 09:29:32 +00:00
Olaf Siejka
37f8947178 [TRANSLATION]
- rasdlg romanian translation, patch by Stefan Fulea;

See issue #6499 for more details.

svn path=/trunk/; revision=54002
2011-10-05 08:54:51 +00:00
Timo Kreuzer
3b1f95cecd Merge commit 'bac0f132bfc6b05187701ded5273b9819d8585bb'
svn path=/trunk/; revision=54001
2011-10-05 08:44:13 +00:00
Pierre Schweitzer
0b91d9967d [NLS]
Remove unused: icu4ros and all its dependencies (normalize, idna)


svn path=/trunk/; revision=54000
2011-10-05 05:48:56 +00:00
Timo Kreuzer
a1f7fb8eac [FREELDR]
Disable pch. unix builder doesn't seem to like it.

svn path=/trunk/; revision=53999
2011-10-05 00:47:57 +00:00
Olaf Siejka
509f5c0361 [TRANSLATION]
- netid, vmwinst romanian translation, see bug number:6531;
- resource updates and corrections in multiple romanian translations, see bug number: 6532;
- Patches by Stefan Fulea;
[ACLUI]
- convert module to ReactOS resource style (separate lang directory);

svn path=/trunk/; revision=53998
2011-10-05 00:06:20 +00:00
Timo Kreuzer
b70536aa88 Make some eol-styles consistent for .sln and .vcproj and .cmd
svn path=/trunk/; revision=53997
2011-10-04 23:05:12 +00:00
Timo Kreuzer
8b5e48bafa Add a .hgeol file in the hope that it allows to get native line endings with hg
svn path=/trunk/; revision=53995
2011-10-04 22:07:01 +00:00
Cameron Gutman
a772b034a6 [ACPI]
- Tag all ACPI pool allocations

svn path=/trunk/; revision=53994
2011-10-04 21:49:13 +00:00
Sylvain Petreolle
9b54e9dd69 [TRANSLATION]
French and Spanish translation for doskey.
Initial Patch by Jeisson Toscano.
Spanish Fixes by vicmarcal.
Bug 6509

svn path=/trunk/; revision=53993
2011-10-04 21:26:41 +00:00
Giannis Adamopoulos
f3520a1201 [win32k]
- SetActiveWindow must send the WM_WINDOWPOSCHANGING message

svn path=/trunk/; revision=53992
2011-10-04 18:12:43 +00:00
Giannis Adamopoulos
fbf5e4605b [user32_apitest]
- Do not log WM_QUERYNEWPALETTE but make sure that we get this message only on 8bpp

svn path=/trunk/; revision=53991
2011-10-04 17:53:43 +00:00
Amine Khaldi
65beff4594 [CMAKE]
* Use the new cmake functions.

svn path=/trunk/; revision=53990
2011-10-04 16:41:21 +00:00
Timo Kreuzer
7c41ad4f0c {FREE[FREELDR]
Improve the new heap to use a freelist, which boosts allocation performance by a factor of 7. Its now even slightly faster then bget.


svn path=/trunk/; revision=53989
2011-10-04 14:55:23 +00:00
Amine Khaldi
38a67fd74f [INTL]
* Restrict exports according to the spec file.

svn path=/trunk/; revision=53988
2011-10-04 14:27:47 +00:00
Thomas Faber
411e42b427 [CMAKE/MSVC]
- Calculate image checksums to fix warnings in WinDbg

svn path=/trunk/; revision=53987
2011-10-04 14:20:25 +00:00
Amine Khaldi
046ca1c78d [CMAKE]
* Revert r53484 since jom is still buggy (bug reported upstream, to no avail) and as a result useless for us.

svn path=/trunk/; revision=53986
2011-10-04 11:57:31 +00:00
Pierre Schweitzer
3b8a00573c [INFLIB]
Fix memory leak

svn path=/trunk/; revision=53985
2011-10-04 11:57:26 +00:00
Giannis Adamopoulos
e012f1bf3b [shell32]
- Remove CS_HREDRAW and CS_VREDRAW stlye from the defview class. Reduces flicker

svn path=/trunk/; revision=53984
2011-10-04 11:11:18 +00:00
Timo Kreuzer
adb380a421 [FREELDR]
Implement directory buffer caching for FAT

svn path=/trunk/; revision=53983
2011-10-03 23:35:27 +00:00
Timo Kreuzer
9893e19698 [FREELDR]
Fix a bug, when the memory for a file cluster chain record was freed from the heap although it was still in use. Instead free the buffer when the file is closed.

svn path=/trunk/; revision=53982
2011-10-03 22:59:33 +00:00
Timo Kreuzer
7b513395cc [FREELDR]
- Fix bugs in the new heap code and improve it a bit

svn path=/trunk/; revision=53981
2011-10-03 22:37:42 +00:00
Dmitry Gorbachev
41999a48d5 [WINLOGON]
Do not call HandleShutdown() with NULL Session.

svn path=/trunk/; revision=53980
2011-10-03 22:33:14 +00:00
Dmitry Gorbachev
fd0fe37dd9 [INTRIN]
Use "unsigned int" for x86 __writecr*(), as it is (reportedly) used in VS10 headers.

svn path=/trunk/; revision=53979
2011-10-03 20:57:43 +00:00
Dmitry Gorbachev
05579fb1cd [NTOSKRNL]
- Do not access an object after destruction.
- Remove the remaining mentions of a function which Sir Richard defeated a year ago.

svn path=/trunk/; revision=53978
2011-10-03 20:57:38 +00:00
Pierre Schweitzer
a1a833ca63 [USER32]
Fix memory leak

svn path=/trunk/; revision=53977
2011-10-03 20:42:38 +00:00
Amine Khaldi
523f2c90d7 [USER32_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53976
2011-10-03 19:49:16 +00:00
Amine Khaldi
4aec35aa7b [NTDLL_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53975
2011-10-03 19:29:29 +00:00
Amine Khaldi
421109a7e3 [PSDK]
* Missed this one.

svn path=/trunk/; revision=53974
2011-10-03 19:27:59 +00:00
Thomas Faber
be1d64b828 [CMAKE] - Fix build
svn path=/trunk/; revision=53973
2011-10-03 19:16:59 +00:00
Amine Khaldi
13b393f5d5 [PSDK]
* Add some missing definitions.

svn path=/trunk/; revision=53972
2011-10-03 19:11:33 +00:00
Thomas Faber
b4c79ff2b2 [CMAKE]
- Add a flag to distinguish Ansi and Unicode message tables. Keep them Ansi for now pending further testing
- Apply this to MSVC build as well. Fixes ntoskrnl messages incorrectly being Unicode

svn path=/trunk/; revision=53971
2011-10-03 19:09:26 +00:00
Dmitry Gorbachev
5b1e7ef93c Add Kazakh language to the registry. Patch by <seven_s*AT*mail*DOT*ru>. Bug #6277.
svn path=/trunk/; revision=53970
2011-10-03 18:19:45 +00:00
Daniel Reimer
ed4f6516e3 Bye rBuild. Here the new path to use this script with a cmake build.
svn path=/trunk/; revision=53969
2011-10-03 18:11:43 +00:00
Daniel Reimer
25a754bfdb A bunch of Italian Translation Updates by Yurij Vodkin.
Version Updates. (FireFox, Thunderbird, Bittorrent, SeaMonkey, SumatraPDF)

svn path=/trunk/; revision=53968
2011-10-03 18:05:49 +00:00
Timo Kreuzer
9aea518a3d [FREELDR]
- Clean up some headers
- Add DPRINT_HEAP debug channel mask
- Make ExAllocatePool a function instead of a macro
- Add a cleanup function to the new heap code

svn path=/trunk/; revision=53967
2011-10-03 18:03:18 +00:00
Amine Khaldi
9977836528 [KERNEL32_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53966
2011-10-03 17:58:01 +00:00
Eric Kohl
0126f84fb3 [SETUPAPI]
- Implement CM_Get_DevNode_Custom_Property[_Ex]A/W.
- Fix the return value of CM_Open_Class_Key_ExA.
- Handle REG_MULTI_SZ values properly in CM_Get_DevNode_Registry_Property_ExA.

svn path=/trunk/; revision=53965
2011-10-03 16:38:46 +00:00
Amine Khaldi
fe92ad9f84 [IPHLPAPI_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53964
2011-10-03 16:17:33 +00:00
Amine Khaldi
ffdcf82397 [BROWSEUI_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53963
2011-10-03 16:04:23 +00:00
Thomas Faber
29b651a1fe [MSAFD]
- Correctly handle an arbitrarily large sockaddr in WSPConnect. Fixes mIRC 7.1x crash on connect
See issue #6005 for more details.

svn path=/trunk/; revision=53962
2011-10-03 15:23:51 +00:00
Amine Khaldi
ae8fa62fc7 [ADVAPI32_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53961
2011-10-03 15:18:15 +00:00
Amine Khaldi
ab0304b942 [PSDK]
* Add some missing defines.

svn path=/trunk/; revision=53960
2011-10-03 15:17:57 +00:00
Amine Khaldi
1bcc18f7a7 [XDK/DDK/PSDK]
* Fix a compiler (clang) warning.

svn path=/trunk/; revision=53959
2011-10-03 15:17:27 +00:00
Amine Khaldi
8065202a81 [HEADERS/CRT]
* Work around an issue with clang and __debugbreak(). They mark __debugbreak as built-in (so we can't use ours) but it's not supported yet (so if we use nothing we get an error).

svn path=/trunk/; revision=53958
2011-10-03 15:11:33 +00:00
Thomas Faber
b1ed2b25fe [MSAFD]
- More consistent error handling in WSPConnect
- Fix a DPRINT

svn path=/trunk/; revision=53957
2011-10-03 15:01:48 +00:00
Timo Kreuzer
628fc940d3 [FREELDR]
Implement new heap code. The code is much less complex than bget and allows to use allocation tags and releasing unused memory. Its not yet active.

svn path=/trunk/; revision=53956
2011-10-03 14:46:38 +00:00
Thomas Faber
208800e02b [MSAFD/FORMATTING]
- Trim trailing whitespace

svn path=/trunk/; revision=53955
2011-10-03 14:40:39 +00:00
Amine Khaldi
5487d628cf [GDI32_WINETEST]
* Skip some parts of bitmap test to allow Testman to handle it.
See issue #6527 for more details.

svn path=/trunk/; revision=53954
2011-10-03 14:13:41 +00:00
Eric Kohl
8048d5e1d9 [UMPNPMGR]
Implement PNP_GetCustomDevProp().

svn path=/trunk/; revision=53953
2011-10-03 13:51:00 +00:00
Giannis Adamopoulos
5c5eae050f [main.cpl]
- Add the icons for the fonts and administrator tools in the same id and index with windows

svn path=/trunk/; revision=53952
2011-10-03 11:02:43 +00:00
Giannis Adamopoulos
31934befae [shell32]
- Add two dummy icons for id 26 and 27. Now trying to load the recycle bin icon by index works

svn path=/trunk/; revision=53951
2011-10-03 09:40:55 +00:00
Amine Khaldi
76fd17af43 [GDI32_WINETEST]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53950
2011-10-03 09:26:08 +00:00
Amine Khaldi
3d7d862d32 [PSDK]
* Add missing LAYOUT_LTR define.

svn path=/trunk/; revision=53949
2011-10-03 09:24:20 +00:00
Timo Kreuzer
3f410616c8 [FREELDR]
- more changes LoaderBlock -> BootDriverListHead/LoadOrderListHead
- make one more function static

svn path=/trunk/; revision=53948
2011-10-03 08:32:07 +00:00
Timo Kreuzer
a198408aeb [FREELDR]
- Pass the module list head to a number of pe loader functions instead of the loader block.
- use static for some functions
- remove unneeded prototypes

svn path=/trunk/; revision=53947
2011-10-03 08:14:00 +00:00
Giannis Adamopoulos
05b34b61ef [win32k]
- Fix RECTL_bPointInRect to work like PtInRect
- Use the fixed RECTL_bPointInRect in DIB_XXBPP_FloodFillSolid to fix a bugchek
See issue #6437 for more details.

svn path=/trunk/; revision=53946
2011-10-02 23:09:03 +00:00
Thomas Faber
282312fef2 [WINETESTS/CMAKE]
- Disable those unhelpful format string warnings
- Remove some unnecessary defines

svn path=/trunk/; revision=53945
2011-10-02 22:16:18 +00:00
Amine Khaldi
9513c1d1ea [BROWSEUI]
* Reduce the scope of a variable.
* Comment out some unused code.
* Initialize some member variables in the respective constructors.

svn path=/trunk/; revision=53944
2011-10-02 21:44:24 +00:00
Thomas Faber
e69656b340 [ADVAPI32_APITEST] - Test passing tag, but no group to CreateService
[KMTESTS/MM] - MmSection: Wait for write completion to prevent a random test failure

svn path=/trunk/; revision=53943
2011-10-02 21:42:33 +00:00
Timo Kreuzer
8b7dad6466 [NTSOKRNL]
- use RtlStringCbPrintfA instead of manually calculating required length and checking if the buffer is large enough
- Use %wZ as format specifier for a UNICODE_STRING, instead of using %S and making assumptions about zero termination.
- Don't "while (TRUE);" on buffer overflow!

svn path=/trunk/; revision=53942
2011-10-02 21:42:00 +00:00
Amine Khaldi
621aa88894 [RBUILD]
* Plug a leak.

svn path=/trunk/; revision=53941
2011-10-02 20:59:15 +00:00
Rafal Harabien
58bfd2a018 [FREELDR] - Improve debug messages
svn path=/trunk/; revision=53940
2011-10-02 20:09:07 +00:00
Timo Kreuzer
e3206dd17b [ASM]
Add data32 prefix for MSVC

svn path=/trunk/; revision=53939
2011-10-02 19:47:29 +00:00
Timo Kreuzer
e8469d97f6 [EXT2]
Fix remaining issues, bootsector compiles with GAS and ML. Sadly GAs sucks a bit and does neither allow to specify byte offsets, nor does it chose this itself to save space. As a result the code gets several bytes larger and I had to trim the messages even more.

svn path=/trunk/; revision=53938
2011-10-02 19:45:41 +00:00
Amine Khaldi
ec00096fc0 [WIN32K]
* Handle allocation failure.

svn path=/trunk/; revision=53937
2011-10-02 19:41:31 +00:00
Amine Khaldi
6697e8cd41 [SYSDM]
* Revert r53934, this is a false positive from cppcheck. Spotted by Pierre.

svn path=/trunk/; revision=53936
2011-10-02 19:27:07 +00:00
Amine Khaldi
5a9d7acea1 [SHELL32]
* Fix a memory leak.

svn path=/trunk/; revision=53935
2011-10-02 19:18:03 +00:00
Amine Khaldi
7e49366011 [SYSDM]
* Fix a memory leak.

svn path=/trunk/; revision=53934
2011-10-02 19:14:45 +00:00
Thomas Faber
741495c584 [NTOSKRNL] - Fix MSVC build
[INCLUDE/C++] - Fix some typos in (obviously never used) typeinfo header
[MSVCRTEX] - Use _DLL instead of _M_CEE_PURE

svn path=/trunk/; revision=53933
2011-10-02 19:08:11 +00:00
Pierre Schweitzer
95cce1bb8a [MSFS]
Fix memory leak

svn path=/trunk/; revision=53932
2011-10-02 19:02:35 +00:00
Thomas Faber
63a058da88 [CMAKE]
- Use the new macros for link flags and compile definitions some more. No semantic changes

svn path=/trunk/; revision=53931
2011-10-02 18:59:33 +00:00
Timo Kreuzer
80406e33cf [EXT2]
- Use HEX() macro
- remove BYTE modifiers
- [es:di] -> es:[di]
- equ -> =


svn path=/trunk/; revision=53930
2011-10-02 15:47:52 +00:00
Timo Kreuzer
41fe9c8d7e [EXT2]
Convert labels and strings to portable format


svn path=/trunk/; revision=53929
2011-10-02 15:38:21 +00:00
Timo Kreuzer
58e525b4b8 [EXT2]
Convert comments to preprocessor format

svn path=/trunk/; revision=53928
2011-10-02 15:33:39 +00:00
Giannis Adamopoulos
a4bc1ebf2b [explorer]
- Somehow our shell now expects the icon of My Computer to be the resource icon %SystemRoot%\Explorer.exe,0. Change the resource id of My computer icon to 0 to fix the wrong icon on the desktop

svn path=/trunk/; revision=53927
2011-10-02 13:49:11 +00:00
Pierre Schweitzer
d8f1973e87 [WIN32K]
Fix memory leak

svn path=/trunk/; revision=53926
2011-10-02 13:18:06 +00:00
Timo Kreuzer
81b6d1dc78 [EXT2]
Duplicate ext2.asm to ext2.S, no changes yet

svn path=/trunk/; revision=53925
2011-10-02 13:15:18 +00:00
Pierre Schweitzer
e950f52e39 [DESK]
Fix memory & resource leaks

svn path=/trunk/; revision=53924
2011-10-02 12:25:07 +00:00
Pierre Schweitzer
30b66be3ad [APPWIZ]
Fix memory leaks

svn path=/trunk/; revision=53923
2011-10-02 12:22:39 +00:00
Rafal Harabien
bbb7e15b76 [LIBPNG] - Update libpng to 1.55. Patch by Elton Chung <elton328 [at] gmail [dot] com>.
See issue #6524 for more details.

svn path=/trunk/; revision=53922
2011-10-02 11:55:40 +00:00
Pierre Schweitzer
936342e048 [EXPLORER-NEW]
Fix memory leak

svn path=/trunk/; revision=53921
2011-10-02 11:38:22 +00:00
Amine Khaldi
aa3e500d16 [ROSAPPS/SCREENSAVERS]
* Add a new Starfield screensaver. By Carlo Bramini (carlo DOT bramix AT libero DOT it).
* Adapted the build system files to get it to compile with current trunk.
See issue #6270 for more details.

svn path=/trunk/; revision=53920
2011-10-01 21:28:47 +00:00
Amine Khaldi
41cb7c488d [ADVAPI32]
* Sync CryptEnumProvidersW. Fixes some HKEY leaks.
See issue #6237 for more details.

svn path=/trunk/; revision=53919
2011-10-01 21:02:14 +00:00
Amine Khaldi
ac527f3889 [HEADERS/CRT]
* We don't need this guard anymore.

svn path=/trunk/; revision=53918
2011-10-01 20:23:05 +00:00
Amine Khaldi
a817cca680 [HEADERS/CRT]
* Properly check for clang.

svn path=/trunk/; revision=53917
2011-10-01 20:14:15 +00:00
Cameron Gutman
a128b2a0d5 [NTOSKRNL]
- Print a message if something goes wrong during the loading process

svn path=/trunk/; revision=53916
2011-10-01 17:54:42 +00:00
Timo Kreuzer
fee9838d50 [FREELDR]
Replace the fake export table with the real export table of freeldr, when loading ntbootdd.sys

svn path=/trunk/; revision=53915
2011-10-01 12:50:33 +00:00
Timo Kreuzer
6130e7f546 [FREELDR]
use a dll instead of an exe for the freeldr_pe and setupldr_pe targets and add a spec file to export scsiport stuff. This is the first step in cleaning up the scsiport import hack in freeldr

svn path=/trunk/; revision=53914
2011-10-01 12:14:45 +00:00
Cameron Gutman
21ee8eb586 [ACPI]
- Implement AcpiOsGetPhysicalAddress
- Make sure that AcpiOsGetThreadId returns a non-zero value

svn path=/trunk/; revision=53913
2011-10-01 07:19:57 +00:00
Cameron Gutman
90027438d1 [NTOSKRNL]
- Add more debugging during driver loading (not enabled by default)

svn path=/trunk/; revision=53912
2011-10-01 04:56:14 +00:00
Cameron Gutman
47c6809ec3 [I8042PRT]
- Enable all interrupts at the same time to avoid a condition where the controller stops responding to KBD_READ_MODE on some systems
- See bug #6271 for details

svn path=/trunk/; revision=53911
2011-09-30 23:01:45 +00:00
Dmitry Gorbachev
1ef964c116 [FREELDR]
Fill .bss with 0s at startup. Bug #6523.

svn path=/trunk/; revision=53910
2011-09-30 22:15:08 +00:00
Aleksey Bragin
921e734833 [NTOS/MM]
- Implement MiInitializePfnAndMakePteValid() which is basically MiInitializePfn() combined with making PTE valid and some other changes.
- Don't initialize PTE and pass valid PTE for initialization to MiInitializePfn() when allocating a page in special pool, this is wrong. Instead call a function designed to do this - MiInitializePfnAndMakePteValid(). It performs correct checks and PFN reference counting.

svn path=/trunk/; revision=53909
2011-09-30 21:45:25 +00:00
Timo Kreuzer
c596e299c6 [FREELDR]
Remove DTEs for ntbootdd.sys and freeldr.sys after they are not used any longer. freeldr one will even point to invalid stack data. It only works currently, because the LoadOrderListHead is reset later. More fixes are coming.

svn path=/trunk/; revision=53908
2011-09-30 21:13:49 +00:00
Dmitry Gorbachev
ce77677b0b [NTOSKRNL]
Use inline asm in KiIsNpxErrataPresent(). C code can be optimized in a wrong way.

svn path=/trunk/; revision=53907
2011-09-30 21:03:29 +00:00
Eric Kohl
107362cefc [SYSSETUP]
Update the spec file to Windows XP SP2.

svn path=/trunk/; revision=53906
2011-09-30 17:29:39 +00:00
Giannis Adamopoulos
dbab32c663 [user32_apitest]
- properly cleanup when tests are completed
- Add some more tests for SetActiveWindow that prove that bringing owner/owned windows to front is done by SetActiveWindow and not by SetWindowPos

svn path=/trunk/; revision=53905
2011-09-30 15:37:13 +00:00
Claudiu Mihail
e68d3ad8d1 [SHELL32]
- Fix build.

svn path=/trunk/; revision=53904
2011-09-30 09:44:51 +00:00
Claudiu Mihail
7ca12737e6 [SHELL32]
- Implement SHPropStgCreate, SHPropStgReadMultiple, SHPropStgWriteMultiple based on wine
- This should fix the shellole tests

svn path=/trunk/; revision=53903
2011-09-30 09:38:43 +00:00
Timo Kreuzer
6dac8f7b1c [NTOSKRNL]
- implement helper functions MiIsMemoryTypeFree and MiIsMemoryTypeInvisible
- use symbolic names instead of hex values
- Don't ASSERT on mising large page support, just warn
- add some more mm macros for amd64

svn path=/trunk/; revision=53902
2011-09-30 09:30:52 +00:00
Timo Kreuzer
b77311e07d [NTOSKRNL]
- Remove 2 amd64 hacks, remove unused variables, silence some DPRINTs

svn path=/trunk/; revision=53901
2011-09-30 07:39:48 +00:00
Timo Kreuzer
066d2b7b69 [NDK]
Fix 64 bit issues of SYSTEM_VERIFIER_INFORMATION and SYSTEM_POOLTAG. Reported by dmex.

svn path=/trunk/; revision=53900
2011-09-30 07:18:20 +00:00
Cameron Gutman
f08b1c0500 [ACPI]
- Report the device's lockable status in the device capabilities request
- Only report the device as disabled if it is both not enabled and not functional

svn path=/trunk/; revision=53899
2011-09-30 04:12:31 +00:00
Cameron Gutman
2fc7134802 [ACPI]
- Remove a couple of debugging changes that were never meant to see the light of day ;)

svn path=/trunk/; revision=53898
2011-09-30 01:17:33 +00:00
Thomas Faber
a20f6e3513 [SETUPAPI/FORMATTING]
- Try to fix some indentation nightmares. No code changes

svn path=/trunk/; revision=53897
2011-09-29 22:30:48 +00:00
Timo Kreuzer
761d041617 [FREELDR]
- Move some disk related stuff that is unrelated to the registry data into a new file, hwdisk.c
- Don't get the disk count from the size value of a structure that was previously calculated from the disk count, but instead save it in a global variable.
- Initialize certain data in a better place

svn path=/trunk/; revision=53896
2011-09-29 21:12:40 +00:00
Cameron Gutman
0b99db243f [ACPI]
- Update ACPICA from 20091214 to 20110922
- Rewrite a large portion of the OSL code
- Perform a full initialization of ACPI objects (don't skip devices and events)
- Please retest ACPI bugs after this commit

svn path=/trunk/; revision=53895
2011-09-29 20:57:14 +00:00
Cameron Gutman
c92dfc36c6 [ACPI]
- Silence debug spam
- Add comment about the width parameter (bits not bytes)

svn path=/trunk/; revision=53894
2011-09-29 18:49:10 +00:00
Amine Khaldi
e1893d56b9 [SHELL32]
* Properly stub SHPropStgCreate, SHPropStgReadMultiple and SHPropStgWriteMultiple. By Claudiu Mihail.
* Shell32 shellole winetest doesn't crash anymore.

svn path=/trunk/; revision=53893
2011-09-29 16:55:52 +00:00
Cameron Gutman
55cd785094 [ACPI]
- Add a hack to skip calling methods of the HPET object because it causes a hardlock on VMWare
- Attempt #2 at fixing VMware

svn path=/trunk/; revision=53892
2011-09-29 16:03:49 +00:00
Dmitry Gorbachev
214364804d [FREELDR]
- Silence an error about unsupported PnP BIOS function.
- Do not share edge-triggered interrupts (not implemented). Bug #6508.

svn path=/trunk/; revision=53891
2011-09-29 13:20:24 +00:00
Giannis Adamopoulos
46e910dd88 fix some relocations
svn path=/trunk/; revision=53890
2011-09-29 12:04:13 +00:00
Giannis Adamopoulos
47ead17905 [kernel32]
- Do not force the hard error dialog to appear. As a result, calling SetErrorMode now really prevents the hard error dialog from appearing. 

svn path=/trunk/; revision=53889
2011-09-29 10:07:15 +00:00
Thomas Faber
05616211a0 [NTOSKRNL]
- Fix handling of hard error string parameters from kernel mode
- Some simplification

svn path=/trunk/; revision=53888
2011-09-29 06:48:19 +00:00
Timo Kreuzer
2779f4ccdd [CRT]
implement floor and floorf for amd64 with sse2 instructions

svn path=/trunk/; revision=53887
2011-09-28 21:32:37 +00:00
Thomas Faber
6d1eecf3d9 [SERVICES]
- Minor fixes to ScmAssignNewTag
- Correctly handle an invalid parameter case in RCreateServiceW. Fixes second stage boot under certain circumstances.

svn path=/trunk/; revision=53886
2011-09-28 18:43:35 +00:00
Timo Kreuzer
5c4044777c [FREELDR]
- Remove pointless NTKRNLAPI
- remove unneeded include
- delete deprecated file amd64/loader.c
- add an #ifef __REACTOS__ around public header includes to make it possible to use an alternative header set from ntsup.h

svn path=/trunk/; revision=53885
2011-09-28 18:33:25 +00:00
Cameron Gutman
b4d8554d47 [ACPI]
- Check for PCI device presence before doing the actual HAL operation
- Attempt #1 at fixing ACPI on VMware

svn path=/trunk/; revision=53884
2011-09-28 14:16:07 +00:00
Giannis Adamopoulos
b1e2faf090 [user32]
- Fix a couple of misleading tests

svn path=/trunk/; revision=53883
2011-09-28 12:40:43 +00:00
Amine Khaldi
03c55fa911 [CMAKE]
* Don't detect the ASM compiler ID, we set it instead.

svn path=/trunk/; revision=53882
2011-09-28 11:13:53 +00:00
Timo Kreuzer
17d1b0cdea [FREELDR]
Cleanup headers

svn path=/trunk/; revision=53881
2011-09-28 09:54:05 +00:00
Cameron Gutman
885910a88e [ACPI]
- The width parameter in AcpiOsReadPciConfiguration and AcpiOsWritePciConfiguration was in bits but we were treating it as a width in bytes
- This caused overreads, memory corruption, and crashes when these functions were called (VMWare was particularly picky about bad accesses to the PCI configuration space)
- A hack was (unknowingly) added which prevented some crashes but had a side-effect of causing the partial disruption of ACPI's PCI configuration space accesses while the others that went through wrote bad data to the PCI config space or corrupted kernel memory

svn path=/trunk/; revision=53880
2011-09-28 04:05:34 +00:00
Timo Kreuzer
b60019815f [FREELDR]
Try to fix boot with rbuild

svn path=/trunk/; revision=53879
2011-09-27 23:58:47 +00:00
Timo Kreuzer
0972356c55 [FREELDR]
- Modify some memory types to match what windows uses
- Modify PcMemGetBiosMemoryMap, so that is crops free memory to page alignment, while extending non-free memory to page alignment. This way we don't loose small firmware descriptors like the one for the extended bios data area enumerated by the bios. Fixes a warning from win 2003 about not owned memory.
- Modify MempAddMemoryBlock to map LoaderFirmwarePermanent into kernel space like ntldr, but don't map page 0! ntldr doesn't do that either. Also map LoaderXIPRom.
- After generating memory descriptors from the page lookup table, add any descriptor from the bios memory table, that is higher than MmHigestPhysical address, so we don't loose high rom descriptors. Do not map beyond LoaderPagesSpanned.

svn path=/trunk/; revision=53878
2011-09-27 22:43:52 +00:00
Amine Khaldi
bed4f24279 [CMAKE]
* Prefix with ccache only when compiling c/c++ objects.
* Show a note when ccache build is enabled.

svn path=/trunk/; revision=53877
2011-09-27 21:21:59 +00:00
Timo Kreuzer
bf557a26c1 [FREELDR]
- copy ebp into REGS structure on Int386
- Write pointer and size of extended bios data area in physical page 0 location 0x740 and pointers to vga rom fonts in location 0x700. This is required by windows 2003's videoprt. Now freeldr is more Windows 2003 ready then ever!

svn path=/trunk/; revision=53876
2011-09-27 20:25:51 +00:00
Timo Kreuzer
5bfa5255bf [FREELDR]
Add ebp to the bios register set.

svn path=/trunk/; revision=53875
2011-09-27 19:29:52 +00:00
Thomas Faber
23b2b84ce7 [SHELL32_WINETEST]
- Fix MSVC build. This is a (partial) Winesync

svn path=/trunk/; revision=53874
2011-09-27 19:07:21 +00:00
Eric Kohl
b8329db06a [APITESTS]
Add service tag tests.

Patch by Thomas Faber.

svn path=/trunk/; revision=53873
2011-09-27 13:06:33 +00:00
Eric Kohl
03bd308646 [SERVICES]
Assign a new Tag to new or changed services.

Patch by Thomas Faber!
See issue #6147 for more details.

svn path=/trunk/; revision=53872
2011-09-27 12:42:42 +00:00
Giannis Adamopoulos
d3cccfe25f [shell32]
- Fix auto complete init method based on Wine. Autocomplete shell tests should no longer crash now.
- Brought to you by Claudiu Mihail.

svn path=/trunk/; revision=53871
2011-09-27 11:58:19 +00:00
Amine Khaldi
1b664f1b5f [NTOSKRNL]
* Fix CMake build...

svn path=/trunk/; revision=53870
2011-09-26 23:31:30 +00:00
Amine Khaldi
81eb1cb2fc [SHELL32]
* Implement CDefView::SetCurrentViewMode based on Wine, along with some other bugfixes. Shell32 shlview winetest doesn't crash anymore as a result.
* Brought to you by Claudiu Mihail.

svn path=/trunk/; revision=53869
2011-09-26 23:10:38 +00:00
Aleksey Bragin
3d1b20c1dc [NTOS]
- Introduce two MM_EMPTY_LIST definitions - one for PTE as a whole and one for MMPTE_LIST NextEntry field only and move them to the actual architecture specific headers.
- Implement special pool. This is a special (Capt. Obvious!) kernel pool which is used to catch overruns or underruns, freed memory access and perform additional validation for paged/nonpaged allocations access.

svn path=/trunk/; revision=53868
2011-09-26 21:57:40 +00:00
Amine Khaldi
d8d714608b [SHELL32]
* Implement more functions based on Wine. By Claudiu Mihail.

svn path=/trunk/; revision=53867
2011-09-26 19:55:35 +00:00
Giannis Adamopoulos
58a5ac1564 [comctl32]
- Do not subclass user32 controls when themes are disabled.This is a temporary hack bacause it turns out that subclassing causes problems. When it is fixed this will be reverted. This change means that in order to make themes work properly, the user has to reboot after enabling.

svn path=/trunk/; revision=53866
2011-09-26 19:36:01 +00:00
Timo Kreuzer
78da5b4e0a [INSTALLFREELDR]
Add to cmake build (built on demand)

svn path=/trunk/; revision=53865
2011-09-26 19:04:02 +00:00
Timo Kreuzer
b2a2d9d793 [FREELDR]
- Fix memory type for hal and referenced dlls
- Don't allocate the LPB, MADs and all the other stuff from the heap, instead allocate one block of memory for the LPB, extension, etc and strings (fits into one page) and another page for the MADs limit to 200 MADs, 1024 is way over the top)
- Map only those pages into kernel mode, that the kernel will need, this way we don't need to unmap anything later.

svn path=/trunk/; revision=53864
2011-09-26 16:06:19 +00:00
Amine Khaldi
6f431e5648 [SHELL32]
* Implemented CDefView::GetSpacing based on Wine. By Claudiu Mihail.

svn path=/trunk/; revision=53863
2011-09-26 15:43:19 +00:00
Dmitry Gorbachev
b592d6cd16 [NTOSKRNL]
- Do not reference/dereference device node, but device object.
- Fix compiler warning.

svn path=/trunk/; revision=53862
2011-09-26 15:35:24 +00:00
Timo Kreuzer
a7a2617223 [HAL]
- Fix a typo in HalpAllocPhysicalMemory, that caused the function to remove MADs that still had pages rather than removing those who are empty. Fixes an assertion on VMWare.
Kudos go to Kamil for tracking it down.
- Fix another bug in HalpAllocPhysicalMemory, where the size of the newly allocated MAD was set to the alignment value instead of the original MAD, this lead to conflicting MADs and possible reuse of hal memory by the kernel. This seems to fix a bugcheck 0x19 with halacpi.

svn path=/trunk/; revision=53861
2011-09-26 15:01:11 +00:00
Eric Kohl
2eb01ed674 [DISKPART]
Install diskpart.

svn path=/trunk/; revision=53860
2011-09-26 09:21:11 +00:00
Pierre Schweitzer
f5465755dc [NTOSKRNL]
Fix FsRtlIs*InExpression() by (finally) implementing backtracking.
No regressions noticed regarding kmtest.
Also commented code.

svn path=/trunk/; revision=53859
2011-09-26 05:58:13 +00:00
Pierre Schweitzer
d858435e44 [KMTEST]
Add more tests for FsRtlIs*InExpression()
Those are currently failing on ReactOS

svn path=/trunk/; revision=53858
2011-09-26 05:51:39 +00:00
Timo Kreuzer
aac37d162e [FREELDR]
- Get rid of MmAllocateMemory, freeing about 1MB of low physical memory for the kernel
- verify that MmMarkPagesInLookupTable is not called with invalid page regions
- add maximum allocation to heap statistics

<long explanation>
There was a function called MmAllocateMemory, what was commented as "// Temporary forwarder..." since January 2008. This function allocated one page of memory and marked it as LoaderOsLoaderHeap. This function was used by the fat filesystem code (and linuxboot.c) which allocated and freed memory in small chunks all the time. Since MmFreeMemory() is not implemented at all (obviously someone removed it) we were allocating one full page for allocations as small as 8 bytes and never free them. This accumulated to a total of 240 pages, almost 1MB, split into into 14 chunks. This memory was never freed by the kernel (the kernel keeps the loader heap memory for some reason) and fragmented the low memory region.
Remove MmAllocateMemory completely and replace references in the fat code with MmHeapAlloc. The maximum heap usage after this was 184 KB, heap size is 4MB. 
</long explanation>

svn path=/trunk/; revision=53857
2011-09-25 19:19:50 +00:00
Amine Khaldi
b1da30c092 [ACTPRXY]
* Enclose midl-incompatible declarations as widl-only. Fixes actxprxy MSVC build.

svn path=/trunk/; revision=53856
2011-09-25 16:28:58 +00:00
Giannis Adamopoulos
dc6c2f8e88 [user32_apitest]
- In TrackMouseEvent tests, use mouse_event function to move the mouse cause this causes low level hooks to be called and SetCursorPos doesn't
- Test low level mouse hooks for TrackMouseEvent
- Test ways to block WM_MOUSEHOVER and WM_MOUSELEAVE. This is useful to detect where each message is generated
- clean up the code a bit by adding FLUSH_MESSAGES macro that checks for expected message queue status and flushes the message queue

svn path=/trunk/; revision=53855
2011-09-25 16:05:09 +00:00
Dmitry Gorbachev
c334575fcd [Explorer]
Link with libmingw32.

svn path=/trunk/; revision=53854
2011-09-25 16:02:29 +00:00
Dmitry Gorbachev
5be9321dae [NTOSKRNL]
Disable mouse when reading from keyboard port.

svn path=/trunk/; revision=53853
2011-09-25 16:02:14 +00:00
Dmitry Gorbachev
e66ae73d2b [PSDK]
Remove duplicate lines, noticed by sharpsighted forum people.

svn path=/trunk/; revision=53852
2011-09-25 16:01:44 +00:00
Rafal Harabien
3b040dbb1e [SYSDM] - Improve polish translation of virtual memory dialog
svn path=/trunk/; revision=53851
2011-09-25 12:15:01 +00:00
Eric Kohl
fc001348ab [SERVICES]
- Silence debug messages.
- Fix typos.
- Add missing database locks.
- RControlService: Return ERROR_INVALID_PARAMETER on illegal control code.

svn path=/trunk/; revision=53850
2011-09-25 12:07:52 +00:00
Rafal Harabien
c8e41d9f48 [SYSDM]
- Don't give UINT to printf if %I64u is used
- Minor improvements
See issue #6501 for more details.

svn path=/trunk/; revision=53849
2011-09-25 11:29:45 +00:00
Rafal Harabien
c3d6d99666 [FREELDR]
- Improve tracing
- Fix memory corruption caused by marking pages outside of page lookup table (when table is allocated only free pages was counted but MmMarkPagesInLookupTable was used for all types of memory like firmware). Fixes bugcheck in ACPI HAL which happened for me

svn path=/trunk/; revision=53848
2011-09-25 11:07:27 +00:00
Timo Kreuzer
fcb42db05d [NTOSKRNL]
- also disable "MTRR support detected but not yet taken advantage of"

svn path=/trunk/; revision=53847
2011-09-25 09:16:10 +00:00
Timo Kreuzer
6caabd812a [NTOSKRNL]
- Undo disabling of systemcalls, which was disabled in r53646 for testing purpose.
- Sillence "Support for SYSENTER detected." debug print, since its the normal case, only keep the disabled and not present cases.
- Silence "xxx support detected but not yet taken advantage of" debug prints. CPU features are already reported and there is no point in printing every single feature we do not support.
- Invert if/else in KiRestoreFastSyscallReturnState

svn path=/trunk/; revision=53846
2011-09-25 09:12:26 +00:00
Rafal Harabien
b0aeafc91e - Commit forgotten file...
svn path=/trunk/; revision=53845
2011-09-24 20:01:04 +00:00
Rafal Harabien
cdbf35509d [MKHIVE] - Get all INF files from command line instead of using hardcoded names
[CMAKE] - Use new mkhive syntax and fix livecd hives dependences
[RBUILD] - Use new mkhive syntax

svn path=/trunk/; revision=53844
2011-09-24 19:59:56 +00:00
Dmitry Gorbachev
951066d094 [BUGCODES]
Bug check code 0x5d is UNSUPPORTED_PROCESSOR.

[NTOSKRNL]
Use it.

svn path=/trunk/; revision=53843
2011-09-24 18:13:57 +00:00
Aleksey Bragin
6bed73a4e1 [BUGCODES]
- Add SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION definition.

svn path=/trunk/; revision=53842
2011-09-24 17:33:54 +00:00
Dmitry Gorbachev
7253e6bc9d [FREELDR]
Add FREELDR_MEMORY_DESCRIPTOR structure using TYPE_OF_MEMORY instead of 
MEMORY_TYPE. Use it in place of MEMORY_DESCRIPTOR. Undo r53837 changes.

svn path=/trunk/; revision=53841
2011-09-24 17:25:29 +00:00
Amine Khaldi
4ab9552831 [FREELDR/SETUPLDR]
* Add _dbg versions of freeldr_pe and setupldr_pe per Dmitry's request. They retain debug info, and they're compiled on-demand (not included in the normal build).

svn path=/trunk/; revision=53840
2011-09-24 16:08:37 +00:00
Eric Kohl
388f99e67e [SMSS]
Fix wrong behavior of the "native applications startup at boot time" feature in SMSS.

Modifications:
- Added missing buffer allocation checks.
- Check for presence of default path.
- Minor clean-ups.
- Fix bad indentation/coding style.

Original patch by Hermès BÉLUSCA.
See issue #6180 for more details.

svn path=/trunk/; revision=53839
2011-09-24 15:12:52 +00:00
Timo Kreuzer
adaa2b8e63 [NTOSKRNL]
- Cleanup amd64 mm.h header
- Call MiScanMemoryDescriptors earlier, since it doesn't depend on anything except the loader block.
- MiComputeColorInformation() and the calculation of the pfn database size are portable, so move them out of MiInitMachineDependent

svn path=/trunk/; revision=53838
2011-09-24 14:22:13 +00:00
Dmitry Gorbachev
62b3a707c7 [FREELDR]
Compare with constants of right type.

svn path=/trunk/; revision=53837
2011-09-24 13:39:14 +00:00
Dmitry Gorbachev
8a0fec1a86 [User32]
Check return value of DIB_GetBitmapInfo.

svn path=/trunk/; revision=53836
2011-09-24 13:37:24 +00:00
Giannis Adamopoulos
0c34695bab [user32_apitest]
- Add one more small test for WM_SYSTIMER

svn path=/trunk/; revision=53835
2011-09-24 12:22:21 +00:00
Kamil Hornicek
1db290c144 another try to fix cmake build
svn path=/trunk/; revision=53834
2011-09-24 12:16:04 +00:00
Cameron Gutman
815184cde3 [ACPI]
- Reduce debug spam
- Report critical initialization failure

svn path=/trunk/; revision=53833
2011-09-24 12:05:43 +00:00
Giannis Adamopoulos
aa39ad7260 [user32_apitest.exe]
- Fix gcc build

svn path=/trunk/; revision=53832
2011-09-24 12:05:14 +00:00
Cameron Gutman
c21792df52 [HAL]
- Report table lookup failures
- Report supported ACPI version

svn path=/trunk/; revision=53831
2011-09-24 12:01:48 +00:00
Giannis Adamopoulos
31eb9d7849 [user32_apitest]
- Implement logging post messages or winevents
- For SetActiveWindow test, also test the parameters of WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED messages
- For TrackMouseEvent test, also test the WM_SYSTIMER that is possible to be logged now

svn path=/trunk/; revision=53830
2011-09-24 11:55:19 +00:00
Giannis Adamopoulos
0048dee2cc [undocuser.h]
- Add a definition for TrackMouseEvent timer

svn path=/trunk/; revision=53829
2011-09-24 11:51:45 +00:00
Kamil Hornicek
5583797759 fix the cmake build?
svn path=/trunk/; revision=53828
2011-09-24 11:47:17 +00:00
Timo Kreuzer
d076d5b976 [NTOSKRNL/AMD64]
Cleanup amd64 specific code

svn path=/trunk/; revision=53827
2011-09-24 11:46:20 +00:00
Eric Kohl
f7125a502c Add the Diskpart utility by Lee Schroeder (milawynsrealm).
The following modifications were made:
- Removed the help texts because they were copied from Windows Diskpart.
- Used a single string resource per help text.
- Used only Unicode strings and Unicode string functions.
- Replaced the giant if-statement in the command dispatcher in interpreter.c by a command-table and a little loop.
- Improved the command-line parser. Argument count and argument vector are passed to the command and help functions for easy evaluation.
- Moved the help function for commands into the command specific file.

TODO:
- Implement all commands as the utility is only an empty frame.
- Add help texts.
- Translate help texts.
See issue #6402 for more details.

svn path=/trunk/; revision=53826
2011-09-24 10:33:33 +00:00
Timo Kreuzer
0ce2f14276 [NTOSKRNL]
- Session space address layout is architecture specific, move its initialization into MiInitializeSesseionSpaceLayout() in architecture specific file
- Use dedicated constants for setting MmSystemRangeStart, MmUserProbeAddress and MmHighestUserAddress isnetad of making assumptions.

svn path=/trunk/; revision=53825
2011-09-24 08:52:26 +00:00
Rafal Harabien
bf4b896e65 [WPP]
- Sync to Wine 1.3.29 to fix a warning

svn path=/trunk/; revision=53824
2011-09-24 07:58:49 +00:00
Pierre Schweitzer
acee43d271 [KERNEL32]
Simplify overcomplicated function CreateHardlinkW(), and SEHify it.

svn path=/trunk/; revision=53823
2011-09-24 07:51:21 +00:00
Timo Kreuzer
2c440bd22d [NTOSKRNL]
Add MiScanMemoryDescriptors, that combines the work of MiPagesInLoaderBlock, the loop in MmInitializeMemoryLimits and the loop in MiInitMachineDependent.

svn path=/trunk/; revision=53822
2011-09-24 00:12:58 +00:00
Amine Khaldi
b1df00f897 [SHELL32_WINETEST]
* Sync to Wine 1.3.29.

svn path=/trunk/; revision=53821
2011-09-23 23:14:50 +00:00
Amine Khaldi
3ed568c40d [PSDK]
* Bring-in some idl changes from Wine. These changes (and the related changes below) are to allow us to sync shell32 tests to Wine 1.3.29.
[UUID]
* CLSID_TaskbarList is no longer needed in here.
[ACTXPRXY]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53820
2011-09-23 23:12:53 +00:00
Timo Kreuzer
7ab32f0f5c [NTOSKRNL]
Converting MmLargeStackSize from registry setting to byte value is portable code, move it out of MiInitMachineDependent

svn path=/trunk/; revision=53819
2011-09-23 22:24:11 +00:00
Timo Kreuzer
551ca94879 [FREELDR]
- Use TYPE_OF_MEMORY from the beginning instead of MEMORY_TYPE and later converting it.
- Disable tracing, accidentally comitted in previous revision

svn path=/trunk/; revision=53818
2011-09-23 20:09:54 +00:00
Eric Kohl
2fd4c9a560 [LSASRV]
Initialize required policy attributes when the LSA database is created. This fixes the hanging lsa winetest.

svn path=/trunk/; revision=53817
2011-09-23 18:24:33 +00:00
Timo Kreuzer
5f22a73516 [FREELDR]
Fix some bugs in the code that deals with memory descriptors:
ArcGetMemoryDescriptor was enumerating the bios generated entries first and then the static entries. The latter were conflicting with the former and took precedence when initializing the page lookup table. The problem was, that MmFindLocationForPageLookupTable would use the highest range of pages available. If that range would be conflicting with a following static descriptor, the static would have been ignored. It only worked because on x86 the highest bios descriptor has enough free pages, before it conflicts with a static entry (page 0xfff, marked as unusable), so that the page lookup table could be created.

MmGetAddressablePageCountIncludingHoles enumerated all memory descriptors to find MmLowestPhysicalPage, but it was only counting FreeMemory, thus skipping all other memory ranges. This only worked, due to the previous bug, so that the bios pages shown first took precedence over the following static descriptors. Without the former bug MmLowestPhysicalPage would be 0x100 which would tigger in the next bug:
MmAreMemoryPagesAvailable took the passed address range and looked up all pages in the lookup table to see whether all are free. Now the function didn't check, whether the passed address was below MmLowestPhysicalPage and in case it was, happily accessed the memory below the lookup table. This would result in hal being loaded at 0x40000 overwriting the loader itself.

This is all fixe by implementing a new way of creating the memory map. First there is a static memory map, which has enough free entries to add dynamic ranges. Then AddMemoryDescriptor will allow you to add a new range,
while the already existing ranges will take precedence and the new ranges will be properly split and inserted, so that the resulting map does not contain any overlapping regions and is sorted from low to high pages. The static memory descriptor exists in the architecture specific file.
The code that enumerates the bios information now uses this function to add the ranges on top of the static descriptor.
More cleanup work to follow.

svn path=/trunk/; revision=53816
2011-09-23 17:35:45 +00:00
Giannis Adamopoulos
184aeeeeef [user32_apitest]
- add back showing the index of the message when comparing massage logs

svn path=/trunk/; revision=53815
2011-09-23 16:04:17 +00:00
Giannis Adamopoulos
b540c10e9f [user32_apitest]
- Fix build with gcc

svn path=/trunk/; revision=53814
2011-09-23 14:19:40 +00:00
Giannis Adamopoulos
d55b76ab43 [user32_apitest]
- Simplify compare_cache and make it show more meaningful results

svn path=/trunk/; revision=53813
2011-09-23 14:09:30 +00:00
Giannis Adamopoulos
a947b9c6fc [user32_apitest.rbuild]
- Move shared code used to log window messages in helper.c
- Implement logging hooks
- Fix comparing the logged messages to show the correct line of the test
- Add tests for hooks in TrackMouseEvent test

svn path=/trunk/; revision=53812
2011-09-23 12:05:40 +00:00
Giannis Adamopoulos
34f9dc947a [user32_apitest]
- Fix white spaces

svn path=/trunk/; revision=53811
2011-09-23 11:45:44 +00:00
Thomas Faber
886e0ff173 [KMTESTS/MM]
- Extend MmSection test to include passing different files and mapping a view

svn path=/trunk/; revision=53810
2011-09-23 11:43:02 +00:00
Thomas Faber
8c87bcbc24 [DDK/PSDK]
- Fix several typos. Patch by Elton Chung (elton328 at gmail dot com). Slight compatibility fix by me
- Add missing NTSYSAPI to some externs
- remove Se*DefaultDacl externs from ntifs, as they don't belong there, and are already correctly found in ndk/setypes.h

svn path=/trunk/; revision=53809
2011-09-23 11:24:15 +00:00
Eric Kohl
856d6b7e64 [LSASRV]
Implement the PolicyPrimaryDomainInformation and PolicyAccountDomainInformation cases of LsarQueryInformationPolicy.

svn path=/trunk/; revision=53808
2011-09-23 10:01:22 +00:00
Timo Kreuzer
2ca9a1a8e6 [LSASRV]
Change some stubs to real exports in the spec file, since the functions exist. Fixes MSVC build

svn path=/trunk/; revision=53807
2011-09-23 09:44:25 +00:00
Cameron Gutman
51a6c871a9 [HAL]
- Revert part of r53788 (MAXIMUM_IDTVECTOR is a valid vector number)
- The buffer overrun in the IDT code was already fixed by r53420

svn path=/trunk/; revision=53806
2011-09-22 21:23:09 +00:00
Olaf Siejka
25d3c6af4a [TRANSLATION]
- Multimodule translation and UTF-8 conversion to Portugese Brazilian. Patch by mkbu95. Minor fixes by me;
See issue #6467 for more details.

svn path=/trunk/; revision=53805
2011-09-22 19:06:29 +00:00
Kamil Hornicek
1108a804c8 Czech localization (base/applications): UTF-8 conversion cleanup, fixed typos, translated some more English strings.
svn path=/trunk/; revision=53804
2011-09-22 17:18:26 +00:00
Timo Kreuzer
b356275262 [FREELDR]
- Fix a bug, where the bios memory map could have a bogus entry: according to R.B.'s Interrupt list, in some bioses the function for enumerating the memory can return ebx != 0 for the last descriptor, and fail in the following call returning CF = 1. In that case we were previously counting that last descriptor as well, but its content wouldn't describe a valid memory region.
- Use a static buffer for the bios memory map, stored in the achitecture specific file and return a pointer to that variable from PcMemGetMemoryMap. Reuse the static map from DetectAcpiBios instead of enumerating again. On arm, we don't even need a buffer, we return the pointer from the arm block.

svn path=/trunk/; revision=53803
2011-09-22 16:38:54 +00:00
Aleksey Bragin
1cdfe06ad1 [NTDLL]
- Remove useless code. Spotted by Pierre.

svn path=/trunk/; revision=53802
2011-09-22 08:45:05 +00:00
Timo Kreuzer
53d96bda2f [FREELDR]
- Move heap code out of mm.c into a seperate file mm/heap.c
- Move code from arcemul/mm.c into mm/mminit.c

svn path=/trunk/; revision=53801
2011-09-22 07:52:51 +00:00
Dmitry Gorbachev
2625559397 [Desk|User32|UXTheme]
Silence GCC 4.6 "variable 'foo' set but not used [-Werror=unused-but-set-variable]" warnings/errors.

svn path=/trunk/; revision=53800
2011-09-22 06:09:11 +00:00
Dmitry Gorbachev
f412d3c1f7 [NTOSKRNL]
Do not fail with unknown CPUs. Bug #6493.

svn path=/trunk/; revision=53799
2011-09-22 06:08:35 +00:00
Dmitry Gorbachev
719a1ff1cf [FREELDR]
Put uninitialized/zero-initialized data into .bss. Fill it with 0s at startup.

svn path=/trunk/; revision=53798
2011-09-22 06:06:51 +00:00
Timo Kreuzer
7931e63ab8 [FREELDR]
Patch by Brian Palmer:
Fix problems that could occur, when the BIOS returns memory regions that are not page aligned, by fixing up the bios memory map before using it.

svn path=/trunk/; revision=53797
2011-09-21 23:02:24 +00:00
Timo Kreuzer
994898f151 [FREELDR]
Patch by Brian Palmer:
Properly handle a memory hole below 16MB, which some machines have.

svn path=/trunk/; revision=53796
2011-09-21 21:48:44 +00:00
Pierre Schweitzer
84727b099d [SYSSETUP]
Fix build

svn path=/trunk/; revision=53795
2011-09-21 21:17:15 +00:00
Eric Kohl
f0df809eb7 [SYSSETUP]
Set the account domain name.

svn path=/trunk/; revision=53794
2011-09-21 20:53:46 +00:00
Pierre Schweitzer
a694d0b795 [NTDLL]
Fix broken if condition

svn path=/trunk/; revision=53793
2011-09-21 19:37:15 +00:00
Pierre Schweitzer
b7f5be021d [EVENTLOG]
Fix broken if condition

svn path=/trunk/; revision=53792
2011-09-21 19:26:57 +00:00
Pierre Schweitzer
8ddfcc0ce0 [KERNEL32]
Fix buffer overrun

svn path=/trunk/; revision=53791
2011-09-21 17:13:28 +00:00
Jérôme Gardou
374497d4a6 [DHCPSVC]
- fix const usage

svn path=/trunk/; revision=53790
2011-09-21 17:11:00 +00:00
Pierre Schweitzer
ac92a8adf9 [HAL/x86]
Completely fix one of the overruns

svn path=/trunk/; revision=53789
2011-09-21 16:15:16 +00:00
Pierre Schweitzer
87d6daee6c [HAL/x86]
Fix buffer overruns

svn path=/trunk/; revision=53788
2011-09-21 16:10:32 +00:00
Giannis Adamopoulos
104f40f71f [user32_apitest]
- Add some tests for TrackMouseEvent

svn path=/trunk/; revision=53787
2011-09-21 12:30:22 +00:00
Pierre Schweitzer
ce3850ab01 [DHCPCSVC]
Fix passing a 860B struct by value

svn path=/trunk/; revision=53786
2011-09-21 11:26:55 +00:00
Thomas Faber
b41af56f6e [KMTESTS/MM]
- Add some tests for MmCreateSection involving file objects

svn path=/trunk/; revision=53785
2011-09-21 10:35:33 +00:00
Pierre Schweitzer
1f95a6dd13 [NTOSKRNL]
Fix FstubFixupEfiPartition()
Add helper macro SET_PARTITION_LENGTH()

svn path=/trunk/; revision=53784
2011-09-21 09:11:42 +00:00
Eric Kohl
2454366c35 [LSA]
- Implement the LSA object database.
- Implement the information classes PolicyPrimaryDomainInformation and PolicyAccountDomainInformation of LsarSetInformationPolicy().

svn path=/trunk/; revision=53783
2011-09-20 23:15:51 +00:00
Pierre Schweitzer
0194a753c7 [CRT]
Rewritten _tfullpath(). This:
- Fixes memory leak
- Fixes null pointer use
- Adds missing features
- Sets errno

svn path=/trunk/; revision=53782
2011-09-20 21:44:22 +00:00
Aleksey Bragin
e91d38160f [NTDLL/LDR]
- Properly wrap potentially unsafe buffer usage into SEH. Spotted by Pierre.

svn path=/trunk/; revision=53781
2011-09-20 21:04:33 +00:00
Olaf Siejka
79722a1549 [TRANSLATION]
- Massive Romanian translation patch by Stefan Fulea. See bugs 6468 and 6478;

svn path=/trunk/; revision=53780
2011-09-20 20:45:31 +00:00
Daniel Reimer
330581d7cf Sync the recent changes from the themes merge to all languages, sync all the settings from the english rc file to all other languages. Fix some sizes and lengths
svn path=/trunk/; revision=53779
2011-09-20 20:43:42 +00:00
Giannis Adamopoulos
4d19f25802 [win32k]
- Replace long file headers with short headers
- Minor cleanup

svn path=/trunk/; revision=53778
2011-09-20 19:41:33 +00:00
Giannis Adamopoulos
f2b28d3b31 [win32k]
- move function definitions from c files to headers

svn path=/trunk/; revision=53777
2011-09-20 18:04:14 +00:00
Timo Kreuzer
16bab3bc1c [RTL]
- Remove qsort, its already in crt.
- Fix a number of MSVC/64 bit issues

svn path=/trunk/; revision=53776
2011-09-20 17:33:51 +00:00
Giannis Adamopoulos
cca6723c9a [win32k]
- Remove a defined but not used definition of POINT_IN_RECT

svn path=/trunk/; revision=53775
2011-09-20 15:21:29 +00:00
Pierre Schweitzer
faff2536ea [SYSSETUP]
Fix broken logic in CreateShortcut() and add an explicit overall

svn path=/trunk/; revision=53774
2011-09-20 14:21:21 +00:00
Giannis Adamopoulos
02a5aea62f [uxtheme]
- Fix double includes

svn path=/trunk/; revision=53773
2011-09-20 13:55:35 +00:00
Pierre Schweitzer
e5eb85d5e3 [KERNEL32]
Fix wrong sizeof usage

svn path=/trunk/; revision=53772
2011-09-20 13:53:25 +00:00
Giannis Adamopoulos
1c88181b75 [uxtheme]
- Use precompiled headers

svn path=/trunk/; revision=53771
2011-09-20 13:08:36 +00:00
Pierre Schweitzer
06fd95c89b [OBJ2BIN]
- Fix memory leaks
- Fix resources leaks
- Fix wrong if statement

svn path=/trunk/; revision=53770
2011-09-20 12:29:47 +00:00
Pierre Schweitzer
daf0243ef5 [MKHIVE]
Fix memory leak

svn path=/trunk/; revision=53769
2011-09-20 12:28:23 +00:00
Pierre Schweitzer
8f1c78bb02 [LOG2LINES]
Fix memory leak

svn path=/trunk/; revision=53768
2011-09-20 12:27:50 +00:00
Pierre Schweitzer
0f93e9d566 [GENINC]
Fix resources leak

svn path=/trunk/; revision=53767
2011-09-20 12:24:57 +00:00
Pierre Schweitzer
36dd857303 [PEFIXUP]
Fix resources leak

svn path=/trunk/; revision=53766
2011-09-20 12:10:28 +00:00
Dmitry Gorbachev
6e9cef58d1 [FREELDR]
Fix loading with GRUB (CMake builds).

svn path=/trunk/; revision=53765
2011-09-20 08:50:38 +00:00
Timo Kreuzer
78f25bbeea [RTL]
- Fix a number of MSVC/64 bit warnings/problems
- Fix return type of RtlpInitializeHeapSegment (by Roel)

svn path=/trunk/; revision=53764
2011-09-19 19:31:21 +00:00
Pierre Schweitzer
54f8ab351c [RGENSTAT]
Fix memory leaks

svn path=/trunk/; revision=53763
2011-09-19 17:24:27 +00:00
Pierre Schweitzer
0d3839a28a [REGTESTS2XML]
Fix memory leaks

svn path=/trunk/; revision=53762
2011-09-19 17:24:01 +00:00
Roel Messiant
2e6e9dd622 [NTOSKRNL]
- Keep APC delivery disabled while holding a Heap Lock, not just while acquiring/releasing it (Dedicated to Timo and Ged).
- Store the Heap Lock in non-paged pool, the only place where executive resources belong (Dedicated to patient people).
[RTL]
- Restructure/simplify/correct Heap and Heap Segment initialization (partially to cope with the changed Heap Lock interface).
- Restrict the location of Heap Segment headers to the base address of the Heap Segment (which frees up a whopping 60 bytes per Heap!).
- Cater for acquiring the Heap Lock exclusively or shared (the latter is only available in kernel-mode); only exclusive locking is used for now.
- Use a plain critical section to guard the Process Heap list, no reason to disguise it as a Heap Lock (saves us a handful more bytes).


svn path=/trunk/; revision=53761
2011-09-19 16:52:37 +00:00
Timo Kreuzer
cf0a380afd [NTDLL]
Fix CsrProbeForRead and CsrProbeForWrite to actually access the memory, by using volatile. The compiler optimized the access away previously.

svn path=/trunk/; revision=53760
2011-09-19 16:24:18 +00:00
Dmitry Gorbachev
a60242cfe7 Fix more unused-but-set warnings.
svn path=/trunk/; revision=53759
2011-09-19 14:41:04 +00:00
Giannis Adamopoulos
5732c93800 add the themes service to boot cd
svn path=/trunk/; revision=53758
2011-09-19 14:05:44 +00:00
Giannis Adamopoulos
851efd63da [thmsvc]
- Attempt to fix cmake build

svn path=/trunk/; revision=53757
2011-09-19 13:45:22 +00:00
Giannis Adamopoulos
e11b55a338 [desk.cpl]
- try to fix cmake build

svn path=/trunk/; revision=53756
2011-09-19 13:39:05 +00:00
Giannis Adamopoulos
f4dc6b4ddc [thmsvc]
- Add the themes service from the themes branch

svn path=/trunk/; revision=53755
2011-09-19 13:31:39 +00:00
Giannis Adamopoulos
a46518c7b9 [uxundoc.h]
- Add a couple of definitions that I forgot to add

svn path=/trunk/; revision=53754
2011-09-19 13:29:10 +00:00
Giannis Adamopoulos
e11560bf1b [desk.cpl]
- revert unintended change

svn path=/trunk/; revision=53753
2011-09-19 13:24:48 +00:00
Giannis Adamopoulos
22cbaa54ac [desk.cpl]
- Merge from themes branch

svn path=/trunk/; revision=53752
2011-09-19 13:18:33 +00:00
Giannis Adamopoulos
7af68227cb [comctl32]
- Merge from the themes branch
- Partly sync themed button handling with wine

svn path=/trunk/; revision=53751
2011-09-19 13:11:35 +00:00
Giannis Adamopoulos
e3ee8d26e9 [uxtheme]
- Fix a warning

svn path=/trunk/; revision=53750
2011-09-19 13:07:03 +00:00
Giannis Adamopoulos
9bb964caeb [uxtheme]
- Try to fix build on linux

svn path=/trunk/; revision=53749
2011-09-19 12:58:24 +00:00
Giannis Adamopoulos
84ffa0b5f9 [uxtheme]
- Merge from the themes branch

svn path=/trunk/; revision=53748
2011-09-19 12:51:42 +00:00
Giannis Adamopoulos
2b6c22f611 [user32]
- Merge from the themes branch

svn path=/trunk/; revision=53747
2011-09-19 12:43:44 +00:00
Timo Kreuzer
080da6ec72 [RTL]
- Fix a number of MSVC/amd64 warnings/problems
- Remove code duplication in RtlCharToInteger and RtlUnicodeStringToInteger
- Fixup too large string length in RtlInitAnsiString, RtlInitUnicodeString
- Use symbolic constants instead of hardcoded values
- Fix overflow check in RtlInitUnicodeStringEx

svn path=/trunk/; revision=53746
2011-09-19 11:09:09 +00:00
Giannis Adamopoulos
06631cf0ea [win32k]
- Merge changes from the themes branch. These changes will introduce test regressions for class functions and for TrackMouseEvent. The changes in the class functions are needed in order to let comctl32 register its own versions of built in controls. This is a hack and will be removed when we properly support class versions. The second change that causes test regressions is in TrackMouseEvent and it is needed in order to fix WM_MOUSELEAVE messages that were completely broken and not tested at all by wine's test suite.

svn path=/trunk/; revision=53745
2011-09-19 08:32:38 +00:00
Pierre Schweitzer
b880e23623 [ROUTE]
Fix memory leaks

svn path=/trunk/; revision=53744
2011-09-19 07:55:26 +00:00
Pierre Schweitzer
a92159c8ff [HPP]
Fix memory leak

svn path=/trunk/; revision=53743
2011-09-19 07:30:02 +00:00
Pierre Schweitzer
a728acae67 [SPEC2DEF]
Fix resources leak

svn path=/trunk/; revision=53742
2011-09-19 07:29:36 +00:00
Pierre Schweitzer
0d50ae47fc [STUBGEN]
Fix resources leak

svn path=/trunk/; revision=53741
2011-09-19 07:28:51 +00:00
Eric Kohl
a638c81564 [NDK]
Add the missing RtlpNt-Registry functions and move RtlpNtOpenKey into the NTOS_MODE_USER section.

svn path=/trunk/; revision=53740
2011-09-18 23:59:06 +00:00
Timo Kreuzer
dcfe88feea [RTL]
Improve formatting, no code change

svn path=/trunk/; revision=53739
2011-09-18 22:15:37 +00:00
Timo Kreuzer
b1ea943eac [NTOSKRNL]
Fix an accidental change. Fixes boot.

svn path=/trunk/; revision=53738
2011-09-18 20:56:44 +00:00
Giannis Adamopoulos
384a6e4299 [wingdi.h]
- merge one last header change from the themes branch

svn path=/trunk/; revision=53737
2011-09-18 16:51:28 +00:00
Timo Kreuzer
ba2b3c872a [RTL]
Improve formatting, no code change

svn path=/trunk/; revision=53736
2011-09-18 15:10:05 +00:00
Giannis Adamopoulos
ba37ccaf01 [headers]
- Begin merging from themes branch

svn path=/trunk/; revision=53735
2011-09-18 13:12:44 +00:00
Timo Kreuzer
87779aa572 [HAL/NDK]
- Make Vector parameter in HalEnableSystemInterrupt, HalDisableSystemInterrupt and HalBeginSystemInterrupt an ULONG, not an UCHAR
[NDK]
- 64bit fixes for HANDLE_TABLE, KPROCESS, SECTION_IMAGE_INFORMATION, MMADDRESS_LIST, MMVAD_FLAGS, MMVAD, MMVAD_LONG, MMVAD_SHORT, MEMORY_DESCRIPTOR, MEMORY_ALLOCATION_DESCRIPTOR, LdrVerifyMappedImageMatchesChecksum
- KDPC_DATA::DpcQueueDepth is signed on amd64, unsigned on x86
[NTOSKRNL]
- Fix hundreds of MSVC and amd64 warnings
- add a pragma message to FstubFixupEfiPartition, since it looks broken
- Move portable Ke constants from <arch>/cpu.c to krnlinit.c
- Fixed a bug in amd64 KiGeneralProtectionFaultHandler

svn path=/trunk/; revision=53734
2011-09-18 13:11:45 +00:00
Timo Kreuzer
be62192d9e [NTOSKRNL]
- replace some AlignUp with ALIGN_UP_BY
- Fix several MSVC / amd64 warnings

svn path=/trunk/; revision=53733
2011-09-18 12:51:40 +00:00
Giannis Adamopoulos
922f076616 [win32k]
- Fix several issues detected by static code analysis

svn path=/trunk/; revision=53732
2011-09-18 12:33:38 +00:00
Pierre Schweitzer
81495a4e8f [CABMAN]
Leak less resources

svn path=/trunk/; revision=53731
2011-09-18 11:00:12 +00:00
Dmitry Gorbachev
fef1e2d451 [CMAKE]
Allow to specify prefix/suffix for GCC and Binutils.

svn path=/trunk/; revision=53730
2011-09-18 00:57:17 +00:00
Roel Messiant
1a7296bb39 [NTOSKRNL]
Disable normal APC delivery while acquiring/releasing a heap lock. Also, BOOLEAN != NTSTATUS.


svn path=/trunk/; revision=53729
2011-09-17 20:26:31 +00:00
Timo Kreuzer
2a158fc63b [NTOSKRNL]
Fix formatting, no code change

svn path=/trunk/; revision=53728
2011-09-17 20:01:55 +00:00
Daniel Reimer
0dfa657dea Update rapps Database
svn path=/trunk/; revision=53727
2011-09-17 13:58:45 +00:00
Eric Kohl
dd81be1f25 [RTL]
Fix the overly complicated and buggy implementation of RtlIsDosDeviceName_Ustr based on the simple pre-r52687 implementation of RtlIsDosDeviceName_U. This fixes 14(!) wine tests.

svn path=/trunk/; revision=53726
2011-09-17 00:55:02 +00:00
Eric Kohl
b2908d6d6f [RTL]
RtlGenerate8dot3Name: Ignore spaces in long file names instead of converting them to underscores.
See issue #6385 for more details.

svn path=/trunk/; revision=53725
2011-09-16 20:53:16 +00:00
Timo Kreuzer
826d8dedae [NTOSKRNL/AMD64]
- Implement KiApcInterrupt, KiDpcInterrupt and KiIpiInterrupt stubs
- Improve and cleanup stubs.c

svn path=/trunk/; revision=53724
2011-09-16 18:39:55 +00:00
Timo Kreuzer
6c8a335788 [NTOSKRNL/AMD64]
- Update the trap code to use the new macros and cleanup a little

svn path=/trunk/; revision=53723
2011-09-16 17:47:32 +00:00
Aleksey Bragin
b4b9d26324 [FASTFAT]
- Don't check for leading "." char in a filename, because it's valid in case of LFN. The driver is already quite broken, so it can't get more broken if this assert is commented out.
Fixes assertion in "kernel32_winetest module".

svn path=/trunk/; revision=53722
2011-09-16 13:42:04 +00:00
Jérôme Gardou
606aa872f2 [WIN32K]
- syscalls are stdcall

svn path=/trunk/; revision=53721
2011-09-16 13:18:40 +00:00
Timo Kreuzer
331009e07d [NTOSKRNL/AMD64]
- Fix KiGeneralProtectionFault
- Don't bugcheck in KiUnexpectedInterrupt
- Remove debugprint in KiEndInterrupt, and instead assert, its called from the clock interrupt, since thats the only instance we handle right now

svn path=/trunk/; revision=53720
2011-09-16 09:46:08 +00:00
Timo Kreuzer
4dfa3c52a3 [HAL/APIC/AMD64]
- add common amd64 asm trap macros
- fix amd64 version of HackEoi
- send EOI in amd64 trap exit code, so we avoid using HackEoi
- modify HalpClockInterruptHandler for better portability
- fix amd64 TscCalibrationISR

svn path=/trunk/; revision=53719
2011-09-16 09:39:41 +00:00
Jérôme Gardou
52d89c3b87 [SHELL32]
- it's right there, use quotes to include it

svn path=/trunk/; revision=53718
2011-09-15 21:46:59 +00:00
Jérôme Gardou
d8452f344b [REACTOS]
- wait patiently for rbuild going to Valhalla

svn path=/trunk/; revision=53717
2011-09-15 21:26:32 +00:00
Jérôme Gardou
757ab6e8d4 [REACTOS]
- get version.h and buildno.h out of precompiled headers, to avoid rebuilding the whole module each time we reconfigure the build

svn path=/trunk/; revision=53716
2011-09-15 21:03:39 +00:00
Jérôme Gardou
b434a6b048 [CMAKE]
- start documenting reactos specific stuff.
Feel free to complete it :-)

svn path=/trunk/; revision=53715
2011-09-15 20:14:34 +00:00
Timo Kreuzer
89b75ad8b7 [NTOSKRNL/AMD64]
- Add portable kernel initialization code for amd64 only.
- Modify amd64 init code accordingly

svn path=/trunk/; revision=53714
2011-09-15 19:32:13 +00:00
Timo Kreuzer
3e2fddbe19 [CRT]
- Implement MSVC versions of call_copy_ctor, call_dtor, continue_after_catch, __CxxFrameHandler
- Fix amd64 versions of _control87 and _statusfp
- Fix MSVC and amd64 warnings

svn path=/trunk/; revision=53713
2011-09-15 17:11:53 +00:00
Thomas Faber
2fca6b111a [KMTESTS]
- MmSection: properly clean up on failure
- Some more x64 build fixing

svn path=/trunk/; revision=53712
2011-09-15 16:49:22 +00:00
Timo Kreuzer
8f6cfb2651 [HAL/APIC]
- Fix some stuff that gcc complains about. It doesn't like to use static data in non-static inline functions for some unknown reason.
- Implement support for level triggered interrupts, when using lazy irql

svn path=/trunk/; revision=53711
2011-09-15 11:34:21 +00:00
Timo Kreuzer
b7e45abc51 [FREELDR]
- Improve List_PaToVa, making the code cleaner
- Dereference LoaderBlock->Extension only after WinLdrSetProcessorContext, since its in kernel address space

svn path=/trunk/; revision=53710
2011-09-15 11:27:27 +00:00
Timo Kreuzer
00502b9642 [FREELDR/HAL/NDK]
- Move some shared constants (HYPERSPACE_BASE, MM_HAL_VA_START, APIC_BASE) to NDK to avoid duplicating them, also fix wrong values for amd64
- Map the hal address space in amd64 freeldr
- Fix use of uninitialized variable (HighPart of PHYSICAL_ADDRESS) in HalpAcpiCopyBiosTable
- Fix some MSVC and amd64 warnings

svn path=/trunk/; revision=53709
2011-09-15 10:46:02 +00:00
Timo Kreuzer
679d1e828c [GDI32]
Improve GdiAllocBatchCommand formatting and fix MSVC warnings

svn path=/trunk/; revision=53708
2011-09-15 10:12:20 +00:00
Timo Kreuzer
19b8dfac16 [NTOSKRNL]
- Fix MSVC warning about signed/unsigned comparison.

svn path=/trunk/; revision=53707
2011-09-14 14:01:41 +00:00
Timo Kreuzer
16c957463f [SHELL32]
A DialogProc returns INT_PTR, not BOOL

svn path=/trunk/; revision=53706
2011-09-14 06:28:11 +00:00
Timo Kreuzer
57b01f1a06 [PSDK]
Use CHAR instead of char in STRRET structure (as documented in MSDN). Fixes compilation of shell32 with MSVC.

svn path=/trunk/; revision=53705
2011-09-13 21:20:46 +00:00
Timo Kreuzer
a6a01dd912 [HAL]
Fix amd64 build

svn path=/trunk/; revision=53704
2011-09-13 14:44:47 +00:00
Timo Kreuzer
ca9e3a9c67 [NTOSKRNL]
Fix a DPRINT

svn path=/trunk/; revision=53703
2011-09-13 13:28:49 +00:00
Amine Khaldi
3a93089ba7 [SHELL32]
* Merge r53700. Point 3 in bug 6481 was fixed by fixing the parser (at line 414) to use only ',' as the delimiter, to match Windows behavior.

svn path=/trunk/; revision=53702
2011-09-13 13:13:35 +00:00
Timo Kreuzer
744be47dde [NTOSKRNL]
Cleanup amd64/ke.h a bit, add KiUserTrap()

svn path=/trunk/; revision=53701
2011-09-13 13:12:38 +00:00
Timo Kreuzer
611d62ecb0 [NTOSKRNL]
Move x86 specific file trap_x.h into include/internal/i386

svn path=/trunk/; revision=53699
2011-09-13 12:53:50 +00:00
Eric Kohl
9c8386d2b6 [MSGINA]
- Call NotifyBootConfigStatus after a user has been logged-on successfully.
- Implement WlxIsLogoffOk.

svn path=/trunk/; revision=53698
2011-09-13 09:42:25 +00:00
Eric Kohl
5fe2e119f5 [MSPORTS]
Implement device removal.

svn path=/trunk/; revision=53697
2011-09-13 09:30:22 +00:00
Eric Kohl
3b374be2f7 [MSPORTS]
Implement ComDBResizeDatabase.

svn path=/trunk/; revision=53696
2011-09-12 14:24:24 +00:00
Timo Kreuzer
d28eae967a [HAL]
Implement lazy irql for APIC. This is useful for VMs, since APIC usually has high overhead due to the need of invoking the hypervisor on every irql raise and lower. With lazy irql we avoid that until absolutely neccessary. Note that we misuse the PCR's IRR field to save the current hardware irql. Its a huge performance boost (some parts take half the time), making APIC performance close to PIC performance on VBox. This is something that Windows doesn't have :)

svn path=/trunk/; revision=53695
2011-09-12 09:46:20 +00:00
Cameron Gutman
ff75ae1b72 [NTOSKRNL]
- Create a volatile device tree during 1st stage so the new HAL that's loaded in 2nd stage can do proper enumeration without phantom devices from the old HAL

svn path=/trunk/; revision=53694
2011-09-11 17:26:01 +00:00
Amine Khaldi
2817ba1e7e * Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53693
2011-09-11 16:56:56 +00:00
Cameron Gutman
15c8127658 [SCSIPORT]
- Remove a duplicate assignment

svn path=/trunk/; revision=53692
2011-09-11 15:40:01 +00:00
Amine Khaldi
6b9d48d482 * Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53691
2011-09-11 15:39:19 +00:00
Cameron Gutman
4076b77e1f [FREELOADER]
- Use a larger data type to iterate through the disk buffer to avoid an infinite loop with broken BIOSes

svn path=/trunk/; revision=53690
2011-09-11 15:32:15 +00:00
Cameron Gutman
5381c4af56 [WS2_32_NEW]
- Fix an error found by PVS Studio
[RAMDISK]
- Fix an error found by PVS Studio

svn path=/trunk/; revision=53689
2011-09-11 15:17:48 +00:00
Thomas Faber
758fe19cd0 [NTOSKRNL][RTL][DOC]
- Fix incorrect loop boundaries in the ARM version of MmCreateProcessAddressSpace. Spotted by Vincenzo Cotugno and cppcheck
- Correct outdated wineimport.cmd URL in README.WINE
- Assorted spelling and readability fixes

svn path=/trunk/; revision=53688
2011-09-11 11:47:28 +00:00
Thomas Faber
2b17fa159d [KMTESTS]
- Add support for guarded allocations, that can be used to detect buffer overruns
- Add GuardedMemory example test
- Add MmSection test with some basic parameter checks for MmCreateSection
- Fix some x64 build problems
- Update readme

svn path=/trunk/; revision=53687
2011-09-11 11:22:00 +00:00
Eric Kohl
0d4f432270 [SERVICES]
- Add optional asynchronous io code for service control pipes. This is disabled by default due to bugs in NPFS.
- Read service pipe timeout value from the registry.

svn path=/trunk/; revision=53686
2011-09-11 11:17:25 +00:00
Timo Kreuzer
1b9f1974ad [HAL]
- End the interrupt in HalpApcInterruptHandler and HalpDispatchInterruptHandler before calling the kernel, otherwise we would be stuck at high processor irql
- Improve HalEnableSystemInterrupt
- disable interrupts in HalpInitializeClock
=> APIC hal boots to desktop!

svn path=/trunk/; revision=53685
2011-09-11 09:34:50 +00:00
Timo Kreuzer
2aa7014184 [KDCOM]
Improve a debug print

svn path=/trunk/; revision=53684
2011-09-11 08:56:38 +00:00
Eric Kohl
36386adb24 [MUP]
Disable debug output.

svn path=/trunk/; revision=53683
2011-09-11 08:52:59 +00:00
Amine Khaldi
f904ba5cf9 * Missed some assignments in debug.c.
* Add a dummy allow_warnings() for msvc build.

svn path=/trunk/; revision=53682
2011-09-11 00:44:13 +00:00
Amine Khaldi
0864fd08d6 * Comment out some unused but set variables, remove some others.
svn path=/trunk/; revision=53681
2011-09-11 00:40:20 +00:00
Amine Khaldi
4e616754a5 * Fix some more unused but set variables.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53680
2011-09-10 23:54:02 +00:00
Timo Kreuzer
680bdcf253 [NTOSKRNL]
The handlers for unexpected interrupts that we generate from asm macros use a push instruction with an 8 bit operand to push the interrupt number on the stack. Now the 8 bit push has the unfortunate behaviour of sign extending to 32 bit. But since the assembler is smart (or at least thinks so) it will not generate such a push instruction for values larger than 0x7f. This resulted in 7 bytes long stubs in the range of 0x30 .. 0x7f and 10 bytes long stubs after that. To fix this 128 is substracted from the value and later readded in the common code path. A second issue arose, because the assembler would start to use 8 bit relative short jumps as soon as the target was less than 127 bytes away, which happened for some of the higher interrupts, which then had a smaller stub then the others. Fix this by moving the stubs up in the code further away from the target label, so that always 32bit relative jumps will be used. These problems didn't show up so far, since we used the PIC and interrupts in the range of 0x30 .. 0x40 and the code that relied on the stubs all having the same length was working well. This changes with an APIC based hal, where interrupts of much higher number are likely to be used.

svn path=/trunk/; revision=53679
2011-09-10 23:05:10 +00:00
Timo Kreuzer
0e5e391c4a Fix build (oh how I hate this mini_hal thing)
svn path=/trunk/; revision=53677
2011-09-10 21:56:07 +00:00
Amine Khaldi
74634a76e2 * Fix some unused but set variables. Brought to you by gcc 4.6.1.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53676
2011-09-10 21:31:09 +00:00
Timo Kreuzer
158c621c68 [HAL]
- Use a global variable HalpBuildType instead of a define when checking the BUILD (we don't recompile this code for SMP hal)
- Move registering IRQ2 out of the generic init code into HalInitializePICs
- Modify legacy HalpGetRootInterruptVector to use HalpIrqToVector and HalpVectorToIrql so it works with APIC, too

svn path=/trunk/; revision=53675
2011-09-10 18:58:01 +00:00
Thomas Faber
e5bc333825 [RBUILD]
- Add kmtests to the CD

svn path=/trunk/; revision=53674
2011-09-10 16:12:19 +00:00
Timo Kreuzer
459b5c212e [HAL/APIC]
- Implement HalpApcInterruptHandler, fix HalpDispatchInterruptHandler
- Insert a read to the APIC version register in ApicGetCurrentIrql(). This fixes inconsistencies between the internal APIC state and register reads/writes.
- Remove old hacks in ApicGetCurrentIrql() and ApicSetCurrentIrql
- Fix HalpVectorToIrql()
- read/write cr8 for the value of the TPR on amd64 builds
- Fix amd64 build

svn path=/trunk/; revision=53673
2011-09-10 15:55:15 +00:00
Thomas Faber
ac09e360bb [KMTEST]
- Load the driver from the application directory, not the current directory

svn path=/trunk/; revision=53672
2011-09-10 14:45:47 +00:00
Thomas Faber
454f222ade [ROSTESTS]
- Merge the Kernel Mode Test Suite Google Summer of Code project
- Happy testing, everyone ;)

svn path=/trunk/; revision=53671
2011-09-10 11:41:33 +00:00
Thomas Faber
abac3d72f3 [KMTESTS]
- Fix kmtest_.exe file naming in CMake

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53670
2011-09-10 11:19:50 +00:00
Thomas Faber
34e64d7748 [KMTESTS]
- Skip the remaining tests that result in assertions
- Hide KeProcessor test, as it takes very long

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53669
2011-09-10 10:48:07 +00:00
Thomas Faber
b37b73edf4 [NTOSKRNL/OB]
- Do not bugcheck in ObpCloseHandle if the handle is -1. Powered by kmtests

svn path=/trunk/; revision=53668
2011-09-10 10:41:57 +00:00
Thomas Faber
21494c6ffa [KMTESTS/OB]
- ObReference: add better tests for closing invalid handles

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53667
2011-09-10 10:38:43 +00:00
Timo Kreuzer
50058d32a2 [HAL]
Add a hack to work around a bug in VBox: The APIC emulation requires an iret instruction following closely after writing the EOI register. Since we return from kernel mode traps with a jmp (yes you can return from an interrupt with a jmp!) the EOI is never triggered, making VBox believe we are still serving the interrupt and keeping the PPR on high level, preventing following interrupts. A small asm stub now does the work of both writing the EOI and doing an iret.

svn path=/trunk/; revision=53665
2011-09-09 21:10:07 +00:00
Ged Murphy
99530efcdd [DEVMGMT]
Add the treeview and resize data. It now somewhat resembles an app.

svn path=/trunk/; revision=53664
2011-09-09 19:10:11 +00:00
Ged Murphy
9ec05fbc97 [DEVMGMT]
Some main window work.

svn path=/trunk/; revision=53663
2011-09-09 18:52:52 +00:00
Amine Khaldi
859dd5c42a [SHELL32]
* Merge r53661.

svn path=/trunk/; revision=53662
2011-09-09 16:55:59 +00:00
Rafal Harabien
d18bfcff5e [WIN32K]
- Improve formating of input.c and keyboard.c

svn path=/trunk/; revision=53660
2011-09-09 16:17:02 +00:00
Rafal Harabien
5f3b37f429 [WIN32K]
- Don't use magic type values for IntMapVirtualKeyEx calls
- Fix a typo in ERR

svn path=/trunk/; revision=53659
2011-09-09 16:08:09 +00:00
Timo Kreuzer
4c5b0d11ab [HAL]
- Add a hack to ApicGetCurrentIrql and ApicSetCurrentIrql to work around a VBox bug
- call KeSetTimeIncrement after initializing the rtc clock
- calculate TSC frequency from the samples
- Fix a bug in KeStallExecutionProcessor

svn path=/trunk/; revision=53658
2011-09-09 15:42:59 +00:00
Rafal Harabien
da83700379 [USER32]
- Fix ole32:clipboard winetest regression

svn path=/trunk/; revision=53657
2011-09-09 15:24:14 +00:00
Giannis Adamopoulos
65bfc47fd6 [undocuser.h]
- Move definition of UpdatePerUserSystemParameters to undocuser.h

svn path=/trunk/; revision=53656
2011-09-09 14:13:04 +00:00
Rafal Harabien
78ba9b27da [WIN32K]
- Rename gQueueKeyStateTable to gKeyStateTable as it has nothing to do with msg queues. They have their own table
- Use KS_*_BIT defines instead of magic values

svn path=/trunk/; revision=53655
2011-09-09 13:11:44 +00:00
Rafal Harabien
08398d6bc1 [WIN32K]
- Rewrite co_IntTranslateAccelerator to make it readable
- Add back support for 0x80 flag as an accelerator table end

svn path=/trunk/; revision=53654
2011-09-09 13:09:28 +00:00
Amine Khaldi
3bb734fcf3 [SHELL32]
* Reintegrate the c++ shell32 branch. Exemplary team-work.. kudos !
* Better code quality, more tests run with less failures... and more.
* Dedicated to everyone who helped ;)

svn path=/trunk/; revision=53653
2011-09-09 10:55:09 +00:00
Claudiu Mihail
ec47e5b8d5 [shell32.dll]
[FORMATTING]
- Second wave of formatting. At least now we won't have any tabs and spaces mixed in.

svn path=/branches/shell32_new-bringup/; revision=53651
2011-09-08 22:43:43 +00:00
Claudiu Mihail
13df60a8ec [shell32.dll]
- Fix bug 6336 of shell32_new. The bug was caused by not properly verifying the return value of ShellExecuteExW.
[FORMATTING]
- First wave of accidental formatting (sorry again about mixing code and formatting heh).

svn path=/branches/shell32_new-bringup/; revision=53650
2011-09-08 22:42:01 +00:00
Ged Murphy
d35e21f19e [DEVMGMT]
Add the resources

svn path=/trunk/; revision=53649
2011-09-08 22:04:51 +00:00
Ged Murphy
83fe582052 [DEVMGMT]
- Start a new device manager to test the reactos ATL code.
- Also, the old one sucks big time and was quickly hacked together.

svn path=/trunk/; revision=53648
2011-09-08 22:03:08 +00:00
Dmitry Gorbachev
3407fb2a35 [Telnet]
Fix build with GCC 4.7.

svn path=/trunk/; revision=53647
2011-09-08 21:00:37 +00:00
Jérôme Gardou
c9122b44d0 [NTOSKRNL]
- disable fast system calls for testing purpose.
See issue #5857 for more details.

svn path=/trunk/; revision=53646
2011-09-08 19:51:06 +00:00
Rafal Harabien
dd187dbf32 [WIN32K]
- Fix possible buffer overrun
- Use KEY_VALUE_PARTIAL_INFORMATION field instead of magic offset to data

svn path=/trunk/; revision=53645
2011-09-08 16:38:38 +00:00
Rafal Harabien
6a2bccb41c [WIN32K]
- Rewrite clipboard to match Windows implementation
- Clipboard uses window stations instead of global variables
- Data is saved in clipboard data user objects
- Memory is no longer leaked when winsta is destroyed
- Data is synthesized on demand
- Make internal functions static
- Fix possible memory corruption in IntGetAtomName
- More winetests are passed

svn path=/trunk/; revision=53644
2011-09-08 16:32:54 +00:00
Giannis Adamopoulos
d7f5b33e0d [user32]
- Add some more tests for the messages that are sent by SetActiveWindow

svn path=/trunk/; revision=53643
2011-09-08 15:53:38 +00:00
Rafal Harabien
e0d36fe09a [WIN32K]
- Simplify accelerators code a bit
- Set last error in NtUserCopyAcceleratorTable
- Fix user32:resource winetest regression

svn path=/trunk/; revision=53642
2011-09-08 14:13:19 +00:00
Claudiu Mihail
29ca67f252 [shell32.dll]
- Make sure the ParseDisplayName functions make the ppidle parameter NULL whenever that's possible. Scores a wine test. Spotted by Victor Martinez.

svn path=/branches/shell32_new-bringup/; revision=53641
2011-09-08 14:07:02 +00:00
Giannis Adamopoulos
2225b4b938 [user32_apitest]
- Add more tests for SetActiveWindow

svn path=/trunk/; revision=53640
2011-09-08 11:31:31 +00:00
Thomas Faber
5fc56f6309 [KMTEST_OLD]
- Remove kmtest_old and kmtloader as all their functionality is included in the new test suite

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53639
2011-09-08 10:44:26 +00:00
Thomas Faber
2b6888164d [KMTestSuite]
- Sync to rostests r53632

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53638
2011-09-08 10:28:02 +00:00
Thomas Faber
2a447311fe [KMTESTS]
- Use new CMake macros in separate drivers, too
- Use kmtest_.exe filename for rbuild too

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53637
2011-09-08 10:25:40 +00:00
Rafal Harabien
8571e00fdc [WIN32K]
- Fix user32:monitor winetest failures (ClipCursor bugs)
- Protect functions in accelerator.c with SEH

svn path=/trunk/; revision=53636
2011-09-08 09:55:28 +00:00
Aleksey Bragin
c7b81786fe - Downgrade some DPRINT1s to DPRINTs.
svn path=/trunk/; revision=53635
2011-09-08 08:28:41 +00:00
Timo Kreuzer
c508185cd9 [HAL]
- Fix I/O APIC register access
- set APIC logical id based on Cpu (currently flat model with up to 8 cpus supported)
- In HalpInitializeTsc, setup the RTC clock, since the timer is initialized later
- in the TSC calibration ISR, send EOI and read RTC register C to get the next interrupt

svn path=/trunk/; revision=53634
2011-09-08 08:15:39 +00:00
Claudiu Mihail
261ee4dd58 [shell32.dll]
- Initialize uninitialized variables.
- Add code to guard against potential NULL pointer dereferencing.
Thanks to Amine Khaldi for pointing out all these.

svn path=/branches/shell32_new-bringup/; revision=53633
2011-09-07 23:21:02 +00:00
Giannis Adamopoulos
7635cc18b1 [user32_apitest]
- Add some more tests hoping that SetActiveWindow will reveal its secrets

svn path=/trunk/; revision=53632
2011-09-07 23:08:14 +00:00
Timo Kreuzer
f085f50747 [HAL]
- Don't use debug prints before the debugger is even initialized
- acquire cmos spinlock when accessing the cmos registers
- Fix amd64 build

svn path=/trunk/; revision=53631
2011-09-07 21:41:50 +00:00
Eric Kohl
13f41d74b9 [RPCTR4]
- Take NetworkAddr into account when a named pipe client is opened.
- Return RPC_S_SERVER_UNAVAILABLE when an attempt to create a named pipe client fails with an ERROR_BAD_NETPATH error.
This fixes the first test failure in the advapi32 service winetest.

svn path=/trunk/; revision=53630
2011-09-07 20:11:19 +00:00
Claudiu Mihail
ea0da4a0a3 [shell32.dll]
- More uninitialized value fixing. Again Amine Khaldi spotting them with his magical powers.
- I took the liberty to convert tabs I found to spaces. Normally I shouldn't mix formatting with coding changes but I forgot. Sorry.

svn path=/branches/shell32_new-bringup/; revision=53629
2011-09-07 20:00:32 +00:00
Claudiu Mihail
34529d672c [shell32.dll]
- Attempt at fixing bug 6315 (it doesn't completely work yet). Original patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53628
2011-09-07 19:00:26 +00:00
Timo Kreuzer
d78423aadc [HAL_XBOX]
Fix build

svn path=/trunk/; revision=53627
2011-09-07 18:39:20 +00:00
Timo Kreuzer
d9ab860e67 [HAL]
Fix buld. I swear it worked here!

svn path=/trunk/; revision=53626
2011-09-07 18:30:38 +00:00
Timo Kreuzer
f85bf4380d [HAL]
- give apic hal its own halinit_apic
- give minihal an own halinit_mini.c containing function stubs
- move HalInitializeProcessor to halinit.c and add hal specific function HalpInitProcessor
- get rid of all the #ifndef _MINIHAL_ in halinit.c and move the file to lib_hal_generic
- improve the hal version/build check
- Update spec file for amd64

svn path=/trunk/; revision=53625
2011-09-07 18:25:43 +00:00
Claudiu Mihail
aee0ef5405 [shell32.dll]
- Fix bug 6317. Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53624
2011-09-07 17:41:56 +00:00
Claudiu Mihail
5291d19b25 [shell32.dll]
- Fix bug 6316. Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53623
2011-09-07 17:10:45 +00:00
Claudiu Mihail
9f5333c3dc [shell32.dll]
- Fix bug #6301 . Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53622
2011-09-07 16:58:22 +00:00
Giannis Adamopoulos
2f5ccca699 [user32_apitest]
- Add a test case for SetActiveWindow that shows its behavior related to owner windows. It should point the bug observed in bug 1239

svn path=/trunk/; revision=53621
2011-09-07 14:05:58 +00:00
Timo Kreuzer
622fc9501c [NTOSKRNL]
Move the internal headers below the redefinition of types, because gcc instantiates inline function where they are defined, using the original types. Fixes build.

svn path=/trunk/; revision=53620
2011-09-07 13:58:34 +00:00
Timo Kreuzer
1799be4f5f [NTOSKRNL]
Forgot this file, sorry

svn path=/trunk/; revision=53619
2011-09-07 13:45:06 +00:00
Timo Kreuzer
7c062d812b [NTOSKRNL]
Make KeNumberProcessors internally an UCHAR and move it into krnlinit.c instead of having it once per architecture. Fixes a bunch of MSVC warnings.

svn path=/trunk/; revision=53618
2011-09-07 13:43:54 +00:00
Claudiu Mihail
2c7fb01198 [shell32.dll][FORMATTING]
- No code changes. Make the code more readable in preparation for investigating some failing wine tests.

svn path=/branches/shell32_new-bringup/; revision=53617
2011-09-07 13:39:13 +00:00
Timo Kreuzer
6c556c3422 [HAL]
- move v86 code out of trap.S into v86.S (APIC uses a different trap entry file), compile it directly in the dll instead of a lib to be able to silence linker warnings
- Group files in HAL_PIC_SOURCE and HAL_APIC_SOURCE, you just need to replace PIC with APIC to build the hal with APIC support (we can later use it to build the other hals:  halapic, halaacpi, halmacpi, halmps)
- use apic on amd64 builds
- give halacpi its own resource file
- silence MSVC linker warnings

svn path=/trunk/; revision=53616
2011-09-07 12:00:29 +00:00
Timo Kreuzer
29f16ed6c4 [HAL]
Rename HalpAcquireSystemHardwareSpinLock to HalpAcquireCmosSpinLock

svn path=/trunk/; revision=53615
2011-09-07 10:14:48 +00:00
Rafal Harabien
a4c1f7e52a [MKHIVE]
- Fix max key name length, max value name length, max value data length properties of registry key not being set correctly
- Fixes #6042 - regedit on LiveCD shows keys and values now

svn path=/trunk/; revision=53614
2011-09-07 09:51:13 +00:00
Claudiu Mihail
7a20b6f2bb [shell32.dll]
- Another round of fixing badly initialized variables. Again Amine Khaldi being the hero.

svn path=/branches/shell32_new-bringup/; revision=53613
2011-09-07 01:33:31 +00:00
Claudiu Mihail
270842aeb0 [shell32.dll]
- Initialize uninitialized variables in constructors.
[atl]
- Initialize uninitialized variables in constructors.
All spotted by Amine Khaldi.

svn path=/branches/shell32_new-bringup/; revision=53612
2011-09-06 23:52:38 +00:00
Timo Kreuzer
b5198d7d39 [HAL]
Start implementing APIC support, which is needed for both SMP and x64. It will use the local APIC + I/O APIC for interrupt control, the RTC instead of the PIT for the timer interrupt (PIT doesn't always work with I/O APIC), the APIC timer for profiling and finally the TSC for the performance counter and KeStallExecutionProcessor.
The code is incomplete and doesn't work yet

svn path=/trunk/; revision=53611
2011-09-06 21:01:49 +00:00
Giannis Adamopoulos
6cc65f4e4f [shell32]
- Add missing initialization. Fixes the problem where explorer fails to show the child window at the first attempt to open a folder

svn path=/branches/shell32_new-bringup/; revision=53610
2011-09-06 20:20:54 +00:00
Eric Kohl
2020d7c71f [MUP]
- Any attempt to open or create a file on a remote machine will return STATUS_BAD_NETWORK_PATH. This means the server is not available. Trying to create \\testserver\testshare\testdir\test.txt fails just like on Windows XP.
- Add service key and values for the MUP driver. Add the driver to the File System group because adding it to the Network group, like on Windows XP, does not load the driver.

svn path=/trunk/; revision=53609
2011-09-06 19:17:54 +00:00
Jérôme Gardou
49149fb1c8 [CMAKE]
- get rid of set_entrypoint usage for "win32" dlls

svn path=/trunk/; revision=53608
2011-09-06 17:31:25 +00:00
Timo Kreuzer
e6a91fe96a [RTL]
Add FPO information to some asm functions

svn path=/trunk/; revision=53607
2011-09-05 22:18:56 +00:00
Jérôme Gardou
4634d67e38 [RBUILD]
- qmgrprxy.dll has an entrypoint

svn path=/trunk/; revision=53606
2011-09-05 19:36:07 +00:00
Jérôme Gardou
6965d3d746 [MSVCRT]
- comment out _vswprintf export until I get more time to fix this properly

svn path=/trunk/; revision=53605
2011-09-05 19:22:44 +00:00
Jérôme Gardou
238dec164e [MSVCRT]
- some fixes to spec file, based on a wine patch by Piotr Caban

svn path=/trunk/; revision=53604
2011-09-05 19:08:11 +00:00
Dmitry Gorbachev
26975c720b [RSYM]
.stab/.stabstr sections have no IMAGE_SCN_LNK_REMOVE flag now.

svn path=/trunk/; revision=53603
2011-09-05 15:37:35 +00:00
Dmitry Gorbachev
91cb92e54c [FAT32]
Move the FAT sector buffer higher for RBuild builds, too.

svn path=/trunk/; revision=53602
2011-09-05 15:36:33 +00:00
Timo Kreuzer
5770481f78 Fix build
svn path=/trunk/; revision=53601
2011-09-05 15:28:49 +00:00
Timo Kreuzer
f627019d71 [HAL]
- Use functions instead of macros for irq<->vector<->irql translation, this will be neccessary, once apic support is there
- Disable mp hal in rbuild for now, its broken anyway

svn path=/trunk/; revision=53600
2011-09-05 15:20:07 +00:00
Aleksey Bragin
0f969dedca [NTOS]
- Fix IoCheckEaBufferValidity (IntEaLength must be signed, otherwise loop exiting condition may not trigger).
- SEH-protect ObQueryNameString (by Dmitry Chapyshev's request).

svn path=/trunk/; revision=53599
2011-09-05 15:05:56 +00:00
Aleksey Bragin
197ed4b94e [NTOS/EX]
- Remove redundant check for a previous mode. Spotted by PVS.

svn path=/trunk/; revision=53598
2011-09-05 14:27:48 +00:00
Sylvain Petreolle
ea601ab08c [CMAKE]
Don't assume CMAKE_SHARED_LIBRARY_ASM_FLAGS exists.

svn path=/trunk/; revision=53597
2011-09-05 12:41:18 +00:00
Aleksey Bragin
9ef1a74a8d [NTOS/CONFIG]
- Remove unnecessary assignments. Spotted by PVS and Dmitry Chapyshev. This may change the behaviour of that codepath, so test results are going to be observed.

svn path=/trunk/; revision=53596
2011-09-05 09:54:20 +00:00
James Tabor
f34a7454a4 [User32]
- Fixed over check conditions for deleting regions in set window region.
- Disabled offsets with window region. Fixes wine tests..

svn path=/trunk/; revision=53595
2011-09-04 21:54:57 +00:00
Amine Khaldi
b1b3c259e8 [CMAKE]
* Properly use add_target_compile_flags.

svn path=/trunk/; revision=53594
2011-09-04 21:52:37 +00:00
Jérôme Gardou
5932142777 [BUSLOGIC]
- woops, revert some accident of 53591

svn path=/trunk/; revision=53593
2011-09-04 21:08:29 +00:00
Jérôme Gardou
9a5598685c [CMAKE]
- fix msvc build

svn path=/trunk/; revision=53592
2011-09-04 21:06:02 +00:00
Jérôme Gardou
b8e2175f8e [BUSLOGIC]
- get rid of unused variable

svn path=/trunk/; revision=53591
2011-09-04 21:04:26 +00:00
Jérôme Gardou
3dfda118e9 [ATAPI]
- get rid of unused variable

svn path=/trunk/; revision=53590
2011-09-04 20:51:52 +00:00
Jérôme Gardou
baf26fb9cd [PCMCIA]
- remove #pragma once from pch

svn path=/trunk/; revision=53589
2011-09-04 20:32:19 +00:00
Jérôme Gardou
1d88605027 [CMAKE/CRT]
- disable pch for now

svn path=/trunk/; revision=53588
2011-09-04 20:27:48 +00:00
Jérôme Gardou
8f349a6383 [CMAKE]
- revert unwanted change from 53567

svn path=/trunk/; revision=53587
2011-09-04 18:41:04 +00:00
Jérôme Gardou
e293f3d468 [CMAKE]
- rostests side of r53585

svn path=/trunk/; revision=53586
2011-09-04 17:33:34 +00:00
Jérôme Gardou
e59cf523ac [CMAKE]
- enable -Werror by default on gcc build

svn path=/trunk/; revision=53585
2011-09-04 17:32:30 +00:00
Jérôme Gardou
9d3ef58063 [CMAKE/KDBG]
- fix warning

svn path=/trunk/; revision=53584
2011-09-04 17:31:12 +00:00
Jérôme Gardou
cb1f1bd555 [WIN32K]
- Avoid invalid memory write.
See issue #5969 for more details.

svn path=/trunk/; revision=53583
2011-09-04 15:58:48 +00:00
Jérôme Gardou
cb386402eb [RPCRT4]
- remove ros hack, obsoleted by r53580 and r53581

svn path=/trunk/; revision=53582
2011-09-04 15:37:42 +00:00
Jérôme Gardou
26a81f2aa2 [STI]
- we have an entry point.

svn path=/trunk/; revision=53581
2011-09-04 15:29:15 +00:00
Jérôme Gardou
bde15eb421 [ACTCXPRXY]
- we have an entry point, provided by rpc proxy data

svn path=/trunk/; revision=53580
2011-09-04 15:19:10 +00:00
Eric Kohl
7f50216c38 [SERVICES]
RStartServiceA: Convert the ANSI start arguments vector to a UNICODE vector and pass it to ScmStartService. Calls to StartServiceA can now be used to pass arguments to a starting service.

svn path=/trunk/; revision=53579
2011-09-04 14:42:08 +00:00
Jérôme Gardou
acbe8f03e5 [PSDK]
- put NOGDI guard at the right place...

svn path=/trunk/; revision=53578
2011-09-04 14:09:14 +00:00
Jérôme Gardou
f41f1865c6 [WINETESTS/WININET]
- fix warnings

svn path=/trunk/; revision=53577
2011-09-04 13:09:16 +00:00
Jérôme Gardou
92b4703b90 [WINETESTS/URLMON]
- fix warnings

svn path=/trunk/; revision=53576
2011-09-04 13:01:38 +00:00
Sylvain Petreolle
152a7cc18d [WINETESTS]
Allow to run skipped test in interactive mode.

svn path=/trunk/; revision=53575
2011-09-04 12:26:49 +00:00
Thomas Faber
9939e94927 [KMTestSuite]
- Thank you, SVN, for sucking at merging

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53574
2011-09-04 12:10:38 +00:00
Jérôme Gardou
e448d722f6 [PSDK]
- fix compilation for any fool wanting to use our headers outside of NT 5.2 scope

svn path=/trunk/; revision=53573
2011-09-04 12:08:54 +00:00
Eric Kohl
7a18610b01 [ADVAPI32]
Pass service start arguments to ANSI services too. Clean up the service start code.

svn path=/trunk/; revision=53572
2011-09-04 12:01:27 +00:00
Jérôme Gardou
acda44fd71 [WINETESTS/GDI32]
- fix warnings

svn path=/trunk/; revision=53571
2011-09-04 11:31:17 +00:00
Amine Khaldi
e81af210d3 [CMAKE/DLLS]
* Set some imports as delay-loaded.

svn path=/trunk/; revision=53570
2011-09-04 00:52:28 +00:00
Jérôme Gardou
1ee26b07cf [LWIP]
- fix warning in ros glue code

svn path=/trunk/; revision=53569
2011-09-04 00:31:13 +00:00
Jérôme Gardou
a52963082d [ROSSYM_NEW]
- fix some warnings
- fix function prototype. This might fix usermode stack logs

svn path=/trunk/; revision=53568
2011-09-03 23:56:04 +00:00
Jérôme Gardou
b0334ceb09 [CMAKE]
- add flags to ASM as well instead of hacking the compile rule
- remove -fPIC flag from ASM compile flags, (it's a cmake bug)
- enable languages before including compiler specific files.

svn path=/trunk/; revision=53567
2011-09-03 23:05:09 +00:00
Aleksey Bragin
30f1d45429 [NTOS]
- Remove unnecessary duplicated if condition.
- Fix a typo.

svn path=/trunk/; revision=53566
2011-09-03 22:21:56 +00:00
Thomas Faber
7c7c643137 [KMTestSuite]
- Sync with rostests r53563

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53565
2011-09-03 20:16:33 +00:00
Eric Kohl
ff2da6c81c [SERVICES/ADVAPI32]
Pass the service start argument vector to the started service main function. ANSI services are not supported yet.

svn path=/trunk/; revision=53564
2011-09-03 19:47:56 +00:00
Thomas Faber
1a358ac727 [NTDLL_APITEST]
- Fix warnings and failure messages

svn path=/trunk/; revision=53563
2011-09-03 19:44:07 +00:00
Thomas Faber
05415c03f8 [KMTESTS]
- Add ObReference to build. Was missing for some reason
- Use the new CMake macros in preparation for PCH
- Use kmtest_.exe as a file name for testcd to please rosautotest. Perhaps there's a better solution later

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53562
2011-09-03 19:42:02 +00:00
Jérôme Gardou
7c649f4222 [CMAKE]
- go RTFM, you moron

svn path=/trunk/; revision=53561
2011-09-03 19:25:54 +00:00
Jérôme Gardou
e58c2e969c [ROSTESTS]
- rostests side of r53559
- remove some definitions instead of just staring at the compiler emitting warnings

svn path=/trunk/; revision=53560
2011-09-03 19:19:57 +00:00
Jérôme Gardou
3f94b0599a [CMAKE]
- get rid of set_unicode macro.
- Add an option to set_module_type to do the work instead
- Improve debug output

svn path=/trunk/; revision=53559
2011-09-03 19:11:44 +00:00
Thomas Faber
427928c2a5 [CMAKE]
- Replace add_linkerflag and add_compiler_flags with their new equivalents add_target_link_flags/add_compile_flags
- Remove those now obsolete macros
- Use the new set_module_type to get rid of evil hacks for drivers without entry point (wmilib, drmk)

svn path=/trunk/; revision=53558
2011-09-03 18:59:14 +00:00
Jérôme Gardou
c4bbdcbfdf [CMAKE]
- use the new options of set_module_type for a few modules

svn path=/trunk/; revision=53557
2011-09-03 18:26:19 +00:00
Jérôme Gardou
f0ecdf3eb9 [CMAKE]
- handle '0' entry point in set_module_type_function

svn path=/trunk/; revision=53556
2011-09-03 18:24:38 +00:00
Jérôme Gardou
fc0cfdeb05 [CMAKE]
- remove add_compiler_flags_target function, Thomas was faster than me, and did something nicer

svn path=/trunk/; revision=53555
2011-09-03 18:16:15 +00:00
Giannis Adamopoulos
c9fe2fcba4 [win32k]
- SetWindowPos should send WM_MOUSEMOVE only when the window under the cursor changes
- Fixes moving winamp window

svn path=/trunk/; revision=53554
2011-09-03 17:53:14 +00:00
Jérôme Gardou
245ed2469c [CMAKE]
- merge set_module_type function into the global CMakeMacros.cmake file, leaving compiler particular bits to set_module_type_toolchain function.
- Add the ENTRYPOINT and BASEADDRESS options to this function. Not used yet

svn path=/trunk/; revision=53553
2011-09-03 17:48:57 +00:00
Amine Khaldi
2b4d045b85 [RPCRT4_WINETEST]
* Fix msvc build.

svn path=/trunk/; revision=53552
2011-09-03 17:35:54 +00:00
Jérôme Gardou
aa70ab9bbd - revert r53547, although setting explicitly something which is default isn't a "wrong change" per se.
svn path=/trunk/; revision=53551
2011-09-03 16:44:49 +00:00
Rafal Harabien
0062c96534 [FREELDR]
- Try to fix release build
- Remove unused function

svn path=/trunk/; revision=53550
2011-09-03 16:33:55 +00:00
Rafal Harabien
38c015050e [FREELDR]
- Fix release build

svn path=/trunk/; revision=53549
2011-09-03 16:27:11 +00:00
Giannis Adamopoulos
d8a49ddd85 [win32k]
- merge r53215 and r53221 from themes branch
- Fixes drawing apps that use SetWindowRgn and also fixes a gdi object leak
See issue #1239 for more details.

svn path=/trunk/; revision=53548
2011-09-03 16:22:32 +00:00
Jérôme Gardou
9fda7d5f01 [VGA_NEW]
- fix some warnings

svn path=/trunk/; revision=53547
2011-09-03 16:09:34 +00:00
Amine Khaldi
26f6b8c7f7 [FORMATTING]
* No code changes.

svn path=/branches/shell32_new-bringup/; revision=53546
2011-09-03 15:37:09 +00:00
Thomas Faber
079f80ff56 [CMAKE]
- Add add_target_property macro and add wrapper macros to easily set important properties
- This makes macros more consistent, follows CMake property names, favors per-target instead of per-directory property settings and favors adding to properties instead of replacing them
- Convert the global settings to use the new add_compile_flags and add_target_link_flags - no functional change
- Fix add_importlibs to add to compile definitions instead of replacing them
- Big thanks to Amine

svn path=/trunk/; revision=53545
2011-09-03 14:57:27 +00:00
Olaf Siejka
5caee6abdf [TRANSLATION]
- base/application UTF-8 conversion patch by Elton Chung;
- minor corrections by me;
See issue #6333 for more details.

svn path=/trunk/; revision=53544
2011-09-03 14:37:34 +00:00
Claudiu Mihail
8af812d602 [shell32.dll]
- Fix bug related to correct error code returning in delete_files. The value of 1026 was revealed to be returned by windows 2003 server. Score several passed winetests.
- Fix a bug in ShellLink::SetShowCmd and score one more passed winetest

svn path=/branches/shell32_new-bringup/; revision=53543
2011-09-03 14:20:03 +00:00
Rafal Harabien
104f6aa19c [FREELDR]
- Introduce WINE-like debug macros ERR, FIXME, WARN and TRACE
- Always show ERR and FIXME information
- WARN and TRACE are enabled by DebugPrintMask in debug.c as before
- Thanks to new macros find bug in CMake livecd creation and fix it

svn path=/trunk/; revision=53542
2011-09-03 10:56:36 +00:00
Claudiu Mihail
833aa3ffef [shell32.dll]
- Don't do some parameter checks, even if MSDN says they're incompatible. Winetests with windows 2003 server as reference tells us msdn lies. (Spotted by Victor Martinez)

svn path=/branches/shell32_new-bringup/; revision=53541
2011-09-03 10:55:51 +00:00
Dmitry Chapyshev
108b181a84 - Remove unneeded ";"
svn path=/trunk/; revision=53540
2011-09-03 04:55:54 +00:00
Olaf Siejka
3fdf7a4109 [TRANSLATION]
- Romanian syssetup and usetup translation by Stefan Fulea <fulea.stefan> at <gmail.com>;
- Fix ipconfig build under MSVC, use "" instead of \" as escape character;

svn path=/trunk/; revision=53539
2011-09-03 01:09:42 +00:00
Claudiu Mihail
71fb1022d3 [shell32.dll]
[FORMATTING]
- Don't use tabs, use spaces.

svn path=/branches/shell32_new-bringup/; revision=53538
2011-09-03 00:13:22 +00:00
Claudiu Mihail
b815342563 [shell32.dll]
[FORMATTING]
- Format the code to a more acceptable level. This is just for my sanity while sifting through it.

svn path=/branches/shell32_new-bringup/; revision=53537
2011-09-03 00:08:11 +00:00
Timo Kreuzer
70056b9b75 [HAL]
Fix a dependency issue

svn path=/trunk/; revision=53536
2011-09-02 22:07:28 +00:00
Aleksey Bragin
0f7db734e2 - Fix a totally broken case when a directory has no name in ObQueryNameString. Spotted by Coverity.
svn path=/trunk/; revision=53535
2011-09-02 21:22:30 +00:00
Claudiu Mihail
5beaebef93 [shell32.dll]
- replace DbgPrints with TRACE.

svn path=/branches/shell32_new-bringup/; revision=53534
2011-09-02 19:56:58 +00:00
Claudiu Mihail
18d876cbf2 [shell32.dll]
- rewrite the parser to handle command line argument parsing
- include basic description of what the rules for parsing are
- some minor formatting here and there (couldn't be helped)

svn path=/branches/shell32_new-bringup/; revision=53533
2011-09-02 19:29:30 +00:00
Aleksey Bragin
180a02335c - Remove unnecessary assignment.
svn path=/trunk/; revision=53532
2011-09-02 19:25:49 +00:00
Amine Khaldi
1461196343 * Fix CMake build. Our current PCH handling doesn't allow this.
svn path=/trunk/; revision=53531
2011-09-02 15:47:51 +00:00
Amine Khaldi
69f688be4c * Fix rbuild build.
svn path=/trunk/; revision=53530
2011-09-02 15:13:29 +00:00
Timo Kreuzer
d9dd611750 [HAL]
- Flatten the directory structure
- use static libraries in cmake builds as well to save build time

svn path=/trunk/; revision=53529
2011-09-02 14:45:19 +00:00
Amine Khaldi
fec2ae66a2 [WIN32K]
* Missed this one.

svn path=/trunk/; revision=53528
2011-09-02 10:17:30 +00:00
Amine Khaldi
ff2b2aaa36 [WIN32K]
* Remove some useless asserts considering cLockObj is DWORD.

svn path=/trunk/; revision=53527
2011-09-02 09:23:20 +00:00
Timo Kreuzer
6d62252f5a [FREELDR]
- Move cleaning the shared user data to after WinLdrSetProcessorContext, as we need the new page tables to be active
- Fix indentation/coding style in registry.c
- Fix a few 64 bit warnings
- delete <arch>/ntsetup.c and rename <arch>/wlmemory.c to <arch>/winldr.c

svn path=/trunk/; revision=53526
2011-09-01 19:01:19 +00:00
Timo Kreuzer
e6fe154eef [NTOSKRNL]
Fix condition check for informing the debugger in NtMapViewOfSection
Found by Amine Khaldi

svn path=/trunk/; revision=53525
2011-09-01 18:55:12 +00:00
Timo Kreuzer
f7fc62b255 [HAL]
Don't use enums as bitfields. MSVC doesn't handle it the way gcc does. Fixes clock initialization on MSVC builds. You would wonder how the MSVC build even worked without a clock interrupt :D

svn path=/trunk/; revision=53524
2011-09-01 18:32:13 +00:00
Amine Khaldi
b1f5d761d8 [USER32]
* Attempt to fix the relocation issue in the rbuild build.

svn path=/trunk/; revision=53523
2011-09-01 17:36:34 +00:00
Thomas Faber
59f551c02b [RTL][NETSHELL]
- Fix the remaining issues from preceding commits

svn path=/trunk/; revision=53522
2011-09-01 16:58:20 +00:00
Dmitry Chapyshev
6b2123e650 - Partly revert r53519. Fix build
svn path=/trunk/; revision=53521
2011-09-01 16:27:20 +00:00
Dmitry Chapyshev
afa0818365 - Partly revert r53519
svn path=/trunk/; revision=53520
2011-09-01 16:02:16 +00:00
Dmitry Chapyshev
74b3d51978 - Fix multiple typos and bugs, found by PVS-Studio
svn path=/trunk/; revision=53519
2011-09-01 15:30:19 +00:00
Dmitry Chapyshev
72aa51ee36 - Fix build
- Fix wrong memory copying, found by PVS-Studio

svn path=/trunk/; revision=53518
2011-09-01 15:13:59 +00:00
Dmitry Chapyshev
39fa8e8b38 - Try to fix build
svn path=/trunk/; revision=53517
2011-09-01 14:57:21 +00:00
Dmitry Chapyshev
c10f3c3b14 - Fix typos, found by PVS-Studio
svn path=/trunk/; revision=53516
2011-09-01 13:18:22 +00:00
Dmitry Chapyshev
2504a4e518 - Fix typo, found by PVS-Studio
svn path=/trunk/; revision=53515
2011-09-01 12:41:50 +00:00
Dmitry Chapyshev
bb4799bafe - Fix wrong macros usage, found by PVS-Studio
svn path=/trunk/; revision=53514
2011-09-01 12:38:56 +00:00
Dmitry Chapyshev
0bedb73493 - Fix wrong macros usage, found by PVS-Studio
svn path=/trunk/; revision=53513
2011-09-01 12:34:51 +00:00
Dmitry Chapyshev
8ccd1fff32 - Fix a bug, found by PVS-Studio
svn path=/trunk/; revision=53512
2011-09-01 12:25:52 +00:00
Amine Khaldi
6376ec1631 [TRANSLATION]
Fulea Stefan <fulea.stefan> at <gmail.com> :
* Mega Romanian translation commit. Bugs 6422, 6424, 6425, 6426, 6427, 6428, 6429, 6430, 6432, 6438, 6442, 6446, 6450 and 6451.

svn path=/trunk/; revision=53511
2011-08-31 20:56:02 +00:00
Timo Kreuzer
0c902fc496 [FREELDR]
- Massively refactor the winldr code
- move common parts of LoadReactOSSetup and LoadAndBootWindows into LoadAndBootWindowsCommon
- Combine architecture specific code into 2 functions: WinLdrSetupMachineDependent prepares the main stuff and WinLdrSetProcessorContext is the last thing done before transferring control to the kernel.
- rename WinLdrTunOnPaging to WinLdrSetupMemoryLayout
- Stop wasting stack space by decreasing the number of huge text buffers used
- Don't handle x86 specific data like Tss in portable code
- Add the progressbar for reactos setup as well
- Add missing DPRINT_PELOADER to DEBUG_ALL

svn path=/trunk/; revision=53510
2011-08-31 13:47:25 +00:00
Aleksey Bragin
b93fdf2a65 - Fix build (let it be "define").
svn path=/trunk/; revision=53509
2011-08-31 10:01:33 +00:00
Jérôme Gardou
68c23bec13 [CMAKE]
- try to fix gcc build without breaking msvc

svn path=/trunk/; revision=53508
2011-08-30 21:51:13 +00:00
Jérôme Gardou
6f2e9c5d9e [CMAKE]
- fix build

svn path=/trunk/; revision=53507
2011-08-30 21:26:11 +00:00
Jérôme Gardou
3c9134c338 [WINETESTS/RPCRT4]
- fix MSVC build

svn path=/trunk/; revision=53506
2011-08-30 21:02:14 +00:00
Sylvain Petreolle
f11c2052ff Add msvcrt to KnownDLLs.
This will enforce use of reactos msvcrt when apps provide one.
Its required because cmake dlls currently depend on msvcrt for their startup code.

svn path=/trunk/; revision=53505
2011-08-30 21:01:44 +00:00
Jérôme Gardou
dba0fbb3a2 [CMAKE/MSVC]
- use /h to specify header file name when producing rpc proxy file.
Don't ask me why /header doesn't work, I have no idea.

svn path=/trunk/; revision=53504
2011-08-30 21:01:16 +00:00
Jérôme Gardou
0248645f79 [WINETESTS/RPCRT4]
Until now, rpcrt4 winetests where badly broken : client calls remotely forwarded to serverside functions which called... client side functions. One has to wonder how testbot survived the operation
- Cmake : fix that
- rbuild : add a hack keeping the old behaviour, because I don't know how to make this right

svn path=/trunk/; revision=53503
2011-08-30 20:49:31 +00:00
Jérôme Gardou
597370501d [WINETEST/ADVAPI32]
- use a service name that exists on Reactos

svn path=/trunk/; revision=53502
2011-08-30 20:41:27 +00:00
Cameron Gutman
5c318a1fa0 [ACPI]
- Assign unique IDs to all special case devices (thermal zones, power resources, processors, power/sleep buttons)

svn path=/trunk/; revision=53501
2011-08-30 20:35:31 +00:00
Johannes Anderwald
6cd3e83d47 [HIDUSB]
- Add stub hidusb driver
- Hidusb driver is reponsible to connect with the hidclass driver (not yet present) and connect hid framework with usb hid devices

svn path=/branches/usb-bringup/; revision=53500
2011-08-30 16:01:00 +00:00
Johannes Anderwald
326fe80f8b [DDK]
- Add header for hid framework

svn path=/branches/usb-bringup/; revision=53499
2011-08-30 15:46:09 +00:00
Timo Kreuzer
fcea4abdca [NTOSKRNL]
Update amd64 kd64 from ros-amd64-bringup

svn path=/trunk/; revision=53498
2011-08-30 14:43:11 +00:00
Timo Kreuzer
fe0013fd3d [HAL]
Small cleanup and fix amd64 build (don't use the PIT)

svn path=/trunk/; revision=53497
2011-08-30 14:19:10 +00:00
Timo Kreuzer
ee0c854ff6 [HAL]
We cannot make any assumptions about the latency whith which the timer interrupt fires after a rollover, since VBox (other VMs probably as well) doesn't always meet this. Add another check to KeQueryPerformanceCounter that gracefully handles missing interrupts. Also raise to DISPATCH_LEVEL, since the function is not reentrant.

svn path=/trunk/; revision=53496
2011-08-30 12:01:01 +00:00
Timo Kreuzer
e03d0348d9 [HAL]
- Rewrite KeQueryPerformanceCounter in C
- Implement support for changing the clock rate

svn path=/trunk/; revision=53495
2011-08-30 08:52:17 +00:00
Timo Kreuzer
79517b3d28 [INTRIN]
- add  __nop()

svn path=/trunk/; revision=53494
2011-08-29 23:10:04 +00:00
Giannis Adamopoulos
4ce3a2325c [win32k]
- attempt to fix build

svn path=/trunk/; revision=53493
2011-08-29 17:49:01 +00:00
Giannis Adamopoulos
a7c3cdcc02 [win32k]
- revert r53355.
- it's changes are not needed as wine's spy channel is better, and this time we will get rid of all unwanted changes ( my previous commit did not fix all unwanted changes)

svn path=/trunk/; revision=53492
2011-08-29 17:30:11 +00:00
Amine Khaldi
357baab895 [WIN32K]
* Revert r53487 (and as a result 53490) as per Giannis (the committer) suggestion. It broke testbot and he couldn't look into it at the moment.

svn path=/trunk/; revision=53491
2011-08-29 14:57:06 +00:00
Amine Khaldi
5379960831 [WIN32K]
* The previous commit (r53487) mentioned a revert, but the patch didn't reflect it. Spotted by Victor.

svn path=/trunk/; revision=53490
2011-08-29 14:32:30 +00:00
Amine Khaldi
fc340c26f9 [CMAKE]
* Fix the ar variable. Missed in r53488.

svn path=/trunk/; revision=53489
2011-08-29 13:43:15 +00:00
Sylvain Petreolle
b2333da2b1 [CMAKE]
Let cmake find mingw32-ar by itself on *nix, otherwise cmake errors out.
See http://www.mail-archive.com/cmake@cmake.org/msg27491.html for details.


svn path=/trunk/; revision=53488
2011-08-29 13:15:14 +00:00
Giannis Adamopoulos
e70e1be300 [win32k]
-revert an unwanted change from r53355

svn path=/trunk/; revision=53487
2011-08-29 12:49:51 +00:00
Timo Kreuzer
847bea9af1 [KDBG]
Don't enable int3 first chance handling by default. Should fix ntdll exception winetest. Found by Arty.

svn path=/trunk/; revision=53486
2011-08-29 00:15:29 +00:00
Jérôme Gardou
5b92dc9a27 [SYSSETUP]
- fix WCHAR/TCHAR confusion

svn path=/trunk/; revision=53485
2011-08-28 22:39:50 +00:00
Amine Khaldi
84a8b80b52 [CMAKE]
* Fix jom use with WDK builds.

svn path=/trunk/; revision=53484
2011-08-28 18:35:35 +00:00
Thomas Faber
11935531f9 [CMAKE]
- Remove some hacks from ntdll and msvcrt build files
- Bring msvcrt* files in better sync

svn path=/trunk/; revision=53483
2011-08-28 18:28:18 +00:00
Jérôme Gardou
d7548bc164 [KERNEL32]
- do not access memory that might have been freed

svn path=/trunk/; revision=53482
2011-08-28 17:30:25 +00:00
Jérôme Gardou
e95dd604c1 [WIDL]
- reenable -Oif flag, it's too good to be disabled
With this commit, advapi32:service winetest suffers only 2 failures.

svn path=/trunk/; revision=53481
2011-08-28 15:37:01 +00:00
Jérôme Gardou
2edefc21c4 [WIDL]
- duplicate type entry for parameters with the range attribute.
This fixes the problem that Eric Kohl detected.
This has already been sent to wine.

svn path=/trunk/; revision=53480
2011-08-28 15:32:08 +00:00
Timo Kreuzer
b011354030 [INTRIN]
Add missing memory barriers to _enable, _disable and __halt

svn path=/trunk/; revision=53479
2011-08-28 12:40:55 +00:00
Cameron Gutman
c96c07424b [ACPI]
- Report a unique instance ID that can be used to identify different processors
- Device Manager now displays one processor device per CPU

svn path=/trunk/; revision=53478
2011-08-27 23:58:45 +00:00
Jérôme Gardou
abf9566c79 [IDL]
- fix definition of PPCONTEXT_HANDLE

svn path=/trunk/; revision=53477
2011-08-27 22:07:42 +00:00
Cameron Gutman
6c6c9bf698 [PO]
- Fix RtlCompareMemory typos
- Remove unneeded code

svn path=/trunk/; revision=53476
2011-08-27 19:29:52 +00:00
Amine Khaldi
fc902e6f58 * Sync to trunk HEAD (r53473).
svn path=/branches/shell32_new-bringup/; revision=53475
2011-08-27 19:26:31 +00:00
Giannis Adamopoulos
a7b384319a [win32k]
- Move some definitions to a better place

svn path=/trunk/; revision=53474
2011-08-27 18:26:37 +00:00
Amine Khaldi
c019323d0a * Addendum to r53472. This line is removed in Wine, so no need to consider sending this upstream.
svn path=/trunk/; revision=53473
2011-08-27 18:24:37 +00:00
Amine Khaldi
9a6c1ebd07 [SHELL32]
* Fix Shell_MergeMenus return type.

svn path=/trunk/; revision=53472
2011-08-27 18:23:04 +00:00
Cameron Gutman
b933a4d797 [PO]
- Use the correct access mode for ObReferenceObjectByHandle

svn path=/trunk/; revision=53471
2011-08-27 18:14:46 +00:00
Cameron Gutman
de5c9b6927 [ACPI]
- Enable some debugging

svn path=/trunk/; revision=53470
2011-08-27 17:14:25 +00:00
Eric Kohl
39a2467fca [WIDL]
Revert parts of r53171:
Remove the -Oif flag for WIDL because the NT4 stub code generated by the current WIDL is heavily broken with respect to the range attribute and others. Please enable the -Oif feature only after these bugs are fixed in WIDL!

svn path=/trunk/; revision=53469
2011-08-27 16:24:40 +00:00
Giannis Adamopoulos
65b8a5d11b [Win32k]
- remove some more unneeded functions

svn path=/trunk/; revision=53468
2011-08-27 12:55:41 +00:00
Giannis Adamopoulos
24abf1b222 [win32k]
- Clean up win32k headers even more
- remove INTERNAL_CALL and use NTAPI instead
- remove several unneeded definitions
- remove several unneeded header inclusions

svn path=/trunk/; revision=53467
2011-08-27 12:38:23 +00:00
Thomas Faber
a0213bada8 [NTDLL/LDR]
- Improve DPRINTs
- Fix some MSVC warnings 
[NTOSKRNL]
- Fix missing exports

svn path=/trunk/; revision=53466
2011-08-27 10:38:30 +00:00
Thomas Faber
3f6b691d08 [CRT]
- Do not skip calling DllMain on non-GCC builds

svn path=/trunk/; revision=53465
2011-08-27 09:14:57 +00:00
Cameron Gutman
7f089310e7 [ACPI]
- Provide a fallback when _BBN isn't implemented for a PCI root bus
- Fixes PCI on QEMU with ACPI enabled

svn path=/trunk/; revision=53463
2011-08-27 01:10:29 +00:00
Cameron Gutman
b0c146ed0c [ACPI]
- Skip fixed feature buttons when reporting resources
- Terminate the hardware ID list with 2 NULL characters

svn path=/trunk/; revision=53461
2011-08-26 23:46:32 +00:00
Timo Kreuzer
cb83086870 [NMIDEBUG]
Fix amd64 build

svn path=/trunk/; revision=53460
2011-08-26 20:05:58 +00:00
Timo Kreuzer
57b7866842 [FREELDR]
- fix a bug in x86 PnpBiosGetDeviceNodeCount
- enable pxe for amd64 (not yet implemented though)
- store boot drive and boot partition in shared memory isnetad of relying on a register, which seems to be erased on switch to long mode
64 bit freeldr is back on track!

svn path=/trunk/; revision=53459
2011-08-26 20:00:17 +00:00
Timo Kreuzer
caabd6c3e9 [HAL]
Fix amd64 build

svn path=/trunk/; revision=53458
2011-08-26 19:45:21 +00:00
Timo Kreuzer
823c30ef1f [CMAKE]
Fix compilation with VS x64

svn path=/trunk/; revision=53456
2011-08-26 17:33:33 +00:00
Timo Kreuzer
79b52fa59a [NTOSKRNL]
Fix amd64 build

svn path=/trunk/; revision=53455
2011-08-26 15:06:25 +00:00
Timo Kreuzer
41523bb55f [FREELDR]
- implement the amd64 real mode entry point and callback mechanism
- implement PnpBiosSupported, PnpBiosGetDeviceNodeCount, PnpBiosGetDeviceNode for amd64
- delete outdated amd64 files

svn path=/trunk/; revision=53453
2011-08-26 13:10:18 +00:00
Timo Kreuzer
82454038b9 [FREELDR]
- Implement switching back to real mode
- use a symbolic name for the size of the REGGS structure

svn path=/trunk/; revision=53451
2011-08-26 09:15:38 +00:00
James Tabor
b9ae58dc0d [Win32k]
- Move function out of the stub file.

svn path=/trunk/; revision=53450
2011-08-26 03:02:00 +00:00
James Tabor
d18d487420 - This seems to happen alot...
svn path=/trunk/; revision=53449
2011-08-26 01:54:21 +00:00
James Tabor
a72f93d594 - Hax Fix rBuild.
svn path=/trunk/; revision=53448
2011-08-25 23:57:24 +00:00
Thomas Faber
4b00accabe [CMAKE]
- Remove /nologo option from RC again - WDK's version doesn't support it
- Add /nologo to MIDL's flags
- Remove redundant IDL compiler declaration for GCC build

svn path=/trunk/; revision=53447
2011-08-25 22:32:57 +00:00
Aleksey Bragin
2d9edcdec1 [NTDLL/LDR]
- Fix wrong loop condition which would often lead to heap underread.
- Fix wrong subkey string length calculation, which would result in an incorrect string being used to open an image specific key.
- Don't close the key handle in LdrQueryImageFileKeyOption() because it's used more than once and closed after it's not needed anymore.
- Use Zw* functions instead of Nt* where necessary in LdrQueryImageFileKeyOption().
- Per-image execution options work now (e.g. enabling DPH).

svn path=/trunk/; revision=53446
2011-08-25 22:25:25 +00:00
Timo Kreuzer
0834f5fa79 [FREELDR]
- Implement real mode entry point for amd64 (amd64 freeldr starts but dies later, it cannot yet switch back to real mode, which is a bit more complicated)
- delete empty folders

svn path=/trunk/; revision=53443
2011-08-25 14:43:15 +00:00
Rafal Harabien
78a0d9fb21 [RAPPS/SOLITAIRE/MSPAINT]
- Resize controls so text fits in
- Improve Polish translations
[MSPAINT]
- Use GET_X/Y_LPARAM macros instead of LOWORD/HIWORD in mouse messages because coordinates can be negative

svn path=/trunk/; revision=53441
2011-08-25 11:28:32 +00:00
Timo Kreuzer
3f288f07ea [FREELDR]
- Use EFLAGS constants from NDK instead of defining them new
- Add addresses for amd64 startup page tables

svn path=/trunk/; revision=53440
2011-08-25 09:44:21 +00:00
Timo Kreuzer
e4356aa258 [CRT]
Fix build

svn path=/trunk/; revision=53439
2011-08-25 09:34:26 +00:00
Timo Kreuzer
01e8867ed1 [CRT]
Add frame pointer omission info to strcpy and wcscpy

svn path=/trunk/; revision=53438
2011-08-25 09:25:26 +00:00
Rafal Harabien
7ac15bc029 [INF]
- Add Polish translation of device names

svn path=/trunk/; revision=53437
2011-08-25 09:18:43 +00:00
Giannis Adamopoulos
1c6b9c7b25 [user32/win32k]
- cleanup internal headers
- remove unused functions and definitions
- move shared definitions to ntuser.h

svn path=/trunk/; revision=53436
2011-08-25 08:51:26 +00:00
Timo Kreuzer
eec01877b4 [FRAMEBUF_ACC]
Same fix as r53434

svn path=/trunk/; revision=53435
2011-08-25 08:03:15 +00:00
Timo Kreuzer
4f3fe47484 [FRAMEBUF_NEW]
- According to MSDN IOCTL_VIDEO_QUERY_POINTER_CAPABILITIES doesn't have an in-parameter. This code was copied from MS sample code, but it doesn't make sense, since the size field doesn't even match the in-buffer size. VBox driver also doesn't use these parameters and we don't handle the ioctl anyway.

svn path=/trunk/; revision=53434
2011-08-25 07:58:53 +00:00
Thomas Faber
371eb3f33e [CMAKE]
- Do not spam MSVC build log with RC/nmake logo

svn path=/trunk/; revision=53433
2011-08-25 07:32:01 +00:00
Timo Kreuzer
9688c90346 [EVENTVWR]
- remove some unneccessary casts
- simplyfy code
- use sizeof(PVOID) instead of sizeof(PEVENTLOGRECORD)

svn path=/trunk/; revision=53432
2011-08-25 07:20:02 +00:00
Timo Kreuzer
ef74f83550 [USETUP]
Use sizeof(WCHAR) instead of sizeof(PWCHAR) when calculating REG_SZ size for NtSetValueKey

svn path=/trunk/; revision=53431
2011-08-25 07:03:12 +00:00
Timo Kreuzer
4a306627d7 [KSPROXY/KS/SCSIPORT]
- Use sizeof(PVOID) instead of sizeof(PFOO) just for clarity that we really want a pointer size
[SCSIPORT]
- Don't initialize a pointer with RtlZeromemory

svn path=/trunk/; revision=53429
2011-08-24 22:09:04 +00:00
Timo Kreuzer
274262f440 [INTRIN] Fix _bittest64 prototype
[STLPORT] Fix amd64 build of modules using these headers

svn path=/trunk/; revision=53428
2011-08-24 22:02:41 +00:00
Thomas Faber
43b3df4799 [HAL]
- Fix CMake build

svn path=/trunk/; revision=53427
2011-08-24 21:43:06 +00:00
Aleksey Bragin
c7c0124d0c - Slightly rearrange base addresses to get rid of DLL relocations during bootup.
svn path=/trunk/; revision=53426
2011-08-24 21:11:40 +00:00
Eric Kohl
600c28f087 [HAL]
Add PCI_HAL device for non-ACPI machines. Code taken from the ACPI-HAL. This is just a quick hack and needs some more improvements.

svn path=/trunk/; revision=53425
2011-08-24 21:08:42 +00:00
Timo Kreuzer
4bf9ea12bc [PORTCLS]
Fix MSVC warnings

svn path=/trunk/; revision=53424
2011-08-24 20:21:07 +00:00
Timo Kreuzer
84ae0a0fa7 [FREELDR]
- Move architecture specific files all into arch/*
- Rename setupldr2.c to setupldr.c
- cleanup the mess in bootmgr.c

svn path=/trunk/; revision=53422
2011-08-24 18:17:13 +00:00
Cameron Gutman
e306e52267 [HAL]
- Handle IRP_MN_QUERY_CAPABILITIES for the ACPI_HAL device object
[PNPMGR]
- Don't bring up a device if a required IRP has failed
- Don't perform operations on a child if it is not ready yet

svn path=/trunk/; revision=53421
2011-08-24 17:05:58 +00:00
Cameron Gutman
1d3261d9fc [HAL/NTOSKRNL]
- Fix an off-by-one bug in the IDT table size

svn path=/trunk/; revision=53420
2011-08-24 15:57:18 +00:00
Thomas Faber
097a8b8733 [KMTESTS/IO]
- Add IoInterrupt test with a simple test for KeSynchronizeExecution

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53419
2011-08-24 14:09:53 +00:00
Thomas Faber
c1d210b143 [DDK/XDK]
- Add function types, not only function pointers types for EXPAND_STACK_CALLOUT and KSYNCHRONIZE_ROUTINE

svn path=/trunk/; revision=53418
2011-08-24 14:07:13 +00:00
Thomas Faber
0564ac0f79 [NTOSKRNL]
- Fix return value of KeSynchronizeExecution again... the SynchronizeRoutine also returns BOOLEAN

svn path=/trunk/; revision=53417
2011-08-24 13:05:22 +00:00
Rafal Harabien
cda612b67e [CALC]
- Reposition controls to match WinXP calculator
- Improve Polish translation

svn path=/trunk/; revision=53416
2011-08-24 12:35:28 +00:00
Rafal Harabien
d9f67312a2 [3DTEXT]
- Don't assume reg key exists
- Make rotation independent of computer speed

svn path=/trunk/; revision=53415
2011-08-24 12:33:45 +00:00
Rafal Harabien
6005c9f9ca [SNDREC32]
- Fix about box icon
- Improve polish translation

svn path=/trunk/; revision=53414
2011-08-24 12:32:25 +00:00
Thomas Faber
59cbfbc34a [NTOSKRNL]
- Do not return an NTSTATUS from KeSynchronizeExecution, which returns BOOLEAN
[KERNEL32]
- Do not return an NTSTATUS from BasepGetModuleHandleExW
Found by MSVC.

svn path=/trunk/; revision=53413
2011-08-24 12:31:08 +00:00
Thomas Faber
ca5f3d0740 [USETUP]
- Remove a circular header dependency to make it easier for the poor PCH compiler

svn path=/trunk/; revision=53412
2011-08-24 11:46:06 +00:00
Timo Kreuzer
f3df919cee [FREELDR]
Don't use RtlZeroMemory to initialize a pointer

svn path=/trunk/; revision=53411
2011-08-24 09:59:35 +00:00
Thomas Faber
a60b8c477c [EVENTLOG]
- Don't use sizeof for a variable-length structure
- Fix string buffer building

svn path=/trunk/; revision=53410
2011-08-24 09:45:50 +00:00
Timo Kreuzer
5c6935be69 [HAL/VIDEOPRT/EVENTLOG]
Really fix some of the sizeof issues

svn path=/trunk/; revision=53409
2011-08-24 09:41:16 +00:00
Timo Kreuzer
5f541ba1e2 [USER32_WINETEST]
Better fix by Tomas Faber
(increases the performance ;-))

svn path=/trunk/; revision=53408
2011-08-24 08:42:37 +00:00
Timo Kreuzer
b442f5c902 [USER32_WINETEST]
Fix MSVC build

svn path=/trunk/; revision=53407
2011-08-24 08:36:18 +00:00
Amine Khaldi
32fb301010 [NTDLL/LDR]
* Fix a thinko.

svn path=/trunk/; revision=53406
2011-08-24 03:02:03 +00:00
Amine Khaldi
3865e333ff [EVENTLOG]
* Fix a bad sizeof().

svn path=/trunk/; revision=53405
2011-08-24 02:09:29 +00:00
Amine Khaldi
d1a36b6e61 [VIDEOPRT]
* Fix a bad sizeof() that's been with us since r12860 (more than 6 years ago).

svn path=/trunk/; revision=53404
2011-08-24 02:04:55 +00:00
Amine Khaldi
1274ff8f6f [USER32]
* Fix a bad sizeof().

svn path=/trunk/; revision=53403
2011-08-24 02:00:14 +00:00
Amine Khaldi
9a44ac663c [HAL]
* Fix a couple bad sizeof().

svn path=/trunk/; revision=53402
2011-08-24 01:52:12 +00:00
Timo Kreuzer
83a29c33af [XDK/DDK]
Add KeSaveFloatingPointState as well

svn path=/trunk/; revision=53401
2011-08-23 22:59:23 +00:00
Timo Kreuzer
83d9580f60 [DDK(XDK]
Add inline functionss Ke*FloatingPointState for amd64 and arm, doing nothing. Noticed by Thomas Faber.

svn path=/trunk/; revision=53400
2011-08-23 22:31:20 +00:00
Timo Kreuzer
fe7e695657 [VMWINST] Fix amd64 build
[NTDLL] add missing amd64 specific exports
[MSVCRT*] Fix mangled c++ exports for amd64
[OLEAUT32] Add amd64 adm stub for call_method, fix MSVC/amd64 build
[RICHED20] Fix MSVC thiscall wrapper
[RPCRT4] add amd64 specific asm
[KSFILTER] Add c++ aliases, use dummy KeSaveFloatingPointState and KeRestoreFloatingPointState on non-x86 builds
[KMIXER] Fix a broken DPRINT
[PSEH] Priorize native SEH over dummy SEH

svn path=/trunk/; revision=53399
2011-08-23 08:58:15 +00:00
Timo Kreuzer
9564801ea8 [RTL] Remove duplicate function
[CRT] add _local_unwind stub and fix c++ symbols

svn path=/trunk/; revision=53398
2011-08-23 08:45:46 +00:00
Timo Kreuzer
804256c25d [INTRIN]
- Deconstify most parameters in the intrinsics.
- add __movsq, _bittest64, __umulh

svn path=/trunk/; revision=53397
2011-08-23 08:42:13 +00:00
Timo Kreuzer
a522726b1e [CMAKE]
- fix usage of set_entrypoint
- link libpng to ntdll on amd64
- build crtdll and nmidebug only on x86
- silence some linker warnings on MSVC
- compile riched20/msvc-thiscall.c only on x86
- Add WIN64 definition to acpica
- Add ehandler.c to libcntpr

svn path=/trunk/; revision=53396
2011-08-23 08:13:33 +00:00
Timo Kreuzer
c47522f9e8 [USER32_APITEST]
Fix amd64 build

svn path=/trunk/; revision=53395
2011-08-23 06:45:36 +00:00
Cameron Gutman
74b889b397 [HAL]
- Fix device reporting to work with the IoReportDetectedDevice patch
[HAL/ACPI]
- Turn debugging off

svn path=/trunk/; revision=53394
2011-08-23 05:17:41 +00:00
Cameron Gutman
417749b6bf [PNPMGR]
- Code cleanup

svn path=/trunk/; revision=53393
2011-08-23 04:53:28 +00:00
Cameron Gutman
6cf62841ad [PNPMGR]
- Fix IoReportDetectedDevice to use the caller's driver object

svn path=/trunk/; revision=53392
2011-08-23 03:57:24 +00:00
James Tabor
4ee1da837b [User32]
- Fix copy paste error in DIALOG_IsAccelerator, fixes a crash. 
- Up Dialog.c to 1.3.26, sync port and minimized differences.

svn path=/trunk/; revision=53391
2011-08-23 03:27:14 +00:00
Cameron Gutman
9c6fd6ed0a [INF]
- Install the processors class
- Add missing INFs to syssetup.inf

svn path=/trunk/; revision=53390
2011-08-23 02:28:45 +00:00
Timo Kreuzer
5890b7558e [LIBSAMPLERATE]
- Fix amd64 build

svn path=/trunk/; revision=53389
2011-08-22 22:22:11 +00:00
Timo Kreuzer
d86d341a8e [CRT]
Fix definition of __m128d and __m128.

svn path=/trunk/; revision=53388
2011-08-22 21:59:13 +00:00
James Tabor
7a4c65a6b9 [WineTest:User32]
- Up the rest to 1.3.26.

svn path=/trunk/; revision=53387
2011-08-22 21:33:49 +00:00
James Tabor
3c7ab0bd8a [WineTest:User32]
- Up msg to 1.3.26.

svn path=/trunk/; revision=53386
2011-08-22 21:07:39 +00:00
James Tabor
40fee2398a [Win32k]
- Implement FlashWindowEx without the state verification test via global atom and window properties list. Pass all but two in win:test_FlashWindowEx.
- Add missing atom's and global thread information pointer, based on patch from bug 5655.

svn path=/trunk/; revision=53385
2011-08-22 19:58:32 +00:00
James Tabor
b47bf7e4d5 [WineTest:User32:User32]
- Up win to 1.3.26, keeping original patch plus skipping test_SetForegroundWindow, it hangs on WaitForSingleObject line 2771, needs regression testing.

svn path=/trunk/; revision=53384
2011-08-22 19:16:39 +00:00
Eric Kohl
4b1b0c014e - Update list with the latest changes by jgardou.
- Remove an obviously wrong citation.

svn path=/trunk/; revision=53383
2011-08-22 18:45:10 +00:00
Cameron Gutman
d8128ec9a4 [PNPMGR]
- Fix enumeration of existing root devices after a reboot

svn path=/trunk/; revision=53382
2011-08-22 18:40:40 +00:00
Cameron Gutman
a952a84acd [SERIAL]
- Remove overzealous assertions

svn path=/trunk/; revision=53381
2011-08-22 18:34:01 +00:00
Amine Khaldi
b28c4ec0c7 * Fix build.
svn path=/trunk/; revision=53380
2011-08-22 17:32:57 +00:00
Cameron Gutman
1115b655fa [PNPMGR]
- Print an debug message if IRP_MN_FILTER_RESOURCE_REQUIREMENTS fails
- Don't let a broken driver remove our resource requirements list

svn path=/trunk/; revision=53379
2011-08-22 17:01:33 +00:00
Amine Khaldi
cce9b8224b [SHELL32]
Claudiu Mihail:
* Return ERROR_FILE_NOT_FOUND when a file isn't found. Similar to r53373.

svn path=/branches/shell32_new-bringup/; revision=53378
2011-08-22 16:32:16 +00:00
Timo Kreuzer
6e4670679a [CRT]
add minimal versions of emmintrin.h, mmintrin.h, xmmintrin.h
just enough for libsamplerate

svn path=/trunk/; revision=53377
2011-08-22 16:29:01 +00:00
Amine Khaldi
a3621e43e3 [SHELL32]
Claudiu Mihail:
* Formatting fixes.
* autocomplete test fix.

svn path=/branches/shell32_new-bringup/; revision=53376
2011-08-22 16:28:51 +00:00
Timo Kreuzer
a48c19b60c [LIBSAMPLERATE]
Update to version 0.1.8
Supports amd64 now

svn path=/trunk/; revision=53375
2011-08-22 16:20:30 +00:00
Amine Khaldi
efa1f39fbc * Merge r53373 from trunk.
svn path=/branches/shell32_new-bringup/; revision=53374
2011-08-22 15:31:21 +00:00
Amine Khaldi
0232b2b680 [KERNEL32]
* CreateFile: If the specified file or device does not exist, the function fails and the last-error code is set to ERROR_FILE_NOT_FOUND. Spotted by Claudiu and Vic.

svn path=/trunk/; revision=53373
2011-08-22 15:26:11 +00:00
Timo Kreuzer
d00505fa08 [VIDEOPORT]
Fix amd64 exports

svn path=/trunk/; revision=53372
2011-08-22 15:10:25 +00:00
Timo Kreuzer
378b5f1ab9 [VIDEOPORT]
Fix build

svn path=/trunk/; revision=53371
2011-08-22 15:04:17 +00:00
Timo Kreuzer
7aaf6f25b9 [VIDEOPRT]
Add neccessary function stubs for amd64

svn path=/trunk/; revision=53370
2011-08-22 14:11:14 +00:00
Timo Kreuzer
ecde07a4c7 [STLPORT]
- Fix Interlocked* declarations
- Fix amd64 build

svn path=/trunk/; revision=53369
2011-08-22 13:14:46 +00:00
Timo Kreuzer
8dd9c148b2 [NTOSKRNL]
Remove a duplicate export

svn path=/trunk/; revision=53368
2011-08-22 12:24:04 +00:00
Thomas Faber
d496caa768 [KMTESTS/KE]
- Add concurrent testing to KeGuardedMutex test (part 2/2)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53367
2011-08-22 10:02:12 +00:00
Thomas Faber
ada95144f5 [KMTESTS/KE]
- Add KeGuardedMutex test (part 1/2)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53366
2011-08-22 10:01:02 +00:00
Thomas Faber
5e0db097bc [KMTESTS]
- Mark ExTimer test as hidden
- Mark some more tests as interactive in ExHardError
- Now an automated test run on ROS runs smoothly, aside from assertions

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53365
2011-08-22 09:56:36 +00:00
Thomas Faber
cf1e292d8a [KMTESTS]
- Fix uninitialized variable usage. Found by ROS ;)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53364
2011-08-22 00:46:51 +00:00
Aleksey Bragin
eb0df1b66f - Implement missing parts of "application verifier" initialization which boils down to just enabling DPH either globally or per-DLL.
svn path=/trunk/; revision=53363
2011-08-21 22:15:08 +00:00
Timo Kreuzer
6574d03aac [NTOSKRNL] Update exports for amd64 to match win2k3
svn path=/trunk/; revision=53362
2011-08-21 21:55:30 +00:00
Thomas Faber
a1cc2c02bf [CMAKE]
- Add current source directory to MS RC include paths
- Add include directories to WRC include paths
- Now they should behave identically enough. Thanks to Amine.

svn path=/trunk/; revision=53361
2011-08-21 21:18:59 +00:00
Amine Khaldi
f5e9a08c0b [SERVICES]
* Fix CMake build.

svn path=/trunk/; revision=53360
2011-08-21 18:48:53 +00:00
Thomas Faber
937c60d74a [KMTESTS/EX]
- Add ExSequencedList test and restructure ExSingleList so they can share the test body

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53359
2011-08-21 16:08:27 +00:00
Eric Kohl
bfd0ce90f1 [SERVICES/ADVAPI32]
Rewrite the command packet transfer code between the service control manager (services.exe) and the service control dispatcher (advapi32.dll). The service name is no longer stored in an array of WCHARs at the end of the command packet. The service name is now stored behind the fixed size command packet header using an offset value in the header to determine the start of the string. The same method will be used to store start arguments to the service dispatcher, but it is not fully implemented yet.

svn path=/trunk/; revision=53358
2011-08-21 15:35:19 +00:00
Giannis Adamopoulos
fd133d9dca [win32k]
- Fix some debug output

svn path=/trunk/; revision=53357
2011-08-21 14:57:04 +00:00
Eric Kohl
fd4c31bc62 [ADVAPI32]
QueryServiceLockStatusA/W: If lpLockStatus is NULL or cbBufSize is less than sizeof(QUERY_SERVICE_LOCK_STATUSA/W) pass a pointer to an buffer to RQueryServiceLockStatusA/W.

svn path=/trunk/; revision=53356
2011-08-21 14:04:19 +00:00
Giannis Adamopoulos
eb378e4c86 [win32k]
- Add one more debug channel to trace EVERY message that is sent to user mode
- Add some more traces here and there

svn path=/trunk/; revision=53355
2011-08-21 13:37:23 +00:00
Giannis Adamopoulos
297cb8918d [win32k]
- Remove some unneeded and misleading debug prints when parsing debug channels
- Switch NtUser to the new debug system 

svn path=/trunk/; revision=53354
2011-08-21 12:38:52 +00:00
Cameron Gutman
68612f0ea5 - Enable some more prints in ACPI
svn path=/trunk/; revision=53353
2011-08-21 03:30:04 +00:00
Cameron Gutman
2e792d70fe - Disable the PnP manager debugging again
svn path=/trunk/; revision=53352
2011-08-21 02:54:29 +00:00
Cameron Gutman
607064163c [PO]
- Don't mess with the device interface string
- Fixes receiving power button events
- The "ACPI Shutdown" option in the VirtualBox menu works now

svn path=/trunk/; revision=53351
2011-08-21 02:46:00 +00:00
Cameron Gutman
ea045872b7 [PNPMGR]
- Fix a major logic bug in device tree traversal functions

svn path=/trunk/; revision=53350
2011-08-21 02:40:58 +00:00
Cameron Gutman
6272d3ffc8 [PCI]
- Fix handling of IRP_MN_QUERY_DEVICE_TEXT
[PNPROOT]
- Fix registry query and returning of device description
[ACPI]
- Fix handling of IRP_MN_QUERY_DEVICE_TEXT

svn path=/trunk/; revision=53349
2011-08-21 00:27:58 +00:00
Timo Kreuzer
50157cc4d2 [VFATLIB]
Fix completely non-standard, broken and retarded definition of GET_UNALIGNED_W for 64 bit architectures
The function is supposed to read an unaligned little endian USHORT value. The old version copied the 2 bytes with memcpy to an aligned stack variable and then (bug bug) read the unaligned value directly (discarding the result of the previous operation) and passed it to bswap if neccessary.
The new function simply reads the 2 bytes and combines them using << and |.

svn path=/trunk/; revision=53348
2011-08-20 21:20:33 +00:00
Timo Kreuzer
01129529a8 [MSVCRT]
Add 64bit exports of operator new and operator delete

svn path=/trunk/; revision=53347
2011-08-20 20:25:18 +00:00
Timo Kreuzer
439126ffd6 [CRT]
Make .CRT sections always read only.

svn path=/trunk/; revision=53346
2011-08-20 20:22:04 +00:00
Timo Kreuzer
088f7f2c4f [RTL]
Fix a typo

svn path=/trunk/; revision=53345
2011-08-20 19:46:51 +00:00
Eric Kohl
a02dd46b35 [ADVAPI32]
QueryServiceConfig2A/W: Handle small or null buffer properly.

svn path=/trunk/; revision=53344
2011-08-20 19:08:21 +00:00
Timo Kreuzer
954922d0cd [NTDLL]
- Add exports for RtlInstallFunctionTableCallback and RtlRestoreContext (amd64 only)
[KERNEL32]
- Forward RtlCompareMemory, RtlCopyMemory, RtlDeleteFunctionTable and RtlInstallFunctionTableCallback to ntdll
- Fix build with MSVC amd64

svn path=/trunk/; revision=53343
2011-08-20 19:04:55 +00:00
Timo Kreuzer
7f5e1ecb95 [CRT]
- Add __C_specific_handler stub
- Add aliases for C++ code on amd64 builds
- Fix fmod symbol
- Merge .CRT section into .data on amd64
- remove an old hack

svn path=/trunk/; revision=53342
2011-08-20 17:11:16 +00:00
Timo Kreuzer
a69bcd8bff [MSVCRT]
Fix usage of set_entrypoint

svn path=/trunk/; revision=53341
2011-08-20 17:00:31 +00:00
Timo Kreuzer
8bc82e23e6 [PSDK] Simplify definition for YieldProcessor and add DbgRaiseAssertion for amd64 in winnt.h
[ASM] Fix some stuff for amd64

svn path=/trunk/; revision=53340
2011-08-20 15:53:56 +00:00
Amine Khaldi
56f6314a44 * Somehow these got missed in the sync, even though they were marked as committed...
svn path=/branches/shell32_new-bringup/; revision=53339
2011-08-20 13:55:31 +00:00
Timo Kreuzer
ea4dc61d38 [WIN32K]
Fix amd64 build

svn path=/trunk/; revision=53338
2011-08-20 12:31:37 +00:00
Timo Kreuzer
d34a623b35 [CMAKE]
- handle stdcall decoration in MSVC set_entrypoint

svn path=/trunk/; revision=53337
2011-08-20 12:29:51 +00:00
Giannis Adamopoulos
fcf87307bc [uxtheme]
- Remove a hack that is not needed because it was added to a better place in 53295

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53336
2011-08-20 11:39:05 +00:00
Timo Kreuzer
1810920919 [CRT]
guard some inline functions from being used in certain cases

svn path=/trunk/; revision=53335
2011-08-20 11:27:49 +00:00
Timo Kreuzer
821e46df48 [NTOSKRNL]
Fix amd64 build and some warnings

svn path=/trunk/; revision=53334
2011-08-20 10:41:44 +00:00
Timo Kreuzer
1490c31014 [ASM]
- prefix labels only on x86
- improve syscall stub code

svn path=/trunk/; revision=53333
2011-08-20 10:39:28 +00:00
Cameron Gutman
58972d8a1f [HAL]
- Debugging changes

svn path=/trunk/; revision=53332
2011-08-20 01:47:25 +00:00
Cameron Gutman
2399611baf - Enable PnP debugging
svn path=/trunk/; revision=53331
2011-08-20 01:32:41 +00:00
Cameron Gutman
5ead645eb9 [HAL]
- Hey Arch, don't combine code for 2 different length calculation algorithms into 1 broken mess

svn path=/trunk/; revision=53330
2011-08-19 23:29:21 +00:00
Cameron Gutman
b95c8dcec8 [HAL]
- Add (and fix) more validation and debugging

svn path=/trunk/; revision=53329
2011-08-19 23:11:03 +00:00
Cameron Gutman
d0de510428 [HAL]
- Fix the length calculation for the resource requirements list

svn path=/trunk/; revision=53328
2011-08-19 22:00:48 +00:00
Aleksey Bragin
2cbe366a65 [NTDLL/LDR]
- Fix acquiring image path from process parameters block (the if condition was inverted so that normalization didn't occur when it should).
- Reenable the image options initialization code.

svn path=/trunk/; revision=53327
2011-08-19 21:36:16 +00:00
Timo Kreuzer
a95d8d2213 [RTL]
Hack around lds inability to detect used functions, when they are exported.

svn path=/trunk/; revision=53326
2011-08-19 21:14:11 +00:00
Cameron Gutman
e39c07a7a2 [HAL]
- Simplify device extension setup
- Allocate memory for existing PDOs in the device relations struct

svn path=/trunk/; revision=53325
2011-08-19 20:56:39 +00:00
Timo Kreuzer
8f165f8f05 [RTL]
- Fix this rbuild thingie


svn path=/trunk/; revision=53324
2011-08-19 20:55:54 +00:00
Cameron Gutman
5693ce9637 - Enable debug prints temporarily in an attempt to help diagnose the ACPI issues
svn path=/trunk/; revision=53323
2011-08-19 20:01:32 +00:00
Thomas Faber
a9bba5d113 [KMTESTS]
- ExResource: Fix a TODO
- Fix warnings. All of them.

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53322
2011-08-19 19:03:46 +00:00
Timo Kreuzer
3a2698f9c8 [RTL]
- Rename memgen.c to byteswap.c and merge with the implementations from largeint.c, that were using intrinsics
- Fix amd64 build

svn path=/trunk/; revision=53321
2011-08-19 18:39:47 +00:00
Timo Kreuzer
c952a3638e [CRT]
- Remove duplicated functions
- Fix MSVC amd64 build
- cleanup the cmake file a little
- creadit wine for their code

svn path=/trunk/; revision=53320
2011-08-19 18:10:17 +00:00
Amine Khaldi
178300c8a6 * Sync to trunk HEAD (r53318).
* Fix PCH use in shell32.

svn path=/branches/shell32_new-bringup/; revision=53319
2011-08-19 17:45:34 +00:00
Giannis Adamopoulos
e573e85296 [gdi32]
-fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53318
2011-08-19 16:02:21 +00:00
Giannis Adamopoulos
db6d908bf0 [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53317
2011-08-19 15:58:51 +00:00
Aleksey Bragin
a5d2894b75 - Unbreak trunk for now. Proper fix will come shortly.
svn path=/trunk/; revision=53316
2011-08-19 15:32:07 +00:00
Giannis Adamopoulos
684888734f [desk]
- Implement themes support. Even though it doesn't show a preview and doesn't support choosing a theme size, it can configure themes fine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53315
2011-08-19 15:01:36 +00:00
Timo Kreuzer
6b166d2a44 [INTRIN]
- Use fixed inlined version of __invlpg only on x86

svn path=/trunk/; revision=53314
2011-08-19 15:00:52 +00:00
Giannis Adamopoulos
32c968d82d [uxtheme]
- Move several definitions for undocumented exports to a new header called uxundoc.h

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53313
2011-08-19 14:43:45 +00:00
Cameron Gutman
8d7a669f59 [PNPMGR]
- Fix multiple REG_MULTI_SZ termination issues
- HardwareID is a REG_MULTI_SZ entry not REG_SZ

svn path=/trunk/; revision=53312
2011-08-19 03:56:28 +00:00
Aleksey Bragin
1229fb9469 [NTDLL/LDR]
- Initialize image-specific options.
- Close options key if it was opened in LdrpInitializeProcess().

svn path=/trunk/; revision=53311
2011-08-18 22:06:27 +00:00
Giannis Adamopoulos
94b4483dd9 [desk]
-remove theme.h and merge it in appearance.h

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53310
2011-08-18 21:18:33 +00:00
Giannis Adamopoulos
37e1bc4937 [desk]
- Use GdiGradientFill and GdiTransparentBlt instead of GradientFill and TransparentBlt
- Do not link to msimg32

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53309
2011-08-18 21:07:16 +00:00
Giannis Adamopoulos
f43fe617ef -add definition for GdiTransparentBlt
svn path=/branches/GSoC_2011/ThemesSupport/; revision=53308
2011-08-18 20:51:26 +00:00
Giannis Adamopoulos
677721e82c [desk]
- Use DPRINT1 instead of DbgPrint

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53307
2011-08-18 20:41:16 +00:00
Cameron Gutman
64122c317a - Revert r53305 because Windows unprotects pages this way
svn path=/trunk/; revision=53306
2011-08-18 19:50:19 +00:00
Cameron Gutman
3b6ff19841 [NTOSKRNL]
- Specify a valid number of pages to unprotect

svn path=/trunk/; revision=53305
2011-08-18 19:36:40 +00:00
Cameron Gutman
5f13171411 [NTOSKRNL]
- Implement a special case copy-in for IRP_MN_FILTER_RESOURCE_REQUIREMENTS to prevent NULL pointer access in function drivers

svn path=/trunk/; revision=53304
2011-08-18 18:35:03 +00:00
Cameron Gutman
5a658d1d36 - Swap the failure cases
- Missed change from r53301

svn path=/trunk/; revision=53303
2011-08-18 18:13:52 +00:00
Cameron Gutman
4cf82b565f [NTOSKRNL]
- Fix a typo in a remove lock timeout check
- Fixes breaking into kdbg randomly when a caller specifies no timeout on their remove lock

svn path=/trunk/; revision=53302
2011-08-18 18:06:07 +00:00
Cameron Gutman
320ad29ff4 [NTOSKRNL]
- Return an informational success status if the device interface already exists

svn path=/trunk/; revision=53301
2011-08-18 17:32:26 +00:00
Cameron Gutman
1a2aa7bc69 [ACPI]
- Don't try to start an interface that wasn't registered

svn path=/trunk/; revision=53300
2011-08-18 17:13:38 +00:00
Amine Khaldi
e1d25a83ef * Sync to trunk HEAD (r53298).
svn path=/branches/GSoC_2011/ThemesSupport/; revision=53299
2011-08-18 17:01:34 +00:00
Giannis Adamopoulos
c198f13572 [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53298
2011-08-18 13:57:16 +00:00
Giannis Adamopoulos
6bcd7cb3d4 [thmsvc]
- Add thmsvc to bootcd and register it as a service

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53296
2011-08-18 10:50:15 +00:00
Giannis Adamopoulos
5fb9d5fe3b [uxtheme]
- Add an awful hack to prevent creating a LOGFONTW with a positive height that makes ros nuts

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53295
2011-08-18 10:46:31 +00:00
Thomas Faber
39c506a4aa [KMTESTS/IO]
- Fix and enable all of IoDeviceObject

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53294
2011-08-18 07:53:37 +00:00
Thomas Faber
b9b5b6762d [KMTESTS]
- Make IRP major function name table public
- IoHelper: catch all IRPs and add debug messages

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53293
2011-08-18 07:08:59 +00:00
Cameron Gutman
e1776e956d [NTOSKRNL]
- Handle NULL device relations better

svn path=/trunk/; revision=53292
2011-08-18 00:33:19 +00:00
Cameron Gutman
14345748e5 [NTOSKRNL]
- Print the status returned when an IRP_MN_START_DEVICE request fails

svn path=/trunk/; revision=53291
2011-08-18 00:25:38 +00:00
Cameron Gutman
c85915b113 [NTOSKRNL]
- Uncomment a device node traversal check

svn path=/trunk/; revision=53290
2011-08-18 00:04:49 +00:00
Cameron Gutman
c477153292 [NTOSKRNL]
- Prevent duplicate processing of device objects when bus relations are invalidated multiple times for the bus PDO

svn path=/trunk/; revision=53289
2011-08-17 23:56:40 +00:00
Amine Khaldi
6bd214137d [CSRSRV]
* Missed this. Sorry.

svn path=/trunk/; revision=53288
2011-08-17 14:29:39 +00:00
Cameron Gutman
19c4bb805c [HAL]
- Don't use a hard-coded constant instead of PAGE_SHIFT

svn path=/trunk/; revision=53287
2011-08-17 14:24:36 +00:00
Amine Khaldi
0991448ca8 [VFATLIB]
* Include NDK headers on-demand.
* Improve the PCH use.

svn path=/trunk/; revision=53286
2011-08-17 14:06:16 +00:00
Amine Khaldi
2a1f2c1d6c [EXT2LIB]
* Include NDK headers on-demand.
* Set Mke2fs.h as a PCH.

svn path=/trunk/; revision=53285
2011-08-17 14:05:30 +00:00
Amine Khaldi
42b02afa60 * Include NDK headers on-demand.
svn path=/trunk/; revision=53284
2011-08-17 14:04:33 +00:00
Amine Khaldi
b73b703255 [DXG]
* Include NDK headers on-demand.
* Set dxg_int.h as a PCH.

svn path=/trunk/; revision=53283
2011-08-17 14:01:29 +00:00
Amine Khaldi
63cc65c2d7 [USETUP]
* Include NDK headers on-demand.
* Set usetup.h as a PCH.

svn path=/trunk/; revision=53282
2011-08-17 13:59:47 +00:00
Thomas Faber
ee28aa087c [KMTESTS/IO]
- Rename IoDriverObject test to IoDeviceObject

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53281
2011-08-17 12:04:15 +00:00
Thomas Faber
98a9b9bcfb [KMTESTS]
- ObType: take advantage of r53211
- IoDriverObject: add the remaining functions from the old drvobj and devobj tests
- fix some rbuild files

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53280
2011-08-17 11:50:46 +00:00
Cameron Gutman
2d20935ffb [ACPI]
- OS layer fixes
- Use our cache implementation

svn path=/trunk/; revision=53277
2011-08-17 07:23:55 +00:00
Cameron Gutman
ebcc8d5935 - Fix build
svn path=/trunk/; revision=53276
2011-08-17 06:28:14 +00:00
Cameron Gutman
3c5d660a3d - Free memory using a valid tag
- Don't use a hardcoded constant for pointer size
- Don't access invalid memory when an SCI is absent (fixes ASSERT(Descriptor->u.Interrupt.MinimumVector == Descriptor->u.Interrupt.MaximumVector) failure)
- Remove unreachable code

svn path=/trunk/; revision=53275
2011-08-17 05:55:43 +00:00
Cameron Gutman
3d143c0ab0 - Partially revert r53272 (I forgot that DEVICE_RELATIONS stores a pointer array)
svn path=/trunk/; revision=53274
2011-08-17 05:51:21 +00:00
Thomas Faber
ee9f6bb723 [KMTestSuite]
- Sync to rostests r53161. Fixes build with recent trunk

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53273
2011-08-16 20:51:21 +00:00
Cameron Gutman
85850fc32b [ACPI]
- Fix massive memory corruption during FDO device relations handling

svn path=/trunk/; revision=53272
2011-08-16 20:48:18 +00:00
Jérôme Gardou
fd460fd4a1 [RPCRT4]
- do not wait for other threads in DLL_PROCESS_DETACH
- fix handle leak
- remove debug code

svn path=/trunk/; revision=53271
2011-08-16 20:00:18 +00:00
Eric Kohl
3305cfabfb [ADVAPI32]
Fix QueryServiceStatusEx.

svn path=/trunk/; revision=53270
2011-08-16 19:16:16 +00:00
Amine Khaldi
921b0cfa4d [LWIP]
* Add missing dependency on bugcodes.

svn path=/trunk/; revision=53269
2011-08-16 18:16:23 +00:00
Jérôme Gardou
5ed6d7f55c [RPCRT4]
- reduce difference with WINE : use their implementation of RpcMgmtStopServerListening

svn path=/trunk/; revision=53268
2011-08-15 21:45:12 +00:00
Jérôme Gardou
3d69d4ecf6 [EVENTLOG]
- Stop listening to RPC messages when receiving SERVICE_CONTROL_STOP

svn path=/trunk/; revision=53267
2011-08-15 20:55:07 +00:00
Amine Khaldi
e0cbe302ee * Include NDK headers on-demand.
svn path=/trunk/; revision=53265
2011-08-15 17:12:19 +00:00
Amine Khaldi
2583d5f4fb [HALACPI]
* Add to build. Dedicated to Cameron.
[SPEC2DEF]
* Add an option to set the name of the output def file.

svn path=/trunk/; revision=53264
2011-08-15 15:36:25 +00:00
Giannis Adamopoulos
e4d0ea5330 [desk]
- Rename themes to color schemes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53263
2011-08-15 13:02:06 +00:00
Giannis Adamopoulos
10bed5b061 [uxtheme]
- Properly disable themes when theme hooks are removed
- Add WND_CONTEXT a per window struct that will hold several theme specific information. For now it contains only theme region related info. It will be stored as a window property
- Implement destroying WND_CONTEXT for every window when theme hooks are removed or when the window is destroyed
- Hook the messages that are sent to dialogs, like they are hooked for normal windows
- Hook SetWindowRgn call from user32. When an application calls it, uxtheme will stop setting window region on its own region
- Implement setting a custom window region for windows after receiving WM_WINDOWPOSCHANGED message using GetThemeBackgroundRegion

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53262
2011-08-15 10:22:23 +00:00
Cameron Gutman
36b3277b89 [NTOSKRNL]
- Fix a bug in IopCreateResourceListFromRequirements which was triggering a sanity ASSERT because it forgot to skip conflicting entries

svn path=/trunk/; revision=53261
2011-08-15 08:29:22 +00:00
Cameron Gutman
6d2566752f [ACPI]
- Don't assume that acpi_evaluate_reference will always complete successfully

svn path=/trunk/; revision=53260
2011-08-15 07:46:02 +00:00
Cameron Gutman
ce0491a5c3 - Revert some unintended debugging changes
svn path=/trunk/; revision=53259
2011-08-15 07:36:58 +00:00
Cameron Gutman
96b11c7165 [ACPI]
- Fix a NULL free bug

svn path=/trunk/; revision=53258
2011-08-15 07:35:04 +00:00
Cameron Gutman
bf59a88887 [USETUP]
- Autodetect ACPI like we autodetect a multiprocessor configuration
- This will make the ACPI HAL the default on ACPI-compliant machines while the standard HAL will continue to be the default on older machines
- Please file bugs for any issues encountered when running in ACPI mode and assign them to me (I think it's very important to have working ACPI for 0.4.0 so I'd really like to get everything fixed now)
[TXTSETUP.SIF]
- Add a MP configuration for ACPI HAL
- Slightly modify the names of each HAL configuration

svn path=/trunk/; revision=53257
2011-08-15 06:27:23 +00:00
Cameron Gutman
5b64b837c1 [TXTSETUP.SIF]
- Add an option to install the ACPI HAL
- Feel free to try it out (you might be surprised)

svn path=/trunk/; revision=53256
2011-08-15 05:45:16 +00:00
Cameron Gutman
a7c264087d [NTOSKRNL]
- Hack around a strange registry-related bug (we created the whole registry path previously but it won't let us open it without the correct volatile option) to fix devices enumerated via IoReportDetectedDevice

svn path=/trunk/; revision=53255
2011-08-15 05:43:16 +00:00
Cameron Gutman
bf5c13ed02 [INF]
- Add hal.inf

svn path=/trunk/; revision=53254
2011-08-15 05:39:53 +00:00
Cameron Gutman
ee731ff6d9 [NTOSKRNL]
- Also create the instance key when we create a new device object

svn path=/trunk/; revision=53253
2011-08-15 05:03:53 +00:00
Cameron Gutman
4f39606d60 [HAL]
- Also report the *PNP style IDs
- Don't hang when a power IRP is received

svn path=/trunk/; revision=53252
2011-08-15 04:07:40 +00:00
Cameron Gutman
f23e722950 [HAL]
- Invalidate device relations so the child devices get enumerated

svn path=/trunk/; revision=53251
2011-08-15 03:44:10 +00:00
Cameron Gutman
3efa379202 [HAL]
- Fix string length calculation

svn path=/trunk/; revision=53250
2011-08-15 03:20:17 +00:00
Cameron Gutman
a92715a798 [NTOSKRNL]
- Rewrite IopIsAcpiComputer (and rename to IopIsFirmwareMapperDisabled) to eliminate the need for the ENABLE_ACPI define
- IopIsFirmwareMapperDisabled now reads the registry entry that HAL sets to indicate that the firmware mapper should be disabled
- Partially rewrite IopUpdateRootKey so it does not interfere with HAL's PnP driver
- ACPI is automatically enabled when the ACPI HAL is loaded and disabled when the standard HAL is loaded

svn path=/trunk/; revision=53249
2011-08-15 02:15:18 +00:00
Cameron Gutman
6da6061048 [HAL]
- Fix a bug writing the DisableFirmwareMapper entry

svn path=/trunk/; revision=53248
2011-08-15 01:55:32 +00:00
Cameron Gutman
0819e297e7 [HALACPI]
- Fix several bugs involving garbage data in a PHYSICAL_ADDRESS struct

svn path=/trunk/; revision=53247
2011-08-15 01:19:20 +00:00
Cameron Gutman
21406f7ff3 [PCI]
- Don't report bogus interrupt resources

svn path=/trunk/; revision=53246
2011-08-15 00:28:33 +00:00
Cameron Gutman
10a5a5ac40 [NTOSKRNL]
- Add a debug print when AddDevice fails
- Fix IopStopDevice
- Fix a typo
- Reduce code duplication

svn path=/trunk/; revision=53245
2011-08-15 00:17:42 +00:00
Cameron Gutman
34a7661185 [HAL]
- Fix incorrect modification of device object flags

svn path=/trunk/; revision=53244
2011-08-15 00:08:47 +00:00
Jérôme Gardou
9512185005 [ROSSYM_NEW]
- add missing debug.h include

svn path=/trunk/; revision=53243
2011-08-14 21:39:37 +00:00
Jérôme Gardou
818d33cbe6 [ROSSYM_NEW]
- including debug.h once is enough
This time for real, sorry.

svn path=/trunk/; revision=53242
2011-08-14 21:25:25 +00:00
Jérôme Gardou
1ff79eeb3a [ROSSYM_NEW]
- including debug.h once is enough

svn path=/trunk/; revision=53241
2011-08-14 21:20:07 +00:00
Jérôme Gardou
7b68c5658a [ROSSYM_NEW]
- please, do not include debug.h from precompiled header :-/

svn path=/trunk/; revision=53240
2011-08-14 21:17:14 +00:00
Jérôme Gardou
b3a155a9d9 [CMAKE]
- get back to DllMAinCRTStartup entry point

svn path=/trunk/; revision=53239
2011-08-14 20:34:13 +00:00
Jérôme Gardou
27329d3e73 [UNICOWS]
- doesn't have an entry point

svn path=/trunk/; revision=53237
2011-08-14 20:01:20 +00:00
Amine Khaldi
6b69d04d59 [ROSSYM_NEW]
* Add a PCH.

svn path=/trunk/; revision=53236
2011-08-14 18:12:05 +00:00
Amine Khaldi
e3a1ac4593 * Include NDK headers on-demand.
svn path=/trunk/; revision=53235
2011-08-14 17:31:30 +00:00
Amine Khaldi
0c5dee7f52 [SMDLL]
* Include NDK headers on-demand.
* Introduce a PCH.

svn path=/trunk/; revision=53234
2011-08-14 17:17:02 +00:00
Amine Khaldi
b27131c180 [SAMLIB]
* Include NDK headers on-demand.
* Introduce a PCH.

svn path=/trunk/; revision=53233
2011-08-14 16:59:43 +00:00
Cameron Gutman
53e9ff45bf [NTOSKRNL]
- Fix NULL termination of strings in IoGetDeviceProperty
- Fixes garbage displayed in the Enumerator field of the device manager property page

svn path=/trunk/; revision=53232
2011-08-14 14:44:34 +00:00
Amine Khaldi
704a9a3f49 * Include NDK headers on-demand.
svn path=/trunk/; revision=53231
2011-08-14 12:59:05 +00:00
Amine Khaldi
fe829a3587 [AUTOCHK][CMD][TASKMGR]
* Exclude some indirectly included headers.

svn path=/trunk/; revision=53230
2011-08-14 12:56:59 +00:00
Amine Khaldi
028428f2d4 [GDI32]
* Include NDK headers on-demand.
* Improve the PCH use.

svn path=/trunk/; revision=53229
2011-08-14 12:32:15 +00:00
Amine Khaldi
c61fe8342b [DHCPCSVC]
* Include NDK headers on-demand.
* Improve the PCH use.

svn path=/trunk/; revision=53228
2011-08-14 12:06:23 +00:00
Amine Khaldi
a923266533 [DBGHELP]
* Reduce rosstubs.c dependency to nothing but the PCH.

svn path=/trunk/; revision=53227
2011-08-14 11:48:00 +00:00
Eric Kohl
b80c7bfe5c [ADVAPI32]
Fix indentation. No code change.

svn path=/trunk/; revision=53226
2011-08-14 11:41:28 +00:00
Amine Khaldi
fb0e9ef233 [ADVAPI32]
* Use consistent debugging macros (Wine's).
* Include NDK headers on-demand.
* Improve the PCH.

svn path=/trunk/; revision=53225
2011-08-14 11:31:23 +00:00
Giannis Adamopoulos
5ceabc031a [uxtheme]
- Unfortunately ExtCreateRegion does not seem to work, so for the time being use a simpler (and slower) implementation of UXTHEME_RegionFromDibBits that uses multiple calls to CombineRgn

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53224
2011-08-14 10:52:13 +00:00
Giannis Adamopoulos
cae9fb95e4 [undocuser.h]
- Improve definition of USERAPIHOOK

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53223
2011-08-14 10:45:50 +00:00
Giannis Adamopoulos
6d66e2da43 [win32k]
- Disable some debug prints that are not needed any more

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53222
2011-08-14 10:28:49 +00:00
Giannis Adamopoulos
d5fe671844 [win32k]
- Delete the region passed to NtUserSetWindowRgn. Fixes a horrible region leak that happens in every window that uses SetWindowRgn

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53221
2011-08-14 10:26:28 +00:00
Eric Kohl
0914efaa9a [SERVICES]
Fix the GENERIC_ALL access rights mapping for service handles.

svn path=/trunk/; revision=53220
2011-08-14 08:54:01 +00:00
Amine Khaldi
12af7c5f1f [AUTOCHK][CMD][TASKMGR]
* Include NDK headers on-demand.

svn path=/trunk/; revision=53218
2011-08-13 23:21:06 +00:00
Amine Khaldi
65e2999b86 [REGEDIT]
* Don't include the whole NDK for just one header.
* This allows us to depend on 49 headers less, and it shrinks the PCH by 2MB.

svn path=/trunk/; revision=53217
2011-08-13 22:06:42 +00:00
Amine Khaldi
ac5fecad86 [WS2_32]
* Don't include the whole NDK for just one header.

svn path=/trunk/; revision=53216
2011-08-13 21:39:37 +00:00
Giannis Adamopoulos
ce7f8b879e [win32k]
- Do not offset the region in NtUserSetWindowRgn

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53215
2011-08-13 21:17:44 +00:00
Eric Kohl
fb59583ee0 [ADVAPI32]
Fix and EnumDependentServices[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS/W) pass a pointer to an internal status buffer to REnumDependentServicesA/W.

svn path=/trunk/; revision=53214
2011-08-13 20:49:55 +00:00
Timo Kreuzer
d292220a34 [WIN32K]
Fix return value of IntDesktopOkToClose, spotted by Cameron.

svn path=/trunk/; revision=53213
2011-08-13 20:40:41 +00:00
Cameron Gutman
99329a8c0d [UMPNPMGR]
- Store the correct buffer size for requests that aren't satisfied via the registry
- Fixes displaying the enumerator on the device manager property page

svn path=/trunk/; revision=53212
2011-08-13 20:26:44 +00:00
Timo Kreuzer
62f7fcc714 [NTOSKRNL/WIN32K/NDK]
- OkToClose procedure (OB_OKAYTOCLOSE_METHOD) returns BOOLEAN, not NTSTATUS
- Check ppi for NULL before dereferencing it in IntWinstaOkToClose (it is NULL, if we do our job of cleaning up the win32 process properly)
- Set the win32 process info to NULL on process cleanup
- Free THREADINFO and PROCESSINFO instead of leaking them
- Set NULL cursor, when the last thread is cleaned up in win32k, so we don't call UserSetCursor() in the process cleanup, when we don't have a THREADINFO anymore. This should hopefully fix a crash of MSVC builds.
- Remove unused UserGetNextHandle function
- Fix some warnings

svn path=/trunk/; revision=53211
2011-08-13 20:10:40 +00:00
Eric Kohl
6e9b31dafd [ADVAPI32]
Fix EnumServiceGroupW and EnumServiceStatus[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS/W) pass a pointer to an internal status buffer to REnumServiceGrouW or REnumServiceStatusA/W.

svn path=/trunk/; revision=53210
2011-08-13 19:57:32 +00:00
Jérôme Gardou
ba2fe84f7a [SETUPAPI]
- fix broken check
- fix potential NULL pointer dereference
- fix non critical parameter checks.

svn path=/trunk/; revision=53209
2011-08-13 19:53:29 +00:00
Matthias Kupfer
9ace1afb58 move clean the screen to a later point
svn path=/trunk/; revision=53208
2011-08-13 18:57:33 +00:00
Timo Kreuzer
c5a3858a3e [WIN32K]
Simplify the loop to remove the THREADINFO from the PROCESSINFO's list when cleaning up

svn path=/trunk/; revision=53207
2011-08-13 16:44:49 +00:00
Timo Kreuzer
679ad61edc [WIN32K]
- use the correct pool tags for PROCESSINFO and THREADINFO
- get rid of RETURN macro usage
- misc code cleanup

svn path=/trunk/; revision=53206
2011-08-13 16:27:30 +00:00
Jérôme Gardou
72129a7449 [SETUPAPI]
- fix typo

svn path=/trunk/; revision=53205
2011-08-13 15:55:16 +00:00
Timo Kreuzer
769718b08d [USER32]
Partly sync static.c with wine, reduce diff between ros and wine code. The leak fix is taken care of. Also go back from Get/SetWindowLongPtr to Get/SetWindowLong for LONG values. Using the *Ptr version is wrong for LONG values!

svn path=/trunk/; revision=53204
2011-08-13 15:16:31 +00:00
Cameron Gutman
d1613210c2 [NTOSKRNL]
- Display the loading message for drivers loaded by the PnP manager during boot
- Maybe now NDIS.SYS won't get all the blame for boot hangs ;)

svn path=/trunk/; revision=53203
2011-08-13 14:28:45 +00:00
Eric Kohl
b4fdd97d15 [ADVAPI32]
Fix QueryServiceConfigEx[A/W]:
- If lpServiceConfig is NULL or cbBufSize is less than sizeof(QUERY_SERVICE_CONFIGA/W) pass a pointer to an internal status buffer to RQueryServiceConfigA/W.
- Revert r53153 and r53154. Adding 'in' and 'unique' attributes is NOT an option because this is not compatible with Windows.

svn path=/trunk/; revision=53202
2011-08-13 14:26:55 +00:00
Eric Kohl
33e3cab77d [ADVAPI32]
Fix EnumServicesStatusEx[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS_PROCESS) pass a pointer to an internal status buffer to REnumServicesStatusExA/W. Adding 'in' and 'unique' attributes in the idl file is NOT an option because this is not compatible with Windows.
- Check the InfoLevel.

svn path=/trunk/; revision=53201
2011-08-13 10:53:15 +00:00
Cameron Gutman
86f6c946e7 [IP]
- Zero the sin_zero member in the TDI_ADDRESS_IP struct

svn path=/trunk/; revision=53200
2011-08-13 04:03:26 +00:00
Timo Kreuzer
ea132356c2 [KS]
Fix MSVC build

svn path=/trunk/; revision=53199
2011-08-12 16:53:15 +00:00
Timo Kreuzer
3572e5047e [CRT]
Add assembly stubs and aliases for c++ symbols for MSVC

svn path=/trunk/; revision=53198
2011-08-12 11:43:53 +00:00
Timo Kreuzer
28defeaade [SPEC2DEF]
Ignore redirections for c++ symbols, since this doesn't work with link

svn path=/trunk/; revision=53197
2011-08-12 11:41:35 +00:00
Giannis Adamopoulos
35d8c7686c [uxtheme]
- Implement GetThemeBackgroundRegion for BT_IMAGEFILE background type

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53196
2011-08-12 11:15:26 +00:00
Giannis Adamopoulos
5cc3be3953 [themesvc]
- Add the themes service. For now it will only call ThemeHooksInstall and ThemeHooksRemove. From now on we do not need apihooksrv in order to have themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53195
2011-08-12 10:25:30 +00:00
Giannis Adamopoulos
9a2b6354d0 [uxtheme]
- Send WM_THEMECHANGED when theme hooks are removed and there is an active theme 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53194
2011-08-12 10:21:10 +00:00
Cameron Gutman
ef41655991 [USER32]
- Simplify finding the icon size in IntDrawState
- As a bonus, it now works for black and white icons too

svn path=/trunk/; revision=53193
2011-08-12 10:07:16 +00:00
Cameron Gutman
19abe262d6 [USER32]
- Fix a bitmap leak in IntDrawState

svn path=/trunk/; revision=53192
2011-08-12 09:54:50 +00:00
Cameron Gutman
1b7607bcd9 [USER32]
- Fix bitmap leaks in STATIC_SetIcon and get_icon_size

svn path=/trunk/; revision=53191
2011-08-12 09:39:05 +00:00
Cameron Gutman
85e01470a4 [IPHLPAPI]
- Fix a massive memory leak of our entire TDI entity ID database after each call to getInterfaceInfoSet
- Fix another massive leak of our entire TDI interface table after each call to getInterfaceInfoByIndex and getInterfaceInfoByName
- Fix some uninitialized variable warnings
- Explorer no longer leaks horrendous amounts of memory (about 1 MB per minute even without network activity) when the network status icon is in the system tray

svn path=/trunk/; revision=53190
2011-08-12 08:12:47 +00:00
Cameron Gutman
2218bdc6ab [LWIP]
- Rewrite receive code to make it much simpler, handle some corner cases that weren't treated correctly, and fix the data corruption bug
- Downloaded successfully (no data corruption): OpenOffice 2.4, OpenOffice 3.3, BitTorrent 7.2.1, Firefox 5, Firefox 3.6, Firefox 3, Firefox 2, Abyss Web Server, Opera 9.64, and Opera 11.01

svn path=/trunk/; revision=53189
2011-08-11 21:52:41 +00:00
Cameron Gutman
6fbcf9c9ea [LWIP]
- Fix a buffer overflow when the packet queue has more packets than the receive request can take
- Remove an extra variable

svn path=/trunk/; revision=53188
2011-08-11 21:22:00 +00:00
Eric Kohl
5bf224e84b [WIDL]
- Reapply the switchtype patch from widl-ros.diff. This patch should be sent upstream to wine.

See issue #6406 for more details.

svn path=/trunk/; revision=53187
2011-08-11 18:34:26 +00:00
Amine Khaldi
79e63a86b2 [NETCFGX]
* Improve the PCH and activate it.

svn path=/trunk/; revision=53186
2011-08-11 15:17:39 +00:00
Amine Khaldi
79b21071d2 [WIN32DLLS]
* PCHify some modules when possible.

svn path=/trunk/; revision=53185
2011-08-11 15:16:48 +00:00
Amine Khaldi
76d63856af [MSVCRT]
* Improve the PCH.

svn path=/trunk/; revision=53184
2011-08-11 15:14:25 +00:00
Amine Khaldi
2b5f85b71e [MSAFD]
* Improve the PCH.

svn path=/trunk/; revision=53183
2011-08-11 15:12:53 +00:00
Amine Khaldi
f74397a0da [HHCTRL]
* Add missing wineheaders dependency.
* Set hhctrl.h as a PCH.

svn path=/trunk/; revision=53182
2011-08-11 15:11:25 +00:00
Amine Khaldi
114b604b90 [NETSHELL]
* Improve the PCH.

svn path=/trunk/; revision=53181
2011-08-11 15:09:52 +00:00
Amine Khaldi
92d200d263 [MSWSOCK]
* Add a PCH.

svn path=/trunk/; revision=53180
2011-08-11 15:07:19 +00:00
Amine Khaldi
1d0b56fe2e [MSPORTS]
* Add a PCH.

svn path=/trunk/; revision=53179
2011-08-11 15:06:36 +00:00
Timo Kreuzer
044e4532ea [CMAKE]
Add add_delay_importlibs for MSVC

svn path=/trunk/; revision=53178
2011-08-11 13:39:06 +00:00
Thomas Faber
0a1c394703 [KMTESTS]
- Add a dummy IoHelper driver that can be loaded by driver/device tests
- Minor changes to other standalone drivers

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53177
2011-08-11 11:37:50 +00:00
Thomas Faber
c0f4b0d56c [KMTESTS]
- In fact... don't use WriteConsole at all, as it doesn't allow redirection to a file.

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53176
2011-08-11 08:59:34 +00:00
Thomas Faber
b65e65ac17 [KMTESTS]
- Handle WriteConsole's inability to write large buffers

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53175
2011-08-11 08:50:46 +00:00
Cameron Gutman
248fe419e0 [MSAFD]
- Implement SO_LINGER and SO_DONTLINGER for getsockopt and setsockopt
- Fix and add buffer size checks
- Yes, we've gone this long without SO_LINGER support

svn path=/trunk/; revision=53174
2011-08-11 07:08:16 +00:00
Cameron Gutman
5ea7b9c764 [LWIP]
- Fix user-initiated hard connection closures

svn path=/trunk/; revision=53173
2011-08-11 06:39:17 +00:00
Amine Khaldi
0d496d7999 [WDMAUD.DRV]
* Set wdmaud.h as a PCH.

svn path=/trunk/; revision=53172
2011-08-11 00:11:30 +00:00
Jérôme Gardou
2514bbb7a0 [WIDL]
- use -Oif flag to produce modern (!) NT4 stubs, with Microsoft extensions to IDL language.
[ADVAPI32]
- Initialize *pcbBytesNeeded, as it's marked as [in], it needs to be in the 0-8k range before being passed to RPC.
Now 2nd stage got his mouse and keyboard again.

svn path=/trunk/; revision=53171
2011-08-10 23:19:52 +00:00
Amine Khaldi
33d019d677 [WS2_32]
* Improve the PCH.

svn path=/trunk/; revision=53170
2011-08-10 23:04:40 +00:00
Thomas Faber
72ddf854a5 [KMTESTS/OB]
- More reworking of ObType test. Now it works reliably on Windows.
- Split out testing of object referencing into separate ObReference test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53169
2011-08-10 22:42:32 +00:00
Amine Khaldi
0c577da443 [WS2_32_NEW][WS2HELP]
* Add PCHs.

svn path=/trunk/; revision=53168
2011-08-10 22:40:12 +00:00
Thomas Faber
8806d6a556 [KMTESTS]
- Remove breakpoint on buffer overflow
- Use a compromise for ok_* macros for SIZE_T and [U]LONG_PTR values

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53167
2011-08-10 22:26:14 +00:00
Cameron Gutman
a632188d3a [LWIP]
- Remove 2 custom definitions to use the default values

svn path=/trunk/; revision=53166
2011-08-10 18:04:49 +00:00
Timo Kreuzer
d42308e0a7 [NTOSKRNL]
Fix MSVC build, when KDBG is used

svn path=/trunk/; revision=53165
2011-08-10 16:12:45 +00:00
Timo Kreuzer
5d38248144 [ROSSYM_NEW]
Add RosSymAggregate and RosSymFreeAggregate stubs for MSVC

svn path=/trunk/; revision=53164
2011-08-10 16:11:59 +00:00
Timo Kreuzer
8db60ead01 [RTL]
Fix MSVC warning about signed/unsigned mismatch. In this case it was not a bug, because the compiler implicitly casts to unsigned, when signed and unsigned are compared, so (-1 < 0x23U) is false.

svn path=/trunk/; revision=53163
2011-08-10 13:52:30 +00:00
Thomas Faber
4344e2c27b [KMTESTS/KE]
- KeEvent: part 3/3

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53162
2011-08-10 13:49:36 +00:00
Olaf Siejka
f7ead57f00 - Revert 53150, FAT corruption was not caused by ntdll:exception test;
svn path=/trunk/; revision=53161
2011-08-10 11:29:41 +00:00
Jérôme Gardou
5a88d3050f [SETUPAPI]
- fix confusion on buffer size between string length and number of bytes.
Might fix some infamous heap corruption bug during install. Please test.

svn path=/trunk/; revision=53160
2011-08-10 01:31:35 +00:00
Jérôme Gardou
73386b2c5c [WIDL]
- Don't include non host headers for host executables
I'm sure my dog told me that once.

svn path=/trunk/; revision=53159
2011-08-09 22:58:13 +00:00
Jérôme Gardou
f0bd303530 [TOOLS]
- sync wpp, widl and wrc with wine 1.3.26

svn path=/trunk/; revision=53158
2011-08-09 22:51:55 +00:00
Thomas Faber
4dc0633003 [NTDLL_WINETEST]
- Fix MSVC build

svn path=/trunk/; revision=53157
2011-08-09 22:37:53 +00:00
Jérôme Gardou
72e0eb1606 [RC files]
- don't declare unicode strings, newer wrc doesn't like it, and it's (hopefully) useless.

svn path=/trunk/; revision=53156
2011-08-09 21:44:20 +00:00
Cameron Gutman
9227c6dd11 [LWIP]
- Tune several TCP attributes to behave similarly to Windows XP

svn path=/trunk/; revision=53155
2011-08-09 19:55:12 +00:00
Jérôme Gardou
34f157a953 [SERVICES]
- addendum to r53153 : [unique] and [ptr] can't be applied to [out] only parameters, so mark them as [in] too.
Now MSVC build gets as far as 3rd stage.

svn path=/trunk/; revision=53154
2011-08-09 18:50:00 +00:00
Jérôme Gardou
2e54793dbe [SERVICES]
- mark pointers argument of RQueryServiceConfigA/W as [unique], since they can be NULL.
See http://msdn.microsoft.com/en-us/library/aa367153%28v=VS.85%29.aspx for details.

svn path=/trunk/; revision=53153
2011-08-09 18:39:06 +00:00
Jérôme Gardou
2f1b32269b [RPCRT4]
- restore lost ros specific change.
Thanks Vic.

svn path=/trunk/; revision=53152
2011-08-09 17:43:37 +00:00
Timo Kreuzer
bb14fcf0ac [INTRIN]
memory barriers
- implement a fixed version of __invlpg for MSVC, since the intrinsic is broken and can generate wrong instructions, when optimization is enabled
- add MSVC versions of _mm_mfence, _mm_lfence, _mm_sfence and __faststorefence
- add _mm_mfence() for gcc
- give _mm_lfence, _mm_sfence, __invlpg and __wbinvd proper 

svn path=/trunk/; revision=53151
2011-08-09 14:22:29 +00:00
Amine Khaldi
e6f0664b39 [NTDLL_WINETEST]
* Skip ntdll exception tests until bug 6404 is fixed.

svn path=/trunk/; revision=53150
2011-08-09 12:10:04 +00:00
Cameron Gutman
6ac78fe2f9 [PCNET]
- Implement a simple buffer allocation algorithm which backs off the buffer size until all buffer allocations succeed

See issue #6284 for more details.

svn path=/trunk/; revision=53149
2011-08-09 07:30:10 +00:00
Cameron Gutman
cd830b727c [PCNET]
- Allocate receive and transmit buffers (each 49152 bytes) as cached shared memory to increase the likelihood of a successful allocation in a low memory scenario
See issue #6284 for more details.

svn path=/trunk/; revision=53148
2011-08-09 06:36:10 +00:00
Cameron Gutman
6276b33958 [NDIS]
- Implement NdisMDeregisterIoPortRange
[PCNET]
- Don't call NdisMFreeMapRegisters if no map registers were allocated
- Call MiFreeSharedMemory before freeing map registers to avoid a crash because freeing map registers deallocates the adapter object

svn path=/trunk/; revision=53147
2011-08-09 06:00:38 +00:00
Timo Kreuzer
b2cedb10b3 [RTL]
Fix MSVC warnings

svn path=/trunk/; revision=53146
2011-08-08 22:13:02 +00:00
Cameron Gutman
51388e8603 [AFD]
- Handle canceled reads on datagram sockets

svn path=/trunk/; revision=53145
2011-08-08 22:02:55 +00:00
Cameron Gutman
44bc45f23c [AFD]
- Fix shutdown() for datagram sockets
- Share some code between SD_BOTH and SD_RECEIVE

svn path=/trunk/; revision=53144
2011-08-08 21:57:06 +00:00
Cameron Gutman
2c6c184457 [IP]
- Merge r53134 and r53135 from the GSoC TCP/IP branch

svn path=/trunk/; revision=53143
2011-08-08 21:28:50 +00:00
Cameron Gutman
302ceb19e1 - Just kidding. Fix it for real.
svn path=/trunk/; revision=53142
2011-08-08 21:27:08 +00:00
Cameron Gutman
d4b83ece4b [AFD]
- Fix shutdown(SD_RECEIVE) so it no longer brings down the entire connection

svn path=/trunk/; revision=53141
2011-08-08 21:23:24 +00:00
Timo Kreuzer
fc43b3ef78 [LWIP]
Fix msvc build

svn path=/trunk/; revision=53140
2011-08-08 21:04:33 +00:00
Giannis Adamopoulos
2a4f54ed3c [win32k]
- Add co_MsqSendMessageAsync in order to send asynchronous normal and internal messages 
- Use co_MsqSendMessageAsync to load and unload api hook module
- This hopefully fixes the last problems with api hooks implementation

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53139
2011-08-08 13:31:33 +00:00
Cameron Gutman
dc37c61e1d [PCNET]
- Remove excessive BREAKPOINT usage
- Promote some DPRINTs to DPRINT1s

svn path=/trunk/; revision=53138
2011-08-08 12:06:26 +00:00
Amine Khaldi
e58eab7411 [CMAKE]
* Convert some macros to functions.

svn path=/trunk/; revision=53137
2011-08-08 11:54:20 +00:00
Amine Khaldi
ec0d0002e1 [CMAKE]
* Convert some macros to functions.

svn path=/trunk/; revision=53136
2011-08-08 11:45:34 +00:00
Timo Kreuzer
18d14eb931 [INTRIN]
_mm_pause has an implicit full memory barrier, emulate this on gcc as well

svn path=/trunk/; revision=53133
2011-08-07 23:16:39 +00:00
Amine Khaldi
1eb5d7d6db [CMAKE]
* Convert add_importlibs to a function.

svn path=/trunk/; revision=53132
2011-08-07 22:48:11 +00:00
Jérôme Gardou
e4f1300054 [I8042PRT]
- "implement" IRP_MN_QUERY_PNP_DEVICE_STATE

svn path=/trunk/; revision=53131
2011-08-07 22:46:50 +00:00
Jérôme Gardou
21bb567d79 [I8042PRT]
- fix formatting

svn path=/trunk/; revision=53130
2011-08-07 22:45:17 +00:00
Jérôme Gardou
face9ace47 [IDL]
- set end points of interfaces

svn path=/trunk/; revision=53129
2011-08-07 22:42:51 +00:00
Jérôme Gardou
2beeb48d80 [RPCRT4]
- fix msvc version of call_stubless_func

svn path=/trunk/; revision=53128
2011-08-07 22:42:06 +00:00
Olaf Siejka
65540cab2d [TRANSLATION]
- Resize controls to allow wider strings of polish translation to fit in;
- Assorted translation fixes, added missing strings;
- Patch by Adam Stachowicz (Saibamen) and wojo664, minor corrections by me;

svn path=/trunk/; revision=53127
2011-08-07 21:10:32 +00:00
Cameron Gutman
ff34052697 [IP]
- Remove an obsolete comment

svn path=/trunk/; revision=53126
2011-08-07 21:03:44 +00:00
Giannis Adamopoulos
3f5a2c40ce [uxtheme]
- UXTHEME_LoadTheme call in theme hook callback is still needed in order to load the active theme in an application that starts after themes are enabled

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53125
2011-08-07 20:50:01 +00:00
Giannis Adamopoulos
d00aa9c19e [uxtheme]
- Broadcast WM_THEMECHANGED when hook themes are activated
- Do not call UXTHEME_LoadTheme in the hook theme callback. It will now be called when the application gets WM_THEMECHANGED

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53124
2011-08-07 20:42:22 +00:00
Giannis Adamopoulos
5aaa7a3281 [user32]
- Store ghmodUserApiHook before calling ClearUserApiHook because it will be zeroed during this call
- Fix a typo in ClearUserApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53123
2011-08-07 20:10:07 +00:00
Cameron Gutman
0a3dc4735f [TCPIP]
- Merge the Google Summer of Code TcpIpDriver project to replace our current TCP implementation
- Remove oskittcp
- Big thanks to Claudiu Mihail for his work on the project

svn path=/trunk/; revision=53122
2011-08-07 19:13:23 +00:00
Eric Kohl
6e4f110888 [SERVMAN]
- When a service gets started, read the start parameters from the edit control and pass them to StartService.
- Disable the start parameter edit control while a service is running.

svn path=/trunk/; revision=53121
2011-08-07 19:10:12 +00:00
Jérôme Gardou
3e02029bbf [RPCRT4]
- Hack cmake build file to get wininet.dll delay importing.
msvc build reactos now gets as far as showing 2nd stage setup wizard.
Mouse/keyboard don't respond yet.

svn path=/trunk/; revision=53120
2011-08-07 17:26:49 +00:00
Jérôme Gardou
73d63701da [WINETESTS]
- update rpcrt4 tests to wine 1.3.26 while we're at it.

svn path=/trunk/; revision=53119
2011-08-07 16:20:27 +00:00
Jérôme Gardou
4c3406bcd6 [RPCRT4]
- sync with wine 1.3.26
MAny thanks to Filip Navara for his invaluable help.

svn path=/trunk/; revision=53118
2011-08-07 16:15:10 +00:00
Jérôme Gardou
22227e3f74 [CMAKE]
remove useless file

svn path=/trunk/; revision=53117
2011-08-07 14:26:36 +00:00
Jérôme Gardou
47a2a8069d [CMAKE]
- add the possibility to add dependencies to PCH.
- Use it to fix advapi32 build

svn path=/trunk/; revision=53116
2011-08-07 11:13:45 +00:00
Jérôme Gardou
42a9865a35 [CMAKE]
- tentative to fix buildbot cmake build

svn path=/trunk/; revision=53115
2011-08-07 11:03:24 +00:00
Jérôme Gardou
f337a7aca5 [RPCSS]
-Fix build

svn path=/trunk/; revision=53114
2011-08-07 01:25:31 +00:00
Jérôme Gardou
d25222c0de [ROSTESTS/CMAKE]
- fix rpcrt4 winetest build file according to r53112

svn path=/trunk/; revision=53113
2011-08-07 00:54:26 +00:00
Jérôme Gardou
8e004513b0 [CMAKE][CMAKE]
- turn most macros in function 2/x.
- separate rpc server and client stubs, and generate them directly instead of using a library, so they got the flags that the module uses.
- commit forgotten file from r53088
- get rid of winesdk target, it's useless now

svn path=/trunk/; revision=53112
2011-08-07 00:53:19 +00:00
Jérôme Gardou
909357699b [CMAKE]
- fix "use of uninitialized variables" warning.
Yes, cmake got this to!

svn path=/trunk/; revision=53111
2011-08-07 00:46:46 +00:00
Jérôme Gardou
186d1c6ac5 [CMAKE]
- turn most macros in function 1/x.
This avoids defining a truckload of variables in the global space, and some of these variables would collapse themselves in certain cases.

svn path=/trunk/; revision=53110
2011-08-07 00:45:23 +00:00
Amine Khaldi
bab90b199e [CMAKE]
* Set RC compiler for some modules.

svn path=/trunk/; revision=53109
2011-08-06 23:18:17 +00:00
Amine Khaldi
dc953e9159 [REGEDIT]
* Lose the BOM.

svn path=/trunk/; revision=53108
2011-08-06 23:15:46 +00:00
Amine Khaldi
d13803296d [AVIFIL32]
* Encode avifile_Bg.rc in UTF-8 without BOM.

svn path=/trunk/; revision=53104
2011-08-06 18:50:52 +00:00
Thomas Faber
3ae8c94b38 [KMTESTS]
- Rename ObCreate test to ObType, and apply some major refactoring. Now _almost_ works on Windows....
- Add a readme file

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53103
2011-08-06 17:09:39 +00:00
Thomas Faber
a258b5fbd7 [WIN32K] - Fix uninitialized variable usage
[ADVAPI32] - Fix a TRACE
[PCIX] - Fix statements without effect
Spotted by MSVC.

svn path=/trunk/; revision=53102
2011-08-06 17:02:54 +00:00
Ged Murphy
571521cb3b Remove shell32_new, the real one is in the branch
svn path=/trunk/; revision=53101
2011-08-06 12:51:02 +00:00
Cameron Gutman
e7aed35533 [MSAFD]
- Remove a broken debug print

svn path=/trunk/; revision=53100
2011-08-06 12:01:09 +00:00
Eric Kohl
ec4b20cd3a [SERVICES]
Fix coding style. No code changes.

svn path=/trunk/; revision=53098
2011-08-06 10:37:12 +00:00
Thomas Faber
beead78f7b [KMTESTS]
- KeEvent: a little concurrent testing (part 2/x)
- ExFastMutex: concurrent testing (part 2/2)
- Fix copypasta

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53091
2011-08-05 21:12:11 +00:00
Thomas Faber
f2cae03a42 [KMTESTS]
- add KeEvent test (part 1/x)
- add ExFastMutex test (part 1/2)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53090
2011-08-05 21:07:52 +00:00
Jérôme Gardou
073e87c6d2 [CMAKE]
- make generated files depend on their generator
It seems stupid, but I removed this quite some time ago, don't ask me why.
Now, you just have to build the tools and do an incremental build each time a tool is updated.

svn path=/trunk/; revision=53088
2011-08-05 20:40:40 +00:00
Jérôme Gardou
ef2548095f [PSDK]
- do not redefine UNICODE_STRING and NTSTATUS if wintrnl.h has already been included
- define PNTSTATUS in wintrnl.h
- add RPC_PROTSEC_VECTOR and RPC_MGMT_AUTHORIZATION_FN definitions

svn path=/trunk/; revision=53087
2011-08-05 19:35:54 +00:00
Jérôme Gardou
02fa32bc59 [FORMATTING]
- damn you notepad++

svn path=/trunk/; revision=53086
2011-08-05 17:58:27 +00:00
Jérôme Gardou
d5194ad2dc [FREELDR]
- Add back apparently lost line of r52098.
Patch by Alex Ionescu, tested by Igor Paliychuk.
See issue #6292 for more details.

svn path=/trunk/; revision=53085
2011-08-05 17:54:06 +00:00
Amine Khaldi
b1c97b02d8 [CMAKE]
* Force cl as the C/C++ Compiler when we detect the WDK environment.
* Buildbot can now have PCH support back.

svn path=/trunk/; revision=53084
2011-08-05 14:48:47 +00:00
Thomas Faber
804d5c4e32 [KMTESTS/RTL]
- Remove hacks from RtlSplayTree/RtlAvlTree tests
- Extend RtlMemory test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53082
2011-08-05 09:44:20 +00:00
Thomas Faber
9385a7847e [NDK]
- Add RtlCompareMemoryUlong and RtlCopyBytes/RtlFillBytes/RtlZeroBytes

svn path=/trunk/; revision=53081
2011-08-05 09:36:32 +00:00
Thomas Faber
8fd9e23140 [DHCPCSVC] - Fix another funny GetLastError DPRINT
[NETID] - It's unicode! Surprising it even worked. Fixes warnings
[SACDRV] - Fix entry point warning
[CRT] - Fix MSVC warning

svn path=/trunk/; revision=53080
2011-08-05 09:02:40 +00:00
Cameron Gutman
8cd5ca67a3 [CRTDLL]
- Free the correct variable in the failure case

svn path=/trunk/; revision=53079
2011-08-05 04:55:34 +00:00
Cameron Gutman
794ae4203f - Fix the stupid mess we created when making this from the cmake branch
- Part 1 of 2

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53074
2011-08-05 02:25:05 +00:00
Thomas Faber
6de4861d8c [DDK/XDK]
- Add function types, not only function pointer types, for splay/avl tree functions
- RTL_SPLAY_LINKS needs to be defined regardless of RTL_USE_AVL_TABLES
[NDK]
- Add missing splay/avl tree function declarations
- Add the function types as well. These are also not in ntifs anymore

svn path=/trunk/; revision=53073
2011-08-05 01:20:28 +00:00
Thomas Faber
9c2f3b9dec [CSRSRV]
- Define NDEBUG only once
- Don't define helper macro in the source
- DPRINT fixes
[NTDLL/LDR]
- More verbose DPRINT for initialization failure

svn path=/trunk/; revision=53072
2011-08-05 00:50:51 +00:00
Thomas Faber
4b7e537cf9 [KERNEL32] - Fix DuplicateHandle return value
[WIN32CSR] - Fix DPRINT

svn path=/trunk/; revision=53071
2011-08-04 22:53:57 +00:00
Alex Ionescu
b1daf52fc4 [NTOSKRNL]: Implement SystemRangeStartInformation.
svn path=/trunk/; revision=53070
2011-08-04 22:41:39 +00:00
Alex Ionescu
1ba986ca27 [KERNEL32]: Fix the handle APIs. DuplicateHandle was pretty broken w.r.t console handles, and the Query/Set APIs didn't handle those at all.
svn path=/trunk/; revision=53069
2011-08-04 22:21:39 +00:00
Alex Ionescu
4e634556d9 [KERNEL32]: Cleanup and fix the Global* APIs for heap allocation. Mostly parameter check fixing, checking for errors and failure cases, as well as adding SEH (no real functionality improvement, other than fixing a security issue in GlobalLock).
[KERNEL32]: Rename hProcessHeap to BaseHeap, and only allow the heapmem.c access to this (change find.c to use RtlGetProcessHeap() like everyone else).

svn path=/trunk/; revision=53068
2011-08-04 22:18:01 +00:00
Cameron Gutman
52848c4373 [TCPIP]
- Comment out the timeout parameter until I implement disconnect timeouts for lwIP
- Branch repair (part 5 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53067
2011-08-04 20:14:13 +00:00
Cameron Gutman
bf0ff35955 [IP]
- Remove oskittcp.h from the PCH
[LWIP]
- Don't define LWIP_PROVIDE_ERRNO because we get those from our CRT
- Branch repair (part 4 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53066
2011-08-04 19:03:20 +00:00
Cameron Gutman
b5d92f2efc [SPEC2DEF]
- Merge a file that was forgotten in r52122
- Branch repair (part 3 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53065
2011-08-04 18:31:07 +00:00
Jérôme Gardou
e2c053a307 [NTOSKRNL/MM]
- Actually, there is no need to crawl the entire tree, just going past the limit is enough. Thanks Timo.
- Fix MSVC warning, thanks Ged.
Now you have correct AND optimized code, Alex AND Timo should be happy.
I'm only the committer of these fix, the work was mostly done by Thomas Faber and Alex Ionescu.

svn path=/trunk/; revision=53064
2011-08-04 18:23:20 +00:00
Cameron Gutman
b1d8a4df81 - Update to r53061
- Branch repair (part 2 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53063
2011-08-04 17:42:50 +00:00
Cameron Gutman
8b36c2fed5 - Revert r52573
- Branch repair (part 1 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53062
2011-08-04 17:16:20 +00:00
Jérôme Gardou
20087fcf26 [NTOSKRNL]
Fix build

svn path=/trunk/; revision=53061
2011-08-04 16:39:04 +00:00
Jérôme Gardou
415db7e8f3 [NTOSKRNL]
- begin search at the highest possible address in VAD tree

svn path=/trunk/; revision=53060
2011-08-04 16:21:22 +00:00
Alex Ionescu
8be271b56b [NTOSKRNL]: NLS tables should be mapped before PEB.
[NTOSKRNL]: Handle failure of NLS and PEB mapping correctly.
[NTOSKRNL]: Only set Peb->OsCSDVersion if NtHeader->Win32VersionValue is set.

svn path=/trunk/; revision=53059
2011-08-04 13:10:57 +00:00
Alex Ionescu
6da0958817 [KERNEL32]: Cleanup GetSystemInfo and friends, fix some bugs, mainly removing support for unsupported CPUs/architectures, and adding support for PROCESSOR_ARCHITECTURE_AMD64. Did some refactoring to support WoW64 in the future as well.
svn path=/trunk/; revision=53057
2011-08-04 00:55:52 +00:00
Alex Ionescu
17d451a6ae [KERNEL32]: Cleanup and fix bugs in the TimerQueue implementation... mainly related to wrong/incorrect parameter checks and error codes.
svn path=/trunk/; revision=53056
2011-08-04 00:54:00 +00:00
Jérôme Gardou
6f9699f671 [CMAKE]
- add cmake visual ASM compiler detection script, from cmake 2.8.5 + modification to handle ml32/64

svn path=/trunk/; revision=53055
2011-08-03 20:29:04 +00:00
Alex Ionescu
712de8491c [CSRSRV]: All the allocations must come from the CSRSS shared heap, not the current CSR heap.
svn path=/trunk/; revision=53052
2011-08-03 16:37:39 +00:00
Alex Ionescu
a768ce8ab6 [CSRSRV]: CSRSS tries to connect with itself and already has the region mapped, so allow this as a hack.
svn path=/trunk/; revision=53051
2011-08-03 15:45:16 +00:00
Jérôme Gardou
b3526a42af [PSDK]
- mark operators == et != of REFPROPERTYKEY as C++ externs

svn path=/trunk/; revision=53050
2011-08-03 15:20:36 +00:00
Alex Ionescu
5c00d70fce [CSRSRV]: Hey Arch, try creating a shared section before mapping it.
svn path=/trunk/; revision=53049
2011-08-03 15:04:21 +00:00
Jérôme Gardou
76598adce0 [CMAKE]
- use functions instead of macros.
This avoids adding flags multiple times.
See the PARENT_SCOPE option of cmake's command "set" for details.

svn path=/trunk/; revision=53048
2011-08-03 15:02:11 +00:00
Thomas Faber
00a70dd864 [KMTESTS]
- add IoDriverObject test, partly ported from old kmtests. Should possibly be merged with another test
- ExDoubleList: add another small testcase

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53047
2011-08-03 12:48:22 +00:00
Thomas Faber
c588b3e5fc [KMTESTS]
- add RtlSplayTree test. Patch by arty (hacks by me ;])
- add RtlAvlTree test using the same code
- add kmtest_drivers and kmtest_all build targets

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53046
2011-08-03 11:21:35 +00:00
Cameron Gutman
5658b2154c [NDIS]
- Fix adapter binding for the WinPcap driver

svn path=/trunk/; revision=53045
2011-08-03 07:52:51 +00:00
Alex Ionescu
8fd93a6e30 [CSRSRV]: Hey Arch, try creating a shared section before mapping it.
svn path=/trunk/; revision=53044
2011-08-03 06:18:42 +00:00
Alex Ionescu
5567f7d702 [CSRSRV]: Try to see why it appears some processes don't have a handle in their CSR_PROCESS_DATA....
svn path=/trunk/; revision=53043
2011-08-03 05:58:58 +00:00
Alex Ionescu
a2c84355ef [CSRSS]: Fix broken logic.
svn path=/trunk/; revision=53042
2011-08-03 03:57:30 +00:00
Alex Ionescu
326dbd577b [CSRSS]: Hack header to fix build.
svn path=/trunk/; revision=53041
2011-08-03 03:30:56 +00:00
Alex Ionescu
27dfa433c4 [CSRSRV/KERNEL32]: Have CSRSS create a proper shared section (Based on code taken from the CSRSS rewrite in trunk) and attach it to every client.
[CSRSRV/KERNEL32]: Have CSRSS fill out the base server static data. Still a bit of a hack since we should have a basesrv to do this, but it'll fix the "can't install any drivers" bug as well as increase performance since we now cache a bunch of data system-wide.
[KERNEL32]: Remove all related hacks in kernel32.
[CSRSRV]: Only accept the incoming connection if we found CSR process data about it.

svn path=/trunk/; revision=53040
2011-08-03 03:09:02 +00:00
Cameron Gutman
8a7764ca2d [IP]
- Correct the error number comments for lwIP 1.4.0
- Translate ERR_WOULDBLOCK
- Translate ERR_IF and ERR_CONN to a more accurate status
[LWIP]
- Remove another debug print

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53039
2011-08-02 23:46:32 +00:00
Olaf Siejka
ca2dc10f1b [CSRSRV]
- don't hack the dll entry point name. Patch by Thomas Faber

svn path=/trunk/; revision=53038
2011-08-02 22:54:30 +00:00
Cameron Gutman
b0f4c80bdd [NETSHELL]
- Fix icon handle leaks in the network status taskbar icon

svn path=/trunk/; revision=53037
2011-08-02 22:18:57 +00:00
Eric Kohl
3d34260a62 [SERVICES]
- If a service will be started and another service is already running in the same image, send a start command instead of starting the process again.
This enables us to run multiple services within a single process, like svchost.exe.

svn path=/trunk/; revision=53036
2011-08-02 20:37:48 +00:00
Claudiu Mihail
5936438d83 [lwIP]
- Remove debug prints

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53035
2011-08-02 20:03:57 +00:00
Cameron Gutman
3684e4d392 [TCPIP]
- Remove some more debugging
[IP]
- Only print a message if the operation failed

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53034
2011-08-02 19:52:25 +00:00
Claudiu Mihail
cb01eb2af4 [TCPIP]
- Remove debug prints
- Modify error code translations
[lwIP]
- Fix race conditions caused by checking the SocketContexts of connections from outside the lwIP main thread context
- Don't explicitly remove callbacks from pcbs (no reason to do apperently)
- Use pbuf_free_callback (which can be safely called from outside the lwIP main thread context) instead of pbuf_free

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53033
2011-08-02 19:20:40 +00:00
Rafal Harabien
657d4463e4 [WIN32K]
- Fix a typo. Spotted by Giannis Adamopoulos

svn path=/trunk/; revision=53032
2011-08-02 16:29:33 +00:00
Rafal Harabien
b81d61b5e8 [WIN32K]
- Make UserDrawCaption much more simple and compatible with Windows. It supports now icon given in parameter places text and icon in valid position. Fixes Start button icon in explorer_new.
- Uncomment two function in win32k. I used one of them in UserDrawCaptionText and seems to work
- Add debug print to NtGdiPatBlt

svn path=/trunk/; revision=53031
2011-08-02 16:22:39 +00:00
Giannis Adamopoulos
644f00c51a [win32k]
- HACK RegisterClass in order to let comctl32 re-register built in classes. This is needed in order to fix themes and will keep it till we find a way to do it properly. (of course this breaks class wine tests as well)

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53030
2011-08-02 13:59:13 +00:00
Giannis Adamopoulos
1c6d8ce568 [comctl32]
- Register themed built-in controls even if themes are not enabled. This allows built in controls to use themes without restarting the application
- Register built in controls in the same way it done in windows (as global classes that belong to comctl32). This is needed in order to have themed controls in dialogs. Unfortunately our user32/win32k does not support it yet and this breaks themed built in controls

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53029
2011-08-02 13:54:41 +00:00
Cameron Gutman
02b56ebcbc [AFD]
- Handle TDI receive completion better

svn path=/trunk/; revision=53028
2011-08-02 13:46:16 +00:00
Giannis Adamopoulos
234190071e [comctl32]
- Do not call CombineRgn with erroneous parameters
- Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53027
2011-08-02 13:42:18 +00:00
Giannis Adamopoulos
e3a05782a8 [uxtheme]
- Do not try to load the current theme when uxtheme loads. Instead, load the current theme when theme hooks are installed or when the application receives a WM_THEMECHANGED message. This allows us to change themes without restarting the running applications.
- Use the default behaviour of DefWindowProc from user32 when themes are not active. This allows us to have api hooks enabled when themes are disabled.

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53026
2011-08-02 13:38:58 +00:00
Jérôme Gardou
6b39d13104 [CMAKE/GCC]
- fix entry point for native dlls

svn path=/trunk/; revision=53025
2011-08-02 06:11:12 +00:00
Jérôme Gardou
9d51236a9d [PSDK/WINNT.H]
- add DEFINE_ENUM_FLAG_OPERATORS macro

svn path=/trunk/; revision=53024
2011-08-02 06:10:15 +00:00
Rafal Harabien
fef1661346 [NTOSKRNL]
- Fix *TRACE macros definition. See r53008 for more info.

svn path=/trunk/; revision=53023
2011-08-01 22:59:44 +00:00
Rafal Harabien
12bdc5e8e3 [WIN32K]
- Fix possible thread reference leak when calling hook
- Fix possible memory corruption if hook is unexpectedly removed
- Cleanup hooks a bit
- Fixes bug #1567 (explorer ghost in taskmgr)

svn path=/trunk/; revision=53022
2011-08-01 22:30:21 +00:00
Thomas Faber
4230863f75 [KMTESTS]
- add kmt_platform.h that includes user or kernel headers as appropriate and allows Rtl tests to run in user mode without modification
- include kmt_platform.h from kmt_test.h, so that tests don't have to include separate headers. This also allows for a PCH

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53021
2011-08-01 21:53:52 +00:00
Claudiu Mihail
95cdb2c148 [TCPIP]
- merge r53017
- do some code cleanup
[lwIP]
- do some code cleanup

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53020
2011-08-01 20:10:55 +00:00
Cameron Gutman
489942bf51 [TCPIP]
- Remove the extra debug prints since the bug has been fixed

svn path=/trunk/; revision=53019
2011-08-01 13:50:00 +00:00
Cameron Gutman
96272d084e [AFD]
- Use the correct access mode

svn path=/trunk/; revision=53018
2011-08-01 12:41:31 +00:00
Cameron Gutman
6f80903f43 [TCPIP]
- Cancel the disconnect timer if the disconnect is cancelled

svn path=/trunk/; revision=53017
2011-08-01 04:06:55 +00:00
Cameron Gutman
f34cad36e2 [AFD]
- Cancel the in-flight disconnect IRP during socket closure
[TCPIP]
- Make a disconnect IRP cancelable

svn path=/trunk/; revision=53016
2011-08-01 03:54:19 +00:00
Art Yerkes
a90824eeae [RTL]
Implemenet SwapSplayLinks, return 'NewElement' correctly when inserting.
Thanks to Alex Ionescu for helping out with this patch.

svn path=/trunk/; revision=53015
2011-08-01 03:23:53 +00:00
Cameron Gutman
f1f448e2ba [OSKITTCP]
- Force the connection to be closed immediately
- Hopefully will fix the random bind issues caused by oskit becoming out of sync with the rest of the IP library

svn path=/trunk/; revision=53014
2011-08-01 03:13:18 +00:00
Cameron Gutman
2ec386e0dc [TCPIP]
- Add a couple more debug prints

svn path=/trunk/; revision=53013
2011-07-31 23:32:38 +00:00
Rafal Harabien
7f28186e88 [INETCPL]
- Add missing security propsheet to Polish translation. Should be synced to WINE. Spotted by Adam Stachowicz.

svn path=/trunk/; revision=53012
2011-07-31 23:00:20 +00:00
Rafal Harabien
409a194d76 [INETCPL]
- Add Polish language to build. Spotted by Adam Stachowicz

svn path=/trunk/; revision=53011
2011-07-31 22:50:05 +00:00
Cameron Gutman
d2cccf1dad [IP]
- Add some temporary debug prints to troubleshoot some seemingly random bind failures

svn path=/trunk/; revision=53010
2011-07-31 22:32:18 +00:00
Cameron Gutman
e30f10e6b0 [AFD]
- Clear the sendable flag after a disconnect
- Don't set the sendable flag if send has been closed

svn path=/trunk/; revision=53009
2011-07-31 19:51:32 +00:00
Timo Kreuzer
623f93a9e3 [NTOSKRNL]
Fix OBTRACE definition.
the macro used __VA_ARGS__ and passes that to DPRINT(fmt, ...)
The preprocessor interpretes all arguments of __VA_ARGS__ as one token. This token was now passed as the first parameter of DPRINT1. This caused wrong parameters being used, resulting in a crash.

svn path=/trunk/; revision=53008
2011-07-31 19:26:11 +00:00
Cameron Gutman
9a1c9c3eb4 [FREELDR]
- Skip the floppy drive if the reset command failed

svn path=/trunk/; revision=53007
2011-07-31 19:16:48 +00:00
Cameron Gutman
ba7c40ca5e [FLOPPY]
- Report recalibration failure if the EC flag is set after seeking to fix a hang while trying to read
- Thanks to igorko for testing

svn path=/trunk/; revision=53006
2011-07-31 18:47:35 +00:00
Cameron Gutman
85b2720526 [SERIAL]
- Update the I/O manager's global configuration table with the correct number of serial ports

svn path=/trunk/; revision=53005
2011-07-31 17:18:50 +00:00
Eric Kohl
e4b89070d6 [SERVICES]
- ScmCreateOrReferenceServiceImage: Link the SERVICE_IMAGE struct to the SERVICE struct in the create and the reference case. Otherwise only the first service started from an image gets a valid pImage pointer.
- Add some debug code. 

svn path=/trunk/; revision=53004
2011-07-31 10:29:41 +00:00
Timo Kreuzer
c325addac5 [ISOBOOT]
Use a high segment and 0 offset when loading setupldr.
This fixes problems with an award bios.
Thanks to Igor Paliychuk (igorko) for his help and patience burning / testing dozens of isos
Fixes boot regression of cmake builds on real hw.

svn path=/trunk/; revision=53003
2011-07-30 20:34:55 +00:00
Sylvain Petreolle
d4a9777f27 [FULLFAT]
Add missing bugcodes dependency, spotted by elhoir.

svn path=/trunk/; revision=53001
2011-07-29 16:36:48 +00:00
Alex Ionescu
59ccf2a927 [KERNEL32]: Cleanup and fix multiple bugs in the Version APIs. Code is neater, more efficient, and more compatible.
svn path=/trunk/; revision=52990
2011-07-28 23:58:29 +00:00
Cameron Gutman
72904b8f1f [KERNEL32]
- Temporarily comment out FLS APIs which are unimplemented to fix FF 5 and Opera setup

svn path=/trunk/; revision=52989
2011-07-28 22:58:05 +00:00
Alex Ionescu
db3a9402f0 [GLU32]: Unfortunately, you can't just stick PCH on top of ANY header. Source changes have to be made.
svn path=/trunk/; revision=52988
2011-07-28 20:56:13 +00:00
Amine Khaldi
d8d265ce72 [LIBS]
* Introduce PCH to the remaining libs when possible, using their main headers.

svn path=/trunk/; revision=52986
2011-07-28 16:23:25 +00:00
Amine Khaldi
3e20601b21 [EPSAPI]
* Add a PCH.

svn path=/trunk/; revision=52985
2011-07-28 16:21:48 +00:00
Amine Khaldi
2525881109 [SOUNDBLASTER]
* Add a PCH.

svn path=/trunk/; revision=52984
2011-07-28 16:19:09 +00:00
Amine Khaldi
7000348187 [MMENT4]
* Add a PCH.

svn path=/trunk/; revision=52983
2011-07-28 16:17:45 +00:00
Amine Khaldi
935598ba6f [MMEBUDDY]
* Add a PCH.

svn path=/trunk/; revision=52982
2011-07-28 16:17:04 +00:00
Amine Khaldi
5d6fa88775 [IP]
* Add a PCH.

svn path=/trunk/; revision=52981
2011-07-28 16:16:18 +00:00
Amine Khaldi
2419e4895b [DRIVERS]
* Introduce PCH to the remaining drivers when possible, using their main headers.

svn path=/trunk/; revision=52980
2011-07-28 16:13:00 +00:00
Amine Khaldi
b3b76f610b [URLMON]
* Use urlmon_main.h as a PCH.

svn path=/trunk/; revision=52979
2011-07-28 15:57:31 +00:00
Amine Khaldi
813c1f831e [SYSSETUP]
* Add a PCH.

svn path=/trunk/; revision=52978
2011-07-28 15:57:04 +00:00
Amine Khaldi
33869114eb [SETUPAPI]
* Use setupapi_private.h as a PCH.

svn path=/trunk/; revision=52977
2011-07-28 15:56:35 +00:00
Amine Khaldi
be4f89d5a9 [MSI]
* Use msipriv.h as a PCH.

svn path=/trunk/; revision=52976
2011-07-28 15:56:04 +00:00
Amine Khaldi
29db79e1e0 [JSCRIPT]
* Use jscript.h as a PCH.

svn path=/trunk/; revision=52975
2011-07-28 15:55:42 +00:00
Amine Khaldi
5c0b8039c7 [GLU32]
* Use gluos.h as a PCH.

svn path=/trunk/; revision=52974
2011-07-28 15:55:20 +00:00
Amine Khaldi
6094fad410 [DBGHELP]
* Use dbghelp_private.h as a PCH.

svn path=/trunk/; revision=52973
2011-07-28 15:54:55 +00:00
Amine Khaldi
3c57b7deae [BROWSEUI]
* Add a PCH.

svn path=/trunk/; revision=52972
2011-07-28 15:54:22 +00:00
Amine Khaldi
fb293f4f27 [FONTEXT]
* Use fontext.h as a PCH.

svn path=/trunk/; revision=52971
2011-07-28 15:11:55 +00:00
Amine Khaldi
42cb3663f0 [DXDIAGN]
* Use dxdiag_private.h as a PCH.

svn path=/trunk/; revision=52970
2011-07-28 15:10:36 +00:00
Amine Khaldi
3a0c06b31e [WINED3D]
* Use wined3d_private.h as a PCH.

svn path=/trunk/; revision=52969
2011-07-28 15:10:02 +00:00
Amine Khaldi
422a1762dc [DDRAW]
* Use ddraw_private.h as a PCH.

svn path=/trunk/; revision=52968
2011-07-28 15:09:27 +00:00
Amine Khaldi
26f669f6f0 [D3D9]
* Use d3d9_private.h as a PCH.

svn path=/trunk/; revision=52967
2011-07-28 15:09:03 +00:00
Amine Khaldi
0c012e5ebe [D3D8]
* Use d3d8_private.h as a PCH.

svn path=/trunk/; revision=52966
2011-07-28 15:08:36 +00:00
Amine Khaldi
d1d3ad3a5a [QUARTZ]
* Use quartz_private.h as a PCH.

svn path=/trunk/; revision=52965
2011-07-28 15:07:56 +00:00
Amine Khaldi
1864121f5b [QEDIT]
* Use qedit_private.h as a PCH.

svn path=/trunk/; revision=52964
2011-07-28 15:07:24 +00:00
Amine Khaldi
908a180da4 [DMUSIC]
* Use dmusic_private.h as a PCH.

svn path=/trunk/; revision=52963
2011-07-28 15:06:56 +00:00
Amine Khaldi
01e38ad89c [DEVENUM]
* Use devenum_private.h as a PCH.

svn path=/trunk/; revision=52962
2011-07-28 15:06:24 +00:00
Amine Khaldi
c973728a5a [USRMGR]
* Use usrmgr.h as a PCH.

svn path=/trunk/; revision=52961
2011-07-28 15:02:50 +00:00
Amine Khaldi
e06a02772e [TIMEDATE]
* Use timedate.h as a PCH.

svn path=/trunk/; revision=52960
2011-07-28 15:01:19 +00:00
Amine Khaldi
6db3c4c729 [POWERCFG]
* Use powercfg.h as a PCH.

svn path=/trunk/; revision=52959
2011-07-28 15:00:43 +00:00
Amine Khaldi
64eae7ac6b [MMSYS]
* Use mmsys.h as a PCH.

svn path=/trunk/; revision=52958
2011-07-28 14:56:00 +00:00
Amine Khaldi
32cc7d4381 [MAIN]
* Use main.h as a PCH.

svn path=/trunk/; revision=52957
2011-07-28 14:55:20 +00:00
Amine Khaldi
e47940a886 [INTL]
* Use intl.h as a PCH.

svn path=/trunk/; revision=52956
2011-07-28 14:54:48 +00:00
Amine Khaldi
9c01cdef4a [INPUT]
* Use input.h as a PCH.

svn path=/trunk/; revision=52955
2011-07-28 14:53:55 +00:00
Amine Khaldi
c3943a55e8 [DESK]
* Use desk.h as a PCH.

svn path=/trunk/; revision=52954
2011-07-28 14:51:51 +00:00
Amine Khaldi
d3506f9de1 [APPWIZ]
* Use appwiz.h as a PCH.

svn path=/trunk/; revision=52953
2011-07-28 14:51:16 +00:00
Amine Khaldi
810eb713c2 [ACCESS]
* Use access.h as a PCH.

svn path=/trunk/; revision=52952
2011-07-28 14:50:36 +00:00
Amine Khaldi
9b7cc651f0 [MESA32]
* Use glheader.h as a PCH.

svn path=/trunk/; revision=52951
2011-07-28 14:49:22 +00:00
Amine Khaldi
6d10ea9044 [LIBXSLT]
* Use libxslt.h as a PCH.

svn path=/trunk/; revision=52950
2011-07-28 14:48:30 +00:00
Giannis Adamopoulos
23e86250fb [user32]
- When ClearUserApiHook returns false, this means that the library will be freed in EndUserApiHook. In this case return success to let win32k know that the process has removed the api hook. Fixes reloading the api hook after unloading it 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52949
2011-07-28 13:06:56 +00:00
Giannis Adamopoulos
4c2f096717 [user32]
- Always call EndUserApiHook if BeginIfHookedUserApiHook returned true

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52948
2011-07-28 12:23:42 +00:00
Thomas Faber
f63c9159c8 [KMTESTS]
- probe user address in user mode
- don't free the result buffer before the driver unlocks it. Fixes assertion in ROS for large buffers

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52947
2011-07-28 09:00:56 +00:00
Daniel Reimer
904172f031 Add the Original Bit Torrent Client to rapps.
svn path=/trunk/; revision=52946
2011-07-27 20:15:10 +00:00
Daniel Reimer
f95023e05a UTF 8 fixes by Igor Paliychuk
svn path=/trunk/; revision=52945
2011-07-27 20:07:56 +00:00
Amine Khaldi
b606b11575 [FRAMEBUF]
* Use framebuf.h as a PCH.

svn path=/trunk/; revision=52944
2011-07-27 19:42:18 +00:00
Amine Khaldi
c20958b2ed [SCSIPORT]
* Add a PCH.

svn path=/trunk/; revision=52943
2011-07-27 19:40:12 +00:00
Amine Khaldi
e46bf780df [UNIATA]
* Use stdafx.h as a PCH.

svn path=/trunk/; revision=52942
2011-07-27 19:39:28 +00:00
Amine Khaldi
10d149340f [PCIIDEX]
* Use pciidex.h as a PCH.

svn path=/trunk/; revision=52941
2011-07-27 19:39:00 +00:00
Amine Khaldi
d73816020d [FLOPPY]
* Add a PCH.

svn path=/trunk/; revision=52940
2011-07-27 19:38:24 +00:00
Amine Khaldi
b6c7fc249e [CLASSPNP]
* Use classp.h as a PCH.

svn path=/trunk/; revision=52939
2011-07-27 19:37:34 +00:00
Amine Khaldi
2906323048 [CDROM]
* Add a PCH.

svn path=/trunk/; revision=52938
2011-07-27 19:36:45 +00:00
Amine Khaldi
b85b09dc1d [BLUE]
* Use blue.h as a PCH.

svn path=/trunk/; revision=52937
2011-07-27 19:35:36 +00:00
Amine Khaldi
f723cb7821 [SERIAL]
* Use serial.h as a PCH.

svn path=/trunk/; revision=52936
2011-07-27 19:34:41 +00:00
Amine Khaldi
232fcfc377 [SERENUM]
* Use serenum.h as a PCH.

svn path=/trunk/; revision=52935
2011-07-27 19:34:11 +00:00
Amine Khaldi
9b39cfb9a1 [TDI]
* Add a PCH.

svn path=/trunk/; revision=52934
2011-07-27 19:33:08 +00:00
Amine Khaldi
d2aa5d0656 [TCPIP]
* Improve the PCH.

svn path=/trunk/; revision=52933
2011-07-27 19:32:18 +00:00
Amine Khaldi
b4e47b9704 [NDIS]
* Improve the PCH.

svn path=/trunk/; revision=52932
2011-07-27 19:31:48 +00:00
Amine Khaldi
064303ad3d [PCNET]
* Use pcnet.h as a PCH.

svn path=/trunk/; revision=52931
2011-07-27 19:31:05 +00:00
Amine Khaldi
afca49adf2 [NE2000]
* Use ne2000.h as a PCH.

svn path=/trunk/; revision=52930
2011-07-27 19:30:24 +00:00
Amine Khaldi
6ece3cae14 [AFD]
* Use afd.h as a PCH.

svn path=/trunk/; revision=52929
2011-07-27 19:29:34 +00:00
Amine Khaldi
637756876e [KS]
* Use priv.h as a PCH.

svn path=/trunk/; revision=52928
2011-07-27 19:28:40 +00:00
Amine Khaldi
33a5965db9 [SERMOUSE]
* Use sermouse.h as a PCH.

svn path=/trunk/; revision=52927
2011-07-27 19:27:35 +00:00
Amine Khaldi
9add5ea74e [MOUCLASS]
* Use mouclass.h as a PCH.

svn path=/trunk/; revision=52926
2011-07-27 19:25:28 +00:00
Amine Khaldi
ef9b793996 [KBDCLASS]
* Use kbdclass.h as a PCH.

svn path=/trunk/; revision=52925
2011-07-27 19:08:34 +00:00
Amine Khaldi
c909ff6f02 [I8042PRT]
* Use i8042prt.h as a PCH.

svn path=/trunk/; revision=52924
2011-07-27 18:58:27 +00:00
Timo Kreuzer
a79af2e728 [NTOSKRNL]
Fix MSVC version of KiConvertToGuiThread (save and restore ebx)
Noticed by Dmitry

svn path=/trunk/; revision=52923
2011-07-27 13:37:57 +00:00
Amine Khaldi
c0789864ad [NTOSKRNL]
* Get buildno.h out of the PCH.

svn path=/trunk/; revision=52922
2011-07-27 13:07:32 +00:00
Amine Khaldi
11b5e19137 [MUP]
* Use mup.h as a PCH.

svn path=/trunk/; revision=52921
2011-07-27 12:41:50 +00:00
Amine Khaldi
4e5b336aaf [FS_REC]
* Use fs_rec.h as a PCH.

svn path=/trunk/; revision=52920
2011-07-27 10:47:25 +00:00
Amine Khaldi
bd752471be [EXT2FS]
* Use ext2fsd.h as a PCH.

svn path=/trunk/; revision=52919
2011-07-27 10:11:21 +00:00
Amine Khaldi
219d76ad86 [CMAKE]
Thomas Faber:
- Properly Initialize OUTPUT_VARIABLE.

svn path=/trunk/; revision=52918
2011-07-27 09:18:46 +00:00
Dmitry Gorbachev
df375f4411 [NTOSKRNL]
Fix a bug in KiConvertToGuiThread inline asm and get rid of 1 instruction.

svn path=/trunk/; revision=52917
2011-07-27 02:37:47 +00:00
Dmitry Gorbachev
4a710e9277 [CDFS]
Workaround for GCC 4.6 optimizer bug (ICE when compiling with -O3).

svn path=/trunk/; revision=52916
2011-07-27 02:37:40 +00:00
Dmitry Gorbachev
8cbe6f90ea Add "-fno-omit-frame-pointer" compiler option. GCC 4.6 omits on -O2 and -O3 level.
svn path=/trunk/; revision=52915
2011-07-27 02:37:33 +00:00
Dmitry Gorbachev
e2c5e2345a [FASTFAT]
Do not set attribute "normal" on files. Bug #6384.

svn path=/trunk/; revision=52914
2011-07-27 02:36:56 +00:00
Rafal Harabien
ab7897e9d6 [DESK]
- Fix MS VC compilation. Spotted by Michael Martin
- Remove unused definition

svn path=/trunk/; revision=52913
2011-07-27 01:00:47 +00:00
Alex Ionescu
32ed1e22ae [KERNEL32]: Don't try to acquire any privileges for now, as the API is unimplemented (restore back to original/broken behavior).
svn path=/trunk/; revision=52912
2011-07-27 00:30:38 +00:00
Amine Khaldi
20c199a07b [PCI/PCMCIA]
* Use pci.h and as pcmcia.h as PCH's.

svn path=/trunk/; revision=52911
2011-07-26 22:19:36 +00:00
Amine Khaldi
517c803854 [ISAPNP]
* Use isapnp.h as a PCH.

svn path=/trunk/; revision=52910
2011-07-26 22:16:41 +00:00
Amine Khaldi
6769b0f47a [CMD]
* tchar.h is already in the PCH. Don't include it here.

svn path=/trunk/; revision=52909
2011-07-26 22:13:42 +00:00
Amine Khaldi
0597fb5145 [3DTEXT]
* Use 3dtext.h as a PCH.

svn path=/trunk/; revision=52908
2011-07-26 22:09:21 +00:00
Amine Khaldi
fd5f6e54bc [RAPPS]
* Use rapps.h as a PCH.

svn path=/trunk/; revision=52907
2011-07-26 22:07:22 +00:00
Amine Khaldi
0264f3cffa [NSLOOKUP]
* Use nslookup.h as a PCH.

svn path=/trunk/; revision=52906
2011-07-26 22:05:26 +00:00
Amine Khaldi
c24708d72f [NET]
* Use net.h as a PCH.

svn path=/trunk/; revision=52905
2011-07-26 22:02:52 +00:00
Amine Khaldi
4a432c0c70 [TELNET]
* Introduce a PCH.
* BTW, the recent and upcoming changes are two-fold: First, having a precompiled header will increase build speed. Furthermore, PCH support allows CMake dependency tracking files to shrink drastically. For example it's (depend.make) 95% smaller for this module than it used to be. This means an even better build system compared to rbuild, not to mention it's now faster than before.
* This work is dedicated to Jerome.

svn path=/trunk/; revision=52904
2011-07-26 21:56:48 +00:00
Amine Khaldi
005a96a6b5 [FTP]
* Introduce a PCH.

svn path=/trunk/; revision=52903
2011-07-26 21:51:36 +00:00
Amine Khaldi
54c46d508f [FINGER]
* Introduce a PCH.

svn path=/trunk/; revision=52902
2011-07-26 21:49:14 +00:00
Amine Khaldi
e87cb26ad8 [MSPAINT]
* Introduce a PCH.
* Fix Brush function declaration.

svn path=/trunk/; revision=52901
2011-07-26 21:44:53 +00:00
Claudiu Mihail
6b6f11031e [lwIP]
- Revert the timer hack. It's no longer needed for speed boosts. Now lwIP is clean of any foreign code.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52900
2011-07-26 19:29:57 +00:00
Alex Ionescu
6d971807f7 [KERNEL32]: Cleanup of virtual memory functions.
[KERNEL32]: VirtualAllocEx should build a SEH frame.
[KERNEL32]: VirtualAllocEx should make sure the address given is not lower than the system's allocation granularity.

svn path=/trunk/; revision=52899
2011-07-26 14:33:22 +00:00
Alex Ionescu
0b545fdc07 [KERNEL32]: Rewrite almost all the time APIs to do their own conversions instead of calling other APIs (which sometimes have slightly different checks).
[KERNEL32]: Add support for terminal services timezone redirection (one more for GedMurphy's pipe dream) in all the time functions.
[KERNEL32]: Make the time functions acquire SE_SYSTEMTIME_PRIVILEGE when needed (and release it).
[KERNEL32]: Fix the DOS time conversion routines.
[KERNEL32]: Add missing validations to some time functions.
[KERNEL32]: Implement IsTimeZoneRedirectionEnabled.
[KERNEL32]: Reimplement GetSystemTimes to support MP, and treat parameters as optional.

svn path=/trunk/; revision=52898
2011-07-26 14:05:30 +00:00
Timo Kreuzer
22c0da4ef9 [NTOSKRNL]
- Inline KeDisableInterrupts
- Make ExInterlocked* functions portable

svn path=/trunk/; revision=52897
2011-07-26 14:00:08 +00:00
Jérôme Gardou
fc7a05e721 [NTDLL]
- fix the fix : export RtlAcquirePrivilege.
- Also export RtlInterlockedCompareExchange64, it's needed by kernel32

svn path=/trunk/; revision=52896
2011-07-26 13:53:18 +00:00
Jérôme Gardou
cd15a71cda [CMAKE]
-relink win32csr with msvcrt, it's a win32dll

svn path=/trunk/; revision=52895
2011-07-26 11:40:20 +00:00
Claudiu Mihail
ddd3bd5f7a [lwIP/TCPIP]
- Fix completing IRPs with 0 bytes received when getting the data from the connection's packet queue
- Eliminate memory leaks caused by unreleased pbufs
- Get rid of some commented code

In principle the speed issue with lwIP should be pretty much solved now. There's still some minor things to iron out that testing will reveal probably. Initial tests like running opera, downloading stuff etc seem to be very encouraging however.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52894
2011-07-26 11:25:24 +00:00
Rafal Harabien
5fa49ffa95 [DESK]
- Remove forgotten debug print
- Simplify a bit

svn path=/trunk/; revision=52893
2011-07-26 11:12:56 +00:00
Rafal Harabien
9cb007b9f8 [DESK]
- Fix #6262: each new applied color scheme increase the window title height by one
- Don't read REG_QWORD directly to DWORD variable

svn path=/trunk/; revision=52892
2011-07-26 10:51:54 +00:00
Jérôme Gardou
de40c205e9 [NTDLL]
- remove duplicate declaration of RtlAdjustPrivilege

svn path=/trunk/; revision=52891
2011-07-26 08:29:53 +00:00
Jérôme Gardou
3b76cb24ee [NDK/DDK]
Fix definitions of ZwPowerInformation and ZwInitiatePowerAction

svn path=/trunk/; revision=52890
2011-07-26 08:27:35 +00:00
Thomas Faber
c0ecebef26 [KMTESTS/RTL]
- add a concept test for Rtl functions, which can run unmodified in user/kernel mode

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52889
2011-07-26 07:40:19 +00:00
Thomas Faber
c8c231d756 [KMTESTS]
- add missing function KmtAreInterruptsEnabled
- fix an MSVC warning

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52888
2011-07-26 07:38:43 +00:00
Dmitry Gorbachev
98e48b5a92 [WIN32K]
Do not go beyond the MouseHistoryOfMoves[] bounds. Fixes a crash in Win32k.

svn path=/trunk/; revision=52887
2011-07-26 03:24:48 +00:00
Dmitry Gorbachev
21b5c3a4ec [MINGW-W64]
Reduce differences with upstream. Fixes crash if ReactOS is compiled with GCC 4.6.

svn path=/trunk/; revision=52886
2011-07-26 01:16:32 +00:00
Amine Khaldi
3c6161ed9e [MAGNIFY]
* Designate magnifier.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52885
2011-07-26 00:08:58 +00:00
Amine Khaldi
fa0f9a6367 [SPIDER]
* Designate spider.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52884
2011-07-25 23:50:18 +00:00
Amine Khaldi
bcfa5805e1 [SOL]
* Designate solitaire.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52883
2011-07-25 23:43:02 +00:00
Amine Khaldi
eed24c24a5 [DXDIAG]
* Slightly better PCH.

svn path=/trunk/; revision=52882
2011-07-25 23:34:29 +00:00
Amine Khaldi
facaa72810 [CMAKE]
* Link vfatxlib to chkstk.

svn path=/trunk/; revision=52881
2011-07-25 23:26:21 +00:00
Amine Khaldi
0e157e6285 [CALC]
* Make calc.h a PCH in rbuild build too (already done in cmake build).
* Improve this precompiled header.

svn path=/trunk/; revision=52880
2011-07-25 23:21:29 +00:00
Amine Khaldi
27b36a9e55 [AUDIOSRV]
* Designate audiosrv.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52879
2011-07-25 23:06:48 +00:00
Jérôme Gardou
a28a0da7f1 [CMAKE]
- uext2, ufat and untfs are native dlls

svn path=/trunk/; revision=52878
2011-07-25 22:16:03 +00:00
Jérôme Gardou
a70f7a4d48 [CMAKE]
- add nativedll module type for msvc
- error out in msvc toolchain if unknown module type is set

svn path=/trunk/; revision=52877
2011-07-25 22:15:08 +00:00
Giannis Adamopoulos
86d2150cff [win32k]
- Implement support for debug channels. When a process starts, win32k will parse DEBUGCHANNEL environment variable in order to enable or disable specific debug channels or levels for this application. This gives us the ability to activate from user mode extended debug output for one application, for one component, for one level. In order to use the new debugging system we have to use the macros ERR, FIXME, WARN and TRACE. These are not used yet but shortly every DPRINT/DPRINT1 call will be converted to use the new macros
- Define several win32k channels that will be used in the future
- Remove some hacky definitions of the new macros

svn path=/trunk/; revision=52876
2011-07-25 21:45:47 +00:00
Timo Kreuzer
f1011b2525 [NTOSKRNL]
Fix bugs in ExInterlocked functions.

svn path=/trunk/; revision=52875
2011-07-25 21:06:44 +00:00
Daniel Reimer
04a0c4b70a Updated rapps database by Igor Paliychuk.
FF4 was removed, FF5 was added instead.
Thunderbird 5 was added, too.
Rest was updated to the newest version.

Maybe we should add http://source.winehq.org/patches/data/74067 from wine to get ftp support fixed.

svn path=/trunk/; revision=52874
2011-07-25 21:03:03 +00:00
Amine Khaldi
c036300525 [CMAKE]
* Update our asm support thanks to Jerome.
* Bring in CMakeDetermineCompilerId.cmake to make sure this will work for pretty much all systems.
* Disable the use of response files when you enable ccache.

svn path=/trunk/; revision=52873
2011-07-25 20:50:05 +00:00
Alex Ionescu
7a69501f10 [KERNEL32]: Now that we have the BaseStaticServerData initialized, don't build the \ReactOS and \ReactOS\System32 paths by hand: use the ones we have.
[KERNEL32]: Same goes for BaseCachedSysInfo. Use the BaseStaticServerData->SysInfo instead now.
[KERNEL32]: Don't assume that the BNO directory is called BaseNamedObjects (this won't be true once GedMurphy's dream of multi-session support comes true) -- instead, use the one from BaseStaticServerData.

svn path=/trunk/; revision=52872
2011-07-25 20:23:43 +00:00
Alex Ionescu
64c8e2bb02 [NTDLL]: Export RtlAcquire/ReleasePrivilege.
svn path=/trunk/; revision=52871
2011-07-25 20:21:51 +00:00
Thomas Faber
09ddc722bd [KMTESTS/EX]
- add quick'n'dirty tests for interlocked single/double list functions

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52870
2011-07-25 20:12:44 +00:00
Thomas Faber
928b5489ef [KMTESTS]
- add KeSpinLock test
- KeIrql: also test the actual stdcall versions of KeRaiseIrql/KeLowerIrql
- ExHardError: take advantage of r52847

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52869
2011-07-25 20:08:51 +00:00
Alex Ionescu
2640844400 [KERNEL32]: Fix DPRINT1s.
svn path=/trunk/; revision=52868
2011-07-25 19:55:43 +00:00
Alex Ionescu
c7fec3098c [KERNEL32]: Arch, you have to initialize your strings first!
svn path=/trunk/; revision=52867
2011-07-25 19:26:40 +00:00
Amine Khaldi
3b813c314d [CMAKE]
* Add PCH variable (disabled by default) to configure scripts.
* Add ccache variable to unix configure script.

svn path=/trunk/; revision=52866
2011-07-25 19:08:52 +00:00
Amine Khaldi
5bd86be83b [CMAKE]
* Introduce a temporary cmake variable (PCH) to enable/disable cmake pch support as this requires our patched binary.
* Wrap pch macros around this variable.
* Implement the pch marco accordingly. By Jerome.

svn path=/trunk/; revision=52865
2011-07-25 19:05:00 +00:00
Claudiu Mihail
646142ffcf [lwIP/TCPIP]
- Add queue for connections objects in order to buffer packets that have arrived but have no corresponding receive requests to be assigned to. We buffer these packets to avoid giving a timeout that could cause throughput slowdowns.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52864
2011-07-25 18:45:59 +00:00
Alex Ionescu
f102b7df5f [CSRSRV]: Initialize CSR_CONNECTION_INFO in CsrpHandleConnectionRequest. Should fix the fact CsrProcessId was bogus before, as were the CSR PEB fields.
svn path=/trunk/; revision=52863
2011-07-25 18:39:56 +00:00
Amine Khaldi
c1e9a0abbe [CMAKE]
* De-duplicate IDL flags.

svn path=/trunk/; revision=52862
2011-07-25 18:39:25 +00:00
Alex Ionescu
b2fc587c78 [KERNEL32]: Fix querying the CSDNumber and RCNumber, as this seems to be a bug (no valid data was found on Windows).
svn path=/trunk/; revision=52861
2011-07-25 14:40:59 +00:00
Alex Ionescu
436714e461 [KERNEL32]: Fix potential buffer overflow.
svn path=/trunk/; revision=52860
2011-07-25 06:23:50 +00:00
Dmitry Gorbachev
f7e57490c6 [CSRSRV|NTOSKRNL|KERNEL32|NTDLL]
Fix multiple definition of variables.

svn path=/trunk/; revision=52859
2011-07-25 05:54:37 +00:00
Alex Ionescu
b9dc60fb3f [KERNEL32]: Define the BASE_STATIC_SERVER_DATA structure that BASESRV shares with KERNEL32 on Windows. In Windows, each CSR client/server pair can share such data through the PEB's ReadOnlyStaticServerData array. In ReactOS, this is not (yet) implemented, so if we don't have this data, kernel32 builds a "fake" copy instead. This "fake" copy will still be useful though as it'll let kernel32 cache some data (per-process). With proper CSRSS support, we could cache it per-system, but at least this is a start.
svn path=/trunk/; revision=52858
2011-07-25 03:28:33 +00:00
Timo Kreuzer
406885c606 [NTOSKRNL]
- Use NtTib.ExceptionList instead of Used_ExceptionList
- use ALIGN_DOWN_BY macro

svn path=/trunk/; revision=52857
2011-07-25 00:50:53 +00:00
Timo Kreuzer
66e64692b7 [NTOSKRNL]
Fix typos in comments

svn path=/trunk/; revision=52856
2011-07-25 00:07:07 +00:00
Timo Kreuzer
ee1da65d47 [NTOSKRNL]
- Convert KiCallUserMode from asm to C (with a small asm wrapper)
- Convert KiGetUserModeStackAddress into a C inline function

svn path=/trunk/; revision=52855
2011-07-25 00:01:29 +00:00
Alex Ionescu
425c57b083 [KERNEL32]: Fix the spec/pspec files to match 100% the exports on NT 5.2's Kernel32.dll
[KERNEL32]: Remove, add, fix, stub functions where necessary to handle these new/modified exports.

svn path=/trunk/; revision=52854
2011-07-24 23:42:09 +00:00
Timo Kreuzer
6b64e5ce54 [NTOSKRNL]
Forgot this file

svn path=/trunk/; revision=52853
2011-07-24 23:19:16 +00:00
Timo Kreuzer
dc06eeafec [NTOSKRNL]
Convert most ExInterlocked* functions from asm to C
Exceptions are ExInterlockedAddLargeStatistic and SList funcions

svn path=/trunk/; revision=52852
2011-07-24 23:14:39 +00:00
Olaf Siejka
d040534b02 [NDK]
- Remove Resource functions, as they are in wdm.h
- add KeTryToAcquireQueuedSpinLockRaiseToSynch, ExRaiseHardError & enum members
 Patch by Thomas Faber

svn path=/trunk/; revision=52847
2011-07-24 21:02:50 +00:00
Jérôme Gardou
5b8793626d [CMAKE]
- win32csr doesn't need to be linked to msvcrt

svn path=/trunk/; revision=52846
2011-07-24 18:41:07 +00:00
Jérôme Gardou
9142818431 [CMAKE]
- ufat, ufatx, uext2 and untfs don't really need to link to kernel32 and msvcrt.

svn path=/trunk/; revision=52845
2011-07-24 17:40:53 +00:00
Alex Ionescu
1b137b580f [NDK]: ntpoapi.h only includes Nt functions, not Zw, so leave the Zw's in the NDK.
svn path=/trunk/; revision=52844
2011-07-24 17:14:58 +00:00
Alex Ionescu
242c7a190e [NDK]: Fix Po function prototypes. Also guard against _PO_DDK_ which means caller already has ntpoapi.h.
svn path=/trunk/; revision=52843
2011-07-24 17:06:50 +00:00
Alex Ionescu
63f96f7207 [KERNEL32]: WTSGetActiveConsoleSessionId should return SharedUserData->ActiveConsoleId instead of having its own global.
svn path=/trunk/; revision=52842
2011-07-24 16:53:19 +00:00
Alex Ionescu
078cdde168 [NDK]: Add missing native power functions.
[KERNEL32]: Cleanup the power APIs. Fix calculation of battery percentage in GetSystemPowerStatus.

svn path=/trunk/; revision=52841
2011-07-24 16:50:03 +00:00
Jérôme Gardou
3989ede5bb [CRT]
- get back atexit handling as it was before.
(reverts 52838, 52829, 52828)
Thanks to Kai and Timo for the explanation

svn path=/trunk/; revision=52840
2011-07-24 16:45:41 +00:00
Dmitry Gorbachev
a96df8f6f2 [Win32k]
DbgLogEvent: replace EVENT_TYPE by LOG_EVENT_TYPE (spotted by GCC 4.6).

svn path=/trunk/; revision=52839
2011-07-24 16:17:55 +00:00
Dmitry Gorbachev
b91502ff16 Save the project from possession by evil spirits.
svn path=/trunk/; revision=52838
2011-07-24 16:17:32 +00:00
Jérôme Gardou
a28b6b7837 [KERNEL32]
- release PEB lock for each code path

svn path=/trunk/; revision=52837
2011-07-24 14:57:14 +00:00
Jérôme Gardou
d5534dc11d [MSVCRTEX]
- I say let msvcrt handle atexit registered functions.
Fix msvc build

svn path=/trunk/; revision=52836
2011-07-24 14:37:28 +00:00
Jérôme Gardou
c81afef878 [MSVCRT40]
- static link to crt, correct base address qnd entry point, etc...
See change log of MSVCRT20 for details.

svn path=/trunk/; revision=52835
2011-07-24 13:31:11 +00:00
Jérôme Gardou
7b87ca19ec [MSVCRT20]
- being a full blown crt dll, msvcrt20 needs a correct dllmain entry point

svn path=/trunk/; revision=52834
2011-07-24 13:22:15 +00:00
Dmitry Gorbachev
33b1f742e6 [ATL]
Invoke the member function through "this->".

svn path=/trunk/; revision=52833
2011-07-24 11:54:56 +00:00
Jérôme Gardou
8664f01839 woops, sorry :-)
svn path=/trunk/; revision=52832
2011-07-24 10:41:32 +00:00
Jérôme Gardou
5dbb7bc48b [LIBWINE]
- new tentative to fix build : get rid of libwine's stricmp, we have it in our crt

svn path=/trunk/; revision=52831
2011-07-24 10:29:52 +00:00
Jérôme Gardou
d5b88d327b [MSVCRT20]
- hopefully fix rbuild's build

svn path=/trunk/; revision=52830
2011-07-24 10:05:42 +00:00
Jérôme Gardou
c4513e2457 [MSVCRTEX]
- aply 52828 as well

svn path=/trunk/; revision=52829
2011-07-24 09:05:47 +00:00
Jérôme Gardou
07913a767e [MINGW_COMMON]
- get rid of atexit handling, it's arlready handled by msvcrt.
The funny thing is that the only module using this is msvcrt_winetest, which tested the mingw implementation, not the msvcrt one.

svn path=/trunk/; revision=52828
2011-07-24 08:39:50 +00:00
Jérôme Gardou
1ebafc47ea [MSVCRT]
- being a stub doesn't allow you to be uninitialized

svn path=/trunk/; revision=52827
2011-07-23 22:52:04 +00:00
Jérôme Gardou
4b7b205f04 [MSVCRT20]
- link to static crt instead of forwarding function to msvcrt.
As msvcrt, msvcrt20 exports some variable, marked as DATA in the def file. Forwarding them is not a good idea, since msvcrt would be initialized only if one of the forwarded function is called. We must keep those variables in our module. And as the forwarded functions might use the said variables, we can't really forward them, as they would not know which instance they should reference.

svn path=/trunk/; revision=52826
2011-07-23 22:47:04 +00:00
Amine Khaldi
841762ca39 [CMAKE]
- *Temporarily* back out some rossym/kdbg features until bugs 6372 and 6373 are fixed.
- Traces should be reliable again.
See issue #6372 for more details.

svn path=/trunk/; revision=52825
2011-07-23 22:35:06 +00:00
Alex Ionescu
22cf74c595 [KERNEL32]: Ironically enough, the "unimplemented" SetMessageWAitingIndicator function, which failed with sTATUS_NOT_IMPLEMENTED.... is how Windows implements this API! Mark it as so.
svn path=/trunk/; revision=52824
2011-07-23 22:03:03 +00:00
Jérôme Gardou
da30785e98 [CRT]
- fix stupid gcc warnings
patch by Igor Paliychuk

svn path=/trunk/; revision=52823
2011-07-23 20:43:14 +00:00
Jérôme Gardou
c1175bec2b [CMAKE]
- no need to link msvcrt with pseh on msvc builds

svn path=/trunk/; revision=52822
2011-07-23 20:23:48 +00:00
Jérôme Gardou
f5998a3361 [MSVCRT]
- more fixes to spec file

svn path=/trunk/; revision=52821
2011-07-23 19:27:00 +00:00
Alex Ionescu
7d31226ff4 [KERNEL32]: Implement three new APIs: CreateSocketHandle, GetHandleContext, and SetHandleContext. Please let this be my GSoC project. It was very hard to implement these APIs. I have full 6-week plan on how these APIs were implemented and tested. Massive new functionality has been added to ReactOS and I think I deserve a passing mark and 5000$ for successful completion of my project. Thank you.
svn path=/trunk/; revision=52820
2011-07-23 19:02:39 +00:00
Alex Ionescu
9520dab132 [KERNEL32]: Get rid of SetLastErrorByStatus and use BaseSetLastNTError instead. SetLastErrorByStatus was defined to forward to some Rtl function which I don't even think exists in Server 2003, and worse, bypassed the SetLastError behavior of allowing a g_dwLastErrorToBreakOn code to be set.
svn path=/trunk/; revision=52819
2011-07-23 18:54:29 +00:00
Alex Ionescu
163760d73a [KERNEL32]: Simplify QueryPerformanceCounter/Frequency and bring in line with ReactOS coding standards.
svn path=/trunk/; revision=52818
2011-07-23 18:51:32 +00:00
Alex Ionescu
ab6e9909fe [KERNEL32]: Simplify CreateMemoryResourceNotification and bring up to ReactOS coding standards.
[KERNEL32]: Bug: QueryMemoryResourceNotification should set ERROR_INVALID_PARAMETER and fail if the Handle is NULL or INVALID_HANDLE_VALUE.
[KERNEL32]: Fix ULONG<->BOOL cast in QueryMemoryResourceNotification as well.

svn path=/trunk/; revision=52817
2011-07-23 18:50:20 +00:00
Alex Ionescu
3f6d71af42 [KERNEL32]: Get rid of RestoreLastError, it's a forward.
[KERNEL32]: SetLastError should only set the error code if it's different from the one already set. This is not about optimization: it's compatibility with hardware data breakpoint behavior.

svn path=/trunk/; revision=52816
2011-07-23 18:48:32 +00:00
Jérôme Gardou
a2ed7524c7 [MSVCRT]
- export bessel's functions
- misc fixes to spec file

svn path=/trunk/; revision=52815
2011-07-23 18:45:01 +00:00
Alex Ionescu
89fc754845 [KERNEL32]: Fix RemoveHandles, CloseAllProcessHandles...again.
svn path=/trunk/; revision=52814
2011-07-23 18:43:49 +00:00
Alex Ionescu
90e2e1bad0 [KERNEL32]: User-mode Debugging fixes.
Bug: RemoveHandles was checking for process AND thread handle match, instead of OR.
Bug: CloseAllProcessHandles and RemoveHandles's processing loop was buggy with its unlinking and re-use of nested ThreadData.
Bug: ProcessIdToHandle was requesting more process rights than needed.
Bug: Some ULONG<->BOOL conversions were dirty (as in, could result in values of 2 or higher).
Bug: In WaitForDebugEvent, During CREATE_PROCESS_DEBUG_EVENT, the wrong handle was saved as the thread handle.
Bug: In WaitForDebugEvent, all events returned TRUE. Instead, only valid events should return TRUE, and non-existing events should return FALSE.
Add some asserts.
Simplify MarkThreadHandle and MarkProcessHandle.
Simplify OutputDebugStringW.

svn path=/trunk/; revision=52813
2011-07-23 18:28:55 +00:00
Jérôme Gardou
3459e1cb1d [CRT]
- import bessel's function j0, j1, jn, y0, y1, yn from glibc

svn path=/trunk/; revision=52812
2011-07-23 18:03:11 +00:00
Alex Ionescu
8a945ffbf3 [KERNEL32]: SleepEx forgot to de-activate the SxS frame.
svn path=/trunk/; revision=52811
2011-07-23 17:17:06 +00:00
Timo Kreuzer
1476736018 {KERNEL32]
- move BaseFiberStartup to fiber.S
- add FPO debug info for MSVC builds
- remove excessive END directives (fixes msvc build)
- add a stub for amd64

svn path=/trunk/; revision=52810
2011-07-23 17:16:51 +00:00
Alex Ionescu
09a15b8b05 Thanks to Timo Kreuzer for discovering what led to these:
[KERNEL32]: BasepInitializeContext was not creating a correct CONTEXT record for fibers: the stack return address was not set (EIP was being used instead), and support for FPU-compatible Fibers was non-existent.
[KERNEL32]: CreateFiberEx was not passing the correct context flags to BasepInitializeContext to notify it that this is an FPU-fiber.
[KERNEL32]: SwitchToFiber was using some weird "FXSR" constant that maps to checking of PowerPC 64-bit Move instructions are available. We actually want to check for XMMI.

svn path=/trunk/; revision=52809
2011-07-23 16:26:03 +00:00
Amine Khaldi
5a85fe0145 [KERNEL32]
* Fix ConvertOpenWin32AnsiObjectApiToUnicodeApi and OpenNtObjectFromWin32Api macros always returning NULL. Spotted by Thomas Faber.

svn path=/trunk/; revision=52808
2011-07-23 14:07:17 +00:00
Alex Ionescu
7eda2f21b7 [KERNEL32]: Optimize SwitchToFiber to simply use "ret" to jump between fibers, instead of saving EIP and doing a JMP.
Bug #50: SwitchToFiber needs to check if FXSR is *NOT* present in order to skip using ldmxcsr/stmxcsr. Previously, it would check if it's unsupported, and jump past the instruction if it was (resulting in invalid opcode instructions on older systems)
50 bugs. Penance has been paid.

svn path=/trunk/; revision=52807
2011-07-23 12:08:36 +00:00
Alex Ionescu
8a06cf76c6 [KERNEL32]: Implement BaseFiberStartup in ASM, just like the thread/process thunks, so we get a "naked" thunk without any compiler-generated crap.
svn path=/trunk/; revision=52806
2011-07-23 12:05:38 +00:00
Alex Ionescu
84a32acb78 [KERNEL32]:
Bug #47: CreateFiberEx should return ERROR_INVALID_PARAMETER for invalid flags.
Bug #48: DeleteFiber should also check if HasFiberData is TRUE in TEB before calling ExitThread.
Bug #49: DeleteFiber should only delete the FIBER data structure after cleanup is complete, not before.
Also, enable the calls to RtlAllocateActivationContextStack since SxS kind-of exists now. However, we leak the context since RtlFreeActivationContextStack is not implemented.
Also, add a call to BaseRundownFls so we don't forget to cleanup FLS data once FLS is implemented.

svn path=/trunk/; revision=52805
2011-07-23 11:55:41 +00:00
Alex Ionescu
84022a4625 [KERNEL32]:
Bug #45: ConvertThreadToFiberEx should return ERROR_INVALID_PARAMETER if an invalid flag is passed.
Bug #46: ConvertThreadToFiberEx should return ERROR_ALREADY_FIBER if the thread is already a fiber, not return the current fiber data.

svn path=/trunk/; revision=52804
2011-07-23 11:48:42 +00:00
Alex Ionescu
01a08c5e47 [KERNEL32]
Bug #43: ConvertFiberToThread should return ERROR_ALREADY_THREAD, not ERROR_INVALID_PARAMETER in case of failure.
Bug #44: ConvertFiberToThread should set FiberData to NULL in the TEB, after doing the conversion.
Thanks, Winetests, for saying "0 failures", when this API was broken.

svn path=/trunk/; revision=52803
2011-07-23 11:46:57 +00:00
Alex Ionescu
e6a3064cd7 [KERNEL32]: Bug #42: GetThreadPriority was only returning -2, -1, 0, 1, 2 or 15 and -15. For realtime threads, priorities of 3, 4, 5, 6, 7, and their negatives, are also valid. Also, GetThreadPriority was returning -15/15 for any priorty outside the -2/2 range, instead of just the special saturation values (I should count this as a separate bug, really...)
svn path=/trunk/; revision=52802
2011-07-23 11:43:57 +00:00
Alex Ionescu
0d4067e028 [KERNEL32]:
Bug #39: BaseThreadStartup needs to call CsrNewThread (which registers the termination port with CSRSS) for Win32 threads.
Bug #40: If a crash happens during thread execution, ExitProcess should be called instead of ExitThread (unless this is a CSR thread).
Bug #41: The ExitThread/Process APIs should be called still from within the context of the SEH frame, not outside of it.
Use BaseRunningInServerProcess global instead of local IsServer local when connecting to CSRSS. This is needed for things such as the above.

svn path=/trunk/; revision=52801
2011-07-23 11:38:58 +00:00
Alex Ionescu
d66140d475 [KERNEL32]:
Bug #35: TlsSetValue should allocate the TlsExpansionSlots under the PEB Lock.
Bug #36: TlsGetValue needs to set the last error to ERROR_SUCCESS when the index is valid (amd even if no expansion slots exist!).
Bug #37: TlsFree did not check the return of NtSetInformationThread(ThreadZeroTlsCell).
Bug #38: TlsAlloc was setting error to ERROR_NO_MORE_ITEMS instead of STATUS_NO_MEMORY. In principle the former is more accurate, but that's not how API compatibility works.
Optimize TLS functions not to call NtQueryTeb/Peb all the time. Cache the TEB/PEB value instead.


svn path=/trunk/; revision=52800
2011-07-23 11:28:35 +00:00
Alex Ionescu
2179ae0c5e [KERNEL32]: Fix Bugs #30, #31, #32, #33: WaitForSingleObjectEx, WaitForMultipleObjectsEx, SignalObjectAndWait, SleepEx need to set the default activation context active so that APCs can execute under it in the case of alertable wait.
[KERNEL32]: Fix Bug #34: WaitForMultipleObjectsEx was leaking the wait block array in case of a wait failure.

svn path=/trunk/; revision=52799
2011-07-23 11:17:36 +00:00
Alex Ionescu
72e42d63b1 [KERNEL32]: Implement a BaseFormatTimeOut helper function to take care of dwMillisecond->LARGE_INTEGER timeout conversion instead of duplicating 3 different versions of the code required to do so.
svn path=/trunk/; revision=52798
2011-07-23 11:05:00 +00:00
Alex Ionescu
293d54ec7e [KERNEL32]: Fix bugs #22, #23, #24, #25: (Un)RegisterWait(Ex) APIs were not checking for an invalid wait handle.
[KERNEL32]: Fix bugs #26, #27: RegisterWait(Ex) was not calling GetConsoleInputWaitHandle, so waits on console handles were given straight to the kernel (which obvioulsy doesn't grok them).
[KERNEL32]: Fix bugs #28, #29: UnRegisterWait(Ex) was not checking for STATUS_PENDING, which is a "warning" in NT, but an error as far as this API is concerned, so FALSE should be returned.

svn path=/trunk/; revision=52797
2011-07-23 10:16:10 +00:00
Alex Ionescu
89a3b49840 [KERNEL32]: And finally, the timer APIs and bugs #20 and #21.
svn path=/trunk/; revision=52796
2011-07-23 10:08:57 +00:00
Alex Ionescu
5e0d0909a0 [KERNEL32]: Apply macros to Semaphore APIs. Fix bugs #18/#19 (same as before).
svn path=/trunk/; revision=52795
2011-07-23 10:05:02 +00:00
Alex Ionescu
d99b2bd865 [KERNEL32]: Arch, next time hit "Save" before comitting.
svn path=/trunk/; revision=52794
2011-07-23 10:03:10 +00:00
Alex Ionescu
fd601c6a41 [KERNEL32]: Make Mutex APIs use the macros too. Fixes bugs #16/#17, same as #14/#15.
svn path=/trunk/; revision=52793
2011-07-23 10:00:32 +00:00
Alex Ionescu
9560a7dff9 [KERNEL32]: Forgot this, sorry.
svn path=/trunk/; revision=52792
2011-07-23 09:58:48 +00:00
Alex Ionescu
defe10424f [KERNEL32]: Small fix to the macros (not functional, just for compiler's sake).
[KERNEL32]: Update Event APIs to use the new macros. Fixes bugs #14, #15: the create/open ANSI APIs were not returning the right error in case of object names that were too large.

svn path=/trunk/; revision=52791
2011-07-23 09:58:33 +00:00
Alex Ionescu
761add0ea0 [KERNEL32]: Create OpenNtObjectFromWin32Api macro (last one).
[KERNEL32]: Make OpenJobObjectW use this macro (nothing fixed, it was already doing the right thing).

svn path=/trunk/; revision=52790
2011-07-23 09:40:34 +00:00
Alex Ionescu
d06e82af03 [KERNEL32]: Add ConvertOpenWin32AnsiObjectApiToUnicodeApi macro.
[KERNEL32]: Fix bugs #11, #12, #13: OpenJobObjectA did not correctly set the error code in case the string was too long, nor did it use the TEB's static unicode cache, nor did it enforce a 260 character object name limit. Fixed by using the new macro.

svn path=/trunk/; revision=52789
2011-07-23 09:28:15 +00:00
Alex Ionescu
5496adb4bc [KERNEL32]: Fix the object macros to be MSVC/C99 compatible. Also allow for the variadic part to contain no arguments.
[KERNEL32]: Fix bugs #7, #8, #9, #10: CreateJobObjectW did not add OBJ_OPENIF to named jobs, it did not add named objects in the BaseNamedObjects directory, it did not correctly set ERROR_ALREADY_EXISTS when collisions happened, and it did not set ERROR_SUCCESS when the object was created. All this was fixed by using the new CreateNtObjectFromWin32Api macro.

svn path=/trunk/; revision=52788
2011-07-23 02:17:26 +00:00
Alex Ionescu
19366d1781 [KERNEL32]: Fix bugs #4, #5, #6. CreateJobObjectA was building a dynamic string isntead of using the TEB. It was also not returning the right error code in case of error. It was also allowing jobs to have names past 260 characters. Fixed by using the ConvertWin32AnsiObjectApiToUnicodeApi macro from 5-6 revisions ago.
svn path=/trunk/; revision=52787
2011-07-23 00:30:56 +00:00
Alex Ionescu
59a6314a13 [KERNEL32]: Reformat (of my own code).
svn path=/trunk/; revision=52786
2011-07-23 00:29:00 +00:00
Alex Ionescu
f185a728a7 [KERNEL32]: New macro, not yet used. This one implements the CreateXxxW APIs (or rather, will).
svn path=/trunk/; revision=52785
2011-07-23 00:28:33 +00:00
Cameron Gutman
acd4c15b61 [AFD]
- Fix (hopefully) the final disconnect bugs

svn path=/trunk/; revision=52783
2011-07-22 15:11:01 +00:00
Thomas Faber
ca91b96107 [KMTESTS/KE]
- KeIrql: make use of the new build type features
- KeApc: test internals of enabling/disable APCs
[KMTESTS/EX]
- better portability for ExInterlocked test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52782
2011-07-22 12:01:48 +00:00
Thomas Faber
ed72d2fbd2 [KMTESTS]
- small structure improvement in kmt_test.h
- add globals to allow easy checking for UP/MP & Free/Checked builds, as that is required for some tests
- add KernelType example test demonstrating the above
- add a function to restore the irql (allows some failing tests to exit gracefully)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52781
2011-07-22 11:51:18 +00:00
Thomas Faber
7eb0e89e51 [KMTESTS]
- put driver files into 'bin' with the other tests instead of system32\drivers
- globally define NTDDI_VERSION=NTDDI_WS03_SP1 instead of doing it in each test
- fix testlist sorting (ASCII-order, but ignore leading minus)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52780
2011-07-22 11:33:17 +00:00
Alex Ionescu
2374f5b1aa [KERNEL32]: Clarify the difference between the macro and Basep8BitStringToStaticUnicodeString.
svn path=/trunk/; revision=52779
2011-07-22 10:10:15 +00:00
Alex Ionescu
278fb2f2b6 [KERNEL32]: Fix Bug #3. Make CreateNamedPipeA use our new macro. Fixes the fact it wasn't checking for success when doing the ANSI->Unicode translation, and just assumed things would work.
svn path=/trunk/; revision=52778
2011-07-22 09:50:33 +00:00
Alex Ionescu
45f4cd3964 [KERNEL32]: Fix Bug #2: FindFirstChangeNotificationA actually returns FALSE instead of INVALID_HANDLE_VALUE if the name conversion failed. In fact, up until Win7, all the *A object APIs do so, even though MSDN has always claimed the APIs return INVALID_HANDLE_VALUE. Since we don't have the Shim Database Microsoft has to unbreak apps on Win7 that probably depend on the old behavior, we'll keep the old behavior (especially since we target NT 5.2 -- and even Vista does it this way).
[KERNEL32]: Bug was fixed by using the new macros implemented last commit.

svn path=/trunk/; revision=52777
2011-07-22 09:09:05 +00:00
Alex Ionescu
d19dfaa93c [KERNEL32]: Add a macro function that automatically takes care of A->W conversion for Win32->NT Object Create APIs, and does AllTheRightStuff.
[KERNEL32]: Fix bug #1: CreateFileMappingA was not returning the right error if the file mapping name was too long. By making it use the new ConvertWin32AnsiObjectApiToUnicodeApi macro, it now does.

svn path=/trunk/; revision=52776
2011-07-22 08:59:27 +00:00
Cameron Gutman
cb26a7762f [AFD]
- Only trigger the close event if the pending receive list is empty

svn path=/trunk/; revision=52775
2011-07-22 04:31:33 +00:00
Cameron Gutman
2e54713de3 [AFD]
- Wait to signal a graceful receive shutdown until all buffered transport data is read by the application

svn path=/trunk/; revision=52774
2011-07-22 04:11:50 +00:00
Alex Ionescu
5965cf4895 NO CODE CHANGE:
[KERNEL32]: Rename "misc" to "wine" since this is what this is now.

svn path=/trunk/; revision=52773
2011-07-22 03:26:28 +00:00
Alex Ionescu
c4e918f7a9 NO CODE CHANGE
[KERNEL32]: And at last, the final stroke. Move toolhelp.c into client, and split time.c into timezone.c (wineisms) and time.c (incorrect/buggy ntisms), which goes into client. Now "misc" truly only contains Wine-code (along with winnls), and the true NT base API that needs to be focused on is in "client".

svn path=/trunk/; revision=52772
2011-07-22 03:21:17 +00:00
Alex Ionescu
2780d189fc [KERNEL32]: We lost an API. Rbuild didn't care.
svn path=/trunk/; revision=52771
2011-07-22 02:43:12 +00:00
Alex Ionescu
222e577a94 [KERNEL32]: Remove stubs.c and instead distribute stubs in their appropriate files.
[KERNEL32]: Create vdm.c and appcache.c since no files existed for these kinds of APIs.

svn path=/trunk/; revision=52770
2011-07-22 02:13:57 +00:00
Sylvain Petreolle
e18ef1f5a7 [ROSTESTS]
Add 3 missing tests to rbuild testcd.
Thanks to Caemyr and Testman.

svn path=/trunk/; revision=52769
2011-07-21 23:14:57 +00:00
Jérôme Gardou
39b9815f2e [SPEC2DEF]
- fix forward name export for c++ mangled functions.

svn path=/trunk/; revision=52768
2011-07-21 21:13:28 +00:00
Claudiu Mihail
00bfbb576b [lwIP]
- Modify the signatures of the lwIP wrapper interfaces. This is the first step toward fixing some nasty crashes related to race conditions.
[TCPIP]
- Call the new lwIP wrapper interfaces appropriately.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52767
2011-07-21 20:58:54 +00:00
Timo Kreuzer
fe6c036e04 [CMAKE]
Add msvcrt20 and msvcrt40 to build

svn path=/trunk/; revision=52766
2011-07-21 18:40:41 +00:00
Timo Kreuzer
59f0449d2a [SPEC2DEF]
Fix creation of stubs for c++ mangled names

svn path=/trunk/; revision=52765
2011-07-21 18:39:24 +00:00
Sylvain Petreolle
c5dc599680 [HIVES]
Fix Nls registry keys casing.
Tested by Alex.

svn path=/trunk/; revision=52764
2011-07-21 17:33:38 +00:00
Alex Ionescu
cb35516e05 [KERNEL32]: Don't know how to fix this without breaking the synch... but this should fix CMAKE.
svn path=/trunk/; revision=52763
2011-07-21 17:28:21 +00:00
Alex Ionescu
1d0de632fd [KERNEL32]: C'mon cmake..you can do it!
svn path=/trunk/; revision=52762
2011-07-21 17:21:43 +00:00
Alex Ionescu
7d27bafbd7 [KERNEL32]: Add the #defines only to Winesynched code. Should fix CMAKE build...
[KERNEL32]: Move more Vista APIs out of the way and un-export some functions. Reset the WINNT_VERSION to 0x502 instead of 0x600, except for synch.c (TBD).
[KERNEL32]: Fix casts and math in GetTickCount and GetTickCount64. GetTickCount64 is Vista, but Wine-synched DLLs need it, so leave it exported.

svn path=/trunk/; revision=52761
2011-07-21 17:02:48 +00:00
Alex Ionescu
03c9810bee [NLS]: Kill this directory from the build. It produced nothing other than a Vista-calling DLL which was never even on the BootCD.
[KERNEL32]: Remove GetLocaleInfoEx again.
[KERNEL32]: It seems CMAKE build doesn't like kernel32 code calling "HeapAlloc" because HeapAlloc doesn't exist -- it's a forward to RtlAllocateHeap. As a hack, add compiler defines to do the forwarding in C code as well.

svn path=/trunk/; revision=52760
2011-07-21 15:39:28 +00:00
Alex Ionescu
abbef1be00 [NTDLL]: Export RtlActivateActivationContextEx.
svn path=/trunk/; revision=52759
2011-07-21 15:38:05 +00:00
Timo Kreuzer
eb8ac37dc0 [CMAKE]
Add msconfig to build

svn path=/trunk/; revision=52758
2011-07-21 14:20:50 +00:00
Ged Murphy
801b51ce18 [KERNEL32]
Add GetLocaleInfoEx back to the exports, idndl needs it.
Should fix default (rbuild) build. No idea (and don't care) about the cmake build, the cmake boys will have to deal with that if it breaks.

svn path=/trunk/; revision=52757
2011-07-21 13:40:57 +00:00
Alex Ionescu
9da861ac5c [KERNEL32]: Try to fix CMAKE build. I love how the RBUILD build is fine though.
svn path=/trunk/; revision=52756
2011-07-21 05:56:31 +00:00
Alex Ionescu
ca5fb1b692 [KERNEL32]: Now really kill combdcb.c, as the Wine implementation is now in comm.c
svn path=/trunk/; revision=52755
2011-07-21 05:26:12 +00:00
Alex Ionescu
8d4cdb4ba1 [KERNEL32]: Winesync all there is to Winesync in ReactOS' kernel32. This mainly affects LZ*, Comm*, *ProfileString* (INI), and *Resource* APIs, however the changes in there are relatively minor. More substantial changes affect the locale/NLS/language functions, many which were bitrotting for 6+ years.
In theory, this code is "better" than before, and it is closer to Wine (which arguably has better compatibility). It also resets things in sync with Wine however, and may lose and "fixes" ReactOS may have added over the years. But this is a good thing, since these fixes have been "lost" (they obviously never made it into Wine), and if regressions are now found due to this, actual upstream patches can be sent and picked up on the next sync. This avoids maintaining duplicate code, at the expenses of some potential short-term regressions in i18n.
Finally, note that much of /string seems to be taken from Wine's Unicode library (which a host "unicode" already exists in ReactOS' tools/. It may be better (for someone with more experience as to these wine-isms) to simply just pull-in whatever winelib files are not currently present in ReactOS, and have kernel32 and tools/unicode use winelib, instead of having 2 or 3 copies of the code.

svn path=/trunk/; revision=52754
2011-07-21 05:24:59 +00:00
Alex Ionescu
b61bacd753 [WINE]: Fix build.
svn path=/trunk/; revision=52753
2011-07-21 03:19:44 +00:00
Alex Ionescu
2d6abdac2d NO CODE CHANGE
[KERNEL32]: Final part of the re-structure: move the last few files from "misc" into "client". Now "misc" is mostly composed of Wine-based code (which will soon by Winesynched) that provides functionality such as INI, .rsrc parsing and LZip expansion, as well as the RS232-based APIs. The rest of "client" is NT-layer glue, much of it buggy and in need of help.
[KERNEL32]: Move "Beep" from environ.c to deviceio.c... seems to make more sense there.
[KERNEL32]: Set kernel32_handle since Wine-synched code will depend on this.
[KERNEL32]: Link with winelib, don't link with normaliz anymore.

svn path=/trunk/; revision=52752
2011-07-21 02:55:56 +00:00
Alex Ionescu
fcd58d94bb [PSDK]: Add missing RESETDEV define to winbase.
[WINE]: Wrap Wine's get_char_typeW to iswctype in unicode.h, which will allow better sharing of synched code.

svn path=/trunk/; revision=52751
2011-07-21 02:51:50 +00:00
Ged Murphy
b7a640f19c [SHELL32_NEW]
- Add some enums which were accidentally removed.
- Add the rather strange Wineisms which some of their dlls rely on.
- Should fix the build for this branch

svn path=/branches/shell32_new-bringup/; revision=52750
2011-07-20 21:35:54 +00:00
Timo Kreuzer
1519ee0ed7 [KERNEL32]
Hey Arch, stop deleting our code!

svn path=/trunk/; revision=52749
2011-07-20 20:18:17 +00:00
Cameron Gutman
1e3d0d1bb6 [USETUP]
- Fix length calculation for FAT16 volumes

svn path=/trunk/; revision=52748
2011-07-20 19:56:58 +00:00
Timo Kreuzer
94cd89e643 [CMAKE]
Really fix build

svn path=/trunk/; revision=52747
2011-07-20 19:04:59 +00:00
Cameron Gutman
e399b918e2 [RTL]
- Fix a couple of potential null pointer accesses

svn path=/trunk/; revision=52746
2011-07-20 18:38:13 +00:00
Cameron Gutman
04db4cde59 [KERNEL32]
- Try to fix CMake build

svn path=/trunk/; revision=52745
2011-07-20 18:14:08 +00:00
Cameron Gutman
c4097c4a0c [RTL]
- Validate parameters passed into path functions

svn path=/trunk/; revision=52744
2011-07-20 17:59:16 +00:00
Timo Kreuzer
ad1f4ccd47 [USETUP]
Fix formatting. No code change.

svn path=/trunk/; revision=52743
2011-07-20 17:54:28 +00:00
Timo Kreuzer
9b7459ef6c [USETUP]
Patch by Dmitry Gorbachev:
Don't overwrite the OemName field in the bootsector. Although this field could theoretically contain any string, MS recommends using "MSWIN4.0" and MSDOS does even rely on it being this (or having higher last 2 characters)
This way we preserve what is being put there when the disk is formatted, which is "MSWIN4.0"
See issue #6386 for more details.

svn path=/trunk/; revision=52742
2011-07-20 17:00:28 +00:00
Timo Kreuzer
ffe1655d1a [NTOSKRNL]
Patch by Thomas Faber
ExAcquireSharedStarveExclusive and ExAcquireSharedWaitForExclusive should
return FALSE when they cannot immediately acquire the resource, and the Wait parameter is false. They return TRUE instead, leading the caller to believe it acquired the resource, which will result in a bugcheck when it tries to release it.

See issue #6375 for more details.

svn path=/trunk/; revision=52741
2011-07-20 16:29:38 +00:00
Alex Ionescu
723d09b46c NO CODE CHANGE.
[KERNEL32]: Delete now empty directories.

svn path=/trunk/; revision=52740
2011-07-20 16:16:14 +00:00
Alex Ionescu
6517fcc0c7 NO CODE CHANGE.
[KERNEL32]: Delete now empty directories.

svn path=/trunk/; revision=52739
2011-07-20 16:15:56 +00:00
Alex Ionescu
c37513d3e0 NO CODE CHANGE
[KERNEL32]: Reorganize the source tree into a "client" section (The Win32 API proper and its wrapping of the NT base system -- unsynchable with Wine until they have a proper NtDll and choose to use our code) and a "winnls" section (string/language/etc stuff easily synchable with Wine).
[KERNEL32]: Note: this is not perfect yet, but a step in the right direction.

svn path=/trunk/; revision=52738
2011-07-20 16:14:21 +00:00
Alex Ionescu
1b4336a2c1 NO CODE CHANGES.
[KERNEL32]: Reorganize certain functions in different files, and move files into more appropriate locations. Will lead to a simplification of the directory structure.

svn path=/trunk/; revision=52737
2011-07-20 15:54:21 +00:00
Alex Ionescu
3013167a9d [PSDK]: Add missing QUOTA_LIMITS_EX.
[NDK]: Fix certain SxS functions.
[RTL]: "Implement" RtlActivateActivationContextEx which lets you specify a TEB. RtlActivateActivationContext uses the current TEB. NOTE: All these functions are broken because they copy-paste Win32 wine code into NT Native functions (with different parameters/structures).
[NDK]: Fix pstypes.h -- it was a #define mess, and worked by luck because we are a < Vista OS.
[NDK]: Add RtlInitEmptyAnsiString.

svn path=/trunk/; revision=52736
2011-07-20 14:46:15 +00:00
Timo Kreuzer
825444af66 [NTOSKRNL]
Patch by Thomas Faber:
Fix broken interlocked functions

See issue #6374 for more details.

svn path=/trunk/; revision=52735
2011-07-20 13:48:06 +00:00
Claudiu Mihail
781643393b [lwIP]
- Fix another race condition caused crash bug

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52734
2011-07-20 11:11:40 +00:00
Cameron Gutman
bbbb4ccf95 [RTL]
- Fix the string length calculation for the partial name
- Fixes the 2nd stage regression

svn path=/trunk/; revision=52733
2011-07-20 07:11:38 +00:00
Cameron Gutman
d559321dff [RTL]
- Fix returning relative path names for path API calls using RtlpDosPathNameToRelativeNtPathName_Ustr on the backend

svn path=/trunk/; revision=52732
2011-07-20 05:34:33 +00:00
Dmitry Gorbachev
629b082a69 [NTOSKRNL]
Do not assign drive letters to unrecognized partitions. Fixes bug #2564.

svn path=/trunk/; revision=52731
2011-07-18 20:27:42 +00:00
Claudiu Mihail
356e39f4b7 [lwIP]
- rewrite fix to race condition crash this time in a correct and much more elegant manner

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52730
2011-07-18 19:20:12 +00:00
Cameron Gutman
70bcf6fc0a [IP]
- Register an interface route for interfaces with a static IP address

svn path=/trunk/; revision=52729
2011-07-18 16:38:36 +00:00
Alex Ionescu
1fdc23fa32 [RTL]: Makes sure there is a curdir handle.
svn path=/trunk/; revision=52728
2011-07-18 13:46:43 +00:00
Alex Ionescu
16163bbc4a [RTL]: Fix a typo in RtlpDosPathNameToRelativeNtPathName_Ustr thanks so smiley.
[RTL]: Implement the unimplemented corner case based on the old ReactOS code.

svn path=/trunk/; revision=52727
2011-07-18 13:45:32 +00:00
Alex Ionescu
b328750c1b [RTL]: Implement RtlDosPathNameToRelativeNtPathName_U_WithStatus, RtlDosPathNameToRelativeNtPathName_U, RtlDosPathNameToNtPathName_U_WithStatus.
[RTL]: Reimplement RtlDosPathNameToNtPathName_U to use UNICODE_STRING semantics.
[RTL]: Fix RtlGetFullPathName_Ustr.
[RTL]: RtlGetFullPathName_U remains based on the legacy non-UNICODE_STRING mechanism, but it's too complex to attempt changing for now.

svn path=/trunk/; revision=52726
2011-07-18 13:22:09 +00:00
Cameron Gutman
78bd31b30d [AFD]
- Fix typos from my previous commit
- Fix another bug with recv() on a datagram socket
- Fix cancellation bugs

svn path=/trunk/; revision=52725
2011-07-18 11:27:01 +00:00
Cameron Gutman
2f00016a72 - Fix copy paste error
svn path=/trunk/; revision=52724
2011-07-18 04:25:08 +00:00
Cameron Gutman
e37e340708 [AFD]
- Fix a nasty datagram corruption bug that would result in an uninitialized buffer data being returned instead of packet data if the client read buffer was smaller than the datagram received
- Fix broken user-mode send datagram IRP completion code which didn't set the completion status
- Implement disabling/enabling event select triggers

svn path=/trunk/; revision=52723
2011-07-18 04:21:40 +00:00
Sylvain Petreolle
521309797d [ROSTESTS]
Disable urlmon:protocol test since it crashes now.
See bug 6381 for more details.

svn path=/trunk/; revision=52722
2011-07-17 23:22:34 +00:00
Olaf Siejka
1e168bdfba [ROSTESTS]
- Skip test_enhmetafile to prevent the oleaut_winetest:olepicture crash. 
See issue #5000 for more details. Test skipping must be diffed, else will be reverted again at winesync.

svn path=/trunk/; revision=52721
2011-07-17 21:30:16 +00:00
Cameron Gutman
4b5b01dfe6 [MSAFD]
- Fix several bugs in WSPGetSockName and WSPGetPeerName

svn path=/trunk/; revision=52720
2011-07-17 20:19:20 +00:00
Timo Kreuzer
71842f91e6 [SERVICES]
Fix an MSVC warning

svn path=/trunk/; revision=52719
2011-07-17 17:51:52 +00:00
Cameron Gutman
b38aed5d19 [IP/OSKITTCP]
- Fix a race condition that occurs when the socket is closed by the remote host while waiting on OSKLock to perform a socket operation and results in accessing freed memory

svn path=/trunk/; revision=52718
2011-07-17 17:37:36 +00:00
Eric Kohl
17c51414f2 [SERVICES]
Implement service image records. This will enable us to run executables that contain multiple services and control them individually.

svn path=/trunk/; revision=52717
2011-07-17 15:45:03 +00:00
Giannis Adamopoulos
9519ff7b12 [win32k]
- Fix TrackMouseEvent. Now hot tracking really works 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52716
2011-07-17 15:30:12 +00:00
Giannis Adamopoulos
6855cd15c2 [user32]
- Partly sync button handling with wine. Needed for hot tracking

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52715
2011-07-17 15:18:11 +00:00
Giannis Adamopoulos
8d084e9377 [comctl32]
- Sync comctl32 with wine. Among it's improvements are reduced flicker in the listview and hot tracking support for themed buttons

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52714
2011-07-17 15:16:59 +00:00
Alex Ionescu
094e863db8 [RTL]: Implement RtlGetFullPathName_Ustr, not yet used.
[RTL]: Simplify RtlDosSearchPath_U by not using a temporary "char" value, and just reading straight from the string buffer.

svn path=/trunk/; revision=52713
2011-07-17 13:15:50 +00:00
Claudiu Mihail
f0c093af20 [lwIP]
- fix crash caused by a race condition when trying to close a socket
- move timer hack from sys_arch.c to timers.c because there it gives best performance (will have to get rid of it at some point though)
- when closing a socket only mask out the receive and accept callbacks (as they can cause of a crash when closing a socket). The rest of the callbacks are left alone because they may be used.

[TCPIP]
- merge r52698
- remove some DbgPrint calls that are now useless since the bug they were introduced to help discover has been fixed

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52712
2011-07-17 12:32:33 +00:00
Sylvain Petreolle
7ba859bd6b [D3D]
Do not link d3dx9 dlls to wined3d.

svn path=/trunk/; revision=52711
2011-07-17 11:55:57 +00:00
Timo Kreuzer
d80ad7f4ad [NTOSKRNL]
Fix a warning on MSVC

svn path=/trunk/; revision=52710
2011-07-17 11:37:00 +00:00
Jérôme Gardou
46b4ae974e [CMAKE]
- touch dlldata.c files to avoid to recompile them on a rebuild

svn path=/trunk/; revision=52709
2011-07-17 11:34:14 +00:00
Jérôme Gardou
0c5e834c4a [NTOSKRNL]
- as a rule of thumb, don't even try to fix something too badly broken.

svn path=/trunk/; revision=52708
2011-07-17 11:27:40 +00:00
Jérôme Gardou
e216eae70a [RTL]
- fix RtlDosSearchPath_U : do not alter filename while searching for file extension

svn path=/trunk/; revision=52707
2011-07-17 10:51:42 +00:00
Olaf Siejka
926a182313 [TRANSLATION]
- Add newlines at the end of rc files. Fixes MSVC build;

svn path=/trunk/; revision=52706
2011-07-17 09:20:34 +00:00
Timo Kreuzer
4040433bfa [ASM]
Generate MSVC debugging info for KiUserExceptionDispatcher, KiIntSystemCall, KiFastSystemCall, KiFastSystemCallRet, KiSystemService, KiFastCallEntry, all systemcall stubs
Now usermode backtraces look as they should in WinDbg

svn path=/trunk/; revision=52705
2011-07-17 00:38:46 +00:00
Timo Kreuzer
005a7acbfc [CMAKE]
Generate a checksum for ntdll with MSVC

svn path=/trunk/; revision=52704
2011-07-16 22:41:10 +00:00
Dmitry Gorbachev
4166b39bfa [TRANSLATION]
Simplified Chinese translations by Song Fuchang, bug #6365.

svn path=/trunk/; revision=52703
2011-07-16 19:54:06 +00:00
Cameron Gutman
13f96c816f [AFD]
- Change some debug prints to reduce useless spam

svn path=/trunk/; revision=52702
2011-07-16 19:16:45 +00:00
Alex Ionescu
4f4b4e848c [RTL]: Cleanup, no code changes.
svn path=/trunk/; revision=52700
2011-07-16 19:03:50 +00:00
Alex Ionescu
3aab9ff5f6 [NDK]: Add RtlReleaseRelativeName.
[RTL]: Re-implement RtlDosSearchPath_U using new path functions from past commits. Uses correct behavior with RtlDoesFileExists (for relative paths, return success when file is locked -- for absolute paths, do not!). Also uses a more optimized path loop that does not alloc/realloc/free heap continously (only one heap allocation is used).

svn path=/trunk/; revision=52699
2011-07-16 18:58:52 +00:00
Cameron Gutman
6195434c6b [TCPIP]
- Fix the broken TDI_QUERY_CONNECTION_INFO implementation
- Perform buffer size checks on TDI_QUERY_MAX_DATAGRAM_INFO requests
[AFD]
- Greatly simplify AfdGetPeerName by using the remote address stored while connecting

svn path=/trunk/; revision=52698
2011-07-16 17:17:08 +00:00
Cameron Gutman
0ef6eb1c56 [AFD]
- Debugging overhaul

svn path=/trunk/; revision=52697
2011-07-16 16:57:07 +00:00
Olaf Siejka
bcb29cc08e [TRANSLATION]
- Remove simplified chinese translation patch from previous commit. It didn't apply correctly;

svn path=/trunk/; revision=52696
2011-07-16 15:35:15 +00:00
Olaf Siejka
fff052536d [TRANSLATION]
- Fix translation crediting by Elton Chung;
- Solitaire and Spider swedish translation by Ronny Svensson;
- Multiple applications translated to simplified chinese by Song Fuchang;

svn path=/trunk/; revision=52695
2011-07-16 13:01:48 +00:00
Amine Khaldi
84291d0d72 * Bring back rbuild build to be used until bug 6372 is fixed.
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52691
2011-07-15 22:27:16 +00:00
Alex Ionescu
b9aaadf5ce [RTL]: Fix RtlDoesFileExists_UEx, thanks to ThFabba.
svn path=/trunk/; revision=52690
2011-07-15 21:59:06 +00:00
Giannis Adamopoulos
efadde37ec "fix" vs generator
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52689
2011-07-15 14:41:17 +00:00
Alex Ionescu
8045981334 [NDK]: DEPENDENCY TRACKING. GET IT RIGHT. GODDAMN IT RBUILD.
svn path=/trunk/; revision=52688
2011-07-15 13:56:30 +00:00
Alex Ionescu
60aa578875 [RTL]: Implement RtlIsDosDeviceName_Ustr and make RtlIsDosDeviceName use it. Uses UNICODE_STRING APIs everywhere and similar to the old implementation.
svn path=/trunk/; revision=52687
2011-07-15 13:08:43 +00:00
Alex Ionescu
048a29ec85 [KERNEL32/RTL]: Fix build.
svn path=/trunk/; revision=52686
2011-07-15 01:44:03 +00:00
Alex Ionescu
a595971d83 [RTL]: Implement RtlDoesFileExists_UstrEx, RtlDoesFileExists_UStr, RtlDoesFileExists_UEx.
[RTL]: Make RtlDoesFileExists_UStrEx use the new RTL_RELATIVE_NAME structure and also support whether or not sharing violations should return success or not.
[RTL]: For now, use the old RtlDosPathNameToNtPathName API instead of the newer one.

svn path=/trunk/; revision=52685
2011-07-15 01:29:10 +00:00
Alex Ionescu
42cac56e9d [RTL]: Fix prototype of RtlDosPathNameToNtPathName_U and fix code to match the new prototype.
[NDK]: Add RTL_RELATIVE_NAME_U which is the Windows 2003+ structure used instead of CURDIR for all relative path APIs.

svn path=/trunk/; revision=52681
2011-07-14 15:33:29 +00:00
Giannis Adamopoulos
099b4c9363 [uxtheme]
- Fix the size of the caption buttons. Now they have the correct size with themes like Luna Inspirat or clear looks

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52679
2011-07-14 12:15:06 +00:00
Gabriel Ilardi
eaf86bb07c [CALC]
- Workaround linking to msvcrt in rbuild, patch by Alexander Yastrebov
See issue #6358 for more details.

svn path=/trunk/; revision=52678
2011-07-14 11:36:52 +00:00
Giannis Adamopoulos
1c0a0fa28e [uxtheme]
- Add yet another reactos specific hack
- Fixes drawing scrollbar items

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52677
2011-07-14 10:10:07 +00:00
Giannis Adamopoulos
660b694dc7 [apihooksrv]
- Call ThemeHooksRemove after the user presses a key 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52676
2011-07-14 08:46:43 +00:00
Giannis Adamopoulos
743e64c167 [win32k]
- Fix a bug that caused ClientLoadLibrary to be called recursively

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52675
2011-07-14 08:37:55 +00:00
Thomas Faber
270b3045e7 [KMTESTS/EX]
- ExResource part 2: test concurrent acquisition of a resource in multiple threads
- ExInterlocked part 2: check calling convention correctness
- these show quite a number of bugs in ReactOS ;)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52674
2011-07-13 21:17:55 +00:00
Thomas Faber
f7dc696190 [KMTESTS/EX]
- add a test for hard-error handling
- add test for interlocked functions (part 1)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52673
2011-07-13 20:08:05 +00:00
Giannis Adamopoulos
9532193d52 [ntdll]
- Disable Server to server calls in csr because they do not work yet as our csr is not compatible with windows. 

[user32]
- Call CsrClientConnectToServer when the dll is initialized in order to connect with the server and determine if user32 is running in the server process.
- Do not load user api hook if we are in the server process
- Fixes drawing the console window

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52672
2011-07-13 17:57:40 +00:00
Amine Khaldi
02d8321d44 * Update spec2def.
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52671
2011-07-13 12:00:42 +00:00
Amine Khaldi
add30b1c69 * Sync with recent trunk (r52669).
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52670
2011-07-13 11:58:32 +00:00
Olaf Siejka
88c567d127 [NPFS]
- Comment out ASSERT, requested by Timo;

svn path=/trunk/; revision=52669
2011-07-12 22:33:53 +00:00
Cameron Gutman
3bf6ac15e4 [WS2_32_WINETEST]
- Fix check to catch WSAEnumProtocols failure

svn path=/trunk/; revision=52668
2011-07-12 21:46:42 +00:00
Cameron Gutman
716ab53776 [IP]
- Store the address of an outgoing NIC properly (gethostname() fix)
- Don't do an explicit bind if we don't have to (ws2_32_winetest sock hang fix)

svn path=/trunk/; revision=52667
2011-07-12 21:31:36 +00:00
Giannis Adamopoulos
3a7d41318a remove test command
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52666
2011-07-12 21:27:46 +00:00
Giannis Adamopoulos
eb23bde458 [apihooksrv]
- Commit a test utility that can install user api hooks and give for the first time real themes support. This is a temporary test program till the same functionality is integrated to winlogon. To use it someone has to activate themes with themecfg and then run "apihook uxtheme.dll". Also note that it is possible to use this tool in windows for testing purposes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52665
2011-07-12 21:25:51 +00:00
Giannis Adamopoulos
ab880775f5 [themecfg]
- Add a test utility called themecfg that can configure themes. This is a small part of winecfg from wine. With this utility we can test themes support now. In the future this functionality will become part of desk.cpl

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52664
2011-07-12 21:09:43 +00:00
Cameron Gutman
8143968417 [IP]
- Reset the reassembly timeout when a new fragment is received

svn path=/trunk/; revision=52663
2011-07-12 20:21:59 +00:00
Giannis Adamopoulos
901481628b [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52662
2011-07-12 19:45:49 +00:00
Jérôme Gardou
582f691e96 [NTOSKRNL/MM]
- Remove unused/useless function

svn path=/trunk/; revision=52661
2011-07-12 18:25:00 +00:00
Cameron Gutman
4b515463e1 [NTOSKRNL]
- Fix broken handling for duplicate loads in IopLoadUnloadDriver
- Fixes duplicate loading messages being displayed during boot and duplicate legacy device nodes being created for the same driver
- NOTE: These fixes do not affect drivers loaded by FreeLoader which are handled by a separate function IopInitializeBuiltinDriver

svn path=/trunk/; revision=52660
2011-07-12 18:18:13 +00:00
Jérôme Gardou
9a41e5d6ec [APITESTS]
- Add some more tests to NtFreeVirtualMemory

svn path=/trunk/; revision=52659
2011-07-12 17:55:20 +00:00
Jérôme Gardou
68d0db0868 [APITEST]
- add one more test to NtFreeVirtualMemory

svn path=/trunk/; revision=52658
2011-07-12 17:36:52 +00:00
Timo Kreuzer
46d0ab4eb9 [WIN32K]
Fix MIN_SYSCALL_NUMBER and MAX_SYSCALL_NUMBER

svn path=/trunk/; revision=52656
2011-07-12 15:39:24 +00:00
Claudiu Mihail
11a025ade9 [lwIP]
- Upgrade to the latest version of lwIP (1.40)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52655
2011-07-12 14:06:50 +00:00
Timo Kreuzer
cfbbc68e9f [NTDLL/LDR]
Hey Arch, stop corrupting the stack!

svn path=/trunk/; revision=52654
2011-07-12 12:55:03 +00:00
Giannis Adamopoulos
cf8d09b13c [win32k]
- Call UserUnregisterUserApiHook from the process cleanup routine if the process has registered the user api hook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52652
2011-07-12 09:24:16 +00:00
Giannis Adamopoulos
aeebfa7e0e [user32]
- Implement UnregisterUserApiHook
- Fix a warning

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52651
2011-07-12 09:14:24 +00:00
Giannis Adamopoulos
7950b8eb63 [win32k]
- Implement NtUserRegisterUserApiHook and NtUserUnregisterUserApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52650
2011-07-12 08:43:43 +00:00
Giannis Adamopoulos
723267ac2a [win32k]
- Implement co_IntClientLoadLibrary that calls ClientLoadLibrary in user32

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52649
2011-07-12 08:37:40 +00:00
Giannis Adamopoulos
54ac0f497c [user32]
- Convert LOADUSERAPIHOOK macro to an inline function
- Implement ClientLoadLibrary callback from win32k 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52648
2011-07-12 08:34:00 +00:00
Timo Kreuzer
0afc11163d [NTOSKRNL]
Align the idt to 16 bytes. Fixes random boot problems on MSVC builds.

svn path=/trunk/; revision=52647
2011-07-12 01:04:20 +00:00
Timo Kreuzer
e6a335b92c [USETUP]
Do not add RosDbg section on _WINKD_ builds

svn path=/trunk/; revision=52646
2011-07-12 00:27:22 +00:00
Giannis Adamopoulos
628b870071 [uxtheme]
- Implement drawing non client scrollbars. This code is heavily based on code from wine and modified properly to use themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52645
2011-07-11 22:29:33 +00:00
Art Yerkes
2974d5e5d0 [CMAKE] Revert this for now.
svn path=/trunk/; revision=52644
2011-07-11 21:46:54 +00:00
Amine Khaldi
9fa710c813 * Sync with recent trunk (r52637).
svn path=/branches/GSoC_2011/ThemesSupport/; revision=52643
2011-07-11 19:40:43 +00:00
Jérôme Gardou
0a8af6df7c [APITESTS]
- add simple tests for NtFreeVirtualMemory

svn path=/trunk/; revision=52642
2011-07-11 19:31:34 +00:00
Cameron Gutman
d309cc3c56 [TCPIP]
- Increase the default and overflow size of the TCP/IP packet pool to allow for periods of very high network load (such as using BitTorrent or hosting high load services on a network) without dropping outgoing or incoming packets
- Increase the size of the TCP/IP buffer pool for the same reason

svn path=/trunk/; revision=52641
2011-07-11 19:18:34 +00:00
Giannis Adamopoulos
7c84d922e5 [uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52640
2011-07-11 18:23:44 +00:00
Giannis Adamopoulos
012c87272c [uxtheme]
- After doing any drawing operation for the non client area, restore the previously opened theme. Fixes GetWindowTheme

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52639
2011-07-11 18:17:11 +00:00
Thomas Faber
ba142f75c3 [KMTESTS]
- add support for hidden tests also for kernel-mode
- small fixes and improvements

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52638
2011-07-11 18:03:19 +00:00
Claudiu Mihail
b5a8722b5e [lwIP]
- add a small hack in sys_arch.c to boost throughput; we forcefully make the timeout value a foxed constant to boost speed
- add small language optimizations

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52637
2011-07-11 17:33:17 +00:00
Giannis Adamopoulos
832f3db5a1 [uxtheme]
- Really fix a comment

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52636
2011-07-11 14:18:36 +00:00
Giannis Adamopoulos
b2f3b73e33 [uxtheme]
- Fix some comments

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52635
2011-07-11 13:53:58 +00:00
Giannis Adamopoulos
1e6bee248a [uxtheme]
- Do not close hKey in query_reg_path. Noticed while testing our uxtheme in windows. Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52634
2011-07-11 13:38:05 +00:00
Giannis Adamopoulos
535a684169 [uxtheme]
- Call UXTHEME_InitSystem when user api hooks are installed

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52633
2011-07-11 13:28:20 +00:00
Giannis Adamopoulos
17344c6dc6 [uxtheme]
- Move some definitions to a header file

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52632
2011-07-11 13:17:39 +00:00
Giannis Adamopoulos
7d376ed435 [win32k]
-Add a hack to GreStretchBltMask to return TRUE when a dimension is 0. After some investigation it seems that windows returns TRUE in such a case but couldn't investigate more if this change is really correct. This hack is needed because a drawing operation in uxtheme is aborted when StretchBlt returns FALSE

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52631
2011-07-11 12:59:21 +00:00
Claudiu Mihail
02013a2c67 [lwIP/IP]
- Optimize the way Send and Close handlers work by executing executing the raw lwIP functions directly instead of using lwIP's callback system. This works because the handlers are executed from lwIP's master thread context
- small language optimizations

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52630
2011-07-11 12:36:07 +00:00
Art Yerkes
2ebb206d88 [CMAKE] Fix my mistake returning the original space, rather than the mapped area.
svn path=/trunk/; revision=52629
2011-07-11 07:11:12 +00:00
Timo Kreuzer
93a416ddfd [NTOSKRNL]
Implement the "SLIST hack". It checks whether the access to the Next member of the first list item of an iSList caused the exception, this can happen, when a concurrent thread pops the first entry and frees its memory between the point where the address of the entry is loaded and the access to it. This is done before the call to MmAccessFault to handle the theoretical scenario of a guard page exception being triggered by the fault, which we don't want to be handled.
Currently only kernel mode is handled.

svn path=/trunk/; revision=52628
2011-07-11 03:36:29 +00:00
Cameron Gutman
8aa496d875 [OSKITTCP]
- Fix a crash that occurs during BitTorrent downloads
- The official BitTorrent client works now

svn path=/trunk/; revision=52627
2011-07-11 02:44:32 +00:00
Alex Ionescu
7ef2dcbe22 [NTDLL]: Always compile your code before comitting, like my cat used to say.
svn path=/trunk/; revision=52626
2011-07-11 01:22:01 +00:00
Alex Ionescu
043ba4e228 [NTDLL]: Reimplement RtlGetCurrentDirectory_U... I couldn't even understand what the old version was doing. This one is at least commented and makes more sense.
svn path=/trunk/; revision=52625
2011-07-11 01:13:34 +00:00
Alex Ionescu
67f44266b0 [RTL]: RtlDetermineDosPathNameType_U Path is not optional. Checked build ASSERTs if not present. Also, \\? is valid, not only \\., so this should fix a bunch of incorrect path determinations. Aren't there supposed to be unit tests for these things?!
svn path=/trunk/; revision=52624
2011-07-11 00:47:44 +00:00
Alex Ionescu
2507c181d0 [RTL]: Clarify what RtlGetLongestNtPathLength returns instead of using "+9" as a magic constant.
svn path=/trunk/; revision=52623
2011-07-11 00:38:34 +00:00
Alex Ionescu
642d0d6141 [NTDLL] Merge LdrpResolveFullName and LdrpSearchPath and LdrpAllocateUnicodeString from the LDR Rewrite branch. Not actually used yet since they use Rtl APIs that ReactOS does not implement. Guess what the next commits are going to be about.
svn path=/trunk/; revision=52622
2011-07-11 00:25:26 +00:00
Alex Ionescu
1b775b8d8a [NTDLL]: Cleanup and half-fix LdrpCheckForLoadedDll, including adding comments for where it's broken. This uses RtlImageNtHeaderEx with much stringent checks as well.
svn path=/trunk/; revision=52621
2011-07-11 00:12:33 +00:00
Alex Ionescu
f1c4df527e [RTL]: One day, Microsoft is going to stop using flags that are negatives. Fix boot/etc.
svn path=/trunk/; revision=52620
2011-07-11 00:10:27 +00:00
Rafal Harabien
f9f36696f9 [WIN32CSR]
- Fix CSR hard error messages. Parameters are now converted to ANSI string which are expected by message format string.

svn path=/trunk/; revision=52619
2011-07-10 22:40:43 +00:00
Alex Ionescu
c93b41ab3f [NDK]: Add missing RtlImageNtHeaderEx flags.
[RTL]: Implement RtlImageNtHeaderEx and make RtlImageNtHeader call it. This will result in much stricter (and correct) PE loading by default, and enable a flag which can do even stricter checks.
[NTDLL]: Export RtlImageNtHeaderEx (maybe NTOS should export it too, not sure).

svn path=/trunk/; revision=52618
2011-07-10 21:55:55 +00:00
Rafal Harabien
d730393e07 - Add more NT status messages. Few of them are used by new LDR. Contains patch by Thomas Faber.
svn path=/trunk/; revision=52617
2011-07-10 19:47:45 +00:00
Jérôme Gardou
c34fe70bfe [NTOSKRNL/MM]
- The initial region does not necessarily begins with the asked address, calculate remaining space acccordingly.

svn path=/trunk/; revision=52616
2011-07-10 19:24:49 +00:00
Cameron Gutman
a149b1c33b [RTL]
- Revert r52612
- It came before its time ;)

svn path=/trunk/; revision=52615
2011-07-10 17:46:27 +00:00
Jérôme Gardou
0cb80213de [NTOSKRNL/MM]
- fix broken logic
- simplify calculation of remainig space to alter
- call ExFreePoolWithTag instead of ExFreePool
- return error on failure

svn path=/trunk/; revision=52614
2011-07-10 17:21:38 +00:00
Timo Kreuzer
d28438f515 [NTDLL]
add some stubs for amd64

svn path=/trunk/; revision=52613
2011-07-10 16:43:03 +00:00
Cameron Gutman
bee9140898 [RTL]
- Enable the proper implementation of RtlActivateActivationContextUnsafeFast

svn path=/trunk/; revision=52612
2011-07-10 16:33:23 +00:00
Cameron Gutman
6ef48aa4b4 [NTDLL]
- Fix memory corruption by reverting part of r52603

svn path=/trunk/; revision=52611
2011-07-10 16:25:42 +00:00
Rafal Harabien
ce8c949828 [EVENTLOG]
- Fix MSVC warnings

svn path=/trunk/; revision=52610
2011-07-10 15:39:32 +00:00
Sylvain Petreolle
0685c73a53 [SFC_OS]
Implement SfcFileException, required by VBox Guest additions to install 3D support.

svn path=/trunk/; revision=52609
2011-07-10 15:05:14 +00:00
Rafal Harabien
b509f3318b [NTDLL/LDR] - Fix one more USHORT and -1 comparison. Patch by Thomas Faber
svn path=/trunk/; revision=52608
2011-07-10 15:02:00 +00:00
Alex Ionescu
ca4263fbf8 [NTDLL]: Fix parsing and buffer overflow in LdrpLoadDll. Add more debug prints, and add some missing code (commented out) for later.
svn path=/trunk/; revision=52607
2011-07-10 13:51:40 +00:00
Rafal Harabien
12bc8ad634 [NTDLL/LDR]
- Fix CMake build
- Minor improvements
Path by Thomas Faber

svn path=/trunk/; revision=52606
2011-07-10 13:44:19 +00:00
Jérôme Gardou
ef65e8cc09 [AFD]
- fix MSVC build

svn path=/trunk/; revision=52605
2011-07-10 13:28:47 +00:00
Alex Ionescu
f23c2d83be [NTDLL]: Actually delete the file.
svn path=/trunk/; revision=52604
2011-07-10 13:23:54 +00:00
Alex Ionescu
5a7963b7ba [NTDLL]: More fixes to the PE parsing code.
[NTDLL]: Move and fix LdrUnloadDll to ldrapi.c
[NTDLL]: Remove yet another cruft file. 

svn path=/trunk/; revision=52603
2011-07-10 13:23:19 +00:00
Rafal Harabien
cc5bf5ecd5 [NTDLL/LDR]
- Don't use -1 for USHORT LDR_DATA_TABLE_ENTRY::LoadCount. When comparing ((USHORT)-1) == 0xFFFF vs (int)-1 it ends in comparison 0xFFFF vs 0xFFFFFFFF with is wrong. Fixes shutdown from shell
See issue #6345 for more details.

svn path=/trunk/; revision=52601
2011-07-10 11:49:52 +00:00
Cameron Gutman
38990db5fd [AFD]
- Fix broken TDI address functions which were causing subtle memory corruptions, wasted memory, and incorrect or uninitialized values of the address length field
- Remove some buggy code that wasn't used anywhere
- General refactoring to reduce code duplication
- Handle an invalid address type properly

svn path=/trunk/; revision=52600
2011-07-10 08:25:31 +00:00
Thomas Faber
76b9429abf [KMTEST]
- improve user friendliness by making the service management functions actually work

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52599
2011-07-10 08:03:15 +00:00
Cameron Gutman
3e44b02671 [KERNEL32]: Fix build
svn path=/trunk/; revision=52598
2011-07-10 07:15:26 +00:00
Cameron Gutman
41406f9697 [AFD]
- Probe and lock pages with the KernelMode access mode instead of Irp->RequestorMode (UserMode) since we're dealing with memory that we allocated in kernel-mode
- Fixes getpeername() and HTTPS browsing in Firefox

svn path=/trunk/; revision=52597
2011-07-10 02:23:12 +00:00
Alex Ionescu
dfe6317126 [NTDLL]: More attempts at fixing up the loader, this time in the PE side of things.
svn path=/trunk/; revision=52596
2011-07-10 02:14:29 +00:00
Alex Ionescu
ef16071792 [NTDLL]: Multiple fixes and cleanups to several loader functions in ldrutils.
[NTDLL]: Use original symbolic function names instead of modified ones.
[NTDLL]: Fixup some incorrect flag and typedef definitions with correct ones.
[NTDLL]: Tag functions which seem broken/lacking in functionality/very different from the rest of the code the LDR rewrite was based on.

svn path=/trunk/; revision=52595
2011-07-10 01:34:19 +00:00
Claudiu Mihail
9f0c4d27d8 [IP/lwIP]
- Fix graceful closure hanging bug

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52594
2011-07-10 00:38:29 +00:00
Rafal Harabien
4adb49c9cf [NTDLL/LDR]
- Fix build (not sure if its right place for IMAGE_LOADER_FLAGS_*)
- Remove unused label

svn path=/trunk/; revision=52593
2011-07-09 22:26:23 +00:00
Thomas Faber
363d5300d0 [KMTESTS]
- decrease log buffer size because ROS has a problem with unlocking it otherwise ;)
- add test for critical/guarded regions
- add test for executive resources (part 1)

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52592
2011-07-09 22:02:54 +00:00
Rafal Harabien
2bd7185260 [NTDLL/LDR]
- Fix CMake build
- Don't override failure status in LdrGetDllHandleEx
- Minor improvements
Fixes loading of mshtml.tlb in 2nd stage. Patch by Thomas Faber

svn path=/trunk/; revision=52591
2011-07-09 21:48:59 +00:00
Rafal Harabien
03c817cabf [BZIP2]
- Fix MSVC build

svn path=/trunk/; revision=52590
2011-07-09 21:07:30 +00:00
Rafal Harabien
5cec9ddc0e [FRAMEBUF_NEW]
- Fix MSVC build

svn path=/trunk/; revision=52589
2011-07-09 20:33:47 +00:00
Alex Ionescu
d544cad512 [NTDLL]: Fix busted up LdrpCreateDllSection function, checking for the wrong things completely for Safer support, and also messing up the failure/success paths. Based on a find by arty.
svn path=/trunk/; revision=52588
2011-07-09 20:33:29 +00:00
Rafal Harabien
97e63bf1b7 [NORMALIZ]
- Don't build normaliz.dll - it's Win Vista library. It didn't even work because exports was redirected to commented out kernel32 exports. GCC ignored it but MSVC returns error in such case.

svn path=/trunk/; revision=52587
2011-07-09 19:18:49 +00:00
Timo Kreuzer
c182d594ae [NTOSKRNL]
Update TRAP_ENTRY macro to generate debugging information. Now WinDbg knows how to deal with the trap functions and also shows the user mode back traces.

svn path=/trunk/; revision=52586
2011-07-09 19:15:34 +00:00
Alex Ionescu
918511d9ea [NTDLL]: Reimplemnt LdrDisableThreadCalloutsForDll using new loader APIS.
[NTDLL]: Fix LdrpInitializeProcess to use new loader relocation API instead of LdrRelocateImage. Warn if an EXE gets relocated since this was never supported in ReactOS.
[NTDLL]: Move APIs into ldrapi.c and delete 3 leftover cruft files.
This is the extent of my review for the moment. There are still many problems with the loader. It should've been tested/put in a branch. I found these 25 bugs in less than a day. Other problems remaining are missing SEH around loader lock, not too sure if the cookie generation is correct, cookies are ULONG_PTR not ULONGs, and haven't checked the PE loading code yet (only reviewed ldrapi.c).

svn path=/trunk/; revision=52585
2011-07-09 16:15:43 +00:00
Alex Ionescu
c3743c23c3 [NTDLL]: Some more misc. cleanups and extra output.
svn path=/trunk/; revision=52584
2011-07-09 15:32:36 +00:00
Alex Ionescu
a00bcc0821 [NTDLL]: LdrFindEntryForAddress should cehck EntryInProgress first. Also add missing dprint.
[NTDLL]: LdrVerifyImageMatchesCheckSum does not actually do the check if the FileHandle is ORed with 1 (this is an optimization for KnownDLLs). Also, use EndOfFile.LowPart for the checksum, not ViewSize.
[NTDLL]: LdrpGetProcedureAddress: fix overflows, incorrect constants, incorrect memcopy call, and only run init routines if the thunk was actually snapped.

svn path=/trunk/; revision=52583
2011-07-09 14:52:07 +00:00
Timo Kreuzer
b5eab2f965 [NTOSKRNL]
In MmDbgCopyMemory do physical memory copy, if the virtual target address is valid, but not writable. Fixes Step-Over on user mode addresses with WinDbg (can write break points now)

svn path=/trunk/; revision=52582
2011-07-09 14:15:47 +00:00
Alex Ionescu
5bf3d7c1d8 [NTDLL]: Fix multiple levels of fail in LdrGetDllHandleEx (returning with lock held, leaking memory, using NULL pointers, using magic flags, missing ASSERTs, buffer overflows, usage of incorrect constants, ignoring status failures, lack of varaible initialization, incorrect string initialization).
svn path=/trunk/; revision=52581
2011-07-09 13:37:47 +00:00
Jérôme Gardou
5d0a090209 [CMAKE]
- fix typo

svn path=/trunk/; revision=52580
2011-07-09 11:17:12 +00:00
Eric Kohl
752c88cdbd [WLANSVC]
Set status SERVICE_STOPPED when the service has been stopped.

svn path=/trunk/; revision=52579
2011-07-09 10:41:55 +00:00
Art Yerkes
720358902c [CMAKE] Sidesetup overloading nonpaged pool with big slabs of dwarf data.
svn path=/trunk/; revision=52578
2011-07-09 09:58:02 +00:00
Aleksey Bragin
289a5f8d37 [NTDLL/LDR]
- Comment out the actctx redirection check because it's placed wrongly. This should fix cases when a DLL is being loaded twice or more times for the same process. Spotted by Rafal Harabien.

svn path=/trunk/; revision=52577
2011-07-08 22:32:48 +00:00
Alex Ionescu
9fb0ac1448 [NTDLL]: Simplify LdrLockLoaderLock, fix its prototype, add an ASSERT, move cookie generation into its own inline.
svn path=/trunk/; revision=52576
2011-07-08 21:19:38 +00:00
Alex Ionescu
d6358dd51e [NTDLL]: Fix LdrUnlockLoaderLock bugs. 4x10000$.
svn path=/trunk/; revision=52575
2011-07-08 21:07:31 +00:00
Rafal Harabien
dbe1886186 [NTDLL/LDR]
- Use \\KnownDlls\\KnownDllPath instead of \\KnownDlls\\KnownDlls to check known dlls patch (spotted by Thomas Faber)
- Assume known dlls are in system32 if \\KnownDlls exists but KnownDllPath not

svn path=/trunk/; revision=52574
2011-07-08 19:42:53 +00:00
Amine Khaldi
00612e723d * Reverse merge ldr rewrite related commits.
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52573
2011-07-08 18:13:36 +00:00
Cameron Gutman
820aba4e5a [IP]
- Complete waiting requests upon socket error
- Fixes connect() stall forever if the remote side is not listening

svn path=/trunk/; revision=52572
2011-07-08 16:34:49 +00:00
Amine Khaldi
31ee5fc3a7 [CMAKE]
* Add yet another awesome rossym/kdbg feature: struct printing using the command "dt". Brought to you by the Arty.

svn path=/trunk/; revision=52571
2011-07-08 11:16:26 +00:00
Amine Khaldi
81a39fdab6 [CMAKE]
* Disable stdcall fixup for executables.

svn path=/trunk/; revision=52570
2011-07-08 11:14:10 +00:00
Timo Kreuzer
2c426dbf82 [CMAKE]
Improve configure.cmd

svn path=/trunk/; revision=52569
2011-07-08 10:01:43 +00:00
Timo Kreuzer
493a3b43ad [NDK]
Fix LPCP_PORT_OBJECT definition

svn path=/trunk/; revision=52568
2011-07-08 09:25:50 +00:00
Thomas Faber
af53d3dc25 [KMTESTS/KE]
- add a test for DPCs
- add a test for IRQ levels

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52567
2011-07-08 06:38:01 +00:00
Timo Kreuzer
ef38234ab9 [URLMON]
Fix build with MSVC and add it to MSVC bootcd

svn path=/trunk/; revision=52566
2011-07-08 01:50:27 +00:00
Amine Khaldi
4f2d0d54b0 * Sync to recent trunk (r52563).
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52565
2011-07-08 01:50:19 +00:00
Timo Kreuzer
511c936bf4 [CMAKE]
Improve generation of rpc proxy files with midl (dependency handling)

svn path=/trunk/; revision=52564
2011-07-08 01:48:51 +00:00
Cameron Gutman
62cbe9d8f0 [AFD]
- Fix a desired access bug that totally broke event select
- FILE_ALL_ACCESS is NOT equal to EVENT_ALL_ACCESS

svn path=/trunk/; revision=52563
2011-07-07 23:17:23 +00:00
Cameron Gutman
31774f263a [AFD]
- Signal the event immediately if the select triggers have already been satisfied
- This fixes hangs with applications that wait on the select event before performing any socket operations

svn path=/trunk/; revision=52562
2011-07-07 22:43:35 +00:00
Cameron Gutman
fff1ab8feb [AFD]
- Implement IOCTL_AFD_RECV for connection-less sockets
- Fix a parameter check
- Fixes recv() on datagram sockets

svn path=/trunk/; revision=52561
2011-07-07 20:44:47 +00:00
Cameron Gutman
2ee824a900 [MSAFD]
- Let WSPSend handle WSPSendTo on a non-datagram socket (mswsock_new does this)
- Fixes sendto on connection-oriented sockets

svn path=/trunk/; revision=52560
2011-07-07 20:16:28 +00:00
Cameron Gutman
6a6e263c86 [IP]
- Return the amount of data sent in XXXSendDatagram() functions
- Fixes send() and sendto() return values for datagram sockets (bug exposed by the AFD send user-mode IRP rewrite)

svn path=/trunk/; revision=52559
2011-07-07 20:02:52 +00:00
Dmitry Gorbachev
d573717e00 Fix failed rel build.
svn path=/trunk/; revision=52558
2011-07-07 19:50:52 +00:00
Dmitry Gorbachev
2a66163177 [FREELDR]
- Move read-only data into data section (allows to boot with GRUB again).
- Discard .drectve sections.
- Silence "set but not used" warnings.

svn path=/trunk/; revision=52557
2011-07-07 19:19:44 +00:00
Dmitry Gorbachev
e462a7a6d3 [NTOSKRNL]
Minas Abrahamyan (minas \dot/ subs \at/ gmail \dot/ com):
- Allow to view already shown, logged debug messages on the screen (bug #6018).

svn path=/trunk/; revision=52556
2011-07-07 19:18:16 +00:00
Sir Richard
5b90950500 Patch by Anton Yarotsky:
[SACDRV]: Implement the SAC Channel Input/Output Interface and Getters/Setters.

svn path=/trunk/; revision=52555
2011-07-07 12:03:56 +00:00
Sir Richard
79f36207fc Patch by Anton Yarotsky:
[SACDRV]: Add type definitions for channel VTABLE.
[SACDRV]: Add channel event macros and flags.
[SACDRV]: Add channal lock macros.
[SACDRV]: Add macros for parameter validation.
[SACDRV]: Add macro for pool allocation.
[SACDRV]: Misc fixes.

svn path=/trunk/; revision=52554
2011-07-07 12:02:32 +00:00
Cameron Gutman
6f052257ab [MSAFD]
- Let WSPRecv handle WSPRecvFrom on a non-datagram socket (mswsock_new does this)
- Fixes recvfrom on connection-oriented sockets

svn path=/trunk/; revision=52553
2011-07-07 11:40:25 +00:00
Cameron Gutman
14f58265d2 [AFD]
- Rewrite user-mode send IRP handling so send errors get returned to the user properly
- Fixes OskitTCP: ESHUTDOWN/EPIPE debug log spam when a chargen telnet session is terminated by the remote side

svn path=/trunk/; revision=52552
2011-07-07 00:29:30 +00:00
Timo Kreuzer
d7d9b7ec6c [RPCRT4]
Fix MSVC version of call_server_func

svn path=/trunk/; revision=52551
2011-07-07 00:21:41 +00:00
Thomas Faber
9bfa0dd900 [KMTESTS]
- add support for special-purpose standalone drivers
- add standalone driver to Example test

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52550
2011-07-06 22:23:03 +00:00
Thomas Faber
8d003b1a1c [KMTESTS]
- add a user-mode part to the example testlist.c
- misc fixes

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52549
2011-07-06 18:55:21 +00:00
Timo Kreuzer
b92c0d9f52 [NTOSKRNL]
- Fix completely broken code to detect invalid MSR access in KiTrap0DHandler
- Fix MSVC warnings

svn path=/trunk/; revision=52548
2011-07-06 18:23:04 +00:00
Timo Kreuzer
9659a39678 [NPFS]
Fix 2nd stage pool corruption.
CCBs are organized in a linked list in the corresponding Fcb, which is protected by Fcb->CcbListLock. They are also linked together server <-> client. This way they can be referenced without holding the lock. This lead to a race condition where a CCB's link was modified after the CCB was deleted. Fix this by using a reference counter and adding appropriate functions. Also make use of pool tags.

svn path=/trunk/; revision=52547
2011-07-06 18:14:42 +00:00
Rafal Harabien
f6630535f2 [CDFS][FASTFAT][NPFS]
- Fix MSVC warnings

svn path=/trunk/; revision=52546
2011-07-05 13:55:39 +00:00
Rafal Harabien
2750bc8ed5 [MSAFD]
- Fix MSVC warning

svn path=/trunk/; revision=52545
2011-07-05 12:21:17 +00:00
Giannis Adamopoulos
29e5fe2299 [uxtheme]
- Use double buffering when painting the caption

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52544
2011-07-05 10:15:09 +00:00
Giannis Adamopoulos
47f499522a [uxtheme]
- Implement drawing the menu bar

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52543
2011-07-05 10:09:26 +00:00
Giannis Adamopoulos
c49c17744c [uxtheme]
- Fill in WINDOWINFO.cbSize before calling GetWindowInfo
- Handle invalid regions passed to WM_NCPAINT
- Handle WM_NCUAHDRAWCAPTION and WM_NCUAHDRAWFRAME without doing anything there for now

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52542
2011-07-05 10:04:25 +00:00
Thomas Faber
bf054095df [KMTESTS]
- prepare the device object for being opened multiple times (required for communication with special-purpose drivers)
- more verbose DPRINTs
- implement utility functions for app<->driver communication
- misc fixes

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52541
2011-07-04 19:47:49 +00:00
Cameron Gutman
d9a64c3019 [USETUP]
- Remove formatting and partitioning hacks which are unnecessary after fixing the invalid signature bug in the FAT formatting code

svn path=/trunk/; revision=52540
2011-07-04 19:39:34 +00:00
Cameron Gutman
4e5a783a2f [AFD]
- Move the TdiReceiveDatagram call to WarmSocketForBind like it is done for connects

svn path=/trunk/; revision=52539
2011-07-04 19:13:45 +00:00
Cameron Gutman
54f9acbf0d [AFD]
- Add support for AFD_INFO_INLINING_MODE
- Add support for setting AFD_INFO_RECEIVE_WINDOW_SIZE and AFD_INFO_SEND_WINDOW_SIZE
- None of this is used by our current msafd but mswsock_new uses it

svn path=/trunk/; revision=52538
2011-07-04 18:07:55 +00:00
Cameron Gutman
0e8f87ff82 [MSAFD/AFD]
- Pass the non-blocking information as a boolean (mswsock_new does this too)
[AFD]
- Don't block waiting for a connection to accept on a non-blocking listener

svn path=/trunk/; revision=52537
2011-07-04 17:37:45 +00:00
Timo Kreuzer
c19f9ab75c [RTL]
- Fix RtlFindSetBits to search for bits before the HintIndex as well
- Remove a wrong (and commented out) ASSERT
- Fix MSVC warnings

svn path=/trunk/; revision=52536
2011-07-04 16:30:45 +00:00
Timo Kreuzer
f3a297daba [NTOSKRNL]
- Initialize an uninitialized variable
- MI_GET_NEXT_COLOR() doesn't have an argument
- Fix a warning on MSVC

svn path=/trunk/; revision=52535
2011-07-04 16:26:52 +00:00
Cameron Gutman
fd6bb26299 - Small fix for my last commit to prevent problems if ExAllocatePool fails
svn path=/trunk/; revision=52534
2011-07-04 15:45:58 +00:00
Cameron Gutman
72fe2efcf8 [AFD]
- Fix FIONREAD for datagram sockets

svn path=/trunk/; revision=52533
2011-07-04 15:35:16 +00:00
Cameron Gutman
00651a94cd [AFD]
- Fix a check so FIONREAD works for accepted sockets too

svn path=/trunk/; revision=52532
2011-07-04 00:30:04 +00:00
Rafal Harabien
47e38dc163 - Fix build
svn path=/trunk/; revision=52531
2011-07-03 23:32:00 +00:00
Rafal Harabien
260631bc82 [NORMALIZ]
- Remove .def file - we already have spec2def

svn path=/trunk/; revision=52530
2011-07-03 23:25:59 +00:00
Claudiu Mihail
139e851adb [TESTS]
- Commit ReactOS binaries for previous two source files as well

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52529
2011-07-03 23:24:20 +00:00
Rafal Harabien
0750da242d - Remove breakpoint added by mistake to FreeLdr
svn path=/trunk/; revision=52528
2011-07-03 23:19:59 +00:00
Rafal Harabien
9c60ad5c59 [FREELDR]
- Remove debug prints added in previous commit...

svn path=/trunk/; revision=52527
2011-07-03 23:13:09 +00:00
Rafal Harabien
8d25697873 [FREELDR]
- Fix all MSVC warnings

svn path=/trunk/; revision=52526
2011-07-03 23:01:39 +00:00
Claudiu Mihail
788969f56f [TESTS]
- commit 2 very small and simple test apps to check select functionality

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52525
2011-07-03 22:54:55 +00:00
Hervé Poussineau
56f5c1f824 [LDR] In case of unrecoverable failure, always exit
svn path=/trunk/; revision=52524
2011-07-03 21:34:52 +00:00
Hervé Poussineau
efd1266b5b [LDR] Assume that lock is held only if lock method succeeded
svn path=/trunk/; revision=52523
2011-07-03 21:33:42 +00:00
Cameron Gutman
7056e2e757 [LDR]
- "Just to be sure" is no reason to overwrite a potential DLL load failure status

svn path=/trunk/; revision=52522
2011-07-03 20:16:12 +00:00
Cameron Gutman
4e60d722c9 [LDR]
- Don't overwrite the real unload status with the return value of RtlLeaveCriticalSection

svn path=/trunk/; revision=52521
2011-07-03 20:10:02 +00:00
Claudiu Mihail
fa0fd3a684 [AFD]
merge r52502, r52510

[TCPIP]
merge r52501, r52511

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52520
2011-07-03 19:40:40 +00:00
Thomas Faber
459f4ac630 [KMTESTS]
- rework the kmtest loader application to follow everything else's coding style and to allow user-mode test parts

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52519
2011-07-03 18:53:26 +00:00
Cameron Gutman
df556f104f [MSAFD]
- Only shutdown the socket if it has not already been shutdown
- Fixes EINVAL messages

svn path=/trunk/; revision=52518
2011-07-03 16:24:19 +00:00
Claudiu Mihail
1b907a202d [TCPIP]
apply changes r52501 for lwIP branch

- Fix binding to an unspecified port on a connect so that it works reliably by asking the TCP library for a free port instead of assuming that one we have is free
- Fix binding to an unspecified port on a listen which previously would result in the address file not having information stored about the port number assigned
- Fix a nasty bug which resulted in us binding to an arbitrary port during a connect even when the client wanted a specific port

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52517
2011-07-03 13:34:36 +00:00
Claudiu Mihail
75014f14eb [AFD]
merge r52497
- Rewrite disconnect to work asynchronously

merge r52492
- Fix several bugs related to the FD_WRITE event
- We would not set the sendable poll state if the socket had data waiting to be sent even if there was buffer space
- We did not set the poll state after performing a send
- We did not clear the sendable poll state if we ran out of buffer space

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52516
2011-07-03 12:03:49 +00:00
Hervé Poussineau
3657f4ff79 [LDR] Fix some mis-assignations
Brought to you by WinOCM
See issue #6353 for more details.

svn path=/trunk/; revision=52515
2011-07-03 10:58:26 +00:00
Olaf Siejka
afc124a8c2 [KDCOM]
Increase KdpStallScaleFactor by a factor of 10. Fixes initial delay of debug output on faster PCs with WinDBG.

svn path=/trunk/; revision=52514
2011-07-03 10:13:53 +00:00
Timo Kreuzer
9629690528 [NTOSKRNL]
- Fix KdComponentTableSize
- Make assembly instruction in KiCallUserMode MASM compatible
- silence some KD internal debug prints
The MSVC bootcd boots to desktop, but crashes with BAD_POOL_HEADER before 2nd stage setup starts.

svn path=/trunk/; revision=52513
2011-07-03 09:56:59 +00:00
James Tabor
1a41825a28 - Fix Release build.
svn path=/trunk/; revision=52512
2011-07-03 08:46:07 +00:00
Cameron Gutman
ba4ec529be [TCPIP]
- Only wait to bind to a port if INADDR_ANY is specified
- Fixes EADDRNOTAVAIL when running Firefox and ws2_32_winetest sock (which now gets further but still doesn't complete)

svn path=/trunk/; revision=52511
2011-07-03 02:13:57 +00:00
Cameron Gutman
afa2c1d664 [AFD]
- We really do need to count the outstanding send IRP in our pending send count (with a detailed explanation of the reason included in the code)
- Wait on an outstanding send IRP to dispatch the disconnect
- When we receive a FIN from the other side and our receive comes back with 0 data, only close receiving on the socket because sending is still legal in this state
- Fixes many bugs on the ws2_32_winetest sock and likely lots of other partial disconnect related stuff
- Retest network related hanging bugs after this please (ftp dir hang is fixed)

svn path=/trunk/; revision=52510
2011-07-03 01:53:10 +00:00
Timo Kreuzer
82562115f8 [NTOSKRNL]
Fix KiConvertToGuiThread on MSVC builds, by using a raw assembly function instead of a (broken) inline asembly function
MSVC built kernel boots further now.

svn path=/trunk/; revision=52509
2011-07-03 01:04:01 +00:00
Cameron Gutman
c1276124ac [IP]
- Handle an EPIPE error

svn path=/trunk/; revision=52508
2011-07-03 00:12:25 +00:00
Timo Kreuzer
12404ace17 [NTOSKNRL]
- Change an ASSERT to a KeBugCheck, since the assertion can fail for any invalid memory access and this is not an internal Mm failure.
- Remove 2 cases, that "Should NEVER happen on ARM3!!!", but can very well happen.
- Do NOT make the code cleaner, by releasing the PFN lock in the same function that acquires it, but keep it 2 functions down. This is because it *SHOULD* be that way, since some internal undocumented functions, that we do not implement but that are (theoretically) called from here, also do release the PFN lock. Thanks Alex for explaining this.

svn path=/trunk/; revision=52507
2011-07-02 23:11:06 +00:00
Cameron Gutman
bfba57801e - Fix build
svn path=/trunk/; revision=52506
2011-07-02 23:07:45 +00:00
Cameron Gutman
279c82bd9f [OSKITTCP]
- Remove socket state checks from OskitTCPRecv and OskitTCPSend
- Oskit already returns ESHUTDOWN when sosend is called on a socket with SS_CANTSENDMORE so it is unnecessary
- The check in OskitTCPRecv broke returning success and 0 bytes on a graceful shutdown (We got the FIN, set SS_CANTRCVMORE, signaled the connection, tried to read and failed with ESHUTDOWN instead of succeeding with 0 bytes)

svn path=/trunk/; revision=52505
2011-07-02 22:57:30 +00:00
Cameron Gutman
c7d3d99eaf [OSKITTCP]
- Signal readable when read is closed and writeable when write is closed
- This seems counterintuitive on the surface but signaling the socket in this way ensures that pending reads and writes are cancelled if either side shuts down send/receive
- Graceful close (recv() returns 0 bytes and FD_CLOSE is signaled when we receive a FIN) works much better

svn path=/trunk/; revision=52504
2011-07-02 21:47:30 +00:00
Cameron Gutman
0669007af7 [TCPIP]
- Implement support for timing out disconnects
- Add debug prints for oskittcp errors
[MSAFD]
- Set a disconnect timeout value that actually makes sense (1 second vs 100 nanoseconds)

svn path=/trunk/; revision=52503
2011-07-02 20:36:35 +00:00
Cameron Gutman
f828c2431c [AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver

svn path=/trunk/; revision=52502
2011-07-02 20:26:21 +00:00
Cameron Gutman
16ded1b13b [TCPIP]
- Fix binding to an unspecified port on a connect so that it works reliably by asking the TCP library for a free port instead of assuming that one we have is free
- Fix binding to an unspecified port on a listen which previously would result in the address file not having information stored about the port number assigned
- Fix a nasty bug which resulted in us binding to an arbitrary port during a connect even when the client wanted a specific port
- Revert the hack that partially fixed this before

svn path=/trunk/; revision=52501
2011-07-02 15:37:37 +00:00
Timo Kreuzer
b062ee8583 [FAT32]
- Really fix loading the MSVC built kernel, by moving the FAT sector buffer beyond the area for freeldr.sys
- Load segment only in one place

svn path=/trunk/; revision=52500
2011-07-02 15:08:54 +00:00
Cameron Gutman
7bff316a9a [OSKITTCP]
- Set SO_REUSEPORT on new sockets to allow binding to ports shared by sockets which are closed according to upper layers of tcpip but still pending a close in oskittcp (see the BSD try-10-times hack)
- Fill all members of the sockaddr_in struct when fulfilling a query accept request

svn path=/trunk/; revision=52498
2011-07-01 15:08:59 +00:00
Cameron Gutman
a45e92a406 [AFD]
- Rewrite disconnect to work asynchronously

svn path=/trunk/; revision=52497
2011-07-01 14:31:37 +00:00
Timo Kreuzer
1fbeaa3bac [FAT32]
Add some code that does ... nothing, but fixes 2nd stage boot with msvc. To figure out why this is needed, is left as an excercise to the reader :)

svn path=/trunk/; revision=52496
2011-07-01 01:06:19 +00:00
Rafal Harabien
47003f6ddb [DDK]
- Fix ScsiPortWriteRegisterUchar prototype

svn path=/trunk/; revision=52495
2011-06-30 22:54:20 +00:00
Rafal Harabien
a92db0cc1d [FREELDR]
- Allocate enough memory for unicode strings

svn path=/trunk/; revision=52494
2011-06-30 18:55:44 +00:00
Timo Kreuzer
53d165e2ae [CMAKE]
Add hlink and msi importlib to MSVC build

svn path=/trunk/; revision=52493
2011-06-30 16:03:41 +00:00
Cameron Gutman
97b25874fc [AFD]
- Fix several bugs related to the FD_WRITE event
- We would not set the sendable poll state if the socket had data waiting to be sent even if there was buffer space
- We did not set the poll state after performing a send
- We did not clear the sendable poll state if we ran out of buffer space

svn path=/trunk/; revision=52492
2011-06-30 06:04:09 +00:00
Timo Kreuzer
ab849501e7 [FREELDR]
Remove the old boot method.
Its not needed anymore, since booting with more than 4GB works fine with the new method now. It didn't work anyway since the neccessary code in the kernel has been #if'ed out in r49445

svn path=/trunk/; revision=52491
2011-06-29 20:27:07 +00:00
Sylvain Petreolle
b569cc99bd [ASM]
Use CR, LF and NUL in .ascii macro.

svn path=/trunk/; revision=52490
2011-06-29 16:40:14 +00:00
Thomas Faber
991bc0e366 [KMTESTS]
- add skip() functionality (with more useful syntax than Wine's)
- add format attributes for GCC
- do not show the full path of the source file for failed tests
- general cleanup

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52489
2011-06-29 08:51:00 +00:00
Timo Kreuzer
fe0d2f6e05 [KDCOM]
Fix a typo

svn path=/trunk/; revision=52488
2011-06-28 15:15:28 +00:00
Timo Kreuzer
a4f75706d0 [KDCOM]
Revert r52482, it didn't really work. Instead grab the StallScaleFactor from the PCR and use this as a base for the repeat count.

svn path=/trunk/; revision=52487
2011-06-28 15:12:02 +00:00
Olaf Siejka
7d7c3abd4d [TRANSLATION]
- CACLS, CALC and CHARMAP UTF8 conversion by Elton Chung;
- FONTVIEW, LOGON russian/ukrainian UTF8 conversion and SYSDM ukrainian fix by Igor Paliychuk;
- WIN32CSR czech translation update by Radek Liska;

svn path=/trunk/; revision=52486
2011-06-28 11:42:37 +00:00
Claudiu Mihail
9aa2d2c133 [IP]
- fix system crash when failing to connect to a remote host
- Set address length in the TDI address struct
- Simplify copying the address
- Zero the sin_zero member

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52485
2011-06-28 07:29:28 +00:00
Jérôme Gardou
fb4322a63f [CMAKE]
- reapply 52463, it was a real fix :-)
log: fix typo, batc.sys -> battc.sys

svn path=/trunk/; revision=52484
2011-06-27 17:26:59 +00:00
Jérôme Gardou
da1b81d04f [CMAKE]
- do not use half supported precompiled header wrongly for rosautotests

svn path=/trunk/; revision=52483
2011-06-27 17:20:02 +00:00
Timo Kreuzer
0f06493485 [KDCOM]
Use KeStallExecutionProcessor, once its ready (after KdDebuggerInitialize1 was called) for the receive timeout. Repeat 100 times with 1 ms wait. This seems to work quite well, but might be tuned for better values.

svn path=/trunk/; revision=52482
2011-06-27 16:51:00 +00:00
Timo Kreuzer
2f7cf157d8 [CRT]
On amd64 builds, where we don't have underscored symbols, create an alias fabs for the function _fabs, since we cannot create fabs as a label directly

svn path=/trunk/; revision=52481
2011-06-27 10:50:09 +00:00
Thomas Faber
7a0fe29b5e [KMTESTS]
- add mostly untouched ports of the easy-to-do tests from kmtest_old

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52480
2011-06-27 08:49:23 +00:00
Timo Kreuzer
0d984ab4e1 [NTOSKRNL]
Use KeRainseIrql and KeLowerIrql instead of the fastcall versions. Fixes amd64 build

svn path=/trunk/; revision=52479
2011-06-27 00:20:47 +00:00
Timo Kreuzer
157023269f [CRT]
- comment out gcc specific code on MSVC builds
- add some files for amd64 to msvcrtex

svn path=/trunk/; revision=52478
2011-06-26 22:57:12 +00:00
Timo Kreuzer
e304414af7 [WINE]
- demote an #error to a #pragma warning for amd64 MSVC builds

svn path=/trunk/; revision=52477
2011-06-26 22:26:42 +00:00
Timo Kreuzer
5074cf8d1e [SPEC2DEF]
change the way import libs are created for MSVC. Since we don't use underscores in symbols on other architectures than x86, its not possible to create labels like "div", since it conflicts with the opcode. Therefore add a prefix and redirect all exports to the prefixed version when building an importlib

svn path=/trunk/; revision=52476
2011-06-26 22:23:08 +00:00
Timo Kreuzer
b32da944f7 [CABMAN/CDMAKE]
check for _WIN32 instead of WIN32, fixes compilation with amd64 toolchain

svn path=/trunk/; revision=52475
2011-06-26 22:17:01 +00:00
Timo Kreuzer
c83e44a670 [CMAKE]
Patch by Samuel Serapion:
Fix configure script and add support for CodeBlocks and Eclipse

svn path=/trunk/; revision=52474
2011-06-26 22:05:31 +00:00
Timo Kreuzer
871ee92c7b [CMAKE]
revert r52460, r52463, r52468 on behalf of Jerome
it wrongly gave name decorations to export

svn path=/trunk/; revision=52473
2011-06-26 21:29:55 +00:00
Timo Kreuzer
a7f4dd2344 [FREELDR]
Fix amd64 build of setupldr as well.

svn path=/trunk/; revision=52472
2011-06-26 18:06:19 +00:00
Eric Kohl
39384c9a3f [REGEDIT]
Add ability to parse and display REG_RESOURCE_LIST values.

svn path=/trunk/; revision=52471
2011-06-26 16:19:33 +00:00
Eric Kohl
9a3e62efb6 [NDK]
Add missing interrupt resource descriptor flags.

svn path=/trunk/; revision=52470
2011-06-26 11:29:17 +00:00
Timo Kreuzer
62b74e4696 [FREELDR]
Fix amd64 build. It doesn't work yet

svn path=/trunk/; revision=52469
2011-06-26 10:49:22 +00:00
Jérôme Gardou
76c6c9e3e4 [CMAKE]
- add back add_importlib_target for def files, w32kdll relies on it.

svn path=/trunk/; revision=52468
2011-06-26 10:21:57 +00:00
Rafal Harabien
28157f42c1 [MSTSC][USETUP]
- Fix MSVC warnings
- Remove duplicated code in usetup progress bar

svn path=/trunk/; revision=52467
2011-06-26 10:08:31 +00:00
Timo Kreuzer
6641b0995e [PSDK]
Samuel Serapion:
Fix duplicate definitions on amd64 build

svn path=/trunk/; revision=52466
2011-06-26 09:37:59 +00:00
Timo Kreuzer
f8c949daa5 [CMAKE]
Patch by Samuel Serapion:
Make configure.cmd check for presence of cmake and detect jom

svn path=/trunk/; revision=52465
2011-06-26 09:19:24 +00:00
Alex Ionescu
2672d225f9 [WINE/INCLUDE]: Fix build on OS X, which uses a slightly different version of fnctl.h that doesn't use HAVE_XXX but just _XXX.
svn path=/trunk/; revision=52464
2011-06-25 19:25:54 +00:00
Jérôme Gardou
b9288855a2 [CMAKE]
- fix typo

svn path=/trunk/; revision=52463
2011-06-25 19:16:08 +00:00
Timo Kreuzer
cfb6386b45 [SETUPLDR]
Display a message box and bail out if loading imported dlls failed

svn path=/trunk/; revision=52462
2011-06-25 18:52:38 +00:00
Amine Khaldi
579adc153a [CMAKE]
* Add rapps, ftp and dwnl to msvc build.

svn path=/trunk/; revision=52461
2011-06-25 18:48:38 +00:00
Jérôme Gardou
01a4049405 [CMAKE]
- unify spec2def and add_importlib_target, thanks to cmake_parse_arguments.
  - also generate stub files only when necessary.
  - better precompiled header support, commented out as it wasn't tested on any other machine than mine, and it depends on cmake features which don't exist yet.
For now only for gcc toolchain

svn path=/trunk/; revision=52460
2011-06-25 18:34:03 +00:00
Timo Kreuzer
efd8902582 [BOOTSECTOR]
Fix a typo in a comment

svn path=/trunk/; revision=52459
2011-06-25 17:58:47 +00:00
Timo Kreuzer
54d5d9924b [CMAKE]
Remove _DEBUG definition.

svn path=/trunk/; revision=52458
2011-06-25 17:56:17 +00:00
Timo Kreuzer
395f4ffea6 [ASM]
- Fix Zw-systemcall stubs on MSVC
- Fix systemcall return stubs on MSVC
-> MSVC kernel boots and usetup works!
Didn't test anymore, because there is a massive atapi debug spam

svn path=/trunk/; revision=52457
2011-06-25 16:48:44 +00:00
Rafal Harabien
4504d4c686 [MSPAINT]
- Select selection tool after pasting from clipboard

svn path=/trunk/; revision=52456
2011-06-25 14:42:24 +00:00
Rafal Harabien
fa74282a41 [MSPAINT]
- Fix MSVC warnings

svn path=/trunk/; revision=52455
2011-06-25 14:34:52 +00:00
Sylvain Petreolle
b55c5995a4 [OLE32]
Fix comcat build, DllGetClassObject has to remain public.

svn path=/trunk/; revision=52454
2011-06-25 14:30:54 +00:00
Rafal Harabien
352fd948b1 [VIDEOPRT]
- Fix MSVC warnings

svn path=/trunk/; revision=52453
2011-06-25 14:10:19 +00:00
Timo Kreuzer
6d9cf47ce2 [FEELDR]
- Don't try to load referenced dlls in any other dir than system32. A second attempt would fail on the first dll that was already loaded and the function would bail out before any missing dll could be loaded. This worked only by chance on gcc builds, because the 1st import was bootvid, which was always loaded in the 2nd attempt from system32, and the function failed after that, since hal and kdcom were already loaded.

svn path=/trunk/; revision=52452
2011-06-25 13:52:47 +00:00
Rafal Harabien
de4cc449db [OLE32][SYSDM][DESK]
- Fix MSVC warnings

svn path=/trunk/; revision=52451
2011-06-25 13:49:48 +00:00
Rafal Harabien
a40188b18a [NTOSKRNL]
- Fix some MSVC warnings
- Fix typo in IoReleaseRemoveLockEx

svn path=/trunk/; revision=52450
2011-06-25 10:26:59 +00:00
Timo Kreuzer
5dd7ba690b [HAL]
- Use pushfd instead of pushf in asm code
- Don't mix UCHARs and enums in bitfields, MSVC really doesn't like that

svn path=/trunk/; revision=52449
2011-06-24 23:04:13 +00:00
Amine Khaldi
454d9856e3 [CMAKE]
* Add winkd kdcom to the ISOs.

svn path=/trunk/; revision=52448
2011-06-24 22:46:55 +00:00
Cameron Gutman
a77b5fde2c [IP]
- Set address length in the TDI address struct
- Simplify copying the address
- Zero the sin_zero member

svn path=/trunk/; revision=52447
2011-06-24 22:35:29 +00:00
Aleksey Bragin
2d89dd3da3 [NTDLL/LDR]
- The long awaited LDR rewrite, a commit for testing the new implementation. In case of serious problems it may be reverted (revert should be approved by me).
- Its features include:
* A proper ...everything. Process, thread initialization codes, DLL loading (including compatible path lookup, and compatible/proper loading order of the dependent DLLs, including their initialization) and mapping and section creation, reference counting, relocations, good and understandable PE code for walking import descriptor, snapping, etc etc. Hacks--; GoodCode++;
* Activation contexts operations are now being performed compatible to how Windows performs them (though the actual actctx implementation is still Wine's, it was modified to be compatible). Previously, actctx stuff was added to the ldr code like a pepper is added to the soup: in different places until it starts to work.
* Partial DLL redirection implementation.
* Possibility to support Shim engine and app compat stuff in future.
* More cool stuff, just browse the code.
- I fixed all regressions I could find but one (hang during shutdown of the 3rd stage). The purpose of this commit is to seek and destroy the regressions I couldn't find (if there are any).
- Some of the old rarely called ldr code still remains in startup.c and utils.c. They are subject to be rewritten/removed soon, and every remaining old function is marked with a respective DPRINT1 to see when it's being called.

svn path=/trunk/; revision=52446
2011-06-24 21:30:09 +00:00
Amine Khaldi
39b4073643 [CMAKE]
* Disable kdbg and enable _WINKD_ by default for msvc builds.

svn path=/trunk/; revision=52445
2011-06-24 21:28:43 +00:00
Timo Kreuzer
3412182c8e [NTOSKRNL]
Fix MSVC warnings

svn path=/trunk/; revision=52444
2011-06-24 15:52:19 +00:00
Claudiu Mihail
3f6a8fa6c2 [MSAFD]
- merge r52438
- Fail SIO_GET_EXTENSION_FUNCTION_POINTER
- Fixes the crash during ws2_32_winetest sock
[AFD]
- merge r52441
- Queue the user-mode connect IRP before calling TdiConnect to avoid a race if the TDI_CONNECT IRP is completed before we get a chance to queue the user-mode IRP to accept the connection
- Change the non-blocking TDI helper functions to always return STATUS_PENDING if the completion function will be called to avoid duplicate handling of IRPs

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52443
2011-06-24 14:57:29 +00:00
Cameron Gutman
f6485fab90 [AFD]
- Queue the user-mode connect IRP before calling TdiConnect to avoid a race if the TDI_CONNECT IRP is completed before we get a chance to queue the user-mode IRP to accept the connection
- Change the non-blocking TDI helper functions to always return STATUS_PENDING if the completion function will be called to avoid duplicate handling of IRPs

svn path=/trunk/; revision=52441
2011-06-24 14:06:48 +00:00
Amine Khaldi
b1bcc80fd3 [CMAKE]
* Fix psdk and dxsdk in the USER_WDK_HEADERS mode.

svn path=/trunk/; revision=52440
2011-06-24 12:12:27 +00:00
Amine Khaldi
9622e8516f [CMAKE]
* Add a way to use WDK headers (psdk, crt and ddk) instead of ours. To use it, just alter USE_WDK_HEADERS in configure.cmd to be 1 instead of 0.

svn path=/trunk/; revision=52439
2011-06-24 12:08:57 +00:00
Cameron Gutman
0710002caa [MSAFD]
- Fail SIO_GET_EXTENSION_FUNCTION_POINTER
- Fixes the crash during ws2_32_winetest sock
- In my testing, "sock: 4374916 tests executed (0 marked as todo, 93 failures), 6 skipped."

svn path=/trunk/; revision=52438
2011-06-24 04:31:31 +00:00
Cameron Gutman
f581e4cb37 [IP]
- Fix copying of the remote address when satisfying an accept request
- accept() and WSAAccept() no longer report strange peer addresses
- Fixes a few ws2_32_winetest sock tests

svn path=/trunk/; revision=52437
2011-06-24 03:35:30 +00:00
Cameron Gutman
f16fa41fb2 [VFATLIB]
- Don't overwrite format status with lock status

svn path=/trunk/; revision=52436
2011-06-24 01:36:32 +00:00
Cameron Gutman
a3b61053bc [VFATLIB]
- Lock the volume before formatting to prevent concurrent access during formatting
- This should (in theory) fix our formatting issue on mounted devices but currently we don't support FSCTL_LOCK_VOLUME in our FS drivers

svn path=/trunk/; revision=52435
2011-06-23 22:34:03 +00:00
James Tabor
a50aff948b - Fix debug build.
svn path=/trunk/; revision=52434
2011-06-23 22:25:50 +00:00
Sylvain Petreolle
a4e05ed476 [CMAKE]
Fix mshtml.tlb build with Visual Studio.
With mshtml_tlb and mshtml.tlb targets, the solution contained 2 mshtml_tlb targets.

svn path=/trunk/; revision=52433
2011-06-23 09:41:36 +00:00
Claudiu Mihail
b8daab7cfb [TCPIP]
Backup commit

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52432
2011-06-23 07:57:59 +00:00
Timo Kreuzer
b4e4d6e5c4 [NTOSKRNL]
Optimize KiSystemCallTrampoline inline assembly for MSVC. save one register, use eax for the handler address and don't assign to an intermediate variable before returning (hint by Alex)

svn path=/trunk/; revision=52430
2011-06-22 20:15:58 +00:00
Timo Kreuzer
590a071060 [NTOSKRNL/HAL]
- Fix a bug is MSVC inline assembly
- use iretd instead of iret
the msvc compiled kernel boots a bit further now

svn path=/trunk/; revision=52429
2011-06-22 19:04:28 +00:00
Amine Khaldi
09a2c1a1cf [CMAKE]
* Add shdocvw to msvc build.

svn path=/trunk/; revision=52428
2011-06-22 18:05:47 +00:00
Amine Khaldi
64c173811e [CMAKE]
* Add urlmon back to msvc build, but not into bootcd.
* Add back cryptui, oleaut32 and shlwapi as a result.

svn path=/trunk/; revision=52427
2011-06-22 17:33:22 +00:00
Amine Khaldi
512325377f [CMAKE]
* Skip more modules that do not compile, in MSVC build.

svn path=/trunk/; revision=52426
2011-06-22 16:08:07 +00:00
Amine Khaldi
979151f7db [CMAKE]
* Skip more modules that do not compile, in MSVC build.

svn path=/trunk/; revision=52425
2011-06-22 16:07:16 +00:00
Claudiu Mihail
474c5138f8 [AFD]
- Hold on to the disconnect IRP until all pending sending IRPs are sent to the transport driver if a controlled disconnect was requested (merge of r52415)
[TCPIP]
- add some mroe debug statements to track new current sync problem
- remove some old debug statements that are useless now
[lwIP]
- add some mroe debug statements to track new current sync problem

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52424
2011-06-22 15:32:46 +00:00
Amine Khaldi
59fa94bbb5 [SHELL32]
* Fix msvc build.

svn path=/trunk/; revision=52423
2011-06-22 15:18:05 +00:00
Cameron Gutman
5fded3cb3f [OSKITTCP]
- Register for asynchronous buffer notifications from oskittcp which will fire when a packet is sent
- Fixes sending pending packets that can't fit in the window and fixes the graceful shutdown hang

svn path=/trunk/; revision=52422
2011-06-22 14:05:01 +00:00
Gabriel Ilardi
27f33adbfb [BOOTDATA]
Missed USBDRIVER change from 52361.

svn path=/trunk/; revision=52421
2011-06-22 13:51:14 +00:00
Amine Khaldi
5b429883dc [CMAKE]
* Add /W3 to compiler flags, and use the proper macro.

svn path=/trunk/; revision=52420
2011-06-22 13:17:37 +00:00
Amine Khaldi
de7f3b854f [CMAKE]
* Skip some modules that do not compile, in MSVC build.
* Welcome, MSVC BootCD. I'm sure ros devs will fix the s.it out of you.. Right ?

svn path=/trunk/; revision=52419
2011-06-22 11:51:02 +00:00
Amine Khaldi
583b4eb6ef [CMAKE]
* Add WIN32 and _WINDOWS definitions for i386 msvc builds.
* Skip some modules that do not compile, in msvc build.

svn path=/trunk/; revision=52418
2011-06-22 11:31:01 +00:00
Amine Khaldi
40fc6fe6d2 [CMAKE]
* Properly set CMAKE_C_FLAGS_INIT and CMAKE_CXX_FLAGS_INIT.

svn path=/trunk/; revision=52417
2011-06-22 10:14:41 +00:00
Cameron Gutman
6b7b487e8c [TCPIP/IP]
- Wait until the all pending sends are serviced before shutting down the socket on a graceful disconnect
- Cancel pending sends and receives on abortive disconnect
- Remove the nasty hack that was the completion queue and replace it with async completions like the lwIP implementation does
- There is a bug with the graceful disconnects which occurs if the graceful disconnect cannot be serviced immediately (a very rare case in my testing) and results in the shutdown() call stalling forever because oskittcp never indicates that send is possible again (which would allow pending send IRPs to be serviced and the shutdown IRP to be completed)

svn path=/trunk/; revision=52416
2011-06-22 00:41:40 +00:00
Cameron Gutman
d7a7a20e8b [AFD]
- Hold on to the disconnect IRP until all pending sending IRPs are sent to the transport driver if a controlled disconnect was requested

svn path=/trunk/; revision=52415
2011-06-22 00:17:19 +00:00
Amine Khaldi
379fa83099 [CMAKE]
* Handle the case where we may initially set some CMAKE_C_FLAGS and/or CMAKE_CXX_FLAGS.

svn path=/trunk/; revision=52414
2011-06-22 00:06:10 +00:00
Alex Ionescu
976b791c1c [NTOSKRNL]: ";" -> "," build fix.
svn path=/trunk/; revision=52413
2011-06-21 22:52:02 +00:00
Alex Ionescu
cf20a2d00d [NTOSKRNL]: It seems NtYieldExecution in Windows heavily biases towards avoiding a yield as much as possible, and thus attempts to locklessly check the PRCB's ready summary. Problem being that the old code was running a bunch of instructions before checking for this ready summary, and doing a double-fs/gs dereference to get the ready summary. Upon reading some WRK documentation, it appears Windows uses a KiGetCurrentReadySummary macro, which WinDBG analysis shows to be an inline that reads the ReadySummary straight from PrcbData with only a single segment read, and no code preceeding it. Although it's "unlikely" to ever really be a problem, it's perhaps best to replicate this behavior since there could be dependencies on it. Comments in file point to PDF with this information (hosted on Microsoft Research's website, publically accessible).
[NTOSKRNL]: Also, fix locking order such that the current PRCB is only read after the IRQL is raised to SYNCH_LEVEL. I'm too tired to tell if this is a requirement, but the PDF shows it being done that way in Windows, so I've re-ordered the operations to match. Intuition would indicate that this shouldn't matter, as fs:1C shouldn't change from under us in the middle of execution, but why argue with public source code?
vicmarcal said it's okay if this breaks the build (I don't have any way to build ReactOS anymore).

svn path=/trunk/; revision=52412
2011-06-21 22:43:55 +00:00
Rafal Harabien
562dd382dd [SHELL32]
- Fix resources for MSVC. Patch by Igor Igor Paliychuk
[NTOSKRNL]
- Match NT behavior in DisplayFilter

svn path=/trunk/; revision=52411
2011-06-21 22:15:48 +00:00
Rafal Harabien
964aabb309 - Fix build
svn path=/trunk/; revision=52410
2011-06-21 21:06:18 +00:00
Rafal Harabien
a965ca6b67 [BOOTVID]
- Revert part of r52239: Fix support for \r and do not handle backspace
- Simplify it a bit

[NTOSKRNL]
- Add backspace support to KdpScreenPrint
- Do not draw boot text bitmap if InbvDisplayString is called with "" or "." (matches NT behavior)

svn path=/trunk/; revision=52409
2011-06-21 19:47:13 +00:00
Amine Khaldi
8500f6aea6 [PSDK]
* CLSID_ShellFolderViewOC is defined in shldisp.idl/h. A proper fix is due for msvc build.

svn path=/trunk/; revision=52408
2011-06-21 18:42:51 +00:00
Amine Khaldi
a197042933 [TRANSLATIONS]
Igor Paliychuk:
* Convert UKRAINIAN and RUSSIAN localization files to utf-8 in the dll folder.
* Add UKRAINIAN translation for msports.
* Some Wine modules also were converted (already sent upstream).

svn path=/trunk/; revision=52407
2011-06-21 18:30:06 +00:00
Amine Khaldi
c9aeb1479f [PSDK]
* Add missing CLSID_ShellFolderViewOC.

svn path=/trunk/; revision=52406
2011-06-21 17:56:10 +00:00
Cameron Gutman
85b52ced7c [IP]
- Don't attempt to service a request if the only flag specified was SEL_FIN
- Handle TDI_DISCONNECT_RELEASE properly
[OSKITTCP]
- Verify that the socket is in a legal state to do a send or receive
- Don't indicate send and receive events when the socket is not connected or has been been closed in that particular direction
- Add a small hack to soshutdown so shutdown in the send direction works correctly (ie. doesn't shutdown receive)
- Fixes the hangs in ws2_32_apitest ioctlsocket and ws2_32_apitest recv

svn path=/trunk/; revision=52405
2011-06-21 16:23:27 +00:00
Rafal Harabien
d5e9cb0dd8 [NTOSKRNL]
- Display boot blue bitmap when native application or kernel calls NtDisplayString with string displaying enabled
- Fix drawing order in Phase1InitializationDiscard

svn path=/trunk/; revision=52404
2011-06-21 15:53:02 +00:00
Timo Kreuzer
261c786603 Merge missing tuff from r51731
- Improve a DPRINT
- Initialize a global variable

svn path=/trunk/; revision=52403
2011-06-21 14:45:17 +00:00
Cameron Gutman
0fbf8e4374 [AFD]
- Remove extra cruft around the TdiReceive call
- Handle send and receive requests better after a socket closure

svn path=/trunk/; revision=52402
2011-06-21 13:59:49 +00:00
Timo Kreuzer
033ddb3799 [OLEAUT32]
- add assembly version of call_method for MSVC
- fix a syntax error (sizeof(int[3]) is not valid C)
- move definitions to the top of the CMakeLists.txt

svn path=/trunk/; revision=52401
2011-06-21 13:22:07 +00:00
Cameron Gutman
2b116b187c [AFD]
- Complete receive requests with the correct status if the socket is unexpectedly closed

svn path=/trunk/; revision=52400
2011-06-21 13:02:42 +00:00
Timo Kreuzer
2792c9b294 [RPCRT4]
- Add msvc.S containing call_stubless_func in assembly
- Fix spec file, 2 stub functions are already implemented
- fix use of GetExceptionCode(), it cannot be used in that context.

svn path=/trunk/; revision=52399
2011-06-21 12:22:47 +00:00
Claudiu Mihail
7ba87c3d72 [AFD, FORMATTING]
- get rid of unused OskitDumpBuffer
- make the code in AFD better conform to ROS coding guidelines
- fix some MSVC compilation errors (still not fully compiling with MSVC yet)
[IP]
- Add a sanity check in the TCPAcceptEventHandler

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52398
2011-06-21 11:46:47 +00:00
Timo Kreuzer
b3b1b3262b [WINE]
Add a hackfix for ntdll_winetest to fix compilation with MSVC

svn path=/trunk/; revision=52397
2011-06-21 09:32:41 +00:00
Claudiu Mihail
8e61bd7196 [lwIP]
- Remove foreign identifier field from the tcp_pcb structure. This was added for some debugging purposes sometime ago but now it's useless and it was just polluting lwIP code.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52396
2011-06-21 09:19:12 +00:00
Claudiu Mihail
14d4da2565 [lwIP]
- Abort the connection if the socket is not in LISTEN state, instead of closing it
[TCPIP]
- move redundant socket closure where so we don't try to free uninitialized variable
- in case our socket got closed or for some reason doesn't exist return a default success

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52395
2011-06-20 21:37:32 +00:00
Timo Kreuzer
1a5eefbac0 [BROWSEUI]
Set /EHa- option. Fixes MSVC build

svn path=/trunk/; revision=52394
2011-06-20 20:30:05 +00:00
Timo Kreuzer
2e109f217d [CMAKE/MSVC]
Add /NODEFAULTLIBS linker flag to avoid conflicts between our and MS crt

svn path=/trunk/; revision=52393
2011-06-20 19:21:09 +00:00
Amine Khaldi
b6bb6840a4 [MSI/URLMON]
* Guard wine attributes against widl.

svn path=/trunk/; revision=52392
2011-06-20 19:13:34 +00:00
Timo Kreuzer
aecc36df54 [PSDK]
- define _MIDL_USE_GUIDDEF_ when building iid libraries, so that the guids have declspec(selectany)
- add xml_uuids library
[MSXML3]
- Add an include for MSVC to define missing IIDs
- add CLSID_DOMDocument2
fixes build of msxml3 with MSVC

svn path=/trunk/; revision=52391
2011-06-20 18:34:57 +00:00
Claudiu Mihail
ecf6e7c601 [MSAFD]
- merge r52389

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52390
2011-06-20 17:50:07 +00:00
Cameron Gutman
fb1a75454e [MSAFD]
- Mark the accepted socket as connected
- Fixes graceful disconnect on accepted sockets

svn path=/trunk/; revision=52389
2011-06-20 17:35:02 +00:00
Claudiu Mihail
0471d847c6 [MSAFD]
- merge r52193 and rr52198
[IP]
- fix memory leak when closing a connection endpoint

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52388
2011-06-20 17:19:37 +00:00
Claudiu Mihail
9c54ee43ae [lwIP]
- Fix crash bug when disconnecting after accepting a connection from a client.
- Move the send and receive callback assignments to make the code more clear
- Change variable types to avoid excessive casting

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52387
2011-06-20 15:59:49 +00:00
Timo Kreuzer
ae4e935c92 [PSDK]
Add midl compatible include guard

svn path=/trunk/; revision=52386
2011-06-20 15:28:00 +00:00
Claudiu Mihail
b320225fb2 [lwIP]
Fix the nasty crash on socket closure bug. The bug was due to corrupting memory by wrongly assuming the LISTEN pcb had send, receive and error callbacks.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52385
2011-06-20 14:49:58 +00:00
Timo Kreuzer
33486bb4d7 [CRT]
Fix call_ebp_func, spotted by Thomas Faber

svn path=/trunk/; revision=52384
2011-06-20 13:34:19 +00:00
Timo Kreuzer
d01040f370 [ITSS]
Link to itss_guid

svn path=/trunk/; revision=52383
2011-06-20 13:30:40 +00:00
Timo Kreuzer
47b5083e50 [WINE]
add inline version of ffs

svn path=/trunk/; revision=52382
2011-06-20 13:15:58 +00:00
Claudiu Mihail
4b7e0f11d0 [TCPIP]
[FORMATTING]
Backup copy and formatting.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52381
2011-06-20 12:59:27 +00:00
Timo Kreuzer
b9472583c6 [CRTDLL]
- don't forward _fileinfo_dll to MSVCRT, this doesn't work and its not what MS crtdll does.
- don't define _CRTIMP to _declspec(dllexport)
- link to MSVCRT when compiling with MSVC
- remove def file

svn path=/trunk/; revision=52380
2011-06-20 12:41:32 +00:00
Timo Kreuzer
2035d47de2 [CRT]
Implement call_ebp_func for msvc

svn path=/trunk/; revision=52379
2011-06-20 11:27:55 +00:00
Cameron Gutman
aa6ff8e522 [NTOSKRNL]
- Use PoCallDriver when sending a power IRP

svn path=/trunk/; revision=52378
2011-06-20 10:54:00 +00:00
Timo Kreuzer
8d5a792eb8 [DOSKEY]
Fix copy paste bug. Patch by r3ddr4g0n

svn path=/trunk/; revision=52377
2011-06-20 09:18:42 +00:00
Olaf Siejka
6472b891d1 [UTF8]
- Convert format, fdebug, ntvdm and win32csr polish locale to UTF-8;
- Clean up remainder of #pragma definitions in individual language rc files. This should prevent bugs like one with chineese locale in calc;
- Move bulgarian and romanian locales, already converted to UTF-8 to proper section in module rc file;

svn path=/trunk/; revision=52376
2011-06-19 22:55:34 +00:00
Matthias Kupfer
68234347d8 [TRANSLATIONS] fix the code_page-#pragma issue for Chinese
- add Chinese to UTF-8 section
- remove default #pragma at end of Romanian file

svn path=/trunk/; revision=52375
2011-06-19 22:11:42 +00:00
Cameron Gutman
ae5018a9dd [FASTFAT]
- Move verification code to the BlockDev* functions (like CDFS does) so functions that call those directly will have verification handled for them
- Add verification handling for IOCTL requests

svn path=/trunk/; revision=52374
2011-06-19 20:03:49 +00:00
Timo Kreuzer
af892bdd85 [BROWSEUI]
Fix rc syntax

svn path=/trunk/; revision=52373
2011-06-19 19:48:43 +00:00
Cameron Gutman
e2d92bfd5e [FASTFAT]
- Handle STATUS_VERIFY_REQUIRED for write requests
- Clear the device to verify after retrieving it
- Fixes write failure after changing floppy media
[CDFS]
- Reissue the I/O request if IoVerifyVolume was successful
- Fixes read after a media change

svn path=/trunk/; revision=52372
2011-06-19 19:43:52 +00:00
Thomas Faber
7d4da25d6e [KMTESTS]
- add START_TEST macro in case test functions ever have to be passed an argument
- add a few ok_* convenience macros
- remove unnecessary C library function renaming macros

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52371
2011-06-19 18:27:14 +00:00
Jérôme Gardou
cef5719846 addendum to r52369: forgot those
svn path=/trunk/; revision=52370
2011-06-19 16:40:10 +00:00
Jérôme Gardou
4f2fbfda9d [CMAKE]
- set PCH file after importing libraries for modules that link to msvcrt.
Otherwise it wouldn't get the added definitions and become useless.

svn path=/trunk/; revision=52369
2011-06-19 16:35:43 +00:00
Matthias Kupfer
13ac41ea5e patch by Song Fuchang (0xfc) <sfc_0 AT yahoo DOT com DOT cn>:
- [TRANSLATIONS] add Simplified Chinese translation for calc
- #pragma code_page(65001) added in zh-CN.rc (needs to be reviewed)
- See issue #6319 for details.

svn path=/trunk/; revision=52368
2011-06-19 16:34:58 +00:00
Jérôme Gardou
0ebe345d17 [NOTSKRNL]
- Addendum to 52366: get back old code, thanks to Alex

svn path=/trunk/; revision=52367
2011-06-19 13:59:33 +00:00
Giannis Adamopoulos
714761cbbd [NTOSKRNL]
- Fix incorrect KiUserTrap which returned 3 for UserMode traps. Kind-of spotted by Jerome, but fixed in the wrong place...ReactOS-style, as always.
-Patch by Alex Ionescu

svn path=/trunk/; revision=52366
2011-06-19 13:55:28 +00:00
Jérôme Gardou
2f7d633262 [GDI32]
- remove useless check.

svn path=/trunk/; revision=52365
2011-06-19 13:11:39 +00:00
Ged Murphy
fbbd6d9218 [BROWSEUI]
- Set the prototypes to be long instead of LONG. This only worked in rbuild previously because WIDL incorrectly generates a LONG for long types.
- define SHANDLE_PTR and use it in IWebBrowserApp::get_HWND
- Along with fixing WIDL, __WINESRC__ and __ROS_LONG64__ should be removed as part of a future fix.
- Should now build with both rbuild and msvc

svn path=/trunk/; revision=52364
2011-06-19 12:46:15 +00:00
Timo Kreuzer
80aa713b95 [OBJ2BIN]
Fix handling of empty sections

svn path=/trunk/; revision=52363
2011-06-19 11:53:10 +00:00
Giannis Adamopoulos
61c822816d [rpcrt4]
- Improve hacky definition of __ASM_DEFINE_FUNC to reduce build errors with msvc

svn path=/trunk/; revision=52362
2011-06-19 10:44:26 +00:00
Colin Finck
ead744a31f [USBDRIVER]
No objections on the mailing list, so I'm excluding "usbdriver" from build.
It should still stay as a reference in the tree till the new USB drivers are finalized and merged back to Trunk.

svn path=/trunk/; revision=52361
2011-06-19 10:13:59 +00:00
Timo Kreuzer
5119d4e93c [FREELDR]
- Fix MSVC linkerflags for setupldr
- Move stack from 78000 to 98000 to fix conflicts with freeldr code, which is larger when built with MSVC
- MSVC compiled setupldr works now!

svn path=/trunk/; revision=52360
2011-06-19 10:03:45 +00:00
Thomas Faber
ba63f36790 [KMTESTS]
- add the proper testing framework functions for winetest-like feel
- remove thereby obsolete Log* functions
- update example test to show usage of the new macros

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52359
2011-06-19 09:23:03 +00:00
Cameron Gutman
9dedf3489c [NTOSKRNL]
- Send IRP_MN_QUERY_POWER and IRP_MN_SET_POWER to all enumerated devices prior to a system power state change
- We don't mind failure right now since our drivers suck

svn path=/trunk/; revision=52358
2011-06-19 04:25:33 +00:00
Cameron Gutman
d7cc1589e6 [PCIIDEX]
- Don't ASSERT if we get an IRP that we don't understand

svn path=/trunk/; revision=52357
2011-06-19 04:21:41 +00:00
Cameron Gutman
eecc2a655e [NTOSKRNL]
- Change the resource type if HalTranslateBusAddress indicates that we got the address type wrong

svn path=/trunk/; revision=52356
2011-06-19 01:42:05 +00:00
Cameron Gutman
722de7fe98 [VIDEOPRT]
- Initialize PnP IRPs with the correct status

svn path=/trunk/; revision=52355
2011-06-19 01:40:10 +00:00
Amine Khaldi
ce59643e60 [XMLLITE_WINETEST]
* Fix msvc build.

svn path=/trunk/; revision=52354
2011-06-18 23:04:39 +00:00
Amine Khaldi
e0aea1f31b [GLU32]
* Fix linking in msvc build.
* Remove /OPT:NOWIN98 linker flag.

svn path=/trunk/; revision=52353
2011-06-18 22:51:34 +00:00
Amine Khaldi
bb2bf33fc8 [CMAKE]
* Remove duplicate _DLL and __USE_CRTIMP definitions.
* Link some modules to uuid/oldnames in msvc build.

svn path=/trunk/; revision=52352
2011-06-18 22:02:28 +00:00
Amine Khaldi
169e88b5c4 [WINEMP3.ACM]
* Fix msvc build.

svn path=/trunk/; revision=52351
2011-06-18 21:44:52 +00:00
Amine Khaldi
05b5738e62 [CMAKE]
* Temporarily add liboldnames.a, I mean, oldnames.lib, to the importlibs folder, until we get one for msvc.
* Link crtdll to oldnames in msvc build.

svn path=/trunk/; revision=52350
2011-06-18 21:39:27 +00:00
Amine Khaldi
7f85f59d7a [CMAKE]
* Add missing dependency.
* Properly set the compiler flag.

svn path=/trunk/; revision=52349
2011-06-18 20:47:44 +00:00
Timo Kreuzer
966128554b [FREELDR]
More syntax fixes for ML

svn path=/trunk/; revision=52348
2011-06-18 19:51:26 +00:00
Timo Kreuzer
8ea179b79b [FREELDR]
Fix syntax for ML

svn path=/trunk/; revision=52347
2011-06-18 19:41:01 +00:00
Timo Kreuzer
37a3e0c675 [FREELDR]
- Change base addresses to 0xF800 (realmode code) and 0x10000 (PE file)
- use FREELDR_BASE constant in bootsectors
- Use es segment to address PE file from realmode

svn path=/trunk/; revision=52346
2011-06-18 17:19:28 +00:00
Timo Kreuzer
412fd567f1 [FREELDR]
Fix build with MSVC

svn path=/trunk/; revision=52345
2011-06-18 15:27:41 +00:00
Matthias Kupfer
4d376d097a add missing file for revision 52336
svn path=/trunk/; revision=52344
2011-06-18 15:04:15 +00:00
Rafal Harabien
2d96ec4333 [WIN32K]
- Remove commented out lines added in r52332 - clip children should not be taken into account here

[SHELL32]
- Use COPYRIGHT_YEAR definition instead of current year

svn path=/trunk/; revision=52343
2011-06-18 14:55:03 +00:00
Jérôme Gardou
11e8c31bdc [NTOSKRNL]
KeGetPreviousMode returns KPROCESSORMODE, which is CCHAR and not UCHAR

svn path=/trunk/; revision=52342
2011-06-18 14:50:59 +00:00
Timo Kreuzer
7aae064929 [ASM]
Use CR, LF and NUL in .ascii macro instead of using .asciz or "\r" "\n", since the latter is not portable

svn path=/trunk/; revision=52341
2011-06-18 14:50:24 +00:00
Jérôme Gardou
66aecb94b7 [RTL]
- do not use RtlpCoalesceFreeBlocks to reinsert a block resulting from a split.
This bad idea was mine, introduced in r51757

svn path=/trunk/; revision=52340
2011-06-18 14:47:51 +00:00
Jérôme Gardou
c67195e9d8 [NTOSKRNL]
- don't rely on a boolean being 1 or 0, it's a bad idea (tm)

svn path=/trunk/; revision=52339
2011-06-18 14:45:08 +00:00
Timo Kreuzer
2a2e52bbe8 [FREELDR]
Cleanup the CMakeLists.txt file. Create one shared library containing most files and only compile a few files for both freeldr and setupldr, which reduces build time.
There is only one file, that takes different compile time definitions, but since LD is stupid and cannot bidirectionally link between seperate libraries, we have to add 3 more files to each build.

svn path=/trunk/; revision=52338
2011-06-18 14:37:54 +00:00
Jérôme Gardou
0b46759664 [SHELL32]
- do not include headers that are already in precomp.h
This time with necessary changes

svn path=/trunk/; revision=52337
2011-06-18 14:29:32 +00:00
Matthias Kupfer
54179652bf patch by Igor Paliychuk <mansonigor at gmail dot com>:
- [TRANSLATIONS] convert UKRAINIAN and RUSSIAN localization strings to UTF-8.
- convert files in base, boot and subsystems folders(fontview and logon skipped)
- add Ukrainian localization for subst
- fix filename for Ukrainian resource of dxdiag

svn path=/trunk/; revision=52336
2011-06-18 14:23:43 +00:00
Jérôme Gardou
918e9d79cc wrong change, sorry
svn path=/trunk/; revision=52335
2011-06-18 14:21:55 +00:00
Jérôme Gardou
2fbf2256b4 [SHELL32]
- do not include headers that are already in precomp.h

svn path=/trunk/; revision=52334
2011-06-18 14:20:48 +00:00
Rafal Harabien
1bc5dd7445 [SHELL32]
- Update years in ReactOS about box

svn path=/trunk/; revision=52333
2011-06-18 12:45:20 +00:00
Rafal Harabien
a757a65552 [WIN32K]
- Don't clip siblings in co_WinPosSetWindowPos when window has no WS_CLIPSIBLINGS style. Fixes ReactOS about box.
- Commented out line with WS_CLIPCHILDREN support needs more work
- Simplify co_WinPosSetWindowPos a bit

svn path=/trunk/; revision=52332
2011-06-18 12:41:29 +00:00
Timo Kreuzer
ab19a2070b [CRT]
- Fix a typo
[DDK/XDK]
Fix declaration of KDEFERRED_ROUTINE
Patch by Thomas Faber

svn path=/trunk/; revision=52331
2011-06-18 12:24:13 +00:00
Thomas Faber
dffa722bce [KMTESTS]
- reference streamout.c and provide a wctomb stub to have an any-IRQL vsnprintf implementation for the test framework

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52330
2011-06-18 11:03:28 +00:00
Timo Kreuzer
b6ca5be6b4 [FREELDR]
- Convert Boot*LinuxKernel to new realmode call mechanism
- Remove switch to realmode when multiboot fails
- remove switch_to_prot and switch_to_real completely

svn path=/trunk/; revision=52329
2011-06-18 10:46:06 +00:00
Timo Kreuzer
014e413e00 [ASM]
- Use .586P for 16 bit code to allow privileged instructions, like lidt/lgdt. Found by ThFabba
- Add a 0 byte at the end to make ML fill the file up to the required length

svn path=/trunk/; revision=52327
2011-06-18 09:40:44 +00:00
Timo Kreuzer
5577c61a50 [FEELDR]
- Fix offset in manually encoded lgdt instruction
- improve syntax for ML


svn path=/trunk/; revision=52326
2011-06-18 08:05:35 +00:00
Timo Kreuzer
0e3fe37eaa [FREELDR]
- Instead of using the far jmp when switching to protected mode to go to the entry point, use a relative absolute jmp instruction, manually encoded
- Remove the END from fathelp.inc, that was terminating the code
- fix code for ML

svn path=/trunk/; revision=52325
2011-06-17 23:44:07 +00:00
Timo Kreuzer
f19fc81b23 [FREELDR]
- convert mb.S to portable syntax
- remove obsolete reactos_memory_map
- Make use of CR / LF in isoboot.S

svn path=/trunk/; revision=52324
2011-06-17 22:26:11 +00:00
Timo Kreuzer
7752209fdf [ASM]
- Make .asciz macro accept a varaiable number of arguments
- add CR and LF definitions, since MASM doesn't like "\r\n" codes

svn path=/trunk/; revision=52323
2011-06-17 21:57:34 +00:00
Timo Kreuzer
d017f0fe2b [FREELDR]
Disable DriveMapMapDrivesInSection on MSVC builds, freeldr works basically without it

svn path=/trunk/; revision=52322
2011-06-17 20:02:37 +00:00
Timo Kreuzer
2f6b794fc4 [CRYPT32]
remove version.rc from the CMakeLists.txt, since its included in crypt32.rc already

svn path=/trunk/; revision=52321
2011-06-17 18:37:44 +00:00
Sir Richard
3c0e77846e Patch by Anton Yarotsky:
[SACDRV]: Implement DriverEntry point which connects to NTOS HeadLess Module (HDL). If HDL enabled through FreeLDR (/EMSPORT), connection should work.
[SACDRV]: Fix typo's.

svn path=/trunk/; revision=52320
2011-06-17 17:21:20 +00:00
Sir Richard
72d1c15806 Patch by Anton Yarotsky:
[NTOSKRNL]: Export HeadlessDispatch.
[NTOSKRNL]: Add more missing definitions to internal Headless header. Alex: Move to NDK?
[NTOSKRNL]: Headless header uses SYSTEM_TIMEOFDAY_INFORMATION, which is only in NDK. So hdl.h needs NDK.

svn path=/trunk/; revision=52319
2011-06-17 17:19:56 +00:00
Timo Kreuzer
4db7b49655 [ALLOCA.H]
Add an MSVC friendly proxy of alloca.h
Fixes MSVC build of dbghelp

svn path=/trunk/; revision=52318
2011-06-17 15:51:00 +00:00
Timo Kreuzer
e5e682541c [LIBMPG123]
Fix definition of ALIGN() macro for MSVC. Fixes build.

svn path=/trunk/; revision=52317
2011-06-17 15:35:06 +00:00
Timo Kreuzer
92a2b84a97 [PSEH2_TEST]
Don't compile pseh2 test with MSVC

svn path=/trunk/; revision=52316
2011-06-17 14:13:30 +00:00
Timo Kreuzer
06900a0535 [test.h]
Fix a warning on MSVC

svn path=/trunk/; revision=52315
2011-06-17 14:08:41 +00:00
Timo Kreuzer
8ff6df4108 [QUARTZ_WINETEST]
Link to uuid. Fixes msvc build

svn path=/trunk/; revision=52314
2011-06-17 13:59:21 +00:00
Claudiu Mihail
c2770feda9 [IP]
Fix memory leak caused by socket context overwriting when accepting a new connection.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52313
2011-06-17 13:39:28 +00:00
Timo Kreuzer
0b083b85ae [SHDOCVW_WINETEST]
Link to uuid. Fixes build with MSVC

svn path=/trunk/; revision=52312
2011-06-17 13:08:11 +00:00
Sir Richard
08542a70e0 Patch by Anton Yarotsky:
[SACDRV]: Implement memory manager.
[SACDRV]: Define debugging macros.

svn path=/trunk/; revision=52311
2011-06-17 12:54:05 +00:00
Timo Kreuzer
5a372e009b [CRTDLL]
Comment out forwarded exports, where the target exports don't exist. Fixes MSVC build

svn path=/trunk/; revision=52310
2011-06-17 12:47:14 +00:00
Gabriel Ilardi
f26c0081fb Revert 51698, problem is in win32k, see bug 6305
svn path=/trunk/; revision=52309
2011-06-17 12:23:50 +00:00
Timo Kreuzer
6efa9f00e1 [FREELDR]
Convert drvmap.S to intel syntax

svn path=/trunk/; revision=52308
2011-06-17 12:04:25 +00:00
Cameron Gutman
f08a479325 [IP]
- Call the completion handler asynchronously to avoid a deadlock if AFD issues a synchronous request in its completion function
- Complete all pending requests before closing the socket
- Fixes send and receive on accepted sockets

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52307
2011-06-17 12:04:20 +00:00
Amine Khaldi
08f9d937f5 [CMAKE]
* Skip idndl in msvc build.

svn path=/trunk/; revision=52306
2011-06-17 11:56:40 +00:00
Timo Kreuzer
3b41918ab2 [FREELDR]
Fix build with MSVC

svn path=/trunk/; revision=52305
2011-06-17 11:31:05 +00:00
Sir Richard
3fd38cd98c Patch by Anton Yarotsky:
[SACDRV]: Implement SAC EMS stub driver. Thanks to Aleksey Bragin for MC file.

svn path=/trunk/; revision=52304
2011-06-17 11:04:45 +00:00
Amine Khaldi
42c3b191e3 [RSAENH]
* Don't mark DllRegisterServer and DllUnregisterServer as private, since rsabase forwards to them. Fixes rsabase msvc build.

svn path=/trunk/; revision=52303
2011-06-17 10:59:01 +00:00
Amine Khaldi
7bd8909ced [SFC]
* Add sfc_os import lib target.
* Link sfc to sfc_os.
* Fixes msvc build.

svn path=/trunk/; revision=52302
2011-06-17 10:53:45 +00:00
Amine Khaldi
2e9d7c312f [SMDLL]
* Fix entry point in cmake build. smdll now compile and links with msvc.

svn path=/trunk/; revision=52301
2011-06-17 10:45:21 +00:00
Amine Khaldi
ca71aa33f3 [SYSSETUP]
* Fix msvc build.

svn path=/trunk/; revision=52300
2011-06-17 10:31:15 +00:00
Amine Khaldi
7d733524b5 [UNICOWS]
* Link to msvcrt for proper crt imports.
* Fix msvc build.

svn path=/trunk/; revision=52299
2011-06-17 10:20:13 +00:00
Amine Khaldi
beac3fb352 [UPDSPAPI]
* Fix exports. Thank you, gcc toolchain, for letting this slip without any problems.
* Brought to you by the msvc toolchain.

svn path=/trunk/; revision=52298
2011-06-17 10:13:15 +00:00
Amine Khaldi
d4bc3f2aab [CMAKE]
* Skip dxdiag in msvc builds.

svn path=/trunk/; revision=52297
2011-06-17 09:52:40 +00:00
Amine Khaldi
80771a31cd [OSKITTCP]
* Fix msvc build. The tcpip driver compiles and links with msvc as a result.

svn path=/trunk/; revision=52296
2011-06-17 09:43:02 +00:00
Amine Khaldi
300b9d5ca1 [ROSSYM_NEW]
* Update dummy.c to reflect the recent changes. The kernel compiles and links now with msvc.

svn path=/trunk/; revision=52295
2011-06-17 09:17:10 +00:00
Amine Khaldi
66ce2412f1 [KERNEL32]
* Merge 49379 from the cmake branch. Fixes msvc build.

svn path=/trunk/; revision=52294
2011-06-17 08:57:01 +00:00
Timo Kreuzer
cebb902036 [FREELDR]
Fix build with good old rbuild

svn path=/trunk/; revision=52293
2011-06-17 08:49:22 +00:00
Timo Kreuzer
2372dd2207 [FREELDR]
- Use new relmode code for PnpBios stuff

svn path=/trunk/; revision=52292
2011-06-17 08:36:49 +00:00
Timo Kreuzer
285734917e [FREELDR]
convert i386pnp.S to intel sytax

svn path=/trunk/; revision=52291
2011-06-17 07:53:56 +00:00
Cameron Gutman
7c321b081b [NTOSKRNL]
- Revert r52289 (I guess 0 is a valid minor function)
- Add a comment to prevent anyone else from making the same mistake I did

svn path=/trunk/; revision=52290
2011-06-17 01:07:26 +00:00
Cameron Gutman
69f2dd5769 [NTOSKRNL]
- Fix a critical bug in IopDeviceFsIoControl which caused all FSCTL requests sent via NtFsControlFile and ZwFsControlFile to fail

svn path=/trunk/; revision=52289
2011-06-17 00:57:55 +00:00
Cameron Gutman
7db0732c32 [FILESYSTEMS]
- Handle IRP_MN_KERNEL_CALL for kernel-mode FS requests

svn path=/trunk/; revision=52288
2011-06-17 00:25:35 +00:00
Cameron Gutman
c20c1de151 [AUTOCHK]
- Only check a volume on boot if it was not cleanly unmounted

svn path=/trunk/; revision=52287
2011-06-17 00:00:34 +00:00
Cameron Gutman
5a22829110 [VFATLIB]
- Set the BIOS drive number depending on the media type (independent of the actual number of drives) because it's only relevant for the boot drive
- See http://support.microsoft.com/kb/140418 for details

svn path=/trunk/; revision=52286
2011-06-16 23:38:35 +00:00
Cameron Gutman
9031a3a34b [VFATLIB]
- Write the boot sector signature to the new boot sector after formatting
- Volumes formatted after setup are now mountable

svn path=/trunk/; revision=52285
2011-06-16 22:16:31 +00:00
Timo Kreuzer
67000c5688 [FREELDR]
- Use the new realmode code for PxeCallApi, SoftReboot and ChainLoadBiosBootSectorCode
- Remove o386cpi.S from build, the functions are not used
- Use constants for function ids
- Fix a warning

svn path=/trunk/; revision=52284
2011-06-16 22:11:53 +00:00
Timo Kreuzer
2494b475e3 [WINDOWSCODECS]
Fix build with gcc here as well

svn path=/trunk/; revision=52283
2011-06-16 19:15:05 +00:00
Timo Kreuzer
ed01df0abc [GDIPLUS]
fix build with gcc

svn path=/trunk/; revision=52282
2011-06-16 19:11:54 +00:00
Timo Kreuzer
5059cc0c1e [WINDOWSCODECS]
Add wincodec_i.c to sources
now it links


svn path=/trunk/; revision=52281
2011-06-16 18:14:09 +00:00
Timo Kreuzer
1c29b3b2d7 [WINDOWSCODECS]
Add typeof.h for MSVC. Now windowscodecs compiles, but doesn't link yet.

svn path=/trunk/; revision=52280
2011-06-16 18:07:17 +00:00
Olaf Siejka
68b4a30893 [EXPLORER]
- Fix copypasta bug

svn path=/trunk/; revision=52279
2011-06-16 17:55:54 +00:00
Cameron Gutman
9b11cad5e8 [VFATLIB]
- Determine the correct FAT type based on the size and offset of the partition if the current type is not a FAT type (another FS type or unformatted)
- Formatting a floppy, blank partition, or other non-FAT formatted partition from within ROS no longer fails

svn path=/trunk/; revision=52278
2011-06-16 14:32:49 +00:00
Cameron Gutman
e9ba759f3d [NTOSKRNL]
- Use the IopParseDevice hack for floppies too (needed for format and chkdsk to work)

svn path=/trunk/; revision=52277
2011-06-16 13:31:12 +00:00
Cameron Gutman
0ed8c8dead - Fix copy paste typo
svn path=/trunk/; revision=52276
2011-06-16 13:09:20 +00:00
Cameron Gutman
6e97490ee0 [VFATLIB]
- Fix default cluster size for floppy disks

svn path=/trunk/; revision=52275
2011-06-16 13:07:08 +00:00
Giannis Adamopoulos
6220537b5f [user32]
- Merge part of r50590
- Fix resource include path

svn path=/trunk/; revision=52274
2011-06-16 10:53:29 +00:00
Giannis Adamopoulos
2f2b451318 [user32]
- Fix double definition of GetClipCursor, ClipCursor, SetCursor and HiliteMenuItem
- Fixes compilation with msvc

svn path=/trunk/; revision=52273
2011-06-16 10:28:54 +00:00
Timo Kreuzer
df90685917 [FREELDR]
Fix build with MSVC

svn path=/trunk/; revision=52272
2011-06-16 09:37:52 +00:00
Timo Kreuzer
0c45ab3392 [EXT2]
Don't add ext2 bootsector on MSVC builds

svn path=/trunk/; revision=52271
2011-06-16 09:16:56 +00:00
Timo Kreuzer
bccc6a4f57 [GDIPLUS]
Mark wincodecs_i.c as generated and add macro to generate the file

svn path=/trunk/; revision=52270
2011-06-16 09:07:48 +00:00
Amine Khaldi
9ce34392b4 [NETEVENT]
* Set correct entry point.
* Fix msvc build.

svn path=/trunk/; revision=52269
2011-06-15 23:38:10 +00:00
Amine Khaldi
f89d63d8fb [CMD]
* Fix msvc build.

svn path=/trunk/; revision=52268
2011-06-15 23:16:43 +00:00
Amine Khaldi
3bdcd4c29c [CMAKE]
* Merge 50715 from the cmake branch.

svn path=/trunk/; revision=52267
2011-06-15 23:07:31 +00:00
Amine Khaldi
e7171fce5a [RICHED20]
* Fix msvc build.

svn path=/trunk/; revision=52266
2011-06-15 22:48:49 +00:00
Timo Kreuzer
99c75ee1fc [SMSS]
- really remove the link command
- fix an integer overflow

svn path=/trunk/; revision=52265
2011-06-15 22:47:29 +00:00
Timo Kreuzer
487f20e2e3 [SMSS]
- Use integer instead of floating point
- Don't link to msvcsup

svn path=/trunk/; revision=52264
2011-06-15 22:44:21 +00:00
Timo Kreuzer
ccaeddfbc0 [FREELDR]
Bring back call to EnableA20 in rbuild builds

svn path=/trunk/; revision=52263
2011-06-15 22:36:51 +00:00
Amine Khaldi
d5cc619dcd [GDIPLUS]
* Fix msvc build.

svn path=/trunk/; revision=52262
2011-06-15 22:35:33 +00:00
Amine Khaldi
16227e3c1e [CMAKE]
* Skip rosautotest in msvc build.

svn path=/trunk/; revision=52261
2011-06-15 22:21:50 +00:00
Timo Kreuzer
6d962ddf28 [MSVC]
Don't compile wine direct x dlls on MSVC for now

svn path=/trunk/; revision=52260
2011-06-15 22:07:14 +00:00
Amine Khaldi
1692738b5c [INPUT]
* Fix msvc build.

svn path=/trunk/; revision=52259
2011-06-15 21:59:28 +00:00
Timo Kreuzer
242ff8000d [FREETYPE]
Remove command line definition of TT_CONFIG_OPTION_BYTECODE_INTERPRETER its already defined in the config file

svn path=/trunk/; revision=52258
2011-06-15 21:51:51 +00:00
Olaf Siejka
d7cb7708dd Converting POLISH localisation strings to UTF-8. Part 5/5:
- base/shell converted. Only shell32 and kernel32 remained.
Tested on rbuild/cmake

svn path=/trunk/; revision=52257
2011-06-15 21:38:17 +00:00
Timo Kreuzer
3c245fd7a3 [FREELDR]
- Setup the IDT in C code instead of using 16 bit assembly and relying on trap handlers being below 64k
- Make the trap handler code MSVC compatible
- Add back multiboot code

svn path=/trunk/; revision=52256
2011-06-15 21:00:52 +00:00
Amine Khaldi
47b2fb3e68 [CMAKE]
* Merge 50707, 50713, 50742, 50779, 50795 and 50796 from the cmake branch.
* Merge state.c change from 50740.

svn path=/trunk/; revision=52255
2011-06-15 19:36:15 +00:00
Rafal Harabien
ddab848f06 [NTOSKRNL]
- Revert part of r52244. It was incorrect. Spotted by Alex Ionescu

svn path=/trunk/; revision=52254
2011-06-15 19:28:22 +00:00
Timo Kreuzer
c79c51d04d [FREELDR]
- Add underscore to names of trap handlers and add C prototypes (will be needed later)
- Move multiboot code to seperate file multiboot.S, not compiled atm, the code wasn't in use anyway
- Remove EnableA20 dummy

svn path=/trunk/; revision=52253
2011-06-15 19:17:00 +00:00
Timo Kreuzer
ef19190372 [ASM]
Fix .fill macro for msvc

svn path=/trunk/; revision=52252
2011-06-15 19:07:50 +00:00
Amine Khaldi
7b3cbde1b7 [CMAKE]
* Rename _math.h to math.h and merge r50732 from the cmake branch.
* Remove msvchelper.h as it's not needed anymore for d3d8 and d3d9.
* Skip ftp, libxslt and ksproxy from msvc build.
* Dedicated to igorko.

svn path=/trunk/; revision=52251
2011-06-15 18:55:48 +00:00
Giannis Adamopoulos
0ab46ad495 [ntoskrnl]
- Fix compilation with msvc

svn path=/trunk/; revision=52250
2011-06-15 18:33:55 +00:00
Timo Kreuzer
a5f255df13 [FREELDR]
use baseaddress of ßx10000 on MSVC builds. This doesn't yet work on gcc, because we still have 16 bit code inside the PE, that must reside below 64k

svn path=/trunk/; revision=52249
2011-06-15 18:28:10 +00:00
Colin Finck
413867145e [UNICODE]
- Finally say goodbye to my "wcsfuncs" experiment started in 2008.
  We have (and always had) Wine's "unicode" library for this, which does the same and is more complete.
  Now that host tools only use include/host, we only need to include <wine/unicode.h> and it will choose the right file in either include/host or include/reactos.
- Fix some include guards in PSDK headers to match the MS ones.
- Always define WINE_UNICODE_API to an empty string instead of doing this separately for every module.
- Cleanup some empty directories or non-existing include pathes.

svn path=/trunk/; revision=52248
2011-06-15 18:20:05 +00:00
Cameron Gutman
96ba16073d [FLOPPY]
- Validate the handle type
- Fix a bug that broke file system remounting after a media change

svn path=/trunk/; revision=52247
2011-06-15 17:07:07 +00:00
Timo Kreuzer
e15164f46a [RTL]
Fix useage of volatile in casts.

svn path=/trunk/; revision=52246
2011-06-15 13:33:48 +00:00
Rafal Harabien
62a75503e1 [HID]
- Remove unneeded .def file

svn path=/trunk/; revision=52245
2011-06-15 13:07:26 +00:00
Rafal Harabien
b0571d1c2e [NTOSKRNL]
- Disable displaying string by bootvid after successful kernel phase 1 initialization, so there won't be graphical glitches at the top of screen if system has screen debugging enabled
- Make screen black right after phase 1 initialization finish instead of waiting 5 seconds. It removes black rectangle which appeared for me in explorer.
- Initialize some global variables in inbv.c (it was done by compiler before)

svn path=/trunk/; revision=52244
2011-06-15 12:53:32 +00:00
Timo Kreuzer
6fc52906e5 forgot to commit this file
svn path=/trunk/; revision=52243
2011-06-15 11:42:37 +00:00
Timo Kreuzer
da500146bf [CABMAN]
Fix build

svn path=/trunk/; revision=52242
2011-06-15 10:52:34 +00:00
Timo Kreuzer
5b277aa428 [RBUILD]
Add include/host ad include directory

svn path=/trunk/; revision=52241
2011-06-15 10:46:57 +00:00
Timo Kreuzer
301a62db3a [HOST]
Only use /include/host as include directory for host tools / libs.

svn path=/trunk/; revision=52240
2011-06-15 10:30:03 +00:00
Rafal Harabien
ca370b4954 [BOOTVID]
- Fix scrolling if ScrollRegion contain whole screen.
- Add backspace support
- Remove unneeded code
- Now screen debugging in BSOD works much better :)

svn path=/trunk/; revision=52239
2011-06-14 22:04:42 +00:00
Olaf Siejka
86b5a7454a Converting POLISH localisation strings to UTF-8. Part 4/5:
- dll/cpl converted
Tested on rbuild/cmake

svn path=/trunk/; revision=52238
2011-06-14 21:28:07 +00:00
Timo Kreuzer
09b37ee744 [DDK]
according to WDK FsRtlRemoveBaseMcbEntry returns BOOLEAN

svn path=/trunk/; revision=52237
2011-06-14 20:36:24 +00:00
Amine Khaldi
bc853b7d5c * Revert r52232.
svn path=/trunk/; revision=52236
2011-06-14 18:51:43 +00:00
Rafal Harabien
37f77aecd6 [FREELDR]
- Revert 52230 - it breaks freeldr build in GCC

svn path=/trunk/; revision=52235
2011-06-14 18:34:10 +00:00
Rafal Harabien
d53b93507f [FREELDR]
- Return const pointers instead of converting them
- Fix MemoryMapSizeInPages calculation
- Don't use pages after 4GB limit on x86 (PAE is not supported yet)
- Should fix starting ROS on 4GB machines
See issue #6031 for more details.

svn path=/trunk/; revision=52234
2011-06-14 17:33:56 +00:00
Giannis Adamopoulos
9e24b605cb [uniata]
- Fix compilation with msvc

svn path=/trunk/; revision=52233
2011-06-14 17:23:36 +00:00
Amine Khaldi
6ba68445bf [CMAKE]
* Skip ftp, libxslt and ksproxy from msvc build.
* Remove msvchelper.h as it's not needed anymore for d3d8 and d3d9.
* Merge r50731 from the cmake branch.
* Merge r50732 from the cmake branch and apply the same fix to state.c.

svn path=/trunk/; revision=52232
2011-06-14 17:04:03 +00:00
Amine Khaldi
9d013a2ae1 [CMAKE]
* Forward add_delay_importlibs to add_importlibs in msvc builds for now.

svn path=/trunk/; revision=52231
2011-06-14 16:19:57 +00:00
Amine Khaldi
710f5e94dd [CMAKE]
* Set a correct image base for freeldr_pe and setupldr_pe. Both now compile and link with MSVC.

svn path=/trunk/; revision=52230
2011-06-14 15:41:22 +00:00
Claudiu Mihail
05936c40cf [TCPIP]
- Fix a bug on line 191, where the pending send requests for datagrams weren't canceled (the receive list was being used instead
- Also added some formatting

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52229
2011-06-14 15:40:18 +00:00
Amine Khaldi
3b0638cea7 [CMAKE]
* Separate VS and NMake generators handling of asm source files.

svn path=/trunk/; revision=52228
2011-06-14 15:28:16 +00:00
Timo Kreuzer
5d9b09f212 [FREELDR]
Reimplement Int386 based on realmode callback mechanism.

svn path=/trunk/; revision=52227
2011-06-14 14:53:02 +00:00
Timo Kreuzer
cdd784fd19 [FREELDR]
Start implementing a realmode callback mechanism

svn path=/trunk/; revision=52226
2011-06-14 12:17:28 +00:00
Timo Kreuzer
2d003a9075 [FREELDR]
Move EnableA20 to realmode code, remove DisableA20

svn path=/trunk/; revision=52225
2011-06-14 08:10:59 +00:00
Cameron Gutman
cbeac4750e [AFD]
- Only indicate that receive is possible if there are no pending receive IRPs waiting for data
- Don't attempt to receive on a connection which has been closed in the receive direction

svn path=/trunk/; revision=52224
2011-06-14 02:18:20 +00:00
Cameron Gutman
2c808bda98 [AFD]
- FD_CLOSE is only for remote disconnects so don't send it when the app closes its own socket
- Validate the user-mode event handle properly

svn path=/trunk/; revision=52223
2011-06-14 00:56:49 +00:00
Gabriel Ilardi
b1f94f44ba update README.WINE
svn path=/trunk/; revision=52222
2011-06-13 20:36:46 +00:00
Timo Kreuzer
6be28050aa [FREELDR]
Start moving the 16 bit code into the raw binary chunk.
We now switch to protected mode before jumping to the PE entry point

svn path=/trunk/; revision=52221
2011-06-13 20:03:55 +00:00
Timo Kreuzer
4d1d576c44 forgot a pecoff.h update
svn path=/trunk/; revision=52220
2011-06-13 19:54:35 +00:00
Giannis Adamopoulos
cf2fbe1b6d [user32]
- Fix several compilation issues with msvc

svn path=/trunk/; revision=52219
2011-06-13 19:49:46 +00:00
Giannis Adamopoulos
f500fbfbde [browseui]
- Fix some compilation errors with msvc

svn path=/trunk/; revision=52218
2011-06-13 19:34:06 +00:00
Timo Kreuzer
330b33ea0d [OBJ2BIN]
- Rewrite large parts of the tool
- Support IMAGE_REL_I386_DIR32

svn path=/trunk/; revision=52217
2011-06-13 19:23:51 +00:00
Thomas Faber
a6b4eba335 [KMTESTS]
- use a shared memory buffer for storing test results to provide seamless communication between all test parts
- Now user mode code can easily add messages to the buffer

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52216
2011-06-13 17:50:07 +00:00
Thomas Faber
1de7bf0885 [KMTESTS]
- add a minimal example test so there's something to see when running kmtest
- remove _DLL and __USE_CRTIMP in accordance with r52213

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52215
2011-06-13 17:29:02 +00:00
Amine Khaldi
1d9a93046a [CMAKE]
* Don't link drmk and wmi to the non-existent msvcsup.

svn path=/trunk/; revision=52214
2011-06-13 17:26:38 +00:00
Amine Khaldi
7c3e144a2c [CMAKE]
* Automatically add _DLL and __USE_CRTIMP definitions when linking to msvcrt.
* Separate some flags from definitions (using add_compiler_flags).

svn path=/trunk/; revision=52213
2011-06-13 15:31:11 +00:00
Amine Khaldi
074d91351d [CMAKE]
* Disable ccache by default.

svn path=/trunk/; revision=52212
2011-06-13 13:46:50 +00:00
Amine Khaldi
c1c1acb463 [CMAKE]
* Deduplicate add_importlibs.

svn path=/trunk/; revision=52211
2011-06-13 12:05:22 +00:00
Amine Khaldi
4c941247b4 [CMAKE]
* Move cmake files to the cmake folder.
* Rename msc.cmake to msvc.cmake and toolchain-mingw32.cmake to toolchain-gcc.cmake.
* Add compilerflags.cmake to group macros that handle different compiler flags.
* Move add_linkerflag and set_unicode macros to compilerflags.cmake. They were duplicated in gcc.cmake and msvc.cmake.
* Add add_compiler_flags macro to handle CMAKE_C_FLAGS and CMAKE_CXX_FLAGS properly, and replace add_definitions calls with add_compiler_flags calls when we're adding compiler flags, not definitions.
* Reorganize gcc.cmake to have compiler flags then linking and compiling rules.
* Move CMAKE_ASM_COMPILE_OBJECT out of toolchain-gcc.cmake into gcc.cmake and add ${CMAKE_C_FLAGS} to it, now that flags are properly set.
* Don't pass <FLAGS> (compiler flags) when linking.
* Without the (commented out) linker script flag, CMAKE_SHARED_LINKER_FLAGS_INIT is the same for both i386 and amd64. Deduplicate it.
* Fix CMAKE_C_STANDARD_LIBRARIES comment.
* Use <FLAGS> in msvc CMAKE_ASM_COMPILE_OBJECT instead of manual includes.
* Don't set ntdllsys linker language to C, it's an asm lib.
* Remove ros_cd.cmake as it's not needed anymore.
* Define _CRT_SECURE_NO_WARNINGS when compiling host tools with msvc.

svn path=/trunk/; revision=52210
2011-06-13 10:36:40 +00:00
Olaf Siejka
e2247207e1 [MSPORTS]
- update polish translation

svn path=/trunk/; revision=52209
2011-06-13 09:43:43 +00:00
Eric Kohl
f17bf3f6a6 [MSPORTS]
Finish the serial port settings dialog.

svn path=/trunk/; revision=52208
2011-06-13 09:27:23 +00:00
Timo Kreuzer
d1cd4a2e8b [FREELDR]
Fix entry point

svn path=/trunk/; revision=52207
2011-06-13 09:23:11 +00:00
Timo Kreuzer
e4b46e73c3 [FREELDR]
Try to fix dependency

svn path=/trunk/; revision=52206
2011-06-13 08:43:15 +00:00
Sylvain Petreolle
f7def77f99 [CMAKE]
Implement concatenate_files() for unix.

svn path=/trunk/; revision=52205
2011-06-12 22:23:22 +00:00
Timo Kreuzer
8c46f42495 [FREELDR]
Make freeldr/setupldr composed of a PE file and prepended raw 16bit code. The 16 bit code starts with the usual fathelp code. This brings back support for fragmented fat12/16 disks.
Later all 16 bit code is supposed to go into the raw binary chunk to be able to build freeldr with MSVC.

svn path=/trunk/; revision=52204
2011-06-12 21:21:47 +00:00
Timo Kreuzer
6a588bbcd4 [NTOSKRNL]
Fix the "standard" for MSVC

svn path=/trunk/; revision=52203
2011-06-12 21:15:33 +00:00
Amine Khaldi
ec7b67285b [NTOSKRNL]
* Fix uninitialized data use. Really.

svn path=/trunk/; revision=52202
2011-06-12 20:49:06 +00:00
Cameron Gutman
fa5d338f2a [LWIP]
- Fix a memory leak during graceful socket closure
- Print a message if not all data is taken in a receive request

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52201
2011-06-12 19:21:56 +00:00
Cameron Gutman
ade9312f85 [LWIP]
- Implement LibTCPShutdown
[IP]
- Replace an incredibly broken implementation of TCPDisconnect which caused memory corruption with a working one using LibTCPShutdown

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52200
2011-06-12 18:25:16 +00:00
Amine Khaldi
b9e37ae053 [NTOSKRNL]
* Fix uninitialized data use. Spotted by gcc 4.6.0

svn path=/trunk/; revision=52199
2011-06-12 18:18:52 +00:00
Cameron Gutman
11ed2398f0 [MSAFD]
- Reenable the FD_OOB async event after a call to WSPRecvFrom which received OOB data
- Remove a useless check

svn path=/trunk/; revision=52198
2011-06-12 17:38:16 +00:00
Timo Kreuzer
7cc02537dd [BOOTSECTOR]
Convert fat bootsector to new syntax

svn path=/trunk/; revision=52197
2011-06-12 15:57:36 +00:00
Gabriel Ilardi
4a4060ce3c [IEXPLORE]
- Add iexplore.exe to bootcd (it's being copied to its localized location in 3rd stage via runonce due to lack of support for additional paths in the installer)
- Register default system web browser, fixes launching URLs from the run dialog.
- Firefox 3.X/4.X still don't register as default web browsers (bug 4444)
See issue #1461 for more details.

svn path=/trunk/; revision=52196
2011-06-11 22:42:54 +00:00
Cameron Gutman
f855ea9bdb [AFD]
- Fix packet size overflow check

svn path=/trunk/; revision=52195
2011-06-11 20:10:55 +00:00
Amine Khaldi
a0c90088eb [CMAKE]
* Don't create cleanup targets when using a VS generator

svn path=/trunk/; revision=52194
2011-06-11 18:12:48 +00:00
Cameron Gutman
56c66ff1fd [MSAFD]
- Fix linger and graceful disconnect
- Fix a crash in WSPGetSockName and WSPGetPeerName exposed by ws2_32 winetest sock

svn path=/trunk/; revision=52193
2011-06-11 17:49:30 +00:00
Sylvain Petreolle
e39c778ae1 [CMAKE]
configure :
Remove reactos cache.
Fix echo syntax.


svn path=/trunk/; revision=52192
2011-06-11 17:03:03 +00:00
Gabriel Ilardi
8f6e059fee [BOOTDATA]
- Set www.reactos.org as the homepage.

svn path=/trunk/; revision=52191
2011-06-11 16:21:42 +00:00
Amine Khaldi
7d25a0c11b [CMAKE]
* Move CMAKE_RC_COMPILE_OBJECT and CMAKE_ASM_COMPILE_OBJECT to msc.cmake.
* Fix CMAKE_ASM_COMPILE_OBJECT to account for the needed includes and defines.
* Add CMAKE_ASM_CREATE_STATIC_LIBRARY to handle our asm static lib.
* Don't include chkstk_ms.s into chkstk and libcntpr for msvc.
* Add missing chkstk -> asm dependency.
* Don't make an assumption about the location of genincdata.dll.
* Move definition on top of the included cmake files in the root cmake file.
* This brings the VS solution to a working state, many modules can compile now.

svn path=/trunk/; revision=52190
2011-06-11 16:09:57 +00:00
Claudiu Mihail
b3b5468071 [AFD]
See issue r52186 in trunk for more details.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52189
2011-06-11 13:24:33 +00:00
James Tabor
feb81e4924 [Win32k]
- Fixed mouse tracking. See bug 6257.


svn path=/trunk/; revision=52188
2011-06-11 12:56:29 +00:00
Amine Khaldi
aab3b19a22 [CMAKE]
* Copy CMakeDetermineASMCompiler.cmake from CMake 2.8.4 so that it's used with previous versions too. Fixes ASM compiler ID issue with MSVC.

svn path=/trunk/; revision=52187
2011-06-11 12:51:25 +00:00
Cameron Gutman
dcf65c0e08 [AFD]
- Rewrite user-mode request locking to fix several bugs
- IRP_MJ_READ and IRP_MJ_WRITE doesn't crash
- Revert the IoModifyAccess change (the Write parameter was relevant to the buffer not the request)
- Use GetLockedData to retrieve a locked buffer instead of accessing it manually
- Lock several requests which were not locked and could cause a crash
- ASSERT that the in flight request is the IRP being completed
- Fix a socket closure bug so shutdown(SO_SEND) will not prevent packets being received
- Don't count bytes used in the receive content
- Don't free the datagram buffer if it is a peek request
- Requeue the datagram buffer at the head of the list if it is a peek request
- Fix a bug which could cause corrupted data to be received if multiple datagrams come in before the app receives them 
- Make sure that we're not overwriting an existing in flight request when creating a new one
- Perform an implicit bind in AfdPacketSocketWriteData if it is not already bound
- Implement batching several user-mode send IRPs into one TDI request (if there is already one pending)
- Fix a potential crash if a connectionless send IRP is cancelled

svn path=/trunk/; revision=52186
2011-06-11 12:46:04 +00:00
Giannis Adamopoulos
a7abbd0f7e [win32k]
- Arch, stop breaking msvc build already

svn path=/trunk/; revision=52185
2011-06-11 12:03:38 +00:00
Eric Kohl
a75f5b6375 [NTOSKRNL]
- Do not create/open the CurrentVersion key in a single call to NtCreateKey  because its parent key might not exist yet.
See issue #6302 for more details.

svn path=/trunk/; revision=52184
2011-06-11 11:58:46 +00:00
Timo Kreuzer
82a1d424b8 [BOOTSECTOR]
Convert dosmbr to new syntax

svn path=/trunk/; revision=52183
2011-06-11 10:58:34 +00:00
Timo Kreuzer
2df5334bfe [CMAKE]
Fix concatenate_files macro

svn path=/trunk/; revision=52182
2011-06-11 08:36:18 +00:00
Timo Kreuzer
961c4ece37 [BOOTSECTOR]
Try to fix regtest cd

svn path=/trunk/; revision=52181
2011-06-10 21:38:42 +00:00
Amine Khaldi
80fa17bac8 [CMAKE]
* Add inetcpl to build.

svn path=/trunk/; revision=52180
2011-06-10 20:46:56 +00:00
Timo Kreuzer
91612efc9d [CMAKE]
add macro to concatenate 2 files. So far only for windows.

svn path=/trunk/; revision=52179
2011-06-10 20:45:44 +00:00
Amine Khaldi
58fca73e26 [CMAKE]
* Add delay importlib creation support.

svn path=/trunk/; revision=52178
2011-06-10 20:44:47 +00:00
Timo Kreuzer
ba1ef490f1 fix build?
svn path=/trunk/; revision=52177
2011-06-10 17:44:13 +00:00
Timo Kreuzer
14531e0020 fix build
svn path=/trunk/; revision=52176
2011-06-10 17:41:02 +00:00
Timo Kreuzer
a3dee99b18 [FREELDR]
Major header cleanup

svn path=/trunk/; revision=52175
2011-06-10 17:18:26 +00:00
Gabriel Ilardi
1e26146dfd Fix build.
svn path=/trunk/; revision=52174
2011-06-10 16:00:50 +00:00
Gabriel Ilardi
cb0eabc068 [inetcpl]
- Initial import from Wine 1.3.21

svn path=/trunk/; revision=52173
2011-06-10 15:45:51 +00:00
Timo Kreuzer
4076751ce2 [FREELDR]
Fix MSVC and amd64 build

svn path=/trunk/; revision=52172
2011-06-10 12:55:14 +00:00
Timo Kreuzer
74fcd7f506 {FREELDR]
Rename global variables BootDrive to FrldrBootDrive and BootPartition to FrldrBootPartition

svn path=/trunk/; revision=52171
2011-06-10 12:12:16 +00:00
Claudiu Mihail
2cc1ca91c8 [AFD, TCPIP]
Bind issue seems solved now. Server app can be restarted without failing at binding. More information is at r52166. Patch by cgutman.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52170
2011-06-10 09:24:29 +00:00
Thomas Faber
e95992c699 [KMTESTS]
- add basic driver that can list/run tests and log messages

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52168
2011-06-10 05:34:00 +00:00
Cameron Gutman
4f74cccd2d [AFD]
- Cleanup the pending connection list before closing the FCB
- Fixes yet another socket closure bug

svn path=/trunk/; revision=52166
2011-06-09 22:38:38 +00:00
Timo Kreuzer
b02d5aea56 [FAT32]
- Fix a bug in the new fat32 bootsector code. The old code was using a 32bit push, the new code uses 2 16 bit pushes
- enable new fat32 and isobtrt bootsectors

svn path=/trunk/; revision=52165
2011-06-09 22:04:45 +00:00
Amine Khaldi
09845b038c [CMAKE]
* Add uniata debug option.

svn path=/trunk/; revision=52164
2011-06-09 20:56:05 +00:00
James Tabor
69a5b343d1 [Win32k]
- Fix hot tracking but does not clear it properly. See bug 6257.
- Ported NC_HandleNCHitTest from wine, will sync User32 later.

svn path=/trunk/; revision=52163
2011-06-09 20:00:43 +00:00
Timo Kreuzer
262ddc034b [OBJ2BIN]
- Skip empty sections. ML for x86 adds those, while ML (not ML64) for x64 doesn't.

svn path=/trunk/; revision=52159
2011-06-09 17:59:47 +00:00
Amine Khaldi
07d6a53ecc [CMAKE]
* MSVC fixes for msvcrtex.

svn path=/trunk/; revision=52158
2011-06-09 17:59:26 +00:00
Thomas Faber
22216d2eb7 [KMTESTS]
- add simple loader application that can list/run tests from a driver via DeviceIoControl, and prints output to the console

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52157
2011-06-09 15:14:02 +00:00
Timo Kreuzer
65d0fe96c2 [BOOTSECTOR]
- export obj2bin on gcc builds, too
- Add new macro CreateBootSectorTarget2, which uses portable assembly and use it with isoboot.S. I will replace all bootsectors with the new code one at a time, and in the end we can eventually drop nmake
- add wrapper isobtrt.S, which defines ROS_REGTEST and includes isoboot.S

svn path=/trunk/; revision=52156
2011-06-09 13:56:44 +00:00
Timo Kreuzer
7b19156c50 [CRT]
Remove duplicate wtol

svn path=/trunk/; revision=52155
2011-06-09 12:08:16 +00:00
Amine Khaldi
cad02800db [FREELDR]
* Add a ExFreePoolWithTag stub and forward it to ExFreePool. Fixes freeldr msvc build.

svn path=/trunk/; revision=52154
2011-06-09 11:49:42 +00:00
Timo Kreuzer
0944b73b87 [ISOBOOT]
Fix portable bootsector and make it gas compatible (its opcode identical to the nasm compiled one and works correctly)

svn path=/trunk/; revision=52153
2011-06-09 11:23:01 +00:00
Cameron Gutman
17de5b1c0f [AFD]
- Fix a bug in some completion routines that resulted in failures being treated as successes
- Fix various cancellation bugs
- Fixes termination of programs that open listening sockets (Firefox, server.exe, tcpsvcs.exe, telnetd.exe, etc) and should increase stability in these programs as well

svn path=/trunk/; revision=52152
2011-06-08 22:15:27 +00:00
Timo Kreuzer
7c2030f619 [ASM]
Add some more protability macros

svn path=/trunk/; revision=52151
2011-06-08 19:06:01 +00:00
Timo Kreuzer
57490e06f6 [ISOBOOT]
Add portable asm version of iso boot sector

svn path=/trunk/; revision=52150
2011-06-08 18:48:34 +00:00
Rafal Harabien
25b068df28 [WIN32K]
- Revert r51139. Fixes incorrect reading of all REG_MULTI_SZ values
See issue #6295 for more details.

svn path=/trunk/; revision=52149
2011-06-08 15:37:15 +00:00
Amine Khaldi
83af0a00e0 [CMAKE]
* Fix reactos.cab creation.

svn path=/trunk/; revision=52148
2011-06-08 13:58:33 +00:00
Timo Kreuzer
8d5976819d [FAT32]
Fix the "portable" version of the fat32 bootsector
Its now mostly identical to the one we currently use, only a few encoding differences

svn path=/trunk/; revision=52147
2011-06-08 12:45:56 +00:00
Timo Kreuzer
af201a5b6a [OBJ2BIN]
- Fix relocation for gas build objetcs
- Protect from buffer overwrite

svn path=/trunk/; revision=52146
2011-06-08 12:42:04 +00:00
Thomas Faber
9e143d5955 [KMTEST]
- fix CMake files
- rename build target to kmtest_old to prevent name collision

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52145
2011-06-08 07:24:39 +00:00
Timo Kreuzer
fbbc07eda8 [CMAKE]
- Export obj2bin on MSVC builds
- Move CreateBootSectorTarget into compiler specific files
- Add _base_address parameter to CreateBootSectorTarget (neccessary for obj2bin)
- Implement CreateBootSectorTarget for msvc
- Add ML compatible fat32 bootsector (untested)

svn path=/trunk/; revision=52143
2011-06-07 23:22:38 +00:00
Timo Kreuzer
1ea0675e6b Fix build
svn path=/trunk/; revision=52142
2011-06-07 22:54:43 +00:00
Timo Kreuzer
96cf66ac35 [OBJ2BIN]
- Implement coff relocation

svn path=/trunk/; revision=52141
2011-06-07 22:45:56 +00:00
Rafal Harabien
26a96b762b [WIN32K]
- Ops, remove DbgBreakPoint

svn path=/trunk/; revision=52140
2011-06-07 20:52:09 +00:00
Rafal Harabien
d2319845e3 - Silence unwanted debug messages added in r52136
svn path=/trunk/; revision=52139
2011-06-07 20:46:32 +00:00
Claudiu Mihail
c31d8d66b9 [TCPIP]
Patches by cgutman applied to the branch (see r52125, r52092, r52086, r52083, r52013)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52138
2011-06-07 20:24:54 +00:00
Timo Kreuzer
d1e3dc84fc [OBJ2BIN]
- Fix warnings

svn path=/trunk/; revision=52137
2011-06-07 20:16:52 +00:00
Rafal Harabien
cc329d2fe9 - Add ShowingCursor counter and CursorObject to message queue and use them when moving mouse. They are not globally in Windows.
svn path=/trunk/; revision=52136
2011-06-07 20:12:56 +00:00
Rafal Harabien
a1560e1c82 [WIN32K]
- Check if window object still exist in proper place
- Send WM_MOUSEMOVE message if mouse is over appearing window

svn path=/trunk/; revision=52135
2011-06-07 20:09:04 +00:00
Timo Kreuzer
7ae4309300 [NTOSKRNL]
Revert r51748 by popular demand

svn path=/trunk/; revision=52134
2011-06-07 19:50:01 +00:00
Timo Kreuzer
fcff3cbf18 [OBJ2BIN]
- Add new tool obj2bin, that converts a coff object file into a raw binary file
- Move pe/coff types into a common header file pecoff.h

svn path=/trunk/; revision=52133
2011-06-07 19:29:09 +00:00
Timo Kreuzer
0705ceae3e [NTOSKRNL/USERINIT/WIN32K]
Implement support for SafeMode boot
Patch by Adam Kachwalla (geekdundee at gmail dot com)

See issue #6275 for more details.

svn path=/trunk/; revision=52132
2011-06-07 16:42:43 +00:00
Amine Khaldi
a5bccb23d5 [CMAKE]
* Temporarily disable PCH support, as it breaks build for windows users with ccache (most importantly our windows buildbot).

svn path=/trunk/; revision=52131
2011-06-07 15:38:10 +00:00
Timo Kreuzer
ba527343d6 [ASM]
Fix amd64 compilation of some code

svn path=/trunk/; revision=52130
2011-06-07 14:21:46 +00:00
Timo Kreuzer
ca01ae5c4a [SPEC2DEF]
Fix another typo. Should fix cmake build


svn path=/trunk/; revision=52129
2011-06-07 14:19:17 +00:00
Timo Kreuzer
639f5ac23b [HAL]
Use KeMemoryBarrierWithoutFence instead of _ReadWriteBarrier

svn path=/trunk/; revision=52128
2011-06-07 09:49:23 +00:00
Timo Kreuzer
f26fd84197 [NDK]
- MMPTE is 64 bits on amd64, so make the Long field a ULONG_PTR

svn path=/trunk/; revision=52127
2011-06-07 09:31:39 +00:00
Timo Kreuzer
0dafd4a030 [CRT]
Don't use __set_errno in libcntpr

svn path=/trunk/; revision=52126
2011-06-07 09:26:48 +00:00
Cameron Gutman
84a9cedb4e [AFD]
- Fix IoModifyAccess vs IoReadAccess confusion

svn path=/trunk/; revision=52125
2011-06-06 22:55:17 +00:00
Rafal Harabien
35c3a00634 [WIN32K]
- Fix memory leak

svn path=/trunk/; revision=52124
2011-06-06 21:18:53 +00:00
Thomas Faber
83aa60677b [KMTestSuite]
- sync to rostests r52109 to fix CMake build with recent revisions

svn path=/branches/GSoC_2011/KMTestSuite/; revision=52123
2011-06-06 21:00:46 +00:00
Amine Khaldi
e385be59b1 * Sync the recent cmake branch changes.
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52122
2011-06-06 20:39:26 +00:00
Timo Kreuzer
63ed94244c [NTOSKRNL]
Fix MSVC and amd64 build 

svn path=/trunk/; revision=52121
2011-06-06 19:08:39 +00:00
Timo Kreuzer
116862c485 [PSEH]
Fix amd64 build of pseh

svn path=/trunk/; revision=52120
2011-06-06 19:03:53 +00:00
Timo Kreuzer
618606f8c5 [CRT]
Fix amd64 build of build of chkstk

svn path=/trunk/; revision=52119
2011-06-06 19:01:26 +00:00
Timo Kreuzer
db1f509d7a [NTOSKRNL]
Remove useless casts to volatile ULONG. It doesn't make sense to cast something to volatile, after the pointer is already dereferenced. But we don't need this here anyway.

svn path=/trunk/; revision=52118
2011-06-06 17:50:05 +00:00
Pierre Schweitzer
15b10b556d [NTOSKRNL]
Fixes to r52065:
- In IopInterlockedDecrementUlong() and IopInterlockedIncrementUlong(), cast received value to volatile before de/incrementing it so ensure strict ordering with spin locks acquisition.
This was brought to you by Alex Ionescu.

svn path=/trunk/; revision=52117
2011-06-06 17:03:45 +00:00
Cameron Gutman
5d0bb55dde [SPEC2DEF]
- Fix a typo

svn path=/trunk/; revision=52116
2011-06-06 16:26:46 +00:00
Amine Khaldi
377dc192bb [CMAKE]
* Fix several modules to compile with the recent gcc versions.
* ReactOS now compiles with mingw-w64 gcc 4.6.0 and boots to shell.
* Dedicated to dreimer.

svn path=/trunk/; revision=52114
2011-06-06 11:44:58 +00:00
Amine Khaldi
637da7e860 [SYSSETUP]
* Make the lengthy strings compatible with the recent gcc preprocessor.

svn path=/trunk/; revision=52113
2011-06-06 11:41:54 +00:00
Amine Khaldi
79da86e5cb [SHELL32]
* Make the lengthy strings compatible with the recent gcc preprocessor.

svn path=/trunk/; revision=52112
2011-06-06 11:40:39 +00:00
Amine Khaldi
864fd70bcc [CRT/STARTUP]
* Sync startup code to recent mingw-w64. RosBE 2.0 here we come !

svn path=/trunk/; revision=52111
2011-06-06 10:01:14 +00:00
Timo Kreuzer
e54b5f0d2e [SPEC2DEF]
- Fix build of importlibraries on MSVC / amd64

svn path=/trunk/; revision=52110
2011-06-06 09:58:58 +00:00
Cameron Gutman
83ce4c7d6c [WININET_WINETEST]
- Update to wine 1.3.21

svn path=/trunk/; revision=52109
2011-06-05 23:17:36 +00:00
Cameron Gutman
f477c9818f - Add forgotten language files
svn path=/trunk/; revision=52108
2011-06-05 23:13:47 +00:00
Cameron Gutman
7cfff50f9a [WININET]
- Sync to wine 1.3.21
[PSDK]
- Update headers from sync

svn path=/trunk/; revision=52107
2011-06-05 23:11:41 +00:00
Cameron Gutman
9616b43abc [WINHTTP_WINETEST]
- Sync to wine 1.3.21

svn path=/trunk/; revision=52106
2011-06-05 21:41:14 +00:00
Cameron Gutman
d7abc4fbf1 [WINHTTP]
- Sync to wine 1.3.21

svn path=/trunk/; revision=52105
2011-06-05 21:39:34 +00:00
Cameron Gutman
e909d0b7db [URLMON_WINETEST]
- Sync to wine 1.3.21

svn path=/trunk/; revision=52104
2011-06-05 21:35:31 +00:00
Cameron Gutman
1828ed9d94 [URLMON]
- Sync to wine 1.3.21

svn path=/trunk/; revision=52103
2011-06-05 21:29:41 +00:00
Amine Khaldi
debda4e307 [CMAKE]
* Use our oldnames library instead of libcoldname.

svn path=/trunk/; revision=52102
2011-06-05 21:24:00 +00:00
Amine Khaldi
c5cda767c7 [CMAKE]
* Temporarily add libcoldname.a

svn path=/trunk/; revision=52101
2011-06-05 21:04:31 +00:00
Amine Khaldi
09284f5d66 [CRT/INTRINSICS]
Timo Kreuzer:
* Change inline assembly constraint from "r" to "q". "r" means any kind of register, including *si and *di, these cannot be used for 8bit operations on x86, only x64 has sil, dil registers. But gcc is stupid and doesn't get that if we don't tell it explicitly, by using "q", which will only allow a, b, c, d registers. Fixes an assembler error messages that can occur under certain circumstances.

svn path=/trunk/; revision=52100
2011-06-05 20:59:09 +00:00
Amine Khaldi
b6d8950a07 [CMAKE]
* chkstk is already part of msvcrtex. Just update it.

svn path=/trunk/; revision=52099
2011-06-05 20:57:13 +00:00
Sir Richard
16bffdd5f9 [FREELDR]: Some ARM architectures do not necessarily have CS0_BASE at 0x00000000, for example, most Ti OMAP Platforms have DDR at 0x80000000. The current FreeLDR algorithms would build FreeLDR "page entries" for every page from 0 to 0x7FFF0000 and mark it as unusable, then build the actual valid entries from 0x80000000 -> end of RAM, thus resulting in large memory consumption (and in the bloat of the PFN database later once NTOS loads) and boot time. Therefore, the algorithm is changed to start the PFN database at the lowest valid RAM page described by the Firemware descriptors, and entries therefore will be offset. This means a 128MB embedded system no longer appears to have 2048+128MB of RAM worth of PFN entries.
NOTE: Windows does not do this, opting instead to force manufacturers/use pull-up resistors/reconfigure the ARM Bus to map RAM at 0x00000000. For wider portability, I believe it makes more sense to simply do this "trick" in the boot loader.

svn path=/trunk/; revision=52098
2011-06-05 20:48:34 +00:00
Cameron Gutman
66d289c9ad [WSOCK32]
- Fix the spec file
- Fixes FF regression

svn path=/trunk/; revision=52097
2011-06-05 20:40:57 +00:00
Amine Khaldi
fbe0668c94 [CMAKE]
* Fix msvcrtex unix build.

svn path=/trunk/; revision=52096
2011-06-05 19:44:33 +00:00
Amine Khaldi
0e21352b22 [CMAKE]
* Link msvcrtex to chkstk.

svn path=/trunk/; revision=52095
2011-06-05 18:56:29 +00:00
Amine Khaldi
0a457d3246 [CMAKE]
* Add chkstk library and link crt against it.
* Add chkstk_ms.s to libcntpr source files.

svn path=/trunk/; revision=52094
2011-06-05 18:42:09 +00:00
Amine Khaldi
30fac98374 [CMAKE]
* Fix cab creation on unix.

svn path=/trunk/; revision=52093
2011-06-05 18:00:09 +00:00
Cameron Gutman
768cc14b79 [AFD]
- Create an empty TRANSPORT_ADDRESS for the local address when doing an implicit bind so TCP/IP can choose its own local port and address instead of trying to bind the remote address and port
- Fixes another critical networking bug

svn path=/trunk/; revision=52092
2011-06-05 17:08:37 +00:00
Timo Kreuzer
a0f9149ce9 [WIN32K]
Add some more debug output in case of a failed ASSERT

svn path=/trunk/; revision=52091
2011-06-05 16:00:24 +00:00
Timo Kreuzer
83aed0697f [CMAKE]
Fix build with msvc

svn path=/trunk/; revision=52090
2011-06-05 14:51:31 +00:00
Eric Kohl
a9d4438b61 [MSPORTS]
Add missing definitions.

svn path=/trunk/; revision=52089
2011-06-05 13:26:43 +00:00
Kamil Hornicek
36ca51c79e fix build?
svn path=/trunk/; revision=52088
2011-06-05 12:50:02 +00:00
Eric Kohl
d5f1454033 [MSPORTS]
Implement ComDBGetCurrentPortUsage.

svn path=/trunk/; revision=52087
2011-06-05 12:20:52 +00:00
Cameron Gutman
b92d45b853 [IP/TCPIP]
- Add a Next member to CONNECTION_ENDPOINT to allow multiple connections to be associated with a single address file while not overwriting pointers, dereferencing other people's connection objects, and causing horrific amounts of memory corruption
- Add several sanity checks to prevent this from happening again
- Don't try dereference address files and connection endpoints in the free functions; there should be none associated since r52083 (sanity checks ensure this)
- Don't hold an extra reference to the address file when creating a listener; this reference is implicit
- This should greatly increase reliability of activities that open lots of sockets such as web browsing and running servers on ROS
- This also fixes most issues of not releasing a server port when the listener is closed

svn path=/trunk/; revision=52086
2011-06-05 02:16:45 +00:00
Amine Khaldi
90e7802e04 [CMAKE]
* Fix unix build. We need to quote the file paths in reactos.dff for cabman to parse them correctly. Dedicated to Arty.

svn path=/branches/cmake-bringup/; revision=52085
2011-06-04 23:45:11 +00:00
Eric Kohl
347ef6343f [MSPORTS]
Protect the COM database from concurrent access.

svn path=/trunk/; revision=52084
2011-06-04 21:07:28 +00:00
Cameron Gutman
588db734b0 [AFD]
- Disassociate the connection from the address file before closing them

svn path=/trunk/; revision=52083
2011-06-04 20:31:05 +00:00
Claudiu Mihail
2207cfb382 Simple test apps for functionality checks:
- server.exe and client.exe do a simple exchange of messages (each sends one message to the other) and then terminate.

- server_multi.exe and client_multi.exe exchange 3 message with one another before termination.

- client_delayed.exe waits one second before sending any message to the server after a connection ahs been made (otherwise identical to client.exe)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52082
2011-06-04 20:02:42 +00:00
Timo Kreuzer
e4c98f4e8e [DDK/XDK]
Merge some changes to wdm.h back to xdk

svn path=/trunk/; revision=52080
2011-06-04 16:59:09 +00:00
Timo Kreuzer
3c54c6f84f [NTOSKRNL/DDK]
- add definition for KeMemoryBarrierWithoutFence
- add x64 version of KeMemoryBarrier and some related defines
- Use KeMemoryBarrierWithoutFence in spinlocks as suggested by Alex

svn path=/trunk/; revision=52079
2011-06-04 15:42:32 +00:00
Timo Kreuzer
b19da39918 [NTOSKRNL/HAL]
- Add explicit memory barriers to KxAcquireSpinLock, KxReleaseSpinLock inline functions and KeTryToAcquireQueuedSpinLock, KeTryToAcquireQueuedSpinLockRaiseToSynch in the UP case. This will prevent the compiler from reordering memory access instructions across the boundaries of these functions, even when being inlined.
- Use the inline functions in x64 spinlock functions, too

svn path=/trunk/; revision=52078
2011-06-04 12:33:54 +00:00
Eric Kohl
6394fc44c7 [INF]
- Add an .inf file to register the unknown device class.

svn path=/trunk/; revision=52077
2011-06-04 08:03:51 +00:00
Olaf Siejka
397ee7399e [NTOSKRNL]
Hackfix to r52065:
- Comment out call to IopDecrementDeviceObjectRef in IopLoadFileSystemDriver, on Pierre's request. Needs more research. Should fix boot and testcd ASSERT in 2nd stage.

svn path=/trunk/; revision=52075
2011-06-03 13:34:29 +00:00
Gabriel Ilardi
ddd9f2dc77 - Fix boot.
svn path=/trunk/; revision=52074
2011-06-03 10:58:26 +00:00
Pierre Schweitzer
a0aead83b1 [NTOSKRNL]
Fixes to r52065:
- Acquire resources within a critical region
- Simplified IoEnumerateRegisteredFiltersList and made its behaviour match the one described in MSDN: http://msdn.microsoft.com/en-us/library/ff548348%28v=vs.85%29.aspx
This was brought to you by Alex Ionescu.

svn path=/trunk/; revision=52073
2011-06-03 08:43:05 +00:00
Cameron Gutman
b8d27ea0ac [USBSTOR]
- Fix a typo so SRB_FUNCTION_RELEASE_DEVICE actually does what was intended

svn path=/branches/usb-bringup/; revision=52072
2011-06-03 05:43:41 +00:00
Cameron Gutman
392e4b95be [USBSTOR]
- Don't leave DISPATCH_LEVEL while holding a spin lock acquired at DISPATCH_LEVEL
- Synchronize cancellation checking by acquiring the cancel spin lock

svn path=/branches/usb-bringup/; revision=52071
2011-06-03 05:38:27 +00:00
Cameron Gutman
92cd09edde - Fix build
svn path=/trunk/; revision=52070
2011-06-03 00:31:14 +00:00
Jérôme Gardou
ce5b55635c [WSOCK32]
remove useless def file
rbuild : use spec file
cmake : do not use two def files, it's... pointless.

svn path=/trunk/; revision=52069
2011-06-03 00:29:36 +00:00
Cameron Gutman
45491b7e75 [FDC]
- Remove old fdc code

svn path=/trunk/; revision=52068
2011-06-03 00:20:01 +00:00
Johannes Anderwald
ab7ce0c45c [HIDPARSE]
- Start of HID parser driver
- Contains currently only stubs

svn path=/branches/usb-bringup/; revision=52067
2011-06-02 19:13:51 +00:00
Cameron Gutman
2706c9b8b3 [NTOSKRNL]
- Fix a bug in device removal which resulted in an IRP_MN_CANCEL_REMOVE_DEVICE request not being sent if the initial IRP_MN_QUERY_REMOVE_DEVICE failed

svn path=/trunk/; revision=52066
2011-06-02 18:23:30 +00:00
Pierre Schweitzer
69764dd21a [NTOSKRNL]
- renamed Io volumes global to match Windows names (in case of debug)
- renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenceVpbForVerify() to IopReferenceVerifyVpb(), IopInitializeVpbForMount() to IopMountInitializeVpb(), IopLoadFileSystem() to IopLoadFileSystemDriver()
- implemented IopDecrementDeviceObjectHandleCount(), IopInterlockedIncrementUlong(), IopInterlockedDecrementUlong(), IopNotifyAlreadyRegisteredFileSystems() and IoEnumerateRegisteredFiltersList()
- halfplemented IopDecrementDeviceObjectRef()
- implemented check for already registrered notification in IoRegisterFsRegistrationChange()
- implemented sending notifications for already registered drivers to registrant in IoRegisterFsRegistrationChange()
- implemented VPB freeing in IopDereferenceVpbAndFree()
- acquire Io volumes lists once and forever for system shutdown, instead of keeping acquiring and releasing
- reference device object in IopShutdownBaseFileSystems() before sending it the shutdown IRP. To ensure to keep it valid till the end
- added a FS driver registration operations counter
- use this counter to handle failed mounts
- fixed: release locks before calling driver for mounting and reacquire them after
- fixed check for boot partition failure (and associated bugcheck): check we are in boot phase 0 or 1
- simplified lock process by using only one lock (ie removed mutex). Also use only critical region where needed
- fixed: ensure that locks are properly released when quitting a function
- fixed wrong return in IopCreateVpb()
- minor fixes around

svn path=/trunk/; revision=52065
2011-06-02 17:43:44 +00:00
Rafal Harabien
33a2b85a57 [NTOSKRNL]
- Reset KdbNumberOfRowsPrinted and KdbNumberOfColsPrinted before reading new command in kernel debugger so if previous command printed nearly full page, new command won't show "Press q to abort" message before processing

svn path=/trunk/; revision=52064
2011-06-02 15:59:57 +00:00
Johannes Anderwald
0dede89665 [USBSTOR]
- Comment out getting usb device interface. It is currently unused and usbhub does not yet support it
- Forward pnp capabilities request to lower device object
- Fix compilation by Usurp

svn path=/branches/usb-bringup/; revision=52063
2011-06-02 15:35:04 +00:00
Eric Kohl
12f49ac10e [SETUPAPI]
Add missing properties for SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty.

svn path=/trunk/; revision=52062
2011-06-02 14:42:15 +00:00
Jérôme Gardou
37d0db0c59 [CMAKE]
"According to gcc doc, if header.h is precompiled, the output should be named "header.h.gch" and not anything else."
Knowing it was the first step before actually doing it :-/

svn path=/trunk/; revision=52061
2011-06-02 12:55:09 +00:00
Jérôme Gardou
cf2494a35b revert unwanted change
svn path=/trunk/; revision=52060
2011-06-02 12:29:11 +00:00
Jérôme Gardou
43ff81bdb0 [CMAKE]
no need to call target_link_libraries if there is nothing to link

svn path=/trunk/; revision=52059
2011-06-02 12:20:30 +00:00
Jérôme Gardou
989c121257 [CMAKE]
fix pch support, with proper dependancies.
  Use cmake built-in functions instead of doing weird "magic" with tabs and spaces.
  According to gcc doc, if header.h is precompiled, the output should be named "header.h.gch" and not anything else.

svn path=/trunk/; revision=52058
2011-06-02 12:18:22 +00:00
Amine Khaldi
f30b8067cf [CMAKE]
* Addendum to r52056.

svn path=/branches/cmake-bringup/; revision=52057
2011-06-02 10:58:05 +00:00
Amine Khaldi
f835168ac7 [CMAKE]
* I left setting CMAKE_AR out of the condition. Fix this.

svn path=/trunk/; revision=52056
2011-06-02 10:54:56 +00:00
Cameron Gutman
36bc23ba03 [FDC]
- Implement fdc.sys (still needs work but fairly complete)
[TXTSETUP.SIF]
- Load fdc.sys for floppy controllers
[FDC.INF]
- Install fdc.sys for floppy controllers

svn path=/trunk/; revision=52055
2011-06-02 06:24:25 +00:00
Cameron Gutman
3ad1745d96 [NTOSKRNL]
- Comment out sending remove to devices before driver installation because there are still some bugs causing crashes

svn path=/trunk/; revision=52054
2011-06-02 06:07:08 +00:00
Amine Khaldi
316a7467b0 [CMAKE]
Merge r52051 and r52052 from cmake branch:
* Improve static libs creation in *nix. Dedicated to arty.
* Add a missing dependency.

svn path=/trunk/; revision=52053
2011-06-01 22:18:48 +00:00
Amine Khaldi
2893f9401b [CMAKE]
* Add a missing dependency.

svn path=/branches/cmake-bringup/; revision=52052
2011-06-01 22:08:27 +00:00
Amine Khaldi
a57324a1d4 [CMAKE]
* Improve static libs creation in *nix. Dedicated to arty.

svn path=/branches/cmake-bringup/; revision=52051
2011-06-01 22:05:24 +00:00
Timo Kreuzer
295bc5ef26 [NTOSKRNL]
Merge r52027 from cmake branch:
* Several improvements to debug symbols handling.
* A new (killer/awesome/...etc) feature has been introduced to kdbg: argument values support. Now backtraces contain not only usermode and kernelmode addresses translated, but also the argument values passed to the functions along the trace.
* Brought to you by the Arty.
* works only with cmake builds

svn path=/trunk/; revision=52050
2011-06-01 20:36:40 +00:00
Jérôme Gardou
2489556d2b [CMAKE]
- clean up wine directx build file.
Wine removed COM from wind3d

svn path=/trunk/; revision=52049
2011-06-01 19:45:03 +00:00
Cameron Gutman
f31e1602a7 [UMPNPMGR]
- Handle more GUIDs

svn path=/trunk/; revision=52048
2011-06-01 19:44:03 +00:00
Timo Kreuzer
7c988c53c5 [CMD]
replace FILE IO with Memory IO functions for batch files
Patch by HansH (hans at atbas dot org)

See issue #5807 for more details.

svn path=/trunk/; revision=52047
2011-06-01 19:33:20 +00:00
Cameron Gutman
73f8eda071 [NTOSKRNL]
- Massive rework of device removal
- IRP_MN_QUERY_REMOVE_DEVICE is sent to all devices that will be removed in response to a removal/ejection
- If any of the IRP_MN_QUERY_REMOVE_DEVICE requests fail, all devices which received a IRP_MN_QUERY_REMOVE_DEVICE will receive IRP_MN_CANCEL_REMOVE_DEVICE
- If everything approves the remove request, IRP_MN_REMOVE_DEVICE will be sent to children, ejection and/or removal relations, and finally the device itself
- Handle removal relations for all devices not just 1st level devices
- Remove child devices before removing the parent
- Move GUID_DEVICE_REMOVE_PENDING and GUID_DEVICE_REMOVAL_VETOED notifications to IopQueryRemoveDevice
- Implement IopCancelRemoveDevice which sends IRP_MN_CANCEL_REMOVE_DEVICE to the driver stack and sends GUID_TARGET_DEVICE_REMOVE_CANCELLED to any drivers waiting on target device change
- Use the IopRemoveDevice function to remove devices instead of calling IopQueryRemoveDevice and IopSendRemoveDevice manually so removal and/or ejection relations and children are processed
- IRPs and PnP notifications sent upon device removal (surprise and safe) should now be compatible with XP/Vista/7

svn path=/trunk/; revision=52046
2011-06-01 19:32:12 +00:00
Rafal Harabien
77760f12f6 [APITESTS]
- Add more Rectangle function tests
- Improve ScrollDC tests

svn path=/trunk/; revision=52045
2011-06-01 18:20:51 +00:00
Rafal Harabien
d159b215ee [NTOSKRNL]
- Bugcheck if ExFreePoolWithTag is called with wrong tag

svn path=/trunk/; revision=52044
2011-06-01 18:16:52 +00:00
Rafal Harabien
2861515d78 [NTOSKRNL]
- Use tags when allocation and freeing memory and define them in tag.h
- Fix some wrongly used tags when freeing
- Our new memory manager doesn't check tags when ExFreePoolWithTag is used. It will be fixed after testing

svn path=/trunk/; revision=52043
2011-06-01 13:39:36 +00:00
Claudiu Mihail
b3c222f739 [TCPIP]
[FORMATTING]
This is just a code formatting phase. I reordered some of the code and put some debugging DbgPrint-s in order to help understand the control and data flow. Working on trying to stop the system from crashing when server socket gets closed.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=52042
2011-06-01 13:27:35 +00:00
Rafal Harabien
c2e7b8b976 [NTOSKRNL]
- Acquire spinlock when accessing SymbolFileListHead

svn path=/trunk/; revision=52041
2011-06-01 13:16:49 +00:00
Timo Kreuzer
29a7aa1288 [CRT]
in _flsbuf, always reset _cnt to 0 and don't allocate/use a buffer when _IONBUF is set. Fixes a regression in msvcrt_winetest file.

See issue #5829 for more details.

svn path=/trunk/; revision=52040
2011-06-01 12:08:02 +00:00
Johannes Anderwald
217a0347b7 [USB-BRINGUP]
- Copy disk.inf from trunk
- Add upper layer filter partmgr when usb mass storage device is plugged in
- Usbstor now loads and starts up
- Currently stops at loading partmgr(not yet present)

svn path=/branches/usb-bringup/; revision=52039
2011-06-01 12:01:55 +00:00
Johannes Anderwald
da9d8082b0 [USBSTOR]
- Remove superflous declaration
- Fix bug when quering for compatible ids
- Remove unused local variable

svn path=/branches/usb-bringup/; revision=52038
2011-06-01 11:31:34 +00:00
Johannes Anderwald
80f8e1b66c [NTOS]
- Fix bug in PnpRegSzToString. The caller expects the result length to be the length of the string in bytes, not the string length
- Introduced in rev 46690

svn path=/trunk/; revision=52037
2011-06-01 09:59:54 +00:00
Johannes Anderwald
d7582766db [USBHUB_NEW]
- Check if the port is usb 2.0 controller. In that case call the Usb2.0 initialize function
- Prevents crash when used with usbohci

svn path=/branches/usb-bringup/; revision=52036
2011-06-01 08:31:33 +00:00
Johannes Anderwald
804a2dc28a [USBHUB_NEW]
- Fix compilation

svn path=/branches/usb-bringup/; revision=52035
2011-06-01 08:10:41 +00:00
Cameron Gutman
9048ea9dcf [NTOSKRNL]
- Remove the device node when the device object is destroyed to prevent PnP manager from crashing when manipulating device nodes with device objects that no longer exist
- Move removal notifications into IopRemoveDevice and call it from IopPrepareDeviceForRemoval and IoRequestDeviceEject to manage all of the removal relations for each device removed

svn path=/trunk/; revision=52034
2011-06-01 06:22:54 +00:00
Cameron Gutman
47328a7510 [NTOSKRNL]
- Fix a bug in device removal and ejection which caused the request to fail when EjectionRelations or RemovalRelations was not handled by a driver in the stack

svn path=/trunk/; revision=52033
2011-06-01 01:06:35 +00:00
Rafal Harabien
f1ad369297 [INF]
- Really add disk.inf. Forgotten in r51978

svn path=/trunk/; revision=52032
2011-05-31 23:19:07 +00:00
Cameron Gutman
b22890ae01 [NTOSKRNL]
- Remove an extra semicolon
- Dedicated to encoded

svn path=/trunk/; revision=52031
2011-05-31 23:04:59 +00:00
Rafal Harabien
eac5ee241d [CMAKE]
- sys-stubs.S depends now on w32ksvc.h. Unfortunately CMake isn't smart enough to find it automatically

svn path=/trunk/; revision=52030
2011-05-31 21:05:03 +00:00
Cameron Gutman
80d7517cde [NTOSKRNL]
- Implement IopRemoveDevice and IopStopDevice
- Do a graceful remove before installing new drivers (like Windows does)
- Debug log warnings abound (don't be alarmed ;)) because drivers aren't used to receiving IRP_MN_QUERY_REMOVE_DEVICE, IRP_MN_REMOVE_DEVICE and IRP_MN_QUERY_PNP_DEVICE_STATE from our (formly) crippled PnP manager

svn path=/trunk/; revision=52029
2011-05-31 19:34:08 +00:00
Cameron Gutman
3d472cf72f [PCIIDEX]
- Handle IRP_MN_QUERY_REMOVE_DEVICE
- Handle IRP_MN_QUERY_PNP_DEVICE_STATE to report that we are not disableable to the PnP manager so we don't get removed during driver installation

svn path=/trunk/; revision=52028
2011-05-31 19:29:22 +00:00
Amine Khaldi
7a6072bcfa [CMAKE]
* Several improvements to debug symbols handling.
* A new (killer/awesome/...etc) feature has been introduced to kdbg: argument values support. Now backtraces contain not only usermode and kernelmode addresses translated, but also the argument values passed to the functions along the trace.
* Brought to you by the Arty.

svn path=/branches/cmake-bringup/; revision=52027
2011-05-31 18:22:20 +00:00
Cameron Gutman
200cdb6daf [NTOSKRNL]
- Set the DNF_DISABLED flag if a driver returns with the HardwareDisabled flag set to true (but only BEFORE starting the device)
- Don't try to start a device with the DNF_DISABLED flag set
- Send IRP_MN_QUERY_CAPABILITIES (again) and IRP_MN_QUERY_PNP_DEVICE_STATE after the device has started
- Write the UINumber and Capabilities registry entries in IopQueryDeviceCapabilities so they will be updated after every IRP_MN_QUERY_CAPABILITIES is sent
- Set the DNUF_DONT_SHOW_IN_UI flag in response to the NoDisplayInUI flag set in DEVICE_CAPABILITIES or PNP_DEVICE_DONT_DISPLAY_IN_UI set after sending IRP_MN_QUERY_PNP_DEVICE_STATE
- Set DNUF_NBOT_DISABLEABLE if PNP_DEVICE_NOT_DISABLEABLE is set after sending IRP_MN_QUERY_PNP_DEVICE_STATE
- Remove duplicate code
- Fix sending GUID_DEVICE_ARRIVAL (patch by Eric Kohl)
- IRPs sent to PnP devices on enumeration and start are now completely compatible with Windows XP/2003/Vista

svn path=/trunk/; revision=52026
2011-05-31 18:11:40 +00:00
Cameron Gutman
d6680bc1fa [I8042PRT]
- Don't ASSERT(FALSE) when receiving an unknown PNP IRP

svn path=/trunk/; revision=52025
2011-05-31 18:02:49 +00:00
Timo Kreuzer
aebc59bf83 fix build
svn path=/trunk/; revision=52024
2011-05-31 17:50:55 +00:00
Timo Kreuzer
94ce2dcf66 [CRT]
Rewrite _splitpath.
See issue #6244 for more details.

svn path=/trunk/; revision=52023
2011-05-31 17:29:49 +00:00
Timo Kreuzer
3e584471ab [MSVCRT_APITEST]
Add tests for splitpath

svn path=/trunk/; revision=52022
2011-05-31 17:26:30 +00:00
Kamil Hornicek
4cf027e1a0 [SHELL32_NEW]
Fix building with CMake. Had to turn PCH off as Amine suggested, it needs more work.

svn path=/branches/shell32_new-bringup/; revision=52021
2011-05-31 16:55:10 +00:00
Cameron Gutman
48c9bead3d [NTOSKRNL]
- Implement IoTranslateBusAddress

svn path=/trunk/; revision=52019
2011-05-30 22:27:28 +00:00
Rafal Harabien
57bc8f07bf [USER32]
- Use DISPLAY_DEVICEW instead of assuming DISPLAY_DEVICE is in unicode

svn path=/trunk/; revision=52016
2011-05-30 21:34:10 +00:00
Rafal Harabien
8dbd3c5e73 [NTOSKRNL]
- Declare function without arguments with VOID keyword
- Improve rbuild file

svn path=/trunk/; revision=52015
2011-05-30 21:26:33 +00:00
Cameron Gutman
e26e8e7106 [AFD]
- Launch a new listen IRP right after the current one completes instead of waiting until the current pending connection is accepted
- Reduces the chance of AFD missing two connection requests that are issued very close together and increases network performance by allowing our connection queue to do its job

svn path=/trunk/; revision=52013
2011-05-30 17:27:53 +00:00
Kamil Hornicek
4e0877c6fb [WINED3D|DDRAW|D3D8|D3D9]
Sync to Wine 1.3.21

svn path=/trunk/; revision=52009
2011-05-30 15:27:19 +00:00
Rafal Harabien
6486187cdb [ROSTESTS]
- Declare functions with 0 arguments using VOID keyword. In C it matters
- Add imagehlp winetest to CMake build

svn path=/trunk/; revision=52006
2011-05-30 11:40:58 +00:00
Johannes Anderwald
f73caa061d [USBOHCI]
- More traces to fix isochronous problem
- Fix broken assert found by mjmartin

svn path=/branches/usb-bringup/; revision=52004
2011-05-30 06:55:32 +00:00
Cameron Gutman
6c70b6dcd9 [NTOSKRNL]
- Implement sending GUID_TARGET_DEVICE_QUERY_REMOVE and GUID_TARGET_DEVICE_REMOVE_COMPLETE notifications
- Fix sending EventCategoryTargetDeviceChange notifications
- Remove some incorrect checks (IRP_MN_START_DEVICE CAN be called for a device that is already "started")
- Check the final status of the IRP_MN_START_DEVICE request sent after resource rebalancing and send IRP_MN_REMOVE_DEVICE if it fails

svn path=/trunk/; revision=52003
2011-05-30 04:15:27 +00:00
Roel Messiant
9abb0c1c3b [NTOSKRNL]
- Simplify remove lock tracking block list handling.
- Correct check for unlimited locking time being allowed.
- Eliminate use-after-free after removing a tracking block.

svn path=/trunk/; revision=52002
2011-05-29 22:29:10 +00:00
Olaf Siejka
66b0ee485c Converting POLISH localisation strings to UTF-8. Part 3/4:
- dll/win32 and dll/shellext converted
- currently, only shell32 is left, due to incoming change to new version, and kernel32 - need to research how it should be done.
Tested on rbuild/cmake

svn path=/trunk/; revision=52000
2011-05-29 21:43:37 +00:00
Johannes Anderwald
d2accc6c3e [USBOHCI]
- Fix OHCI_ISO_TD structure. Fixes host system crashes in Windows XP
- Fix multiple bugs in isochronous transfer implementation
- Still not yet working, as the interrupt completion is not fired yet

svn path=/branches/usb-bringup/; revision=51998
2011-05-29 19:54:55 +00:00
Cameron Gutman
944ccbbe33 [NTOSKRNL]
- Fix a reference leak which prevented driver objects passed to IoRegisterPlugPlayNotification from being able to unload after the notification was unregistered
- Fix a non-paged pool leak

svn path=/trunk/; revision=51997
2011-05-29 16:44:34 +00:00
Eric Kohl
51945fb53c [SETUPAPI]
- Add stubs for CM_Set_Class_Registry_PropertyA/W.
- Add support for missing properties to CM_Set_DevNode_Registry_Property_ExA/W.

svn path=/trunk/; revision=51996
2011-05-29 16:18:22 +00:00
Eric Kohl
188384e873 [UMPNPMGR]
Implement PNP_GetClassRegProp and fix a little bug in PNP_GetDeviceRegProp.

svn path=/trunk/; revision=51995
2011-05-29 15:58:49 +00:00
Matthias Kupfer
6d0de91d48 Edijs Kolesnikovics
<
terminedijs AT yahoo DOT com>

- Show GPL licence from beginning
- See issue #6278 for details.

svn path=/trunk/; revision=51993
2011-05-29 12:55:07 +00:00
Amine Khaldi
374a063487 [CMAKE]
* Add missing dependency.

svn path=/trunk/; revision=51990
2011-05-29 09:55:23 +00:00
Eric Kohl
0a2651adde [UMPNPMGR]
- Implement PNP_SetClassRegProp.
- Fix a typo in the PNP_SetClassRegProp declaration in pnp.idl.

svn path=/trunk/; revision=51988
2011-05-28 22:15:38 +00:00
Amine Khaldi
4b796ad26c [CMAKE]
* Improve reactos.cab creation a bit: create it using a custom command instead of a custom target.. marking it as output this way ensures a proper cleanup with make clean and co.

svn path=/trunk/; revision=51987
2011-05-28 22:03:07 +00:00
Eric Kohl
971a0b7b63 [UMPNPMGR]
Add support for missing properties to PNP_SetDeviceRegProp and fix a property issue in PNP_GetDeviceRegProp.

svn path=/trunk/; revision=51982
2011-05-28 19:08:20 +00:00
Roel Messiant
91ed75b1f7 [NTOSKRNL]
- Don't treat the head of the tracking block list as a list entry.

svn path=/trunk/; revision=51981
2011-05-28 17:56:07 +00:00
Eric Kohl
21803c4ad1 [UMPNPMGR]
Add support for missing properties to PNP_GetDeviceRegProp and improve error handling.

svn path=/trunk/; revision=51980
2011-05-28 17:35:51 +00:00
Eric Kohl
9594c14d5f Add disk.inf to source file list.
svn path=/trunk/; revision=51978
2011-05-28 16:19:14 +00:00
Eric Kohl
fb4188594e Add an .inf file for disk drives.
See issue #5111 for more details.

svn path=/trunk/; revision=51976
2011-05-28 16:12:28 +00:00
Cameron Gutman
2a77b92692 [UNPNPMGR]
- Simplify and fix a few bugs in the ClassGUID reading code

svn path=/trunk/; revision=51974
2011-05-28 13:42:06 +00:00
James Tabor
e878e6c8fc [ScreenSaver]
- Fixed screen saver load and save plus the registry problems.

svn path=/trunk/; revision=51973
2011-05-28 11:39:36 +00:00
James Tabor
787984bc0f - No need to do extra work when the process starts.
svn path=/trunk/; revision=51972
2011-05-28 00:32:15 +00:00
James Tabor
90e1322075 [Win32k]
- Get screen saver running. Need more work on WinLogon register issues and problems.
- Miscellaneous changes and cleanups.

svn path=/trunk/; revision=51971
2011-05-27 23:18:57 +00:00
Cameron Gutman
6b5280da8a [PCIIDE/PCIIDEX]
- Also update cmake files

svn path=/trunk/; revision=51970
2011-05-27 22:53:39 +00:00
Cameron Gutman
4b24374764 [USETUP]
- Load other driver sections from txtsetup.sif
- Enable a debug print
[TXTSETUP]
- Add PnP entries for storage devices
[PCIIDE/PCIIDEX]
- Add to bootcd
- Both usetup's PnP manager and the user-mode PnP manager now recognize PCI IDE channels

svn path=/trunk/; revision=51969
2011-05-27 22:35:05 +00:00
Cameron Gutman
c963e3d148 [HDC]
- PCIIDE should be installed for each PCI IDE controller and UNIATA should be installed for each IDE channel
- Remove an extra comma in the compatible adapters entries

svn path=/trunk/; revision=51968
2011-05-27 22:27:37 +00:00
Cameron Gutman
ceb022f8e1 [PCIIDEX]
- Don't report raw device support to allow the IDE channel driver (uniata) to take over control of the enumerated devices
- Ideally the PnP manager should deal with a driver collision like this but it doesn't currently

svn path=/trunk/; revision=51967
2011-05-27 22:06:43 +00:00
Cameron Gutman
3bff188bfc [NTOSKRNL]
- Add a special case in IopLoadServiceModule for 1st stage setup when we have no service entries so we can still load drivers
- Fixes an old regression with 1st stage PnP which now can load drivers again

svn path=/trunk/; revision=51966
2011-05-27 21:56:55 +00:00
Pierre Schweitzer
80d496143d [NTOSKRNL]
Fix struct size checking for debug remove locks.
Spotted by Roel

svn path=/trunk/; revision=51965
2011-05-27 21:21:36 +00:00
Cameron Gutman
5d2112a43b [UMPNPMGR]
- Determine whether the device is really installed by reading the ClassGUID key instead of looking at the device flags
- Add a debug print for device installation (shouldn't be too spammy except and will be helpful for hotplugging)
[USETUP]
- Reenable the 1st stage PnP manager

svn path=/trunk/; revision=51963
2011-05-27 20:50:17 +00:00
Claudiu Mihail
04c4235e97 [TCPIP]
Closing a socket while in listening state (that has not accepted any connections) no longer certainly crashes the system. There's still a tendency to crash the system sometimes, but it's related to possibly not canceling any outstanding IRPs for the listening socket.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51962
2011-05-27 19:37:28 +00:00
Jérôme Gardou
331d3a2356 [CMAKE]
- remove unnecessary file

svn path=/branches/cmake-bringup/; revision=51961
2011-05-27 16:02:15 +00:00
Eric Kohl
ccda38feca [MSPORTS]
- Implement a simple property sheet provider for serial ports. The property sheet does not show yet because the dialog resource is not found because a call to FindResourceW fails.

svn path=/trunk/; revision=51960
2011-05-27 15:33:12 +00:00
Eric Kohl
94786cb21a [SETUPAPI]
- SetupDiGetClassDevPropertySheetsW: Improve the way property sheet pages are added to a property sheet. This change enables us to retrieve the number of property sheet pages provided by a property sheet provider without leaking property sheets.

svn path=/trunk/; revision=51959
2011-05-27 15:07:43 +00:00
Johannes Anderwald
2231c8333a [USBOHCI]
- Implement function to retrieve isochronous head endpoint descriptor
- Implement function to retrieve current frame number
- Set isochronous descriptor flag for head endpoint
- Implement retrieve device status for devices
- Implement retrieve class status from device
- Partly implement isochronous descriptor handling in usb queue
- Start implementing isochronous transfers in ISUBRequest
- Code currently not tested as the Virtual Machine with XP + ReactOS usbohci driver brings down the host system when starting the iso transfers. Ironically it crashes in MS usbohci driver


svn path=/branches/usb-bringup/; revision=51957
2011-05-27 13:04:55 +00:00
Claudiu Mihail
350d378e7f Slightly updated todo list.
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51956
2011-05-27 10:54:23 +00:00
Matthias Kupfer
bc57750cb9 patch by Igor Paliychuk <mansonigor at gmail dot com>:
- [TRANSLATIONS] update ukrainian locale

svn path=/trunk/; revision=51948
2011-05-27 08:18:33 +00:00
Cameron Gutman
6b41510d8b [USETUP]
- Disable the 1st stage user-mode PnP manager because it is creating incomplete registry keys which is confusing the real user-mode PnP manager and preventing devices installed in 1st stage from appearing in device manager
- Fixes displaying PCI bus controllers in device manager
- I need to discuss with Herve what should be done with this code

svn path=/trunk/; revision=51947
2011-05-27 03:40:22 +00:00
Cameron Gutman
2b5e8a3588 [NTOSKRNL]
- Quick fix for the crash loading boot-time legacy drivers
- More device node flag state fixes coming soon

svn path=/trunk/; revision=51946
2011-05-27 02:11:05 +00:00
James Tabor
90e8da7f8a [Win32k|User32]
- Remove NtUserGetLastInputInfo.

svn path=/trunk/; revision=51945
2011-05-27 01:36:41 +00:00
Cameron Gutman
bb403dcfbc [NTOSKRNL]
- Implement IoInvalidateDeviceState

svn path=/trunk/; revision=51944
2011-05-26 22:49:27 +00:00
Rafal Harabien
6a2050afbe [HAL]
- Use ExFreePoolWithTag instead of ExFreePool
- Add definitions of used tags

svn path=/trunk/; revision=51943
2011-05-26 22:22:37 +00:00
Cameron Gutman
b24d89aee6 [NTOSKRNL]
- Implement the kernel backend of graceful device removal/ejection

svn path=/trunk/; revision=51942
2011-05-26 22:09:02 +00:00
Ged Murphy
2b229750a4 [SHELL32_NEW]
- Merge 51783
- The final revision to merge from the existing shell32 code.
- The C++ shell32 module is now fully up to date and ready for testing.

svn path=/branches/shell32_new-bringup/; revision=51941
2011-05-26 22:04:22 +00:00
Ged Murphy
175a443bf4 [SHELL32_NEW]
- Merge 51729
Implement SHGetImageList
9db87f13d3
Fixes explorer++ main window

svn path=/branches/shell32_new-bringup/; revision=51940
2011-05-26 22:01:05 +00:00
Ged Murphy
f90c74df0d [SHELL32_NEW]
Merge 51602, 51604, 51701, 51702

svn path=/branches/shell32_new-bringup/; revision=51939
2011-05-26 21:53:16 +00:00
Ged Murphy
574b76d09f [SHELL32_NEW]
- Merge 51586, 51592, 51596

svn path=/branches/shell32_new-bringup/; revision=51938
2011-05-26 21:43:27 +00:00
Ged Murphy
c09e3bd756 [SHELL32_NEW]
- Merge 51436, 51448 and 51526

- Properly support WM_SYSCOLORCHANGE in ShellView window. Changing system colors in ReactOS works perfectly now :)

svn path=/branches/shell32_new-bringup/; revision=51937
2011-05-26 21:36:39 +00:00
Rafal Harabien
71f6457399 [WIN32K]
- Remove unused ROS specific NtGdiSetDIBits syscall

svn path=/trunk/; revision=51936
2011-05-26 21:25:57 +00:00
Eric Kohl
00aee505e3 [MSPORTS]
- Try to read the PortName registry value and get the port number from the name.
- Determine the port number for parallel ports the same way we determine the port number for serial ports, except for the use of the com port database.

svn path=/trunk/; revision=51935
2011-05-26 21:20:06 +00:00
Ged Murphy
b0ebdd8ffe [SHELL32_NEW]
- Merge 51423, 51426 and 51435

- Remove "Play" and "Preview" translations - they shouldn't be in shell32
- Pass an argument array to FormatMessage to insert the filename details into error messages (instead of failing)

svn path=/branches/shell32_new-bringup/; revision=51934
2011-05-26 21:11:36 +00:00
Rafal Harabien
1a05e28243 [FASTFAT]
- Use constant instead of magic number

svn path=/trunk/; revision=51933
2011-05-26 20:59:48 +00:00
Rafal Harabien
92bd6a6e6f [VERSION]
- Remove redundant file

svn path=/trunk/; revision=51932
2011-05-26 20:52:59 +00:00
Rafal Harabien
ea760d80b9 [BOOTDATA]
- Add Start Menu shell32 class to registry so LiveCD has it. It's needed for explorer-new.

[FREELDR]
- Fix rbuild file

svn path=/trunk/; revision=51931
2011-05-26 20:39:52 +00:00
Cameron Gutman
f8362347e4 [NTOSKRNL]
- Implement the kernel side of surprise device removal including sending the appropriate IRPs and notifying the user-mode PnP manager
- Fix the completely broken GUID_DEVICE_ARRIVAL notification (we were sending it for the parent not the children and we were sending regardless of whether any device had actually arrived)

svn path=/trunk/; revision=51930
2011-05-26 20:39:15 +00:00
Rafal Harabien
2332dc3a16 [USETUP]
- Fix polish translation

svn path=/trunk/; revision=51929
2011-05-26 20:33:58 +00:00
Cameron Gutman
4363ff3a32 [PCI]
- Inform the PnP manager that we don't support stopping devices by failing the IRP_MN_QUERY_STOP_DEVICE IRP instead of the IRP_MN_STOP_DEVICE IRP (which is not allowed)

svn path=/trunk/; revision=51928
2011-05-26 19:51:12 +00:00
Cameron Gutman
10959bf38e [NDIS]
- Fix handling of some PnP IRPs
- Handle IRP_MN_STOP_DEVICE as it travels down the stack not up
- Only complete the IRP_MN_QUERY_XXX_DEVICE IRPs if we fail them otherwise pass them down the device stack
- Handle IRP_MN_CANCEL_XXX_DEVICE as it travels back up the stack not on its way down
- Append our flags when handling IRP_MN_QUERY_PNP_DEVICE_STATE and pass it down the device stack

svn path=/trunk/; revision=51927
2011-05-26 19:34:39 +00:00
Rafal Harabien
562fcac277 [TASKMGR]
- Simplify opening settings registry key

svn path=/trunk/; revision=51925
2011-05-26 18:19:17 +00:00
Claudiu Mihail
a9d9b3583e [TCPIP]
- Removed hack from lwIP code. Now the listening pcb is obtained in a way as to not affect pllute lwIP code.
- Also there's still a little foreign code left in lwIP, but this can be easily removed as it contains no functional purpose, except debugging.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51924
2011-05-26 17:42:00 +00:00
Johannes Anderwald
9aff3e967c [USBOHCI]
- Set up periodic threshold (90 %)
- Add function to retrieve interrupt endpoints
- Add function to retrieve specific descriptors from interface. These are used by HID devices such as mice / keyboards
- Add function to retrieve interrupt interval
- Enqueue all endpoint descriptors at the end of the associated queue
- Only notify hardware of insertion when it is an bulk / control request
- Scan interrupt endpoint list to find the completed transfer descriptor
- Add debugging function to print out linked endpoint descriptors
- Interrupt transfers are now implemented. 
- Tested in Windows XP SP3 + Vbox 4.04 + Microsoft 5-Button Mouse. The HID mouse installs, initializes and starts up. Unfortunately the mouse does not work as expected yet

svn path=/branches/usb-bringup/; revision=51922
2011-05-26 12:37:18 +00:00
Eric Kohl
c9726a9484 [SERVICES]
- Add database locks to ScmAutoShutdownServices, RCreateServiceW and REnumServicesStatusExW.
- Add experimental logging of failed service start (WIP).

svn path=/trunk/; revision=51921
2011-05-26 10:50:26 +00:00
Johannes Anderwald
667b425b6c [USBOHCI]
- Remove dead code
- Silence traces
- Pass status & DoneHead as parameters to dpc routine
- Move IUSBRequest cleanup code into new function and use it for bulk / control transfer cleanup
- Fix bugs in AllocateEndpointDescriptor. It did not take the device address into account. It also did not respect the direction of the descriptor
- Implement support for bulk transfer requests
- Handle irp completion in CompletionCallback
- Tested in Windows XP SP3 + Vbox 4.04 + USB2.0 disabled + ReactOS usbstor + USB mass storage device
- OHCI Mass storage support is now also ready
- Next interrupt transfers

svn path=/branches/usb-bringup/; revision=51917
2011-05-26 02:15:11 +00:00
Eric Kohl
a53b8c7e19 [MSPORTS]
Store the PortName value in the registry.
Please note that SetupDiCreateDevRegKey and SetupDiOpenDevRegKey are broken because they do not open or create the 'Device Parameters' subkey of a device instance key but the device instance key itself.

svn path=/trunk/; revision=51916
2011-05-25 22:14:40 +00:00
Ged Murphy
83c347aaef [SHELL32_NEW]
- Merge 51322 and 51323
- Return 1 in WM_ERASEBKGND when desktop is painted
- Fix background for desktop icons and their labels
- Moreover fixes explorer_new background
- Properly arrange icons in explorer shell view window. This also fixes navigating in files with keyboard arrows

svn path=/branches/shell32_new-bringup/; revision=51915
2011-05-25 21:28:27 +00:00
Ged Murphy
4324e5e4e1 [SHELL32_NEW]
- Merge 51309
- Fix control style of property dialogs

svn path=/branches/shell32_new-bringup/; revision=51914
2011-05-25 21:16:20 +00:00
Ged Murphy
5dbb8d0d8f [SHELL32_NEW]
Merge 51133, 51199, 51206, 51285, 51294

svn path=/branches/shell32_new-bringup/; revision=51913
2011-05-25 21:13:50 +00:00
Ged Murphy
1ce880c731 Fix a warning, it builds warning free now.
svn path=/branches/shell32_new-bringup/; revision=51912
2011-05-25 21:07:25 +00:00
Ged Murphy
21ef201af1 [SHELL32_NEW]
- Merge 51127
- Sync RunFileDlg to wine

svn path=/branches/shell32_new-bringup/; revision=51911
2011-05-25 21:05:22 +00:00
Ged Murphy
4c01e6ced5 [SHELL32_NEW]
- Merge 50899, 50941, 50957, 50964, 51053

- Check the correct pidl instead of the free one
- Found by the amazing DPH!
- Return the icon index, not the icon id
-Fix missing "Open" menu entry on right click for All Users desktop shortcuts.

svn path=/branches/shell32_new-bringup/; revision=51910
2011-05-25 20:36:21 +00:00
Ged Murphy
0026704626 [SHELL32_NEW]
- Merge 50114 and 50144

- Add NULL checks in IShellView and IDropTarget implementations. Should fix bug #5780.
- Bug 5756: TRANSLATION: multiple modules: Bulgarian by CCTAHEB

svn path=/branches/shell32_new-bringup/; revision=51909
2011-05-25 20:25:42 +00:00
Ged Murphy
c95b75e6f3 [SHELL32_NEW]
- Merge 49969, refactored to use CComPtr's thanks to the new C++ model (it's sooo much cleaner now)

- Implement copy / paste for files when tree view is present
- Don't add shortcuts / executables to recent file list

svn path=/branches/shell32_new-bringup/; revision=51908
2011-05-25 20:12:34 +00:00
Ged Murphy
45b3697a66 [LOGONUI]
Add gabriel's fixed bitmap and a more forgiving rbuild file

svn path=/trunk/; revision=51907
2011-05-25 18:53:04 +00:00
Ged Murphy
4d7f242b7f [LOGONUI]
- Start to put together the logon / logoff user interface process
- It currently paints an exact pixel replica of WinXP's welcome screen in a logging off state
- Just a bit of fun at the moment, but will be part of the UI revamp we're all working towards.

svn path=/trunk/; revision=51906
2011-05-25 17:13:54 +00:00
Matthias Kupfer
255a10c304 use application specific icon for small AND large icon instead of predefined one (otherwise alt-tab shows default icon)
svn path=/trunk/; revision=51902
2011-05-25 11:22:36 +00:00
Eric Kohl
9074f26b85 [MSPORTS]
- Implement ComDBClaimNextFreePort and ComDBReleasePort.
- Add stubs for ComDBGetCurrentPortUsage and ComDBResizeDatabase.
- Do not keep the port bitmap in a buffer between calls but use a read-modify-write strategy instead.
- Replace pointer-based access to the port bitmap by index-based access.
- Use ComDBClaimNextFreePort in the serial port installer.
See issue #6272 for more details.

svn path=/trunk/; revision=51901
2011-05-25 10:52:12 +00:00
Johannes Anderwald
2c6077dc50 [USBOHCI]
- Add glue code for supporting iso transfers
- Remove dead from Handle
- Remove broken asserts
- Add support for string descriptors
- Add support for class specific endpoint requests (Needs be ported to usbehci)
- Link to usbd driver
- Add support for retrieving string descriptor
- Rewrite configuration descriptor handling in IUSBDevice. New code is smaller, smarter and handles a lot more cases. Needs to be ported to usbehci
- Wrap usbdlib.h include in extern c macro, it has c linkage
- Control transfers should now work 
- Need to implement support for isochronous / bulk / interrupt transfers until functional
- Tested with Bluetooth USB Stick (multi function, interrupt / bulk / control / isochronous) / USB Microphone (isochronous & control) in XP SP3

svn path=/branches/usb-bringup/; revision=51900
2011-05-25 02:11:06 +00:00
Johannes Anderwald
beec9a7b25 [USBD]
- Add missing export

svn path=/branches/usb-bringup/; revision=51899
2011-05-24 23:03:35 +00:00
Pierre Schweitzer
b6d42c5ec0 [NTOSKRNL]
- Fix remove locks with debug block initialization in IoInitializeRemoveLockEx(). Before only their debug block was initialized, and not the lock itself...
- Implemented support remove locks debug blocks in IoAcquireRemoveLockEx(), IoReleaseRemoveLockEx() and IoReleaseRemoveLockAndWaitEx()
This will help debugging in storage stack and is required since partmgr is using them.

svn path=/trunk/; revision=51898
2011-05-24 21:21:54 +00:00
Ged Murphy
3be178928d [SHELL32_NEW]
- Merge 48792 and 49372
- Fix rbuild file, it really will build now.

svn path=/branches/shell32_new-bringup/; revision=51897
2011-05-24 19:14:42 +00:00
Ged Murphy
3692ea9864 [SHELL32_NEW]
- Add many missing (or previously hidden) shell COM interfaces to the public headers.
- The new C++ shell32 dll should now build.

svn path=/branches/shell32_new-bringup/; revision=51896
2011-05-24 19:06:33 +00:00
Ged Murphy
ef6fc48a38 [SHELL32_NEW]
- Rename the cpp based directory

svn path=/branches/shell32_new-bringup/; revision=51895
2011-05-24 19:04:11 +00:00
Ged Murphy
839070eea6 [SHELL32_NEW]
- Remove the old C based dll.

svn path=/branches/shell32_new-bringup/; revision=51894
2011-05-24 19:02:10 +00:00
Ged Murphy
4019caae75 This really needs to go in a branch. It needs heavy testing and can't coincide with the current shell32 due to PSDK interface changes
svn path=/branches/shell32_new-bringup/; revision=51893
2011-05-24 18:40:34 +00:00
Johannes Anderwald
ed6fad617e [USBOHCI]
- Don't allocate buffer twice
- Cleanup endpoint / general transfer descriptors

svn path=/branches/usb-bringup/; revision=51892
2011-05-24 18:29:57 +00:00
Ged Murphy
4596e5e59b [SHELL32_NEW]
- Merge 48786. (This is why we moved to C++, so much cleaner than the previous C code.)

- Improve parameter checks for IShellLinkA interface.
- Fix heap corruption when an invalid pointer is passed.
- Implement IPersistFile_fnGetCurFile.
- TODO: Add same checks to IShellLinkW interface and fix IShellLink[A|W]::GetPath / SetPath / SetIdList / GetIdList logic.

svn path=/trunk/; revision=51891
2011-05-24 18:18:56 +00:00
Ged Murphy
ba266670d1 [SHELL32_NEW]
- Merge 48254, 48371, 48463, 48501
- Don't worry about trying to build this dll, it needs the new PSDK interfaces which won't be committed until the very end as they'll break the existing shell32. It make take a day or two as everything has to be merged by hand.

svn path=/trunk/; revision=51890
2011-05-24 18:14:47 +00:00
Claudiu Mihail
f75011c71f [TCPIP]
Fixed an error in the accepting code (in rostcp.c line 576). tcp_accepted was being called for the wrong pcb. Instead of the pcb belonging to the listening socket it was being called for the pcb belonging to the newly created connection socket. In order to fix this I added an extra field to the tcp_pcb structure to hold a reference to the listening socket. This is a crude method and it will be replaced by something more elegant.
Right now however there's a slight nondeterminism regarding the connection. One it's established the message either gets through to the other side or not, randomly. This could be due to a race condition of some sorts.
Also another problem is that the server side brings down the system when closing.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51889
2011-05-24 18:05:51 +00:00
Johannes Anderwald
e24bfbfa91 [USBOHCI]
- Add sanity checks
- Preserve  command status value when notifying the hc that a control / bulk endpoint was added
- Re-enable root hub notification interrupt when reset port has been completed
- Dispatch processing to USBQeueu when DoneHead event arrives
- Scan endpoints to find the logical endpoint which was completed by the hardware
- Signal completion to IUSBRequest by calling CompletionCallback
- Create a final transfer descriptor which is linked to the endpoint descriptor
- Control transfers now appear to be working (Device retrieves device descriptor / configuration descriptor and succeeds in setting device address)
- Configuration parsing code needs more work now (currently fails there due to invalid / unexpected configuration descriptor from device)

svn path=/branches/usb-bringup/; revision=51888
2011-05-24 17:57:00 +00:00
Jérôme Gardou
9e4d22d027 [NTOSKRNL/MM]
- clear right bit when freeing pool pages.

svn path=/trunk/; revision=51887
2011-05-24 17:55:27 +00:00
Timo Kreuzer
3b62a1af2a [WIN32K]
- Add a comment about alignment for GreCreateBitmap
- Make bits really 32bit aligned
- Remove unused variable

svn path=/trunk/; revision=51886
2011-05-24 16:23:36 +00:00
Timo Kreuzer
54b14d414e [WIN32K]
- Fix the bitmap alignment issue that caused broken scrollbar pattern

svn path=/trunk/; revision=51885
2011-05-24 15:35:30 +00:00
Johannes Anderwald
b275073474 [USBOHCI]
- Enable global power mode
- Wait untill reset is complete
- Clear reset complete bit when reset is done
- Enable port
- Reset port now works
- USBOHCI still hangs after adding first control request, needs more investigation

svn path=/branches/usb-bringup/; revision=51883
2011-05-24 12:51:03 +00:00
Olaf Siejka
fc94016a41 [RPCSS]
Addenum. This change slipped past in commit 51873. Fix name of irot header include, which should be irot.h and not irot_s.h. Fixes rpcss build in MSVC.

svn path=/trunk/; revision=51874
2011-05-23 21:49:12 +00:00
Olaf Siejka
9776c7b8d7 Converting POLISH localisation strings to UTF-8. Part 2/4 -
- base\setup and base\system coversion
- added PRAGMA to rsrc/resource files
- added missing polish translations - subst and runonce
- small fixes, style and wording
Tested on rbuild/cmake/nmake

svn path=/trunk/; revision=51873
2011-05-23 21:36:15 +00:00
Matthias Kupfer
e345b5a483 revert previous commit due to serious build problems
svn path=/trunk/; revision=51872
2011-05-23 19:48:04 +00:00
Matthias Kupfer
54e3afb4ee patch by Igor Paliychuk <mansonigor at gmail dot com>:
- [CMAKE] Reduce difference with cmake branch
- msvc fixes
- minor changes by me

svn path=/trunk/; revision=51871
2011-05-23 19:30:50 +00:00
Amine Khaldi
26e319dd8c [CMAKE]
* Remove meaningless target_link_libraries(${MODULE})

svn path=/trunk/; revision=51870
2011-05-23 18:52:04 +00:00
Eric Kohl
126ebc89ff Real fix of the broken build.
svn path=/trunk/; revision=51869
2011-05-23 18:49:03 +00:00
Timo Kreuzer
597107fc28 [CMAKE]
- Remove last traces of mingw_common
- adopt msvcrtex on msvc builds
- Fix MSVC warnings in crtexe.c, already pushed upstream

svn path=/trunk/; revision=51868
2011-05-23 18:27:16 +00:00
Timo Kreuzer
16c69e2493 [MSPORTS]
Fix build

svn path=/trunk/; revision=51867
2011-05-23 18:22:24 +00:00
Eric Kohl
2ccbf80288 [MSPORTS]
- Add msports.h header file.
- Add the initial version of the com port database and use it to track the used com ports.

svn path=/trunk/; revision=51866
2011-05-23 17:54:16 +00:00
Timo Kreuzer
5abd114662 [USETUP]
Don't link to mingw_main/mingw_common/kernel32!

svn path=/trunk/; revision=51865
2011-05-23 17:43:13 +00:00
Johannes Anderwald
f75cb3d51d [USBOHCI]
- Start implementing control transfers
- Move initialization of usb queue after the bulk / control head endpoints have been created
- Add interface functions to retrieve bulk / control head endpoint descriptors
- Add macros for setting transfer descriptors field (taken from Haiku)
- Partly implement IUSBQueue::AddUSBRequest for control / bulk transfers
- Create endpoint descriptor for control request and link setup descriptor to it 
- Link setup descriptors to data descriptor / status descriptor
- WIP (needs fixes)

svn path=/branches/usb-bringup/; revision=51864
2011-05-23 17:42:52 +00:00
Timo Kreuzer
824d85a2b1 [TASKMGR]
Convert Japanese resource file to UTF-8 and fix a typo

svn path=/trunk/; revision=51863
2011-05-23 17:33:21 +00:00
Timo Kreuzer
a89876bc9f [CRT]
Check for _WIN32 instead of _WINDOWS_

svn path=/trunk/; revision=51862
2011-05-23 17:33:04 +00:00
Timo Kreuzer
49988a5137 [CRT]
Fix a bug in amd64 version of __chkstk_ms, noticed by Stefan

svn path=/trunk/; revision=51861
2011-05-23 17:13:38 +00:00
Timo Kreuzer
6243472331 [CMAKE]
- Create a new library msvcrtex, which will be automatically linked, when msvcrt is linked. This is yet a minimal version which replaces the different mingw libs.
- Use proper unicode entrypoints
- remove unneeded libcoldname.a

svn path=/trunk/; revision=51860
2011-05-23 15:50:03 +00:00
Timo Kreuzer
13719879aa [MMIXER_TEST]
- Fix order of importlibs (will be required soon)

svn path=/trunk/; revision=51859
2011-05-23 15:36:00 +00:00
Johannes Anderwald
c5acda628c [USBOHCI]
- Fix bug in calculating offset of status register
- Start implementing deferred processing routine
- Signal status change when new device is arrived
- Implement basic GetPortStatus
- Start implementing SetPortFeature, ClearPortStatus
- ResetPort not yet fully working, WIP

svn path=/branches/usb-bringup/; revision=51858
2011-05-23 11:29:55 +00:00
Amine Khaldi
f1cd9d77bb [CMAKE]
* Add module_clean targets.

svn path=/trunk/; revision=51857
2011-05-23 10:52:37 +00:00
Timo Kreuzer
0c077106ad [FREELDR]
"Fix" build with MSVC

svn path=/trunk/; revision=51856
2011-05-23 07:57:44 +00:00
Amine Khaldi
2c7f36d712 * Back out r51854 as our KeBugCheckEx does return (due to a hack).
svn path=/trunk/; revision=51855
2011-05-22 22:19:47 +00:00
Amine Khaldi
df547b1581 * Consistently mark KeBugCheckEx with the noreturn attribute. Patch by Igor Paliychuk.
svn path=/trunk/; revision=51854
2011-05-22 22:08:01 +00:00
Johannes Anderwald
89d52d98bb [OHCI]
- Add check that controller is functional state
- enable interrupts after the controller has been started
- partly implement isr routine

svn path=/branches/usb-bringup/; revision=51852
2011-05-22 20:48:50 +00:00
Johannes Anderwald
d4c4a2e080 [USBOHCI]
- Start of OHCI support
- Based on new usbehci driver and Haiku USB Stack
- Driver initializes the controller and retrieve number of ports

svn path=/branches/usb-bringup/; revision=51851
2011-05-22 19:36:13 +00:00
Giannis Adamopoulos
3e3ba300bd [uxtheme]
- Implement handling WM_NCHITTEST

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51848
2011-05-22 15:47:47 +00:00
Giannis Adamopoulos
99208a2b8b [uxtheme]
- Implement DrawClassicFrame, heavily based on user32

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51847
2011-05-22 15:37:32 +00:00
Giannis Adamopoulos
b55ba84d1f [uxtheme]
- Implement handling WM_NCMOUSEMOVE, WM_NCMOUSELEAVE and WM_NCLBUTTONDOWN, needed for painting the caption buttons when the user hovers or clicks them 

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51846
2011-05-22 15:31:18 +00:00
Olaf Siejka
07ce2672d8 [MSVC]
Final fix for MSVC build of base\application resources

svn path=/trunk/; revision=51845
2011-05-22 13:56:46 +00:00
Olaf Siejka
869bbd1e00 [MSVC]
Arch Blackmann should know not to remove empty lines at the end of resource/rsrc files in base\applications. Should fix MS Linker fatal error RC1004 for modules affected.

svn path=/trunk/; revision=51844
2011-05-22 11:57:27 +00:00
Eric Kohl
4f191d838d [MSPORTS]
Determine serial port names COM1-4 and parallel port names LPT1-2 from their resources. Other serial and parallel are still named COMx and LPTx.

svn path=/trunk/; revision=51843
2011-05-22 08:57:33 +00:00
Amine Khaldi
f78cfefe6d [CMAKE/IDL]
* Make sure to declare all the output files, so that the cleanup step could take care of them.

svn path=/trunk/; revision=51842
2011-05-21 17:44:39 +00:00
Olaf Siejka
ed88df8046 Converting POLISH localisation strings to UTF-8. Part 1/x -
- base/applications. pl-PL.rc conversion;
- add PRAGMA, required by MSVC to rsrc/modulename/resource.rc, instead of individual localisation files. Localisation files already converted to UTF-8 will be placed at the end, after PRAGMA.

Tested on rbuild/cmake/nmake

svn path=/trunk/; revision=51841
2011-05-21 16:24:21 +00:00
Amine Khaldi
c87d5c0aa3 [FREELDR]
* Make KeBugCheckEx definition consistent with the declaration. Fixes an msvc error.

svn path=/trunk/; revision=51840
2011-05-21 15:27:24 +00:00
Amine Khaldi
ce054e32c0 [CMAKE]
* Merge more msvc fixes from the cmake branch.

svn path=/trunk/; revision=51838
2011-05-21 12:39:48 +00:00
Amine Khaldi
33febbe6a1 [CMAKE]
* Merge some msvc fixes from the cmake branch.

svn path=/trunk/; revision=51837
2011-05-21 12:30:26 +00:00
Amine Khaldi
db0a15cd8a [CMAKE]
* Fix cmake build. Now both rbuild and cmaked based builds compile and boot to shell.

svn path=/trunk/; revision=51836
2011-05-21 09:38:52 +00:00
James Tabor
67b57d645d [Win32k|User32]
- Move creation of the scrollbar Gray brush from user32 to win32k.
- Noticed a color and pattern (patchy white pattern) difference when using GreCreateBitmap and it did not work the same as the main function. Correcting this fixed the Gray brush. Someone from YAROTOWS needs to look into this.

svn path=/trunk/; revision=51835
2011-05-21 06:34:02 +00:00
James Tabor
2c6c1ba289 [Win32csr]
- Hack fix to allow Alt-Tab/Esc to be supported. More investigation is required, see bug 6198.

svn path=/trunk/; revision=51834
2011-05-21 00:35:53 +00:00
James Tabor
2a4c54d85c [User32]
- When active or inactive set the appropriate action so the correct keyboard mode can be returned.

svn path=/trunk/; revision=51833
2011-05-21 00:24:38 +00:00
James Tabor
3d6ff1e532 [User32]
- Uses KF_Xxx flags instead of made up ones. Someone let wine know there are standard flags to use.

svn path=/trunk/; revision=51832
2011-05-21 00:22:25 +00:00
James Tabor
e3f4d66500 [User32]
- Add Switch Class support. See bug 5378. Original patch by David Quintana. Alt-Tab works the same as windows, Alt-Esc needs more work.

svn path=/trunk/; revision=51831
2011-05-21 00:12:48 +00:00
Sylvain Petreolle
3d1a962bcb Rehaul the bootcd tree.
All dlls and drivers are in their normal directories instead of having all in reactos\.
Original implementation by zefklop in cmake branch.

svn path=/trunk/; revision=51830
2011-05-20 22:29:54 +00:00
Sylvain Petreolle
2416d7a569 Fix dependency graph in yEd.
- ntdll target was not found when added in first.
- ntoskrnl has to be in the graph despite being an EXECUTABLE.

svn path=/trunk/; revision=51829
2011-05-20 21:31:47 +00:00
Johannes Anderwald
3dfadd12ae [USBEHCI]
- Enable sync frame list

svn path=/branches/usb-bringup/; revision=51827
2011-05-20 15:06:39 +00:00
Johannes Anderwald
9e2ca3d539 [USBEHCI]
- Pass memory manager to USBQueue object
- Fix bug in memory manager which did not check if an allocation equals page size
- Implement interrupt queue head array with frequencys of 1ms up to 32ms
- Store queue heads in the sync schedule array
- WIP

svn path=/branches/usb-bringup/; revision=51826
2011-05-20 14:47:15 +00:00
Sylvain Petreolle
713fbb28eb Add bootcdregtest target to cmake build.
svn path=/trunk/; revision=51824
2011-05-19 21:55:57 +00:00
Gregor Schneider
6ca70e6a3d [shell32/shell32_new] Improve German translation
svn path=/trunk/; revision=51823
2011-05-19 18:24:57 +00:00
Gregor Schneider
ba4214e8d5 [appwiz] Allow passing directories to the create new shortcut wizard
See issue #6169 for more details.

svn path=/trunk/; revision=51822
2011-05-19 18:04:10 +00:00
Eric Kohl
53bec9d2e8 [SETUPAPI]
Implement CM_Get_Class_Registry_PropertyW.

svn path=/trunk/; revision=51821
2011-05-19 17:56:35 +00:00
Ged Murphy
ebd76c2ca5 Merge r51819
svn path=/trunk/; revision=51820
2011-05-19 08:19:07 +00:00
Gregor Schneider
b38dbdbbd9 [shell32] One sizeof shall suffice
svn path=/trunk/; revision=51819
2011-05-18 22:08:44 +00:00
Eric Kohl
4313831cb0 [MSPORTS]
Remove reference to non-existing files and unused libraries.

svn path=/trunk/; revision=51818
2011-05-18 09:08:24 +00:00
Claudiu Mihail
8ac934b5e6 GSoC todo list.
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51816
2011-05-17 22:18:21 +00:00
Sylvain Petreolle
c5f4d06d4b Escape (...) in configure script.
spotted by Collibri

svn path=/branches/cmake-bringup/; revision=51815
2011-05-17 19:54:26 +00:00
Gregor Schneider
c931aa82fa [syssetup] Remove duplicate code, adjust message box text to fit the context
svn path=/trunk/; revision=51814
2011-05-17 19:33:22 +00:00
Eric Kohl
5adfc1c07b [MSPORTS]
- Implement a simple class installer that assigns the friendly name "Serial Port (COMx)" to all serial ports.
- Enable the class installer in ports.inf.
- Add parallel port installer configuration to ports.inf (disabled).

svn path=/trunk/; revision=51813
2011-05-17 19:24:19 +00:00
Gregor Schneider
1ba6d6e079 [msconfig/freeldr]
- Load freeldr.ini first chance, boot.ini on second chance
- Make freeldr list box scrollable
- Fix some FIXME's
[msgconfig/system]
- Implement parsing and displaying system.ini contents
See issue #1986 for more details.

svn path=/trunk/; revision=51811
2011-05-17 18:32:51 +00:00
Eric Kohl
a18c5a8711 [SETUPAPI]
Fix SetupDiCreateDevRegKeyW: When trying to open a devices driver key (DIREG_DRV) the function always created a new driver instance key. The fixed version checks for an existing driver value. If the driver value exists, it opens or creates the driver instance key. If the driver value does not exist, the function generates a new driver instance key and sets a new driver value for the device instance.

svn path=/trunk/; revision=51809
2011-05-17 13:32:12 +00:00
Michael Martin
ff208f7adb [USBSTOR]
- Add error handling to USBSTOR_CSWCompletionRoutine for errors that can be recovered via reset of pipe/port/controller. Only pipe reset is attempted. WIP.

svn path=/branches/usb-bringup/; revision=51808
2011-05-17 11:26:25 +00:00
Eric Kohl
5bc8f84475 [SETUPAPI]
- SetupDiCreateDeviceInfoW: Really create a new device instance instead and return its device info data instead of returning the device info data for an existing device.
- Implement SetupDiDeleteDeviceInfo.

svn path=/trunk/; revision=51807
2011-05-17 10:06:36 +00:00
Giannis Adamopoulos
b9d402ed06 [uxtheme]
- Implement drawing the borders

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51805
2011-05-17 08:03:46 +00:00
Giannis Adamopoulos
ceca3abd9d [uxtheme]
- Implement drawing windows caption and borders with themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51804
2011-05-17 07:57:17 +00:00
Eric Kohl
0023216881 [CFGMGR32]
- Add forwarders for functions that have been implemented in setupapi.dll.
- Remove forwarders which are not exported by cfgmgr32.dll.

svn path=/trunk/; revision=51803
2011-05-16 23:37:19 +00:00
Eric Kohl
848271e754 [SETUPAPI]
- Add stubs CM_Get_Class_Registry_PropertyA/W.
- Move CMP_RegisterNotification, CMP_UnregisterNotification and CMP_WaitNoPendingInstallEvents.
- Remove stubs TPWriteProfileString and suErrorToIds because they are part of setupx.dll (16 bit DLL).

svn path=/trunk/; revision=51802
2011-05-16 23:12:12 +00:00
Sylvain Petreolle
de9bfefa63 Add cmake configure script for unix.
svn path=/trunk/; revision=51801
2011-05-16 21:26:08 +00:00
Matthias Kupfer
30cbb357aa restart German translation - please don't delete existing work in future
svn path=/trunk/; revision=51800
2011-05-16 19:13:15 +00:00
Amine Khaldi
54ecde0f15 [CMAKE]
* Add the missing temporary import libs.

svn path=/trunk/; revision=51799
2011-05-16 18:53:45 +00:00
Pierre Schweitzer
bddd9a194a [NTOSKRNL]
- Fix the fix for IopStoreSystemPartitionInformation(). The sizeof wasn't on an unicode string...
I blame the guy who first wrote that function!
Thanks to "rs" on IRC for having spotted the error.

svn path=/trunk/; revision=51797
2011-05-16 18:06:14 +00:00
Pierre Schweitzer
8f5d08dbdd [NTOSKRNL]
- Implemented IoSetSystemPartition(). This is required by MountMgr.
- Fixed buffer size in IopStoreSystemPartitionInformation(). No need to have a buffer twice bigger than maximum use.

svn path=/trunk/; revision=51796
2011-05-16 17:52:03 +00:00
Gregor Schneider
52539ea5a9 [charmap] Carlo Bramini (carlo dot bramix at libero dot it):
- Fix font zoom when scrolling and changing fonts
- Optimize font zoom drawing
See issue #3500 for more details.

svn path=/trunk/; revision=51795
2011-05-16 17:46:49 +00:00
Gregor Schneider
f151ca5b4e [bootvid] Adam Kachwalla: use the BOOTCHAR_HEIGHT macro for defining the font height
See issue #6259 for more details.

svn path=/trunk/; revision=51793
2011-05-16 17:29:27 +00:00
Amine Khaldi
064905bec3 [CMAKE]
* Fix the typo, fix the build.

svn path=/trunk/; revision=51792
2011-05-16 16:32:34 +00:00
Timo Kreuzer
d2e8a201be [CMAKE]
Fix build of rossym

svn path=/trunk/; revision=51791
2011-05-16 16:11:31 +00:00
Timo Kreuzer
1a08b3b347 revert r51786
svn path=/trunk/; revision=51790
2011-05-16 15:47:44 +00:00
Timo Kreuzer
b06ea95e4b 2nd try to fix build
svn path=/trunk/; revision=51787
2011-05-16 15:20:44 +00:00
Timo Kreuzer
097aeb7b9c try to fix build
svn path=/trunk/; revision=51786
2011-05-16 15:18:55 +00:00
Amine Khaldi
a716937efb * Fix rbuild build.
svn path=/trunk/; revision=51785
2011-05-16 13:56:22 +00:00
Amine Khaldi
c206491846 [CMAKE]
* Fix cmake build on trunk.

svn path=/trunk/; revision=51784
2011-05-16 13:29:58 +00:00
Timo Kreuzer
fae2044a23 [CMAKE]
Integrate cmake stuff into trunk
Only files added.

svn path=/trunk/; revision=51783
2011-05-16 13:12:07 +00:00
Timo Kreuzer
5d006f3cbf [STLPORT]
Copy stlport headers from cmake branch

svn path=/trunk/; revision=51782
2011-05-16 13:00:45 +00:00
Claudiu Mihail
e1b7306f9b Make kernel not crash when trying to accept in incoming tcp connection. The problem is in TCPAcceptEventHandler, where calling the LibTCPAccept function would cause an assert to fail in LibTCPAccept. We just set the state of the pcb to LISTEN and after calling LibTCPAccept we set it to ESTABLISHED. The connection still fails but at least the kernel doesn't crash. Needs further serious investigation.
svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51781
2011-05-16 13:00:34 +00:00
Timo Kreuzer
e89305e733 [STLPORT]
Copy stlport from cmake branch 3/3

svn path=/trunk/; revision=51780
2011-05-16 12:58:52 +00:00
Timo Kreuzer
1eeb11da5f [STLPORT]
Copy stlport from cmake branch 2/x

svn path=/trunk/; revision=51779
2011-05-16 12:58:06 +00:00
Timo Kreuzer
0c89aac1da [STLPORT]
Copy stlport from cmake branch 1/x

svn path=/trunk/; revision=51778
2011-05-16 12:54:24 +00:00
Matthias Kupfer
522e4058be fix line endings
svn path=/trunk/; revision=51776
2011-05-16 07:15:18 +00:00
Matthias Kupfer
f903b90697 - some fixes in German country names
svn path=/trunk/; revision=51775
2011-05-15 22:34:20 +00:00
Matthias Kupfer
fbe2a3dcc2 - full English and German country list
- harcoded country names replaced by string identifiers

svn path=/trunk/; revision=51774
2011-05-15 22:26:22 +00:00
James Tabor
9ca7155a56 [ApiTest]
- Add a test for stack corruption when in window procedure call out.

svn path=/trunk/; revision=51773
2011-05-15 21:15:38 +00:00
Jérôme Gardou
fdcd4cd64c [CMAKE]
- generate source files and header files in one pass by passing right arguments to widl.
Why this didn't work before is left as an exercise for the reader.

svn path=/branches/cmake-bringup/; revision=51772
2011-05-15 19:31:13 +00:00
Jérôme Gardou
5c786760ab [CMAKE]
- refactor generation of rpcproxy file to avoid recompiling
Get rid of unnecessary libraries in the process.
Tested with both mingw32-make+widl/nmake+midl
  - do not rebuild livecd hives if not necessary

svn path=/branches/cmake-bringup/; revision=51771
2011-05-15 18:10:27 +00:00
Johannes Anderwald
a5d0b5fdef [USBSTOR]
- Implement retrieving serial number from device
- Use serial number to format instance id and retrieve in StorageDeviceProperty requests
- Silence traces


svn path=/branches/usb-bringup/; revision=51770
2011-05-15 17:57:02 +00:00
Matthias Kupfer
7d11222913 - German translation fixes
svn path=/trunk/; revision=51769
2011-05-15 16:43:16 +00:00
Ged Murphy
6ced137ce2 [SHELL32_NEW]
- Add the shell32 code which has been converted into C++ from the existing C code.
- This is a straight drop using the code Andrew sent to me, it's currently unchanged and untested
- All C++ conversion work to date was carried out by Andrew Hill <ash77 at reactos dot org>

svn path=/trunk/; revision=51768
2011-05-15 15:55:49 +00:00
Olaf Siejka
78791f6abe [GLU32]
- Properly fix compiler warning, by initializing the integer array with zeros. Remove GNUC #ifdef, introduced in rev 42970. Patch by Markus (thechief at praise dash land dot de)
See issue #6179 for more details.

svn path=/trunk/; revision=51767
2011-05-15 15:51:26 +00:00
Ged Murphy
1b67224a55 Add the Windows version of SHIShellFolder_EnumObjects, but compile it out as per Wine's notes
Move the scope in the reg script

svn path=/trunk/; revision=51766
2011-05-15 15:42:03 +00:00
Amine Khaldi
b8f125e2ab [CMAKE]
* Define HAVE_SPAWNVP for the host config.

svn path=/branches/cmake-bringup/; revision=51765
2011-05-15 15:00:55 +00:00
Johannes Anderwald
e9a0c8ba68 [USBSTOR]
- Add asserts
- Rewrite queue methods to accept the FDO only 
- Fix multiple synchronization bugs
- Don't start next irp before current irp has completed
- Use contiouslogicalbytes blocks from srb
- Should fix race conditions

svn path=/branches/usb-bringup/; revision=51764
2011-05-15 14:59:16 +00:00
Ged Murphy
da49a2ee6d [ATL]
- Add DECLARE_NO_REGISTRY
- Fix invalid pointer use and add an overloaded assignment operator in CComDynamicUnkArray
- Add UpdateWindow to the CWindow class
- Add missing error checks
Changes by Andrew Hill <ash77 at reactos dot org>

svn path=/trunk/; revision=51763
2011-05-15 14:40:53 +00:00
Rafal Harabien
e29c4c6854 [RAPPS]
- Fix Swedish translation

svn path=/trunk/; revision=51762
2011-05-15 14:18:13 +00:00
Matthias Kupfer
179f453e06 - make "Network connection" translatable
- fixes spacer for centered progressbar in minitui

svn path=/trunk/; revision=51761
2011-05-15 14:00:08 +00:00
Johannes Anderwald
793e8870ca [USBSTOR]
- Fix one more warning

svn path=/branches/usb-bringup/; revision=51760
2011-05-15 12:49:17 +00:00
Johannes Anderwald
5c5f758afa [USBSTOR]
- Silence warnings
- Silence traces
- Add asserts
- Add code to detect usb reset in progress. In that case cancel the request
- Add more code to synchronize urb action
- WIP, still hangs are observed

svn path=/branches/usb-bringup/; revision=51759
2011-05-15 12:47:54 +00:00
Jérôme Gardou
b5f0e8d7a8 Revert something that shouldn't have been committed in 51757
svn path=/trunk/; revision=51758
2011-05-15 12:38:35 +00:00
Jérôme Gardou
2b1ae1aaa4 [RTL/HEAP]
Commit some stuff reviewed by aleksey long ago
  - get rid of LastEntryInSegment in HEAP_SEGMENT struct
  - Simplify code for page commit
  - Simplify code for splitting entries

svn path=/trunk/; revision=51757
2011-05-15 12:20:44 +00:00
Jérôme Gardou
7af9914ebb addedum to r51755 : as a general rule, use quotes when creating directories with spaces
svn path=/branches/cmake-bringup/; revision=51756
2011-05-15 12:11:13 +00:00
Jérôme Gardou
f050dea7d1 [CMAKE]
- create profiles directories for livecd

svn path=/branches/cmake-bringup/; revision=51755
2011-05-15 11:52:14 +00:00
Michael Martin
e5f521c90a [USBSTOR]
- Start implementing error handling.
- On errors use a worker thread to attempt a recovery. If successful restart the operation that failed.
- If STALL_PID is received reset the pipe of the device.
- Not entered into code path yet. WIP.

svn path=/branches/usb-bringup/; revision=51754
2011-05-15 11:23:16 +00:00
Jérôme Gardou
69fb88923a [CMAKE]
remove dependency to nonexistent target

svn path=/branches/cmake-bringup/; revision=51753
2011-05-15 10:02:46 +00:00
Michael Martin
f1ec4fbe16 [USBSTOR]
- USBSTOR_SendRequest: The buffer for read/write may not be NonPagedPool, which is documented as a requirement for using MmBuildMdlForNonPagedPool. Also locking the buffers pages is also not an option as the routine is called at DISPATCH_LEVEL.
It so happens that Irp->MdlAddress is valid for read/write operations. Use it instead of procedure above.
- Add a sanity check to make sure the Mdl does describe the transfer buffer.
Fixes IRQL_NOT_LESS_OR_EQUAL bugcheck in windows. These changes also may fixed writing to device.

svn path=/branches/usb-bringup/; revision=51752
2011-05-15 08:23:32 +00:00
Jérôme Gardou
35c4e5db52 [CMAKE]
- add livecd target

svn path=/branches/cmake-bringup/; revision=51751
2011-05-15 07:50:26 +00:00
Jérôme Gardou
9482663bde [CMAKE/ROSTESTS]
Addendum to 51749

svn path=/trunk/; revision=51750
2011-05-14 20:55:36 +00:00
Jérôme Gardou
91f3191275 [CMAKE]
- refactor a bit add_cd_file for more flexibility. Add FOR argument for specifying target cd images.

svn path=/branches/cmake-bringup/; revision=51749
2011-05-14 20:54:46 +00:00
Timo Kreuzer
e12ea18992 [NTOSKRNL]
Patch by Paolo Bonzini <bonzini [at] gnu [dot] org>
Fix implementation of ExInterlockedAddLargeStatistic
The old version wasn't really atomic.

See issue #6223 for more details.

svn path=/trunk/; revision=51748
2011-05-14 19:29:42 +00:00
Timo Kreuzer
c016e5d41e [CRT]
- Implement __chkstk_ms for x86 and amd64
- amd64 code is based on code by Kai Tietz and Richard Henderson
- x86 code is based on old __chkstk implementation and code by Kai Tietz and Richard Henderson
- Function is required by newer gcc versions

svn path=/trunk/; revision=51747
2011-05-14 19:12:09 +00:00
Giannis Adamopoulos
125af16c9b [uxtheme]
- Begin implementing handling WM_NCPAINT
- Evert time a draw operation is performed on the non client area, a DRAW_CONTEXT will be initialised in order to keep most used information about the drawing opoeration

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51746
2011-05-14 19:01:50 +00:00
Giannis Adamopoulos
0f8c8b4376 [uxtheme]
- Hook the same messages with win2003

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51745
2011-05-14 18:47:23 +00:00
Giannis Adamopoulos
bf1b368ec2 fix indentation
svn path=/branches/GSoC_2011/ThemesSupport/; revision=51744
2011-05-14 18:45:37 +00:00
Giannis Adamopoulos
1941ce58f7 Add some more undocumented definitions
svn path=/branches/GSoC_2011/ThemesSupport/; revision=51743
2011-05-14 18:41:39 +00:00
Matthias Kupfer
75b8d216e2 bring back progress bar for loading files
svn path=/trunk/; revision=51742
2011-05-14 18:32:59 +00:00
Giannis Adamopoulos
6bafc8acbe [uxtheme]
- Begin implementing ThemeHooksInstall, ThemeHooksRemove and ThemeInitApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51741
2011-05-14 18:31:47 +00:00
Giannis Adamopoulos
9ae5e880c0 - Improve user api hook definitions. Add prototype of RegisterUserApiHook for xp
- Add some helper macros

svn path=/branches/GSoC_2011/ThemesSupport/; revision=51740
2011-05-14 18:17:58 +00:00
Johannes Anderwald
be12088a55 [USBSTOR]
- Start implementing queued srb handling
- Implement SRB_FUNCTION_RELEASE_QUEUE, SRB_FUNCTION_FLUSH, SRB_FUNCTION_FLUSH_QUEUE
- WIP, not yet working perfectly

svn path=/branches/usb-bringup/; revision=51739
2011-05-14 18:09:00 +00:00
Rafal Harabien
51edd28a7a - Fix build
svn path=/trunk/; revision=51738
2011-05-14 16:01:54 +00:00
Timo Kreuzer
ef04b58c2e [CMAKE/NTOSKRNL]
Fix warnings

svn path=/branches/cmake-bringup/; revision=51737
2011-05-14 15:58:47 +00:00
Rafal Harabien
17dcf7d2e5 [UNIATA]
- Sync to 0.41b2
- Fixed bug with unnecessary call to AtapiEnableInterrupts() inside AtapiSendCommand() when DRQ is never asserted
- Added registry option AtapiSendDisableIntr to manage ATAPI command sending behavior. AFAIU, under VirtualBox it is unnecessary to disable interrupts around sending ATAPI commands.
- Implemented registry options for BUSY and DRQ timing adjustments.
- Added VirtualBox tuning option - VirtualBox value in registry. Sets timings and ATAPI (CD/DVD) related options to the most compatible values.
- Fixed bug with UDMA2 support on Intel ICH1/2/3/4/5 chips.
- Made some experimental changes in automatic slow-down algorithm. This code is rather old, but was not tested properly.
- Fixed bug with accessing SATA registers on Intel chips
- Many other fixes

svn path=/trunk/; revision=51736
2011-05-14 15:52:49 +00:00
Timo Kreuzer
ad38ca5072 [NETEVENT]
Forgot this change

svn path=/trunk/; revision=51735
2011-05-14 14:24:39 +00:00
Timo Kreuzer
4c1b4060da [NETEVENT]
Rename netevent.mc to neteventmsg.mc

svn path=/trunk/; revision=51734
2011-05-14 14:16:42 +00:00
Jérôme Gardou
34d5d94b0a [ROSTESTS/CMAKE]
- addendum to 51731

svn path=/trunk/; revision=51733
2011-05-14 14:03:44 +00:00
Amine Khaldi
8942524e2a [CMAKE]
* Addendum to the previous commit by Jerome, for cmake versions older than 2.8.3

svn path=/branches/cmake-bringup/; revision=51732
2011-05-14 13:52:40 +00:00
Jérôme Gardou
53fbd8e185 [CMAKE]
Completely refactor bootcd generation
  - one macro (à la cmake's install) to rule them all, to make your life simpler and have build files cleaner
  - Completely rehaul the bootcd tree : now you have in it some minimal reactos system
  - reflect those changes in setupldr
No livecd yet!

svn path=/branches/cmake-bringup/; revision=51731
2011-05-14 13:49:39 +00:00
Timo Kreuzer
620385670c [DWMAPI]
add names to dwmapi.spec stubs

svn path=/trunk/; revision=51730
2011-05-14 13:43:58 +00:00
Timo Kreuzer
69667a5f9b [SHELL32]
Owen Rudge <orudge at codeweavers dot com>:
Implement SHGetImageList
9db87f13d3
Fixes explorer++ main window
patch provided by igorko

svn path=/trunk/; revision=51729
2011-05-14 12:57:52 +00:00
Timo Kreuzer
6e735202f2 [AVIFIL32]
Merge resources back into 1 file

svn path=/trunk/; revision=51728
2011-05-14 12:28:40 +00:00
Timo Kreuzer
eafcfd1c7e [PSDK]
- stireg.h, wsipv6ok.h: Add missing newline
- hlguids.h, shlguid.h: add missing guids for MSVC
- winbase.h: add some missing WINBASEAPI modifiers
- winnt.h: create more portable definitions of GetCurrentFiber, move BitScanForward and BitScanReverse defintions out of __GNUC__ block

svn path=/trunk/; revision=51727
2011-05-14 11:44:45 +00:00
Timo Kreuzer
a4a5b0c6d3 [LIBXML2]
Fix compilation with MSVC

svn path=/trunk/; revision=51726
2011-05-14 11:15:51 +00:00
Timo Kreuzer
a5c65c3e3e [NOTEPAD]
enable Japanese resource file

svn path=/trunk/; revision=51725
2011-05-14 11:12:19 +00:00
Timo Kreuzer
3dd6590770 [COMCTL32]
Fix compilation with MSVC

svn path=/trunk/; revision=51724
2011-05-14 10:59:35 +00:00
Timo Kreuzer
06e9b8f16c [USER32]
Convert all resources to utf-8

svn path=/trunk/; revision=51723
2011-05-14 09:32:07 +00:00
Timo Kreuzer
41b76d4eca [NTOSKRNL]
Fix pathes of resources

svn path=/trunk/; revision=51722
2011-05-14 08:50:11 +00:00
Timo Kreuzer
0615e6a7be [NTOSKRNL]
Merge r51181 from cmake branch:
Move macro definition out of macro instantiation.
Fixes compilation with MSVC

svn path=/trunk/; revision=51721
2011-05-14 08:33:30 +00:00
Timo Kreuzer
03b3034b40 [MKHIVE]
Merge msvc fixes from cmake branch

svn path=/trunk/; revision=51720
2011-05-14 08:29:48 +00:00
Rafal Harabien
0111880683 [RAPPS]
- Merge rapps changes from CMake branch

svn path=/trunk/; revision=51719
2011-05-13 22:43:04 +00:00
Rafal Harabien
ee7e7b3462 [CMAKE/RAPPS]
* Fix Swedish language

svn path=/branches/cmake-bringup/; revision=51718
2011-05-13 22:36:19 +00:00
Rafal Harabien
4f3e273f24 [CMAKE/RAPPS]
* Readd pragma code_page removed in r51716

svn path=/branches/cmake-bringup/; revision=51717
2011-05-13 22:31:18 +00:00
Rafal Harabien
7f0134be4f [CMAKE/RAPPS]
- Fix ja-JP encoding

svn path=/branches/cmake-bringup/; revision=51716
2011-05-13 22:12:02 +00:00
Eric Kohl
8c50d36968 [DEVMGMT]
- Set the focus for the treeview when the main window gets the focus.
- Select the root item after the devices tree has been built.
These changes enable the user to navigate the device tree using the keyboard.

svn path=/trunk/; revision=51715
2011-05-13 21:09:56 +00:00
Timo Kreuzer
7da47d32de revert part of r51708
svn path=/trunk/; revision=51714
2011-05-13 20:43:21 +00:00
Timo Kreuzer
fb553406c9 [CRT]
Merge r51273 from cmake branch:
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not

svn path=/trunk/; revision=51713
2011-05-13 20:21:58 +00:00
Gabriel Ilardi
e37a4989a1 [msi]
- Add post 51711 msi_ros.diff

svn path=/trunk/; revision=51712
2011-05-13 20:21:27 +00:00
Timo Kreuzer
c22c58fe11 [MSI]
Merge r50719 from cmake branch:
- Fix reource files (strings must be in one line)

svn path=/trunk/; revision=51711
2011-05-13 20:12:28 +00:00
Timo Kreuzer
7f6b467b7d Remove svn:mergeinfo property
svn path=/trunk/; revision=51709
2011-05-13 20:01:51 +00:00
Timo Kreuzer
1a70567bcd [FREELDR/HAL/NTOSKRNL]
Merge asm changes from cmake branch. No code change, only MSVC compatibility fixes


svn path=/trunk/; revision=51708
2011-05-13 19:51:09 +00:00
Timo Kreuzer
1034d441f3 [CRT]
Merge r50693 from cmake banch:
_CxxThrowException is stdcall, not cdecl.

svn path=/trunk/; revision=51707
2011-05-13 19:37:49 +00:00
Timo Kreuzer
bfd63b8167 [GENINC]
Merge geninc tool from cmake branch

svn path=/trunk/; revision=51706
2011-05-13 19:19:05 +00:00
Timo Kreuzer
d82d72fa6d [CMAKE]
revert changes to the kernel's linker script, its not used in cmake branch

svn path=/branches/cmake-bringup/; revision=51705
2011-05-13 19:17:10 +00:00
Timo Kreuzer
8800266b20 [WIDL]
Update widl_ros.diff
The change was done in r49282 in cmake branch and mysteriously made it into trunk in r50063, which is a wine sync, but wine doesn't have that code.

svn path=/trunk/; revision=51704
2011-05-13 19:13:53 +00:00
Amine Khaldi
7e294d1eab [CMAKE]
* Partially revert r50224 as the current resource handling doesn't suffer from the iconv issue on unix.

svn path=/branches/cmake-bringup/; revision=51703
2011-05-13 17:53:03 +00:00
Amine Khaldi
2bad78f216 * Reduce difference to the cmake branch, MSVC fixes.
svn path=/trunk/; revision=51702
2011-05-13 17:16:08 +00:00
Amine Khaldi
9d49f811fd * Reduce difference to the cmake branch.
svn path=/trunk/; revision=51701
2011-05-13 16:29:09 +00:00
Eric Kohl
509db7c0d0 [UMPNPMGR]
Implement parts of PNP_CreateDevInst.

svn path=/trunk/; revision=51700
2011-05-13 15:56:50 +00:00
Giannis Adamopoulos
683a4dc336 [win32k]
- Return the correct menu bar rect in GetMenuBarInfo

svn path=/trunk/; revision=51699
2011-05-13 15:36:25 +00:00
Gabriel Ilardi
21434a4c28 [kbdit]
- Fix the "divide" key. Thanks to Giannis Adamopoulos for the help.
See issue #6250 for more details.

svn path=/trunk/; revision=51698
2011-05-13 15:16:49 +00:00
Eric Kohl
7db0796ea8 [SETUPAPI]
CM_Create_DevNode_ExW: Copy the device id string into a local buffer before passing it to PNP_CreateDevInst because its 2nd argument is an 'in out' string. Using a writable string buffer prevents exceptions in case the device id passed to CM_Create_DevNode_ExW is a string constant.

svn path=/trunk/; revision=51697
2011-05-13 15:15:40 +00:00
Giannis Adamopoulos
71fffa95de [win32k]
- Fix braindead logic that caused GetMenuItemRect to fail in every case

svn path=/trunk/; revision=51696
2011-05-13 14:47:36 +00:00
Johannes Anderwald
3f8c058a07 [USBSTOR]
- Start implementing write command
- Disabled for now as it causes corruptions

svn path=/branches/usb-bringup/; revision=51695
2011-05-13 14:44:24 +00:00
Johannes Anderwald
89aa9d3264 [USBSTOR]
- Fix bug in read command, which uses wrong format. LBA address is stored in the CDB10 struct
- Don't build the mdl for nonpaged pool if the driver passes an mdl (i/o paging requests)
- Usbstor can now list disk contents and browse files when used in Windows XP
- Need to implement SCSIOP_WRITE to write files

svn path=/branches/usb-bringup/; revision=51694
2011-05-13 14:04:38 +00:00
Johannes Anderwald
eb228159bc [USBSTOR]
- Handle SCSIOP_MEDIUM_REMOVAL
- Handle paging i/o requests. These request don't provide a data buffer in the srb, but the buffer is stored in the irp' mdl
- Fix the hack for unimplemented Mode Sense command
- Usbstor now completes initializes and receives read requests
- Still need to fix read request, as Windows XP fails to recognize the disk format, WIP

svn path=/branches/usb-bringup/; revision=51693
2011-05-13 13:37:50 +00:00
Gabriel Ilardi
73aa4fa2be [input]
- Fix an Italian typo spotted by r3ddr4g0n

svn path=/trunk/; revision=51692
2011-05-13 13:25:44 +00:00
Michael Martin
98ed611448 [USBSTOR]
- Add a check at USBSTOR_FdoHandleStartDevice to make sure the device uses Bulk Transfers.
- Use macros for initializing the Urbs. The macros ensure that the proper fields of the URB are set correctly.
Fixes failing of getting device descriptor and getting devices BlockLength.


svn path=/branches/usb-bringup/; revision=51691
2011-05-13 09:14:28 +00:00
Giannis Adamopoulos
c043e7495b [win32k]
- Dereference the SMWP object before deleting it. Fixes handle leak

svn path=/trunk/; revision=51690
2011-05-13 08:34:24 +00:00
Giannis Adamopoulos
c3dc777c91 [win32k]
- When we run out of user handles show count of event and SMWP objects

svn path=/trunk/; revision=51689
2011-05-13 08:01:11 +00:00
Michael Martin
9d7751a2f6 [USBHUB_NEW]
- Only get the string descriptors if they are available. Fixes crash when using usb mouse and keyboards in windows.

svn path=/branches/usb-bringup/; revision=51688
2011-05-12 23:31:32 +00:00
Giannis Adamopoulos
3e28bffb7a [desk cpl]
- Properly apply system metrics

svn path=/trunk/; revision=51685
2011-05-12 16:49:50 +00:00
Michael Martin
76310d7679 [USBEHCI_NEW]
- Modify BuildBulkTransferQueueHead to support TransferBufferLengths larger than PAGE_SIZE * 5.
- Acquire a SpinLock before adding QueueHeads to AsyncList and PendingList.
- Dont request a new QueueHead for incomplete transfers in QueueHeadCompletion, as the memory for the just completed QueueHead has not been released yet. Doing so overwrites the m_TransferDescriptor[x] members with new address resulting in memory leaks. Instead request a new QueueHead after the QueueHead has been freed in QueueHeadCleanup.
- Fix a bug where a QueueHead was removed from the m_CompletedRequestAsyncList instead of the m_PendingRequestAsyncList.
- Temporary hackfix InternalCalculateTransferLength to return the TransferBufferLength. This hack will be removed as soon as possible.
- With these changes the hub and ehci driver allow viewing content of and transfers to/from usb disks.

svn path=/branches/usb-bringup/; revision=51684
2011-05-12 13:35:06 +00:00
Michael Martin
8d98341ac8 [USBHUB_NEW]
- Implement IOCTL_INTERNAL_USB_GET_PORT_STATUS.
- Fixes to comments




svn path=/branches/usb-bringup/; revision=51683
2011-05-12 12:58:07 +00:00
Giannis Adamopoulos
a9aea243ea [win32k]
- Implement counting user objects per process

svn path=/trunk/; revision=51682
2011-05-12 08:00:11 +00:00
Eric Kohl
5c840249e9 [IOLOGMSG]
Add iologmsg.dll. It will be used to log IO events.

svn path=/trunk/; revision=51681
2011-05-12 06:40:31 +00:00
Giannis Adamopoulos
6dd99f1f9b [explorer]
- Reduce flicker

svn path=/trunk/; revision=51680
2011-05-11 22:35:56 +00:00
Giannis Adamopoulos
6a9b0ac003 [regedit]
- Reduce flicker

svn path=/trunk/; revision=51679
2011-05-11 21:34:47 +00:00
Giannis Adamopoulos
326accb790 [eventvwr]
- Reduce flicker

svn path=/trunk/; revision=51678
2011-05-11 21:33:27 +00:00
Giannis Adamopoulos
ff0258baab [rapps]
- Don't use CS_HREDRAW and CS_VREDRAW for the main window
- Reduces flicker

svn path=/trunk/; revision=51677
2011-05-11 20:54:33 +00:00
James Tabor
537a1dcc7f [User32]
- DispatchMessage does not allow pointers to be passed forward so need to check for non synchronous messages. Added the same check for the other functions in User32 leaving the rest to be checked in Win32k.
- Add the timer callback validation check.

svn path=/trunk/; revision=51676
2011-05-11 19:59:03 +00:00
Giannis Adamopoulos
585c628014 [shell32]
- Don't create the ShellView class with the CS_HREDRAW and CS_VREDRAW styles
- Should reduce flicker in explorer

svn path=/trunk/; revision=51674
2011-05-11 19:19:03 +00:00
Johannes Anderwald
b0b03bfdd1 [USBSTOR]
- Rewrite scsi method to act asynchronous

svn path=/branches/usb-bringup/; revision=51673
2011-05-11 03:49:15 +00:00
Michael Martin
4f76ebe078 [USBHUB_NEW]
- Save PortNumber in child device extensions as its needed when PNP request device capabilities.
- Handle IOCTL_INTERNAL_USB_SUBMIT_URB request by creating a new Irp and passing the Urb down to the miniport. 
- Now working with our ehci driver, we at least see a usb driver and can browse directory in Windows, though doing so results in assert as ehci doesnt support transfers over 5 Pages yet. Fix coming soon.



svn path=/branches/usb-bringup/; revision=51672
2011-05-11 02:25:11 +00:00
Johannes Anderwald
fc298e51a5 [USBSTOR]
- Partly implement test unit command

svn path=/branches/usb-bringup/; revision=51671
2011-05-10 23:26:56 +00:00
Eric Kohl
72c25cca5a [EVENTLOG]
Log product info upon startup.

svn path=/trunk/; revision=51670
2011-05-10 20:19:14 +00:00
Gabriel Ilardi
58b0d6b369 [KERNEL32_WINETEST]
Sam Arun Raj Seeniraj: Update kernel32 winetests for dos device.
See bug 993 for details.

svn path=/trunk/; revision=51669
2011-05-10 16:11:30 +00:00
Aleksey Bragin
a02b3fc01f [NTDLL]
- Result of LdrQueryImageFileExecutionOptions() shouldn't be used as a return status. Always reset it to STATUS_SUCCESS whatever the function returns.

See bug #6231 for more details.

svn path=/trunk/; revision=51668
2011-05-10 16:05:59 +00:00
Aleksey Bragin
037bb97747 Sam Arun Raj Seeniraj:
[WIN32CSR.DLL]
- Removed previous hack in CsrDefineDosDevice() that was stripping off extra trailing path separators.

[SUBST.EXE]
- The help message was not show aligned properly, fixing that.

See issue #993 for more details.

svn path=/trunk/; revision=51667
2011-05-10 15:48:54 +00:00
Aleksey Bragin
9d03d12745 [NTOSKRNL]
- Sam Arun Raj Seeniraj: ObpLookupObjectName() used to reparse endlessly when a symlink points to itself, preventing this by limiting number of reparse attemtps.
See issue #993 for more details.

svn path=/trunk/; revision=51666
2011-05-10 15:43:55 +00:00
Aleksey Bragin
5f617a7c44 [NTOSKRNL]
- Make ObpParseSymbolicLink properly handle the case when target path has a trailing path separator. Based on findings by Samarunraj.
See issue #993 for more details.

svn path=/trunk/; revision=51665
2011-05-10 15:09:36 +00:00
Sylvain Petreolle
e9fe058258 [CMAKE]
Dereference non existing targets : 
buildno_header, kernel_zw, kernel_napi, subsystem_napi

Spotted by msbuild.

svn path=/branches/cmake-bringup/; revision=51664
2011-05-10 13:15:51 +00:00
Eric Kohl
1335fefcd9 [NTOSKRNL]
Fix two typos, one spotted by Gabriel Ilardi and the other one spotted by me.

svn path=/trunk/; revision=51663
2011-05-10 12:31:11 +00:00
Gabriel Ilardi
73be4ca375 [USETUP]
- Fix Italian formatting.

svn path=/trunk/; revision=51661
2011-05-10 09:12:13 +00:00
Eric Kohl
9263e4e589 [NETEVENT]
Add some eventlog and service manager events.

svn path=/trunk/; revision=51659
2011-05-09 14:42:10 +00:00
Gabriel Ilardi
8ccdbd535c [winine]
- Read also the shift key state patch by Carlo Bramini.
See issue #6238 for more details.

svn path=/trunk/; revision=51658
2011-05-09 11:24:10 +00:00
Michael Martin
db5142f32f [USBHUB_NEW]
- Forgotten change in 51641. Fixes build of usbhub.

svn path=/branches/usb-bringup/; revision=51657
2011-05-09 10:48:00 +00:00
Gabriel Ilardi
51534cffd8 [explorer]
- Run the dialog window in a new thread patch by Mikhail Denisenko <denisenkom AT gmail DOT com>
See issue #3339 for more details.

svn path=/trunk/; revision=51656
2011-05-09 10:32:49 +00:00
Timo Kreuzer
4e8ffdfe77 [PSDK]
Improve MAKEINTRESOURCE macros to silence warnings on overzealous gcc versions.
See issue #5343 for more details.

svn path=/trunk/; revision=51655
2011-05-09 08:15:26 +00:00
Johannes Anderwald
fc34f0177d [USBSTOR]
- Start implementing SCSI read

svn path=/branches/usb-bringup/; revision=51654
2011-05-08 22:18:55 +00:00
Eric Kohl
52077d8306 [NTOSKRNL]
Implement CmpSetVersionData: Set the CurrentType value in the HKLM\Software\Microsoft\Windows NT\CurrentVersion key.

svn path=/trunk/; revision=51653
2011-05-08 21:37:00 +00:00
Olaf Siejka
fb53a8bc54 - Polish translation for power management.
- Minor typo in Themes translation

svn path=/trunk/; revision=51652
2011-05-08 20:39:32 +00:00
Gabriel Ilardi
19a66b2ac5 Italian & Spanish translation strings for power management.
Spanish color schemes udpate.

svn path=/trunk/; revision=51651
2011-05-08 20:25:32 +00:00
Matthias Kupfer
6dc2abebc0 - translation strings for power management prepared
- initial German translation added
- other languages need to be translated

svn path=/trunk/; revision=51650
2011-05-08 19:50:28 +00:00
Johannes Anderwald
45f27e8b8c [USBEHCI_NEW]
- Fix retrieving drive capacity
- Fix ufi command structures

svn path=/branches/usb-bringup/; revision=51649
2011-05-08 19:33:41 +00:00
Matthias Kupfer
97725af2bf patch by Igor Paliychuk <mansonigor at gmail dot com>:
- ru and uk translations for color scheme list
- ru and uk translation updates for regedit

svn path=/trunk/; revision=51645
2011-05-08 14:52:29 +00:00
Matthias Kupfer
b569918cb8 try to commit utf-16 as text (what it actually is)
svn path=/trunk/; revision=51644
2011-05-08 13:42:46 +00:00
Rafal Harabien
5c7c95f619 [DESK]
* Fix scheme selection in Czech, Greek, French, Hungarian, Italian, Dutch, Polish, Swedish and Ukrainian languages.

svn path=/trunk/; revision=51643
2011-05-08 13:16:30 +00:00
Michael Martin
741b7ea0aa [USBEHCI_NEW]
- When clearing feature port reset, remove the flag from Change and if the port is hardware enabled set the enable flag in Status. 
- When checking port status, if Change has any flags set an SCE request most be completed. Verified while writing usbhub driver in xp.
- Probably fixes a case where an endless loop of completing SCE requests.

svn path=/branches/usb-bringup/; revision=51642
2011-05-08 12:42:15 +00:00
Michael Martin
3063e3bf5e [USBHUB_NEW]
- Implement constructing CompatibleIds string using device descriptor. However, if the Class of the device descriptor is 0, then Class, SubClass and Prot which make up this string must come from the Interface.
- Change Ids and Descriptions to Unicode Strings. 
- Move the creating of Id strings to one place, CreateDeviceIds, and called it at device creation.

svn path=/branches/usb-bringup/; revision=51641
2011-05-08 12:24:26 +00:00
Matthias Kupfer
ba7640b510 - some corrections to color schemes default
svn path=/trunk/; revision=51640
2011-05-08 10:59:54 +00:00
Olaf Siejka
940852e8d1 Polish translation of Theme list. Patch by Wojciech Kozlowski, corrections and minor modifications by me.
See issue #6233 for more details.

svn path=/trunk/; revision=51639
2011-05-08 10:26:44 +00:00
Gabriel Ilardi
5efd96cf71 re-add the assert, bug 5320 is still here, my fault, sorry.
svn path=/trunk/; revision=51638
2011-05-08 09:27:31 +00:00
James Tabor
25a579bc76 - Bug 5320 was closed.
svn path=/trunk/; revision=51637
2011-05-07 23:44:30 +00:00
Gabriel Ilardi
acbd4acb05 Italian translation update for color schemes.
svn path=/trunk/; revision=51635
2011-05-07 21:56:10 +00:00
Matthias Kupfer
ccd4373e40 - translation strings for color schemes prepared
- initial German translation added
- other languages need to be translated

svn path=/trunk/; revision=51634
2011-05-07 21:23:20 +00:00
Thomas Faber
e1494c734b [KMTEST]
Allow kmtest/kmtloader building with CMake

svn path=/branches/GSoC_2011/KMTestSuite/; revision=51633
2011-05-07 20:32:27 +00:00
Amine Khaldi
6c758f20d0 [TCPIP DRIVER]
* Integrate the work that has been done in tcp-rewrite-branch.

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=51629
2011-05-07 19:53:38 +00:00
Thomas Faber
9d307acbbd [KMTestSuite]
Update to HEAD

svn path=/branches/GSoC_2011/KMTestSuite/; revision=51628
2011-05-07 19:47:38 +00:00
Hervé Poussineau
eac4b331b0 [smss] Display program which failed to run
svn path=/trunk/; revision=51624
2011-05-07 16:31:49 +00:00
Olaf Siejka
91fb429184 [REGEDIT]
- Polish translation update

svn path=/trunk/; revision=51623
2011-05-07 16:23:44 +00:00
Michael Martin
54c5af9906 [USBHUB_NEW]
- Some devices implement a default Language, LangId of 0. Some do not. Use LangId 0x0409 (English) until LangId is implemented.
- Remove an unused variable.

svn path=/branches/usb-bringup/; revision=51622
2011-05-07 16:10:09 +00:00
Gabriel Ilardi
21fa080178 [regedit]
- Prompt before importing from the command line.
- Inform the user about successful import from the command line and the menu.
- Updated Spanish & Italian translations.
See issue #6230 for more details.

svn path=/trunk/; revision=51621
2011-05-07 14:53:32 +00:00
Michael Martin
e9fe271ad6 [USBHUB_NEW]
- The lower level driver completes the SCE IRP whenever the change state has been modified for a port. When handling the SCE IRP completion only check for flags in change state. The Change flags must be cleared else the hub driver will get non stop SCE IRP completions.
- Allocate IRP from Pool vice calling IoAllocateIrp. Dont free the IRP in the completion routine as the port driver, oddly, frees them.
- GetUsbDeviceDescriptor: Remove use of MDL and use only buffer instead to make our new usbehci happy.
- When calling the interface routines, correctly use the BusContext returned from the interface instead of the RootHubPdo. This worked on windows as it just happened they were the same.
- Implement RootHubInitCallbackFunction, which only job currently is to send the first SCE IRP.
- For Start Device for child device objects fake success for now. Will be implemented later.
- Implement returning IRP_MN_QUERY_IDs, IRP_MN_QUERY_DEVICE_TEXTs and IRP_MN_QUERY_BUS_INFORMATION.
- Add basic handling for IRP_MJ_POWER.
- Misc code changes.
 

svn path=/branches/usb-bringup/; revision=51620
2011-05-07 14:49:02 +00:00
Gabriel Ilardi
5c49122627 [regedit]
- Fix formatting. No code changes.

svn path=/trunk/; revision=51619
2011-05-07 14:43:49 +00:00
Sylvain Petreolle
e02e2d6316 [MSCONFIG]
Fix typo in startuppage.h, this fixes build without compilation units.


svn path=/trunk/; revision=51617
2011-05-07 12:45:59 +00:00
Amine Khaldi
b2a42bc17c [KERNEL32/NLS]
* Sync nls files to wine 1.3.19
* Escape some characters to fix MSVC build
* Patch by Igor Paliychuk <mansonigor at gmail com>

svn path=/trunk/; revision=51616
2011-05-07 11:22:08 +00:00
James Tabor
c5aa7bac2e [User32]
- Add missing wine sync for system command sub functions.

svn path=/trunk/; revision=51615
2011-05-07 02:59:20 +00:00
Gregor Schneider
de2892249a [paint] Fill the whole miniature window by using stretchblt
svn path=/trunk/; revision=51614
2011-05-06 22:02:29 +00:00
Gregor Schneider
acf317b8b8 [paint] Hide selection window and clear undo history when starting a new painting
See issue #6226 for more details.

svn path=/trunk/; revision=51612
2011-05-06 18:32:45 +00:00
Gregor Schneider
ac4e2c2ab4 [paint] Implement cut function
See issue #6224 for more details.

svn path=/trunk/; revision=51611
2011-05-06 18:00:41 +00:00
Johannes Anderwald
5573560a44 [USBSTOR]
- Implement SCSI mode sense

svn path=/branches/usb-bringup/; revision=51609
2011-05-06 17:23:19 +00:00
Johannes Anderwald
ff67bee091 [USBSTOR]
- Implement retrieving drive capacity
- Use constant from scsi.h instead of defining own format
- Don't reset returned parameters length to zero, as ioctl handler might set it


svn path=/branches/usb-bringup/; revision=51608
2011-05-06 16:25:01 +00:00
Johannes Anderwald
5c9e645604 [USBSTOR]
- Implement retrieving adapter descriptor (IOCTL_STORAGE_QUERY_PROPERTY)
- Implement retrieving device descriptor (IOCTL_STORAGE_QUERY_PROPERTY)
- Next Function to implement is SRB_FUNCTION_EXECUTE_SCSI

svn path=/branches/usb-bringup/; revision=51607
2011-05-06 13:29:27 +00:00
Ged Murphy
705706e05f Create a branch for Thomas Faber's work on creating a kernel mode test suite for the Google Summer of Code project
svn path=/branches/GSoC_2011/KMTestSuite/; revision=51606
2011-05-06 13:25:33 +00:00
Gabriel Ilardi
d0b8850835 [SHELL32]
Update Italian & Spanish translations.

svn path=/trunk/; revision=51604
2011-05-05 21:28:57 +00:00
Olaf Siejka
036acd8c8c [SHELL32]
- Translation update

svn path=/trunk/; revision=51602
2011-05-05 21:09:37 +00:00
Gregor Schneider
c99f378549 [charmap] [eventvwr] [reactos] [syssetup]
- Igor Paliychuk <mansonigor at gmail dot com>: Update RU and UA resources

svn path=/trunk/; revision=51600
2011-05-05 20:36:07 +00:00
Eric Kohl
45e1070d6d [EVENTLOG]
Fix the calculation of the number of event records.

svn path=/trunk/; revision=51598
2011-05-05 20:27:05 +00:00
Gregor Schneider
e2d00b9f53 [shell32]
* Igor Paliychuk <mansonigor at gmail dot com>:
- Remove duplicate string and add some missing resources
- Increase buffer sizes in FolderOptionsFileTypesDlg
- Update RU and UA translations
* Myself: update German translation

svn path=/trunk/; revision=51596
2011-05-05 20:22:06 +00:00
Gregor Schneider
c2fdf7156e [libpng] Vincenzo Cotugno: update libpng to 1.52
See issue #6034 for more details.

svn path=/trunk/; revision=51595
2011-05-05 19:43:44 +00:00
Gregor Schneider
40fc5d623a [fonts]
- Update Dejavu fonts & documentation to version 2.33 (by Jon Voris, bug #6106)
- Update GNU FreeFonts & documentation to version 2010-09-19 (by Jon Voris, bug #6115)
- Update 3rdparty version info including recent Freetype sync

svn path=/trunk/; revision=51594
2011-05-05 18:30:18 +00:00
Gregor Schneider
720bbb3f51 [ping] Return 1 if an error occurs during parameter parsing or socket setup
See issue #6206 for more details.

svn path=/trunk/; revision=51593
2011-05-05 18:12:05 +00:00
Gregor Schneider
5ca533b988 [shell32] Re-add spaces to German translation
svn path=/trunk/; revision=51592
2011-05-05 17:54:32 +00:00
James Tabor
8273f88beb [User32|Win32k]
- Standardize keyboard flags for the input thread and send input. Next round will update the rest of user32 defwnd.c, combo.c and appswitch.c.
- Add the missing keyboard flags needed for menu operations for in-user applications.
- Setup a function to be used to get, set and clear queue flags of special use for User32 functions.

svn path=/trunk/; revision=51587
2011-05-05 12:43:31 +00:00
Gabriel Ilardi
c10792a4a1 [shell32]
Folder options:
- Load text from language file.
- Fill in the extension and description.
Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>
- Fix an Italian string.
See issue #6208 for more details.

svn path=/trunk/; revision=51586
2011-05-05 12:06:34 +00:00
Johannes Anderwald
c5af801a10 [USBSTOR]
- Rename common device extension, it conflicts with classpnp.h header structures
- Start implementing disk ioctls
- Implement SRB_FUNCTION_CLAIM_DEVICE, SRB_FUNCTION_RELEASE_DEVICE

svn path=/branches/usb-bringup/; revision=51585
2011-05-05 00:39:00 +00:00
Johannes Anderwald
dd5249b4b6 [USBEHCI_NEW]
- Silence debug flood

svn path=/branches/usb-bringup/; revision=51584
2011-05-05 00:35:56 +00:00
James Tabor
ae63513829 [Win32k]
- Move hook call close to the keyboard message post. This allows the registering of Aly keys before the hook call. This fixes all but one GetKeyState Api Test.
- Fix GetAsync/KeyState error codes and the return for GetAsyncKeyState. See http://appdb.winehq.org/objectManager.php?sClass=version&iId=8516&iTestingId=13644
- Fix TranslateMessage, check for window and use the window pti for re-posting to message queue.
- Peeking hardware queue should be the same as other Peek queue.

svn path=/trunk/; revision=51583
2011-05-04 23:37:35 +00:00
Johannes Anderwald
c071ae0f59 [USBSTOR]
- Make DeviceId generation to match ms usbstor
- Don't hardcode the device type in USBSTOR_PdoHandleQueryHardwareId
- Don't hardcode device type in USBSTOR_PdoHandleQueryCompatibleId
- Hackfix generation of instance id
- Add comments
- Cleanup code
- Usbstor now receives ioctl from disk.sys

svn path=/branches/usb-bringup/; revision=51582
2011-05-04 23:14:32 +00:00
Michael Martin
e84208fd18 [USBHUB_NEW]
- Add UsbDeviceHandle to child device extensions structure to be passed with URB requests.
- Reimplement the Worker Thread DeviceStatusChangeThread called on SCE completion. Each SetFeature and ClearFeature resend SCE request.
Only create the usb child device if the PortStatusChange member of the device extensions was modified.
- Implement CreateUsbChildDeviceObject used for creating a deviceobject for the USB device and initializing it.
- Implement GetUsbStringDescriptor for getting DeviceId, TextDescription and InstanceId from USB Device.
- Move the initial QueryStatusChangeEndpoint to after the hub device receives start pnp.
- USBHUB driver is now back to the same functionality of previous version. Showing the device wizard for connected devices.

svn path=/branches/usb-bringup/; revision=51581
2011-05-04 21:45:55 +00:00
Johannes Anderwald
8d93646c2d [USBSTOR]
- Rewrite hardware id / instance id matching
- Implement support for compatible id
- UsbStor still not attached to disk.sys, needs more research on how to get this done

svn path=/branches/usb-bringup/; revision=51580
2011-05-04 20:19:33 +00:00
Pierre Schweitzer
dd5eeec0f9 [DESK]
Fix & complete French translation

svn path=/trunk/; revision=51578
2011-05-04 17:33:08 +00:00
Gabriel Ilardi
0b6d767a29 [LIBXML2]
- Update to version 2.7.8. Patch by Carlo Bramini.
- Installed and booted successfully to the desktop. Tested
abiword 2.6.4 and FF 2.0.0.20.

See issue #4988 for more details.

svn path=/trunk/; revision=51577
2011-05-04 15:48:34 +00:00
Michael Martin
0fe38c839b [USBHUB_NEW]
- Change parameter name for DeviceObject in functions to clearify which device object is to received IRPs.
- Fix a typo in GetPortStatusAndChange that caused the function to return nothing for status and change.
- Call QueryStatusChangeEndpoint to send the first SCE request in Query Bus Releations.
- Complete implementation of StatusChangeEndpointCompletion. Queue a work item for DeviceStatusChangeThread, which will be used to initialize the usb device and create related device objects.



svn path=/branches/usb-bringup/; revision=51576
2011-05-04 12:58:42 +00:00
Johannes Anderwald
062111f2e1 [USBSTOR]
- Don't free device descriptor if it failed to acquire it
- Don't move out of usb configuration array. Found by special pool
- Fix bug when storing interface information which lead to a overwrite
- Implement retrieving generic type for device
- Fix bugs in QueryDeviceId
- Implement querying hardware ids
- Implement querying instance ids
- With these changes, usbstor now initializes and create pdo, which is also enumerated
- Needs more code / fixes so that disk.sys attaches to usbstor
- WIP

svn path=/branches/usb-bringup/; revision=51575
2011-05-04 12:33:01 +00:00
James Tabor
0c937e4c37 [User32]
- Fix loop when using arrow keys in menu mode, other miscellaneous code changes.

svn path=/trunk/; revision=51574
2011-05-04 12:18:57 +00:00
Johannes Anderwald
11ca3bd492 [USBEHCI_NEW]
- Fix warnings
- Fix mingw build

svn path=/branches/usb-bringup/; revision=51573
2011-05-04 12:09:07 +00:00
Johannes Anderwald
c2b34a98be [USBEHCI_NEW]
- Invoke status change callback at passive level
- Fill out usb descriptor struct instead passing everything in char array
- Use 1 byte interrupt endpoint packet size for hub for now
- Fill in interface information when SelectConfiguration request is passed. Fixes sce callback and pool corruptions
- Return device descriptor in USBHI_QueryDeviceInformation
- Tested in WinXP with special pool enabled & overrun support

svn path=/branches/usb-bringup/; revision=51572
2011-05-04 11:49:00 +00:00
James Tabor
40222f1c75 [Win32k]
- Move up the chain to convert F10 to system key mode before going into the queue, so when in menu tracking, the message can be removed and processed, see bug 1009.

svn path=/trunk/; revision=51571
2011-05-04 01:31:47 +00:00
Michael Martin
9cbc4f8f60 [USBHUB_NEW]
- Add UsbHub_New to build.



svn path=/branches/usb-bringup/; revision=51570
2011-05-04 01:08:37 +00:00
Michael Martin
af70a910fb [USBHUB_NEW]
- Start work on reimplementing UsbHub driver.
- Implement SubmitRequestToRootHub, QueryStatusChangeEndpoint, QueryInterface, GetPortStatusAndChange, SetPortFeature and ClearPortFeature.Handle QueryBusRelations.
- Partially implement PNP handling for FDO. When starting the device get all the information about the RootHub the driver will need and enable Power on all ports.
- Partially implement PNP handling for PDO, QueryId and QueryDeviceText.
- WIP



svn path=/branches/usb-bringup/; revision=51569
2011-05-04 01:07:21 +00:00
Gregor Schneider
fd8c53e19c [explorer] Remove debug outputs added in r51524
svn path=/trunk/; revision=51568
2011-05-03 21:05:41 +00:00
Johannes Anderwald
7821a805ef [USBSTOR]
- Implement retrieving string device type from SCSI device type
- Handle BusQueryDeviceId
- Implement support routines for sending CBW / CSW / Data
- Implement retrieving device type (SCSI inquiry request)
- WIP

svn path=/branches/usb-bringup/; revision=51567
2011-05-03 19:40:03 +00:00
Gabriel Ilardi
a3c6e37bce [win32k]
- Handle font height == 0 also in TextIntGetTextExtentPoint (bug 5305)
- Remove hardcoded font height (11) and replace it with 
the default font height from the device context by Timo.

svn path=/trunk/; revision=51566
2011-05-03 14:55:52 +00:00
James Tabor
82189efb3a - Turn on User32 msg test_menu_messages. The Alt-E/F keys work now. This is what the test is for. WM_SYSCHAR is translated but not being passed back to Alt-Space and friends in defwnd.c. These applications need to be reexamined to clarify this issue. Notepad accelerator keys work now but Alt-E/F/Space etc do not. Referencing base bug 1091.
svn path=/trunk/; revision=51565
2011-05-03 02:01:59 +00:00
James Tabor
b221e005e6 Turn on test_accelerators.
svn path=/trunk/; revision=51564
2011-05-03 00:21:08 +00:00
Johannes Anderwald
991d02daa5 [USBEHCI_NEW]
- Remove function declaration
[USBSTOR]
- Start on usbstor driver (USB Mass Storage Driver)
- Implement reading device descriptor / configuration descriptor
- Implement scanning of configuration descriptor for bulk in / bulk out endpoints
- Implement selecting configuration and interface and verify selected interface
- Implement reading max lun and create child device object for each lun
- Handle PnP requests for functional device object
- Implement support routines to send urb's to lower device object (usbhub)
- Start implementing PDO routines

svn path=/branches/usb-bringup/; revision=51563
2011-05-03 00:15:23 +00:00
James Tabor
7aadf33a61 [Win32k]
- Fix TranslateAccelerator and added the missing routines. User32 wine msg test_accelerators works.
- Test application: http://www.transmissionzero.co.uk/computing/win32-apps-with-mingw/

svn path=/trunk/; revision=51562
2011-05-02 22:44:48 +00:00
Gregor Schneider
68e29fb6fc [libjpeg] Forgotten files from r51559
svn path=/trunk/; revision=51561
2011-05-02 21:01:14 +00:00
Rafal Harabien
f4e0b88a0a [KERNEL32]
* Revert 51485. It needs more work.

svn path=/trunk/; revision=51560
2011-05-02 20:56:02 +00:00
Gregor Schneider
4fd826df1f [libjpeg] Update to version 8c
See issue #6022 for more details.

svn path=/trunk/; revision=51559
2011-05-02 20:13:40 +00:00
Eric Kohl
ec3f21cfa2 [EVENTVWR/EVENTLOG]
Fix a double off-by-one bug:
- The eventlog service was reporting one event more than was available (+1).
- The event viewer did not display the latest event from the eventlog service (-1).

See issue #6182 for more details.

svn path=/trunk/; revision=51558
2011-05-02 19:38:23 +00:00
Matthias Kupfer
702353b092 firefox4 added
svn path=/trunk/; revision=51557
2011-05-02 17:32:43 +00:00
Rafal Harabien
94aaa3b4d5 [TASKMGR]
* Don't compare NTSTATUS to NO_ERROR. Use NT_SUCCESS macro instead. Spotted by dmex.

svn path=/trunk/; revision=51556
2011-05-02 16:45:41 +00:00
Amine Khaldi
b8567ca98d [CMAKE]
* Fix win32k build.

svn path=/branches/cmake-bringup/; revision=51555
2011-05-02 16:28:42 +00:00
Timo Kreuzer
b726d7355f [CMAKE]
sync with trunk (r51543)
(I had to comment out sv-SE.rc in rapps, there are problems with characters)

svn path=/branches/cmake-bringup/; revision=51553
2011-05-02 15:18:57 +00:00
Rafal Harabien
6774978a84 [WIN32K]
* Fix ShowingCursor counter interpretation. Values >= 0 means cursor is shown, values <0 means cursor is hidden. Fixes few user32:cursoricon tests.

svn path=/trunk/; revision=51552
2011-05-02 11:38:30 +00:00
Timo Kreuzer
8d7e24af8f [FREETYPE]
Add freetype/freetype_ros.diff
See r46246

svn path=/trunk/; revision=51543
2011-05-02 09:53:03 +00:00
Timo Kreuzer
341e9e4d23 [FREETYPE]
Sync to version 2.4.4

svn path=/trunk/; revision=51542
2011-05-02 09:43:01 +00:00
Gabriel Ilardi
19c2502076 [EVENTVWR]
Italian and Spanish translation updates.

svn path=/trunk/; revision=51541
2011-05-02 07:59:16 +00:00
James Tabor
110864eec5 [Win32k]
- Fix shift key handling, see bug 6175.

svn path=/trunk/; revision=51540
2011-05-02 07:40:04 +00:00
Aleksey Bragin
b86b0d1048 [KERNEL32]
- Initialize ViewSize to 0 when mapping view of section. Fixes DLLs registration problems in 2nd stage (happening all the time with the ldr rewrite).

svn path=/trunk/; revision=51539
2011-05-01 22:00:14 +00:00
Olaf Siejka
8b5ab2d248 [CHARMAP]
- Translation update

[EVENTVWR]
- Translation update

svn path=/trunk/; revision=51538
2011-05-01 21:36:15 +00:00
Gregor Schneider
e2dfab00f4 [charmap]
- Carlo Bramini: implement a skeleton for the charmap advanced view, Italian translation included
- German translation added by myself
See issue #6065 for more details.

svn path=/trunk/; revision=51537
2011-05-01 19:16:58 +00:00
Eric Kohl
2b77604a9f [EVENTVWR]
Replace some hard-coded strings by resource strings.

svn path=/trunk/; revision=51536
2011-05-01 18:47:13 +00:00
Rafal Harabien
9ab4e6808d [CMAKE]
* Add sndrec32 to ISOs

svn path=/branches/cmake-bringup/; revision=51535
2011-05-01 16:33:50 +00:00
Rafal Harabien
6466d12e9b [CMAKE]
* Add sndrec32 to build
* Fix build of mmc

svn path=/branches/cmake-bringup/; revision=51534
2011-05-01 16:27:17 +00:00
Rafal Harabien
8ba552d1a3 [RAPPS]
* Change color of description richedit when system colors are changed

svn path=/trunk/; revision=51533
2011-05-01 15:45:50 +00:00
Gregor Schneider
c81830d2e6 [regedit] Process WM_COMMAND button click messages in the local window as well
See issue #5927 for more details.

svn path=/trunk/; revision=51532
2011-05-01 15:16:55 +00:00
Rafal Harabien
16b032b455 [DESK]
* Fix a bug when after changing color scheme Apply and then OK is clicked. Background color was restored to the previous one in this case. Spotted by Gabriel Ilardi.

svn path=/trunk/; revision=51531
2011-05-01 15:07:35 +00:00
Rafal Harabien
aea7bfcd56 [TASKMGR]
* Make buttons on applications page longer, so polish text fits

svn path=/trunk/; revision=51530
2011-05-01 14:35:58 +00:00
Eric Kohl
957e387479 [EVENTLOG]
- Add event sources "EventLog" and "Service Control Manager" to the registry.
- Implement an internal event reporting function and report the successful start of the event logging service.

svn path=/trunk/; revision=51529
2011-05-01 13:35:51 +00:00
Eric Kohl
18ea9e1c9d [NETEVENT]
Fix a little typo.

svn path=/trunk/; revision=51528
2011-05-01 13:23:59 +00:00
Rafal Harabien
3fe6ca77a5 [WIN32K]
* Do not reference current thread before sending message to it. It was causing thread to be a ghost if ExitThread was called in WndProc.
* Hold only UserRefObjectCo reference on windows when sending messages to them.

svn path=/trunk/; revision=51527
2011-05-01 13:15:30 +00:00
Rafal Harabien
606747e15c [SHELL32]
* Properly support WM_SYSCOLORCHANGE in ShellView window. Changing system colors in ReactOS works perfectly now :)

svn path=/trunk/; revision=51526
2011-05-01 13:01:38 +00:00
Rafal Harabien
e094f54623 [WIN32K]
* Redraw desktop after change of system colors. Inspired by Wine

svn path=/trunk/; revision=51525
2011-05-01 12:59:48 +00:00
Rafal Harabien
9bee914885 [EXPLORER]
* Properly support WM_SYSCOLORCHANGE

svn path=/trunk/; revision=51524
2011-05-01 12:58:15 +00:00
Rafal Harabien
0bbfb26d0f [APPLICATIONS]
* Properly support WM_SYSCOLORCHANGE in msconfig, mspaint, rapps, regedit and regedit

svn path=/trunk/; revision=51523
2011-05-01 12:53:10 +00:00
Rafal Harabien
8311cfe217 [COMCTL32]
* Sync Rebar to Wine 1.3.19
* Properly support WM_SYSCOLORCHANGE in Rebars
* Update comctl32_ros.diff

svn path=/trunk/; revision=51522
2011-05-01 12:49:38 +00:00
James Tabor
0f43b7af51 [Win32k]
- Patch by Erich HooverSend: WM_SYSKEYDOWN and WM_SYSKEYUP when the 'F10' key is used. See wine bug 19383 and http://www.winehq.org/pipermail/wine-patches/2009-October/079871.html for details.
- Update key state for all hardware postings.

svn path=/trunk/; revision=51521
2011-05-01 11:51:22 +00:00
Giannis Adamopoulos
2aaa0b9e08 [winlogon]
- Implement restarting the shell in case of a failure. kudos to hpoussin

svn path=/trunk/; revision=51520
2011-05-01 09:59:01 +00:00
Giannis Adamopoulos
5f8889d8b2 [win32k]
- Do not try to initialize thread info in UserGetWindowObject. Do it in thread callout. Removing this hack is needed in order to use UserPostMessage in ProcessCallout when a process is terminating
- Notify winlogon that the shell is exiting in order to restart the shell

svn path=/trunk/; revision=51519
2011-05-01 09:20:15 +00:00
Hervé Poussineau
4f0424990b Fix compilation
svn path=/trunk/; revision=51518
2011-05-01 08:17:26 +00:00
Hervé Poussineau
f9d566f139 [freeldr] Add PXE "filesystem"
svn path=/trunk/; revision=51517
2011-05-01 08:11:43 +00:00
Hervé Poussineau
d4e292197b [freeldr] ramdisk: allocate memory with right type
This fixes NT boot type with a ramdisk, but ntoskrnl part is still broken

svn path=/trunk/; revision=51516
2011-05-01 08:01:05 +00:00
Hervé Poussineau
8973f39c75 [freeldr] Handle ramdisks < 8MB
svn path=/trunk/; revision=51515
2011-05-01 07:57:47 +00:00
Eric Kohl
a6edd599e3 [NETEVENT]
- Remove netevent.c and netevent.spec because netevent.dll is a resource-only dll.
- Set entrypoint to 0.

svn path=/trunk/; revision=51514
2011-04-30 23:41:40 +00:00
Eric Kohl
5dd119d642 [EVENTLOG]
Implement an event source list and use it to find the event log file for a given event source when an event was reported.

svn path=/trunk/; revision=51513
2011-04-30 22:33:53 +00:00
James Tabor
94050d9e54 [Win32k]
- Update key state when key and hardware is set before the event set. This allows input.c to post and set key states.

svn path=/trunk/; revision=51512
2011-04-30 22:17:55 +00:00
Eric Kohl
a4b0bea539 [SMSS]
Fix for the loading of the "KnownDlls" in SMSS. Patch by Hermès BÉLUSCA - MAÏTO.
The patch was applied without changes to comments, indentation and coding style. 

See issue #6159 for more details.

svn path=/trunk/; revision=51511
2011-04-30 22:09:16 +00:00
Rafal Harabien
a41476b164 [COMCTL32]
* Properly support WM_SYSCOLORCHANGE in ListView controls with default background. Should be sent to Wine (tm)

svn path=/trunk/; revision=51510
2011-04-30 21:41:15 +00:00
James Tabor
452b5fc972 [Win32k]
- Clear and set send erase background bit when sending WM_ERASEBKGND and if return zero reset the bit. This prevents a message loop in riched20 when calling GetUpdateRect. Spotted by Michael Martin.

svn path=/trunk/; revision=51509
2011-04-30 21:14:11 +00:00
Rafal Harabien
dde695503b [SNDVOL32 & TASKMGR]
* Properly support WM_SYSCOLORCHANGE

svn path=/trunk/; revision=51508
2011-04-30 19:32:37 +00:00
Johannes Anderwald
bca978808b [USBEHCI_NEW]
- Silence usb bulk control traces

svn path=/branches/usb-bringup/; revision=51507
2011-04-30 18:46:10 +00:00
Johannes Anderwald
6321f84f30 [USBEHCI_NEW]
- Store number of bytes transferred in the transfer descriptors
- Perform queue head completion when the door bell ring has been acknowledged. Fixes race condition between multiple irps in the async list
- Fix calculation of transfer length when the request is an bulk in operation
- Use EndPointDescriptor member to access transfer type / pid direction
- Use MmGetSystemAddressForMdlSafe to retrieve system address for urb buffer
- Fix check if first transfer buffer finishes on first size if the size is of page_size
- With these changes and little luck and good weather, usb mass storage devices have been seen to  work in Windows XP SP3 
- Code inspired of mjmartin usbehci driver and Haiku's usb stack


svn path=/branches/usb-bringup/; revision=51506
2011-04-30 17:44:43 +00:00
Gabriel Ilardi
68b271c187 [SUBST]
Italian update by Paolo Devoti.
See issue #6178 for more details.

svn path=/trunk/; revision=51505
2011-04-30 15:55:13 +00:00
Amine Khaldi
dd8253dc8c [CRT/MINGW-W64]
* Reorganize dll entry and C runtime initialization. By Kai Tietz.

svn path=/trunk/; revision=51504
2011-04-30 14:26:21 +00:00
Matthias Kupfer
426f261823 Add Python 3
svn path=/trunk/; revision=51503
2011-04-30 11:56:02 +00:00
Amine Khaldi
9ea47cc905 [CMAKE]
* configure.cmd: formatting.

svn path=/branches/cmake-bringup/; revision=51502
2011-04-30 11:34:02 +00:00
Johannes Anderwald
547ea14508 [USBEHCI_NEW]
- Port URB_FUNCTION_CLASS_INTERFACE from mjmartin usbehci driver
- Fix typo in interface declaration
- Disable assert for now
- Return irp status pending when irp is added to the queue
- Fix bug in InternalGetPidDirection
- More work on the bulk transfers, not yet working

svn path=/branches/usb-bringup/; revision=51501
2011-04-30 08:04:35 +00:00
Gabriel Ilardi
89ea3624be [NOTEPAD]
Revert 51497, this is really a hack, sorry.

svn path=/trunk/; revision=51500
2011-04-30 00:49:10 +00:00
Giannis Adamopoulos
b68a7983f1 [explorer]
- Return 1 when explorer terminates. This value lets winlogon know that explorer terminated without errors and it doesn't need to restart

svn path=/trunk/; revision=51499
2011-04-29 21:59:48 +00:00
Giannis Adamopoulos
8a518bb78d [taskmgr]
- When terminating an application use 1 as exit code. This is used by Task Manager in windows. It also prevents explorer from restarting in windows
- Disable redrawing the list of processes while the list is updated. Fixes flicker in windows

svn path=/trunk/; revision=51498
2011-04-29 21:49:37 +00:00
Gabriel Ilardi
5197d7eb95 [NOTEPAD]
Patch by Edijs Kolesnikovics: Write default font, weight and point size when run for the first time. That's what ms notepad does too.
See issue #5305 for more details.

svn path=/trunk/; revision=51497
2011-04-29 21:47:53 +00:00
Giannis Adamopoulos
1396412b7c [win32k]
- UserSetProcessWindowStation: Use PsGetProcessWin32WindowStation and PsSetProcessWindowStation. Close the prevoious window station handle only when the window station was not set by UserSetProcessWindowStation (should be the case for console apps)

svn path=/trunk/; revision=51496
2011-04-29 17:50:30 +00:00
Gabriel Ilardi
3ff2ee5566 [DESK]
French translation by Jeisson Toscano. I adjusted some dialogs to make text fit in.
See issue #6028 for more details.

svn path=/trunk/; revision=51495
2011-04-29 15:58:37 +00:00
Gabriel Ilardi
540ec7e00a [rapps]
Jeisson Toscano: French update + some Spanish translation updates (with corrections from vicmarcal and me)
See issue #6012 for more details.

svn path=/trunk/; revision=51494
2011-04-29 14:01:03 +00:00
Michael Martin
bdfaf318b8 [USBEHCI_NEW]
- Fix a type causing CommitIrp to fail.
- Add a sanity check in StatusChangeEndpointCallBack to check that a pending SCE irp is queued.
- Start Implementing Bulk Transfers. Needs more work.



svn path=/branches/usb-bringup/; revision=51493
2011-04-29 13:16:03 +00:00
Olaf Siejka
2081b4bf88 - Swedish translation of charmap, find, dxdiag, mmc, mplay32, msconfig, devmgmt, eventvwr, servman, mstsc, ipconfig, ping, notepad, rapps, regedit, 3dtext, logon, shutdown, sndrec32, sndvol32, usetup, vminst and cmd. Patch by Jan Blomqvist Kinander (JaixBly [at] spray [dot] se)
[SETUP][USETUP]
- Translation update by Adam "Saibamen" Stachowicz. See issue #6171 for more details

svn path=/trunk/; revision=51492
2011-04-29 13:07:12 +00:00
Michael Martin
07dbb71da0 [USBEHCI_NEW]
- Set the NakCountReload to 0 in the QueueHead that is set in the Async register, as this is a dead QueueHead marked as halted and does not need it.
- Set the Async register in StartController. Note: The Async and Periodic registers can only be modified when the controller is stopped. 
- Driver now works in Qemu.

svn path=/branches/usb-bringup/; revision=51491
2011-04-29 06:14:44 +00:00
Johannes Anderwald
20a1892864 [USBEHCI_NEW]
- Fix SelectConfiguration / SelectInterface
- By mjmartin

svn path=/branches/usb-bringup/; revision=51490
2011-04-29 03:17:57 +00:00
Johannes Anderwald
3b6ba2f1d8 [USBEHCI_NEW]
- Implement SelectInterface / SelectConfiguration based on mjmartin usbehci driver
- Initialization runs untill SelectInterface request
- Tested with WinXP SP2

svn path=/branches/usb-bringup/; revision=51489
2011-04-29 02:46:04 +00:00
Michael Martin
f48754e09b [USBEHCI_NEW]
- hub_controller.cpp: Change RtlSetBit and RtlClearBit to RtlSetBtis and RtlClearBits for Win2k compatibility.

svn path=/branches/usb-bringup/; revision=51488
2011-04-29 02:19:10 +00:00
Johannes Anderwald
e8cf4c5591 [USBEHCI_NEW]
- Remove assert for unknown clear feature
- Implement retrieving string descriptors, based on mjmartin usbehci driver
- Start implementing USBHI_RestoreUsbDevice
- Fixup device stack in USBHI_SetDeviceHandleData. Needs more investigation

svn path=/branches/usb-bringup/; revision=51487
2011-04-28 23:59:53 +00:00
Rafal Harabien
541978ae64 [KERNEL32]
* Fix formatting. No code changes.

svn path=/trunk/; revision=51486
2011-04-28 22:33:50 +00:00
Rafal Harabien
6fd65190b1 [KERNEL32]
* Use current directory in GetDriveType if no path is given
* Check if path is properly ended
* Remove slash from end when calling NtCrateFile function
* Fixes few kernel32_apitest tests and floppy icon in My Computer if no floppy is inserted
See issue #6148 for more details.

svn path=/trunk/; revision=51485
2011-04-28 22:15:39 +00:00
Rafal Harabien
ee795b8b1e [APITESTS]
* Add GetDriveType tests. Some fails in ReactOS
* Fix few rbuild files

svn path=/trunk/; revision=51484
2011-04-28 22:10:51 +00:00
Giannis Adamopoulos
16afe3648f [win32k]
- Store the initial desktop handle and use it evey time a new thread is created.

svn path=/trunk/; revision=51483
2011-04-28 20:33:16 +00:00
Gregor Schneider
f80c0cc156 [calc] Fix degree to radians conversion
See issue #3018 for more details.

svn path=/trunk/; revision=51482
2011-04-28 20:17:14 +00:00
Gregor Schneider
7d857e4ff3 [win32csr] Implement routines to allow copy, paste and select all on console windows
See issue #4068 for more details.

svn path=/trunk/; revision=51481
2011-04-28 19:59:16 +00:00
Giannis Adamopoulos
f2fa7073c4 [win32k]
- Use ObCloseHandle instead of ZwClose when closing window station handles

svn path=/trunk/; revision=51480
2011-04-28 19:52:23 +00:00
Giannis Adamopoulos
654d08212e [win32k]
- Call update_input_key_state correctly

svn path=/trunk/; revision=51479
2011-04-28 19:26:09 +00:00
Johannes Anderwald
823176506d [USBEHCI_NEW]
- Implement retrieving device / configuration descriptor for usb devices
- Based on mjmartin usbehci driver
- Mass storage device found wizard now pops up (fails to install - WIP)

svn path=/branches/usb-bringup/; revision=51478
2011-04-28 17:45:32 +00:00
Johannes Anderwald
a3f701378c [USBEHCI_NEW]
- Move error checking if controller reported an error inside the door bell ring check block
- Extend interface of IUSBRequest to include DeviceAddress, which is needed to retrieve configuration descriptor of newly set address
- Allocate CtrlSetup from nonpaged pool
- Release setup packet on cleanup
- Devices now receive an device address
- Currently asserts while retrieving configuration descriptor as this code path is not yet existant
*** Assertion failed: Urb->UrbHeader.UsbdDeviceHandle == NULL
***   Source File: d:\usb-bringup\drivers\usb\usbehci_new\hub_controller.cpp, line 1118

svn path=/branches/usb-bringup/; revision=51477
2011-04-28 16:40:07 +00:00
Johannes Anderwald
ede1d48da4 [USBEHCI_NEW]
- Change interface to return real async queue head
- Set the async queue head register after the controller has been started
- Enable async queue in StartController
- Port DumpDeviceDescriptor from mjmartin usbehci driver
- Remove pseudo queue head from usb queue, instead use the real async queue head exported from IUSBHardwareDevice 
- Get physical address for transfer data in BuildControlTransferQueueHead
- Retrieving device descriptor now ~works, currently stops at setting device address (needs more work)

svn path=/branches/usb-bringup/; revision=51476
2011-04-28 15:16:33 +00:00
Timo Kreuzer
f685f1aeb0 [WIN32K]
- Don't use exclusive locks for pens
- Don't try to delete the window update region
- Don't ignore pid in GreIsHandleValid
- Check if handle is valid before deleting it in DC_Cleanup
- Silence a DPRINT

svn path=/trunk/; revision=51475
2011-04-28 14:29:47 +00:00
Johannes Anderwald
8df637b778 [USBEHCI_NEW]
- Check if the current request type is supported (currently only control is supported, bulk will be implemented soon)
- Fix bug in IUSBRequest::CreateQueueHead
- Code runs now until first device descriptor get request (async / periodic queue not yet enabled)
- mjmartin usbehci status not yet reached
- Let the fun now begin ;)

svn path=/branches/usb-bringup/; revision=51474
2011-04-28 13:13:13 +00:00
Johannes Anderwald
ede324a063 [USBEHCI_NEW]
- Cache port status & port change settings because it appears that some ehci controllers do not store the status reset register bit correctly
- This commit is a temporary solutions, needs to be reworked
- Return correct status from HandleClassOther
- Handle IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION to return status success

svn path=/branches/usb-bringup/; revision=51473
2011-04-28 12:41:16 +00:00
Timo Kreuzer
c0dcdb6728 Fix release build
svn path=/trunk/; revision=51472
2011-04-28 08:50:27 +00:00
Gabriel Ilardi
3c6f59eacf [mshtml]
Revert associations for ie, we can't use them. Spotted by encoded.
See issue #6158 for more details.

svn path=/trunk/; revision=51471
2011-04-28 08:26:49 +00:00
Timo Kreuzer
9ff568fd7d [WIN32K]
Rewrite of the GDI handle manager

- The old handle manager used a completely retarded spinlock in combination with KeDelayExecutionThread() for both exclusive
and shared locks. This is probably the most uneffective algorithm possible. It was also duplicating code everywhere and it was a overall mess It 

is now replaced with a lock-free reference counter for shared locks and a pushlock for exclusive locks. -> Better performance and scalability.
- Allocate user mode object attributes from the new gdi pool. This way, we don't need any caching, since the pool serves as a cache. Its also 

much faster and uses much less memory.
- Allow object allocations of different size, instead of fixed size from a table. This way a single allocation can take care of actual needs.
- Allow allcoating objects without a handle and insert them into the handle table later
- Properly synchronize the process GDIHandleCount. Now gdiview and taskmanager show the correct number of gdi handles.
- Implement a new event tracking system, that is capable of tracking all reverences and locks of objects and pool allocations to help track 

possible leaks
- Make sure that all objects of a process are deleted in cleanup
- Make sure all usermode memory allocations are freed, when cleaning up the process pool.
- Make sure that each object type is using the correct type of lock (either shared or exclusive, not a mixture)
- Fix some object / reference leaks
- Lots of inferface improvements
- Use global variables for certain things instead of members in the mapped gdi handle table
- Make IntSysCreateRectpRgn create a region without a handle
- Fix detection od source and mask use in GreStretchBltMask
- Use GDIOBJ_bLockMultipleObjects in NtGdiCombineRegion to avoid possible deadlocks
- Fix NtGdiAbortPath to reset DCPATH_ACTIVE flag in the dc and only bail out on error, instead of always
- Replace DC_AllocateDcAttr and DC_AllocDcAttr with DC_bAllocDcAttr using the new user mode pool
- Remove DCU_SyncDcAttrtoUser and DCU_SynchDcAttrtoUser. Those functions were unused and didn't do anything useful anyway,
- Replace IntGdiSetDCOwnerEx and DC_SetOwnership with GreSetDCOwner, remove unused NoSetBrush parameter
- Replace GDIOBJ_bValidateHandle and IsObjectDead with GreIsHandleValid
- Chage GDIOBJ_bLockMultipleObjects: pass object type, return a BOOL, whether all objects could be locked, cleanup on failure

svn path=/trunk/; revision=51470
2011-04-28 08:26:46 +00:00
Timo Kreuzer
de078e7357 [WIN32K]
Don't send messages from or to a thread in cleanup. Fixes possible deadlock.

svn path=/trunk/; revision=51469
2011-04-27 23:49:09 +00:00
James Tabor
b39193c83d [Win32k]
- Fix KsStudios actions with Hooks. 

svn path=/trunk/; revision=51468
2011-04-27 23:09:45 +00:00
Amine Khaldi
10bc602a7c [CMAKE]
* msc.cmake: Apply a consistent formatting.

svn path=/branches/cmake-bringup/; revision=51467
2011-04-27 21:48:41 +00:00
Johannes Anderwald
591cffee7c [USBEHCI_NEW]
- Return the physical address of the async queue head in CUSBHardwareDevice::GetAsyncListRegister
- Remove superflous entries from queue head structure, they are processed within IUSBRequest class
- Remove USBHI_GetPortHackFlags, this function has been deprecated
- Add interface functions for IUSBRequest / IUSBQueue
- Callback into IUSBQueue when a hardware interrupt arrives
- Implement callback function to check for completed queue heads / free completed queue head depending on the Async Advance interrupt bit

svn path=/branches/usb-bringup/; revision=51466
2011-04-27 16:23:42 +00:00
Rafal Harabien
ff6f3da3f1 [CMAKE]
Add idndl to build

svn path=/branches/cmake-bringup/; revision=51465
2011-04-27 14:05:18 +00:00
Giannis Adamopoulos
e29b0d8b1f [win32k]
-Fix a case when a window is created and we don't have a monitor created yet. (This can happen when we may attempt to use gui on demand)

svn path=/trunk/; revision=51464
2011-04-27 12:33:16 +00:00
Gabriel Ilardi
7ed79f5ff3 [SUBST]
Add Italian and Spanish translations.

svn path=/trunk/; revision=51463
2011-04-27 07:09:47 +00:00
Amine Khaldi
2d93921768 [CMAKE]
* uncomment the NDEBUG define.

svn path=/branches/cmake-bringup/; revision=51462
2011-04-26 22:54:53 +00:00
James Tabor
0f669f42d6 [User32]
- Sync up menu without the Right to Left support. Still missing needed changes for adding it.
- Patches by Alexandre Julliard and Dmitry Timoshkov.

svn path=/trunk/; revision=51461
2011-04-26 03:31:15 +00:00
James Tabor
ee43f54510 [Win32Csr]
- Hack ReactOS to boot again! See bug 5655.

svn path=/trunk/; revision=51460
2011-04-26 00:01:03 +00:00
James Tabor
16f7899e27 [User32|Win32csr]
- Move AppSwitch to User32.

svn path=/trunk/; revision=51459
2011-04-25 23:14:06 +00:00
Amine Khaldi
e9b2fe6591 [CRT/MINGW-W64]
* Call pei and __main before possible invocation of DllEntryPoint. By Kai Tietz.

svn path=/trunk/; revision=51458
2011-04-25 21:55:41 +00:00
Timo Kreuzer
7ba64c2ad6 [win32k]
Acquire ownership of the window clip region, before deleting it. Fixes a region leak.

svn path=/trunk/; revision=51457
2011-04-25 21:53:06 +00:00
Johannes Anderwald
2e7e8bb0f6 [MMIXER]
- Merge 50674 to trunk:
- Allocate memory for the logical pin array
- Use the correct counter variable for logical pin array
- Found by msvc
See issue #6143 for more details.

svn path=/trunk/; revision=51455
2011-04-25 20:34:41 +00:00
Sylvain Petreolle
d3561afa95 [SHIMGVW]
Implement imageview_fullscreenW.

svn path=/trunk/; revision=51454
2011-04-25 19:02:07 +00:00
Sylvain Petreolle
50c0e55317 sndrec32, clb, shimgvw:
French translations by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me

svn path=/trunk/; revision=51453
2011-04-25 18:59:20 +00:00
Aleksey Bragin
3d60cef193 Sam Arun Raj Seeniraj:
[NTOSKRNL.EXE]
- Complemented existing stub routines ObpDeleteSymbolicLinkName() and ObpCreateSymbolicLinkName(). Now when symbolic links are created, they are checked for dos drive mapping and ObSystemDeviceMap is updated accordingly.
- Updates to ObpDeviceMapLock are protected by a guarded mutex (changed from fast mutex by Aleksey Bragin).
- Aleksey Bragin: Fix concurrent access issues in ObDereferenceDeviceMap. The DeviceMap read/write operation must be atomic (within the ObpDeviceMapLock region).

[SUBST.EXE]
- Removed hard coded strings and moved it to resource file.

[WIN32CSR.DLL]
- Added a workaround, when target path end with a trailing '\', the substituted drive fails to parse to the target, this is a bug in the object manager, but working around it in CsrDefineDosDevice() by stripping trailing '\'.

See issue #993 for more details.

svn path=/trunk/; revision=51452
2011-04-25 16:08:00 +00:00
James Tabor
f34a5b0b2d [Win32k]
- Need this file too.

svn path=/trunk/; revision=51451
2011-04-25 15:31:49 +00:00
James Tabor
6c4a25f386 [User32|Win32k]
- Isolated Alt-Tab/Esc issues. Placed update_input_key_state when posting to a queue like wine. This fixed the shift key checks. The Alt-Space is handled after a Translate Message call (WM_SYSCHAR), developers need to check application code to help support it (ConCtrl32). Will move AltSwitch.c from win32csr and port patch from bug 5378 to User32. ReactOS registers the Switch Class in Win32k and it is not used.
- Implemented the rest of HotKey Support. ReactOS Explorer does not save hotkey actions.
- See related bugs 1091.

svn path=/trunk/; revision=51450
2011-04-25 15:18:39 +00:00
Eric Kohl
30fde9e816 [PSDK]
Add some missing device class GUIDs.

svn path=/trunk/; revision=51449
2011-04-25 14:01:54 +00:00
Olaf Siejka
6b21aeb9a3 - Slovakian translation updates for rapps, shell32 and win32csr.
[CALC] 
- Conversion fix for Farenheit.

Patches by Mario Kacmar

svn path=/trunk/; revision=51448
2011-04-25 11:32:28 +00:00
Amine Khaldi
2a9813d015 [PEFIXUP]
* Set IMAGE_SCN_MEM_NOT_PAGED flag for read-only data section (.rdata). Patch by Pavel Pisa.
See issue #5618 for more details.

svn path=/trunk/; revision=51447
2011-04-24 17:15:23 +00:00
Amine Khaldi
141823a750 [CMAKE]
* Sync with trunk r51445.

svn path=/branches/cmake-bringup/; revision=51446
2011-04-24 13:44:58 +00:00
Aleksey Bragin
0e5118d97b [NTOSKRNL/KE]
- Correctly return whether there is a kernel APC pending in KiSwapContextExit. Fixes IRQL asserts seen in bugs 5955 and 5777. Michael Martin's help in finding and fixing this bug was invaluable. Also thanks to Art Yerkes and testing team for additional information.
See issue #5955 for more details.

svn path=/trunk/; revision=51445
2011-04-24 11:24:37 +00:00
Olaf Siejka
28b188a8e9 - Swedish translation of calcs, charmap, doskey, more, dxdiag, fontview, kbswitch, logoff, magnify and mmc
- Swedish translation adjustments of calc and find

- Fix comments in magnify

Patch by Jan Blomqvist Kinander (JaixBly [at] spray [dot] se)

svn path=/trunk/; revision=51444
2011-04-24 10:05:12 +00:00
Johannes Anderwald
346a95197f [USBEHCI_NEW]
- Fix build 
- Implement retrieving configuration descriptor (USBHI_GetUsbDescriptors)
- Implement function to build a setup packet from urb (taken from mjmartin usbehci driver)

svn path=/branches/usb-bringup/; revision=51443
2011-04-24 09:26:22 +00:00
Michael Martin
7e9f462dbd [ntoskrnl]
- Fix a type from rev 19847. Only if the KernelMode List is not empty are there pending APCs.

svn path=/trunk/; revision=51442
2011-04-24 06:48:50 +00:00
Sylvain Petreolle
265463422d [CMAKE]
* msvc compatibility fixes for doskey.

svn path=/branches/cmake-bringup/; revision=51441
2011-04-23 20:05:19 +00:00
Johannes Anderwald
982eb59ba0 [USBEHCI_NEW]
- Create member for storing the request object
- Add interface function which is invoked when the queue head should be freed
- Add support functions which deal with completed queue heads

svn path=/branches/usb-bringup/; revision=51440
2011-04-23 19:36:23 +00:00
Eric Kohl
39eeae29f8 [SERVICES]
Disable more debug messages.

svn path=/trunk/; revision=51439
2011-04-23 14:40:30 +00:00
Eric Kohl
5e449dfe39 [NPFS]
Silence some debug messages.

svn path=/trunk/; revision=51438
2011-04-23 11:26:16 +00:00
Eric Kohl
2ec4368714 [CLASS2]
Prepare ReactOS for the change from the ancient 32 sectors / 64 tracks disk layout (used until Windows NT4) to the modern 63 sectors / 255 tracks disk layout (used since Windows 2000).

svn path=/trunk/; revision=51437
2011-04-23 10:52:01 +00:00
Gregor Schneider
87a668d95f [shell32] Split declarations and operations, in case any pure C compiler cares
svn path=/trunk/; revision=51436
2011-04-22 22:58:09 +00:00
Gregor Schneider
2fda6e7d2a [shell32] Pass an argument array to FormatMessage to insert the filename details into error messages (instead of failing)
See issue #5977 for more details.

svn path=/trunk/; revision=51435
2011-04-22 22:53:31 +00:00
Gregor Schneider
6a89b41bff [ipconfig] Respect the size parameter in the LoadStringAndOem helper function, fixes "ipconfig /?"
See issue #6146 for more details.

svn path=/trunk/; revision=51434
2011-04-22 21:29:30 +00:00
Eric Kohl
63bd3c88e9 [SERVICES]
RChangeServiceConfig2W: Use the error code of a call to RegSetValueExW.

svn path=/trunk/; revision=51429
2011-04-22 15:18:31 +00:00
Amine Khaldi
d05dbec4a3 [NETID]
* Use EDITTEXT instead of LTEXT. Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>
See issue #6129 for more details.

svn path=/trunk/; revision=51428
2011-04-22 14:23:49 +00:00
Eric Kohl
d58660ce71 [SERVICES]
Lock the service database in order to protect it from concurrent access.

svn path=/trunk/; revision=51427
2011-04-22 14:09:21 +00:00
Amine Khaldi
295e7d388c [Translations]
* explorer-new: Fix some wrong UK and RU translations.
* shell32: Update UK and RU translations.
* Patch by Igor Paliychuk <mansonigor at gmail dot com>

svn path=/trunk/; revision=51426
2011-04-22 14:07:22 +00:00
Rafal Harabien
aa3f41345e [KERNEL32]
* Add Traditional, Hongkong and Macau Chinese NLS removed in 48530. Fixes msvcrt:locale cmake branch regression.

svn path=/branches/cmake-bringup/; revision=51425
2011-04-22 12:47:36 +00:00
Gabriel Ilardi
b0d9033638 [shimgvw]
Add Italian translation.
[mplay32]
Fix Italian translation for play.

svn path=/trunk/; revision=51424
2011-04-22 12:30:50 +00:00
Rafal Harabien
d8e1c6609b [MPLAY32]
* Move "Play" string from shell32. It will be used in audio files context menu in explorer

[SHIMGVW]
* Move "Preview" string from shell32. It will be used in image files context menu in explorer
* Add Polish translation

[SHELL32]
* Remove "Play" and "Preview" translations - they shouldn't be in shell32
* Add "explore" translation for folder context menu

svn path=/trunk/; revision=51423
2011-04-22 11:51:08 +00:00
Amine Khaldi
18046ee2de [CMAKE]
* Add a couple missing definitions.

svn path=/branches/cmake-bringup/; revision=51422
2011-04-22 10:59:15 +00:00
Gregor Schneider
0314742b01 [kernel32] Radek Liska: sync czech NLS resources to Wine
See issue #6122 for more details.

svn path=/trunk/; revision=51419
2011-04-21 21:59:17 +00:00
Timo Kreuzer
3b11a6bdbc [CRT]
Fix a typo in a comment

svn path=/trunk/; revision=51418
2011-04-21 21:49:46 +00:00
Timo Kreuzer
35a1d66de7 [WIN32K/GDI32]
Add official ENTRY structure definition

svn path=/trunk/; revision=51417
2011-04-21 21:48:24 +00:00
Gregor Schneider
7037613d3d [cardlib] Install a button release callback
[spider] Use the button release callback instead of button click callbacks
See issue #6125 for more details.

svn path=/trunk/; revision=51416
2011-04-21 21:25:30 +00:00
Gregor Schneider
f3aa24aa4f Rename paint to mspaint to maintain script compatibility
See issue #6071 for more details.

svn path=/trunk/; revision=51415
2011-04-21 21:05:47 +00:00
James Tabor
a6294542d0 - Add Unicows to packing list.
svn path=/trunk/; revision=51414
2011-04-21 16:43:52 +00:00
Rafal Harabien
682100b73e [CMAKE]
Add libtiff to build
Fixes gdiplus:image winetest regression in cmake branch

svn path=/branches/cmake-bringup/; revision=51413
2011-04-21 15:05:05 +00:00
Rafal Harabien
a861f7c282 [KERNEL32]
* Properly check if buffer given to GetComputerName is too small. Fixes hostname.exe if computer name is MAX_COMPUTERNAME_LENGTH long (the default for bootcd since it's generated randomly in Setup).
* Simplify it a bit

svn path=/trunk/; revision=51412
2011-04-20 21:31:41 +00:00
Timo Kreuzer
be4bb69ef8 [WIN32K]
Don't try to lock a dcs clip region if its NULL

svn path=/trunk/; revision=51411
2011-04-20 21:10:13 +00:00
Rafal Harabien
1e27c057e4 [FLOPPY]
Formatting only, no code changes.

svn path=/trunk/; revision=51410
2011-04-20 18:13:27 +00:00
Rafal Harabien
057f42a554 [FLOPPY]
Increase floppy drives count in global ConfigurationInformation. Fixes not working floppies in explorer.
See issue #4236 for more details.

svn path=/trunk/; revision=51409
2011-04-20 17:44:12 +00:00
James Tabor
a75c77dfa7 [Unicows]
- Import wine unicows for Adobe Reader 7.1.0. See bug 5560.

svn path=/trunk/; revision=51408
2011-04-20 04:55:08 +00:00
Michael Martin
4dff45da57 [USBEHCI_NEW]
hub_controller: 
- Implement  StatusChangeEndpointCallBack called by HardwareDevice class when port status has changed on controller.
- Move Status Change Endpoint query code to IQueryStatusChageEndpoint as it is also needed by StatusChangeEndpointCallBack.
usb_request: 
- Implement InternalCreateUsbRequest.
usb_queue:
- Implement  CreateUsbRequest and AddUsbRequest
hardware:
- Implement GetAsyncListRegister and GetPeriodicListRegister.
- Implement SetStatusChangeEndpointCallBack for setting callback and context. Call the callback when a port status changes.
- Initialize the UsbQueue after creating the AsyncQueueHead, as the UsbQueue calls will call back with GetAsyncListRegister.



svn path=/branches/usb-bringup/; revision=51407
2011-04-20 04:30:22 +00:00
Johannes Anderwald
d4f7a44a18 [USBEHCI_NEW]
- Fix warning because comparing signed vs unsigned
- Implement function for retrieving the device descriptor
- Implement function for retrieving a configuration descriptor (including contained interface descriptor and endpoint descriptor)
- Cleanup interface for IUSBRequest:
- When caller initializes IUSBRequest with an IRP, then the operation mode is asynchronously. Therefore when the request is completed, IUSBRequest::ShouldReleaseRequestAfterCompletion will return true, which makes IUSBQueue call Release on IUSBRequest
- When the caller initializes IUSBRequest with an setup packet, the operation mode is synchronously. After submitting the IUSBRequest to queue, the caller should call IUSBRequest::GetResultStatus. This function will then block untill the operation has been completed. However, the caller needs to call Release() as those requests are not cleaned up by the IUSBQueue


svn path=/branches/usb-bringup/; revision=51406
2011-04-19 18:35:40 +00:00
James Tabor
81a19f5ad5 [Win32k]
- This should fix the dcattr leaked when deleting a DC, See bug 6119.

svn path=/trunk/; revision=51405
2011-04-19 18:18:19 +00:00
Amine Khaldi
c3d35eaa65 [CMAKE]
* The cmake branch is so awesome you don't even need to manually translate addresses. Automagic usermode address translation brought to you by the Arty.

svn path=/branches/cmake-bringup/; revision=51404
2011-04-19 18:13:10 +00:00
James Tabor
b307a60502 [Win32k]
- Replace patch point for forced DC removal. See bug 6119.

svn path=/trunk/; revision=51403
2011-04-19 17:18:05 +00:00
Michael Martin
9b8bc8512c [USBEHCI_NEW]
- Initialize the MemoryManager only after allocating a CommonBuffer to pass to it.
- Create a QueueHead to put into the AsyncList Register.


svn path=/branches/usb-bringup/; revision=51402
2011-04-19 15:06:26 +00:00
Michael Martin
775c4ce80d [USBEHCI_NEW]
- hub_controller: Implement Status Change Endpoint for RootHub. 
Handling the URB can return STATUS_PENDING, as in the new SCE code. Check for this before completing the Irp.
Uncomment calls to PortStatus, SetPortFeature, and ClearPortStatus now that they are implemented.
- For function receiving a port number check that its not larger than the actual number of ports on the controller.

svn path=/branches/usb-bringup/; revision=51401
2011-04-19 13:57:32 +00:00
Gabriel Ilardi
dc2b96f14f [winetests]
Add new lines to test results for kernel32/dosdev.c

svn path=/trunk/; revision=51400
2011-04-19 09:15:05 +00:00
Gabriel Ilardi
e3c5f3cdd8 [win32csr/file.c]
Add missing new lines to some DPRINT1

svn path=/trunk/; revision=51399
2011-04-19 07:59:23 +00:00
Michael Martin
40e499c2d4 [USBEHCI_NEW]
- Forgotten changes in r51397.

svn path=/branches/usb-bringup/; revision=51398
2011-04-19 07:36:44 +00:00
Michael Martin
c3d1d6fda9 [USBEHCI_NEW]
- Move USB_REQUEST_SET_FEATURE / USB_REQUEST_GET_FEATURE flags to header file.
- Remove QueueHead and Descriptor creation as its in UsbRequest.
- Move DMACommon Buffer allocation back to UsbHardwareDevice class.
- Implement Port Handling functions GetPortStatus, ClearPortStatus and SetPortFeature.
- Implement GetUSBQueue for returning pointer to UsbQueue and GetDMA to return DMAMemoryManager.
- Fix a typo in one of the defines for Port Register Flags.

svn path=/branches/usb-bringup/; revision=51397
2011-04-19 06:56:30 +00:00
Johannes Anderwald
3ac2c07f55 [USBEHCI_NEW]
- Null terminate buffer from IOCTL_USB_GET_ROOT_HUB_NAME, fixes usbview problems
- Implement URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER, IUSBHardware needs more work
- Silence debug traces
- Start implementing IUSBRequest interfaces
- Complete unhandled major irp with status success

svn path=/branches/usb-bringup/; revision=51396
2011-04-19 01:21:10 +00:00
Amine Khaldi
27bd630de0 * Fix build.
svn path=/trunk/; revision=51395
2011-04-18 22:17:25 +00:00
Aleksey Bragin
d4a462fbad [KERNEL32_WINETEST]
- Sam Arun Raj Seeniraj: Added new test cases to QueryDosDevice(). Should be sent to Wine (tm).
See issue #993 for more details.

svn path=/trunk/; revision=51394
2011-04-18 21:56:44 +00:00
Aleksey Bragin
a63e424516 Sam Arun Raj Seeniraj:
[KERNEL32]
- DefineDosDeviceW() is implemented and calls into csrss.exe CsrDefineDosDevice().
- Fixed a minor bug in DefineDosDeviceA(), as calling RtlCreateUnicodeStringFromAsciiz() prevented NULL lpTargetPath to be passed down to DefineDosDeviceW().
- Fixed a minor bug in QueryDosDeviceW() that causes lpTargetPath buffer to be returned with NULL string terminator placed at the wrong point in the buffer.

[WIN32CSR.DLL]
- Implemented CsrDefineDosDevice() in win32csr.dll, the symbolic links are created in global name space currently.

[SUBST.EXE]
- Implemented a subst.exe clone.
See issue #993 for more details.

svn path=/trunk/; revision=51393
2011-04-18 21:48:19 +00:00
Timo Kreuzer
46662954bd [WIN32K]
- Use shared locks for surfaces and palettes

svn path=/trunk/; revision=51392
2011-04-18 19:09:05 +00:00
Timo Kreuzer
186ed6e13d [WIN32K]
Set ulShareCount of static palettes to 1, so they won't get dereferenced to 0

svn path=/trunk/; revision=51391
2011-04-18 14:15:18 +00:00
Michael Martin
d3e13a4ada [USBEHCI_NEW]
- Use PQUEUE_HEAD as the Head of pending list  and Async (Active) list vice using PLIST_ENTRY.
- Implement linking/unlinking a QueueHead to these Head QueueHeads.
- Implement chain linking/unlinking of QueueHeads. Thr plan being to used these functions during DMA operations to pull a number of QueueHeads from the pending list to place into the Async list for execution. 
- Will look for optimization in these functions later.

svn path=/branches/usb-bringup/; revision=51390
2011-04-18 11:34:02 +00:00
Giannis Adamopoulos
f53d1fd407 [win32k]
- GetKeyboardState and SetKeyboardState should use the thread key state and not the global key state

svn path=/trunk/; revision=51389
2011-04-18 09:13:31 +00:00
Michael Martin
9067f34e6f [USBEHCI_NEW]
- Use LIST_ENTRY in QueueHeads and Descriptors vice Next and Previous Pointers.
- Add functions to interface for setting AsyncListRegister and PeriodicListRegister.
- USBHardwareDevice: Initialize USBQueue when handling PNPStart.
- USBQueue: Allocate Common Buffer and use it to Create and Initialize DmaMemoryManager object.
- USBQueue: Implement CreateQueueHead and CreateDescriptor.

svn path=/branches/usb-bringup/; revision=51388
2011-04-18 00:06:37 +00:00
Johannes Anderwald
a2b99febfa [USBEHCI_NEW]
- Add interface function GetHubControllerSymbolicLink
- Implement IOCTL_USB_GET_ROOT_HUB_NAME for usbview

svn path=/branches/usb-bringup/; revision=51387
2011-04-17 22:38:32 +00:00
Michael Martin
bbad937d99 [USBEHCI_NEW]
- Update interfaces with new methods needed for UsbHardWare class.
- Remove GetDmaMemoryManager as the DmaMemory will only be needed by UsbQueue class.
- GetDeviceDetails: Only fill in a parameter if its not null.
- Start implementing UsbQueue class.

svn path=/branches/usb-bringup/; revision=51386
2011-04-17 22:06:20 +00:00
Johannes Anderwald
d8b732ed43 [USBEHCI_NEW]
- Implement IRP_MN_QUERY_DEVICE_RELATIONS for hub controller object
- Implement stub handler for URB_FUNCTION_CLASS_OTHER, URB_FUNCTION_SELECT_CONFIGURATION
- Partly implement URB_FUNCTION_GET_STATUS_FROM_DEVICE
- Return success from unimplemented USBHI_Initialize20Hub routine
- based on mjmartin usbehci driver
- Tested in Windows XP SP2

svn path=/branches/usb-bringup/; revision=51385
2011-04-17 21:35:25 +00:00
Johannes Anderwald
5290479c41 [USBEHCI_NEW]
- Setup a default device descriptor for the root hub and initialize it with vendor & product id
- Partly implement URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE, URB_FUNCTION_CLASS_DEVICE
- based on mjmartin usbehci 

svn path=/branches/usb-bringup/; revision=51384
2011-04-17 19:23:13 +00:00
Amine Khaldi
eed6bbd835 [CMAKE]
* Remove duplicate set_rc_compiler calls.

svn path=/branches/cmake-bringup/; revision=51383
2011-04-17 17:10:37 +00:00
Amine Khaldi
e564c595f2 [CMAKE]
* Addendum to the previous commit.

svn path=/trunk/; revision=51382
2011-04-17 16:55:24 +00:00
Amine Khaldi
0bc61591d7 [CMAKE]
* Adopt the retar, I mean, actual way of handling resource files. This is a temporary measure until a windres issue is fixed.

svn path=/branches/cmake-bringup/; revision=51381
2011-04-17 16:54:57 +00:00
Eric Kohl
1b2a6e5f37 [ADVAPI32]
Implement EnumServiceGroupW.

svn path=/trunk/; revision=51380
2011-04-17 14:43:32 +00:00
Giannis Adamopoulos
3026082bde [win32k]
- Improve IS_KBD_MESSAGE macro. Should fix some more tests

svn path=/trunk/; revision=51379
2011-04-17 12:33:29 +00:00
Eric Kohl
4321ac7baa [EVENTVWR]
- Change string resource id prefix from IDC to IDS.
- Add missing string resources.

svn path=/trunk/; revision=51378
2011-04-17 11:58:26 +00:00
Giannis Adamopoulos
cde9d99bc3 [win32k]
- Do not distinguish left and right keys in WH_KEYBOARD and key messages. Based on wine
Fixes several tests

svn path=/trunk/; revision=51377
2011-04-17 10:38:06 +00:00
Giannis Adamopoulos
c280a2b6ae [user32_apitest]
- Some more tests for GetKeyState

svn path=/trunk/; revision=51376
2011-04-17 10:35:09 +00:00
Olaf Siejka
9c44037679 [VIDEOPRT]
- Check for the correct, just created, registry key. Fix
a wrong comparison. Patch by Thomas Faber.
See issue #6123 for more details.

svn path=/trunk/; revision=51375
2011-04-17 10:20:22 +00:00
Matthias Kupfer
7ce75cdf13 fix accidentally set property svn:executable
svn path=/trunk/; revision=51374
2011-04-17 09:50:07 +00:00
Rafal Harabien
e720b65b6d [CMAKE/RAPPS]
* Inform compiler about encoding in resource files using pragma. No pragmas caused problem because *.mc parser in cmake branch inserts pragma in its output files, which was included before other rc files
* Change RC files encoding to UTF-8 (without BOM)
* Fixes broken non-latin characters in rapps

svn path=/branches/cmake-bringup/; revision=51373
2011-04-17 09:31:31 +00:00
Johannes Anderwald
79bfd697d0 [USBEHCI_NEW]
- Fix bug in CDMAMemoryManager initialization, which calculated the bitmap length wrong
- Create interface IUSBDevice, which will be used to abstract connected usb devices
- Implement support functions for the device interface. 
- Implement USBHI_CreateUsbDevice, USBHI_InitializeUsbDevice, USBHI_GetUsbDescriptors, USBHI_RemoveUsbDevice, USBHI_GetExtendedHubInformation, USBHI_RootHubInitNotification, USBHI_SetDeviceHandleData, USBDI_GetUSBDIVersion, USBDI_IsDeviceHighSpeed
- Partly implement USBHI_QueryDeviceInformation
- Based on mjmartin usbehci 

svn path=/branches/usb-bringup/; revision=51372
2011-04-17 08:20:40 +00:00
Olaf Siejka
04603e0af6 [CALC]
- Swedish translation by Jaix Bly.

See issue #6113 for more details.

svn path=/trunk/; revision=51371
2011-04-16 22:29:55 +00:00
Olaf Siejka
7de326fe0e [VIDEOPRT]
- Fix whitespace and logic order (formatting only). Patch by Thomas Faber
See issue #6123 for more details.

svn path=/trunk/; revision=51370
2011-04-16 22:16:25 +00:00
Johannes Anderwald
e06b7ac5cc [USBEHCI_NEW]
- Implement IDMAMemoryManager interface, with IDMAMemoryManager::Allocate, IDMAMemoryManager::Free
- Fix interface of IDMAMemoryManager
- Will be used by IUSBHardwareDevice

svn path=/branches/usb-bringup/; revision=51369
2011-04-16 12:26:06 +00:00
Johannes Anderwald
767daa4af0 [USBEHCI_NEW]
- Add reference count when the hub controller is created. Necessary to prevent the controller from getting deleted when the hub driver performs interface reference removes
- Implement IRP_MN_QUERY_ID, based on mjmartin ehci driver
- Fix bug in IRP_MN_QUERY_BUS_INFORMATION, it is supposed to return a PNP_BUS_INFORMATION not a simple guid
- Implement IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE, IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO, IOCTL_INTERNAL_USB_GET_HUB_COUNT based on mjmartin ehci driver
- Add interfaces for communicating with the hub driver
- Dispatch internal device requests not wmi requests (EHCI_Dispatch)

svn path=/branches/usb-bringup/; revision=51368
2011-04-16 09:47:43 +00:00
Michael Martin
b8c05840fb [USBEHCI_NEW]
- Change VendorId and DeviceId to the same size as PciConfig members, PUSHORT.
- Add support function GetBusInterface.
- Implement GetDeviceDetails and ResetPort.

svn path=/branches/usb-bringup/; revision=51367
2011-04-16 06:59:45 +00:00
Michael Martin
acbd41ebf5 [USBEHCI_NEW]
- Add flags for Port Status Control Register and remove structiures for Port Status Control Register.
- Remove USB Status Register and use the flags instead.
- Remove functions that are not used and never will be.
- Implement InterruptServiceRoutine and Deffered Procedure Routine.
- Partially implement port status change to detect device insert and removal.

svn path=/branches/usb-bringup/; revision=51366
2011-04-16 05:55:02 +00:00
Michael Martin
9b44c5121d [USBEHCI_NEW]
- Add flags and structures needed for communicating with controller and handling schedules.
- Add support routines for modifying operational registers on controller.
- Implement getting the controller capabilties, starting and stopping the controller.

svn path=/branches/usb-bringup/; revision=51365
2011-04-16 02:20:23 +00:00
Amine Khaldi
8d86d0dbf1 [CMAKE]
* browseui: Don't link to mingw32 and coldname unconditionally (msvc).

svn path=/branches/cmake-bringup/; revision=51364
2011-04-15 22:54:00 +00:00
Amine Khaldi
ff5bcc8009 [CMAKE]
* Fix a typo.

svn path=/branches/cmake-bringup/; revision=51363
2011-04-15 22:51:17 +00:00
Amine Khaldi
54beb0a8e7 [CMAKE]
* Remove inflib from build. It's been superseded by newinflib.
* Rename newinflibhost and newinflib targets into inflibhost and inflib respectively.
* Update mkhive and usetup to link to the new targets.

svn path=/branches/cmake-bringup/; revision=51362
2011-04-15 22:49:50 +00:00
Amine Khaldi
f474fd859c [CMAKE]
* Back out r51360. The export in question is in ole32 (DllGetClassObject). This fixes comcat msvc build.

svn path=/branches/cmake-bringup/; revision=51361
2011-04-15 22:41:41 +00:00
Amine Khaldi
9d694e9d1c [CMAKE]
- Silence a linker warning about DllInitialize.

svn path=/branches/cmake-bringup/; revision=51360
2011-04-15 22:36:17 +00:00
Amine Khaldi
05e0ad424b [CMAKE]
* Empty CMAKE_C_STANDARD_LIBRARIES_INIT

svn path=/branches/cmake-bringup/; revision=51359
2011-04-15 22:34:20 +00:00
Rafal Harabien
66a33a5246 [SYSSETUP]
* Generate random computer name (REACTOS-xxxxxxx) in Setup. Patch by David Quintana <gigaherz at gmail dot com> modified by me
See issue #6099 for more details.

svn path=/trunk/; revision=51358
2011-04-15 20:42:07 +00:00
Timo Kreuzer
46a8c8f9fa [WIN32K]
Implement gdi pool. An allocator for user mode gdi object attributes.
The old method allocated a 4k page for every object, wasting 4k physical memory and 64k address space (allcoation granularity)
The new allocator creates a per process pool for each object attribute type. Allocations are done from "sections" that start with 1 page and grow dynamically up to 64k, if neccessary a new section is allocated. This will use about 1/10 of memory for dc attributes and 1/512 for brush attributes. Also allocation is way faster. Caching object attributes is not neccessary anymore.

svn path=/trunk/; revision=51357
2011-04-15 20:14:44 +00:00
Rafal Harabien
99c3b4ec57 [WIN32K]
* Revert part of 37148. One FontGDI is used for fonts with different sizes. Do not cache font metrics then and instead calculate them every time when needed. It fixes spacing in menus if some application uses default GUI font with size other than 11.
See issue #4106 for more details.

svn path=/trunk/; revision=51356
2011-04-15 20:03:44 +00:00
Johannes Anderwald
a61d852c84 [USBEHCI_NEW]
- Create Interface IDispatchIrp which is used to handle ioctl requests
- Partly implement IHubController interface

svn path=/branches/usb-bringup/; revision=51355
2011-04-15 17:57:24 +00:00
Rafal Harabien
423497b1b2 [SYSSETUP]
* Fix information about computer name length limit in Setup. Translators: please review

svn path=/trunk/; revision=51354
2011-04-15 16:54:25 +00:00
Johannes Anderwald
6815708639 [USBEHCI_NEW]
- Define tag for allocations
- Fixes assert hit in ReactOS
- Fix typo in IHubController interface declaration

svn path=/branches/usb-bringup/; revision=51353
2011-04-15 15:45:09 +00:00
Timo Kreuzer
197cf31913 [WIN32K]
- Use shared locks for surfaces and palettes

svn path=/trunk/; revision=51352
2011-04-15 15:29:08 +00:00
Timo Kreuzer
8357192be7 [WIN32K]
- Use shared locks for surfaces and palettes
- Unimplement NtGdiEngUnlockSurface, it was wrong

svn path=/trunk/; revision=51351
2011-04-15 15:20:17 +00:00
Johannes Anderwald
c1964ed574 [USBEHCI_NEW]
- Fix IOCTL_GET_HCD_DRIVERKEY_NAME implementation
- Now needs IOCTL_USB_GET_ROOT_HUB_NAME to get further in usbview
- Tested in Windows XP SP2

svn path=/branches/usb-bringup/; revision=51350
2011-04-15 14:58:50 +00:00
Rafal Harabien
ce720bbf52 [SYSSETUP]
* Computer name length is limited to 15 characters, not 63. Fixes possible buffer overflow
* Spotted by Victor Martinez

svn path=/trunk/; revision=51349
2011-04-15 14:29:14 +00:00
Johannes Anderwald
297f2e3dd4 [USBEHCI_NEW]
- Build fix #1 for mingw
- Define cxa_pure_virtual which is required that gcc is aware that it should really use the libc++ instead of falling back to libc

svn path=/branches/usb-bringup/; revision=51348
2011-04-15 14:13:24 +00:00
Matthias Kupfer
ae8ebc72e4 property svn:executable removed
svn path=/trunk/; revision=51347
2011-04-15 12:17:50 +00:00
Matthias Kupfer
706a9911e2 potential memory problem fixed, obsolete assignment removed
svn path=/trunk/; revision=51346
2011-04-15 12:16:26 +00:00
Michael Martin
a2b8986a0d [win32k]
- Move dereferencing of the MessageQueue from co_UserDestroyWindow to co_UserFreeWindow.
A reference is added to the MessageQueue for all windows created.co_UserFreeWindow is called for all windows and needs to be where the dereferencing of MessageQueue occurs.
This fixes NonPagedPool memory leak. See bug 6112 for more info.

svn path=/trunk/; revision=51345
2011-04-15 07:10:00 +00:00
Michael Martin
3b717045b6 [usbdriver]
- KbdDispatch: Set Status vice IoStatus.Status for all branches of switch. Use break instead of goto intcontfailure.
The previous code would set Status to what ever was in the IoStatus.Status of the IRP and return that Status.
Some times this would be STATUS_PENDING, which IIRC is a no-no.
This caused the kbdclass to enter into a wait that would never be satisifed hence blocking the keyboard thread.
This should fix the failure of keyboard input bugs.

svn path=/trunk/; revision=51344
2011-04-15 06:44:13 +00:00
Johannes Anderwald
24188364ec [USBEHCI_NEW]
- Implement CHCDController::Initialize, CHCDController::HandlePnp for PDO / FDO, 
- Partly implement CHCDController::HandleDeviceControl
- Based on mjmartin usbehci sources
- Driver now startups and acquires pnp resources
- Fails in HandleDeviceControl with IOCTL_GET_HCD_DRIVERKEY_NAME when usbview is launched
- Tested in Windows XP SP2 + Vmware Server 2.0.2

svn path=/branches/usb-bringup/; revision=51343
2011-04-14 16:42:02 +00:00
Johannes Anderwald
6ba926eecc [USBEHCI_NEW]
- Fix build breakage from 51341

svn path=/branches/usb-bringup/; revision=51342
2011-04-14 13:03:01 +00:00
Johannes Anderwald
abb1319801 [USBEHCI_NEW]
- Implement CUSBHardwareDevice::Initialize, CUSBHardwareDevice::AcquireDeviceLock, CUSBHardwareDevice::ReleaseDeviceLock
- Partly implement CUSBHardwareDevice::PnpStart
- Code from CUSBHardwareDevice::PnpStart was taken from mjmartin usbehci implementation

svn path=/branches/usb-bringup/; revision=51341
2011-04-14 12:55:41 +00:00
Amine Khaldi
b5250fa114 [CMAKE]
* Sync with trunk r51339.
* Move the static lib creation command from the toolchain file to gcc.cmake

svn path=/branches/cmake-bringup/; revision=51340
2011-04-14 12:50:32 +00:00
Aleksey Bragin
1b2e00d581 [RTL]
- If there is no data provided and parameters are valid, fail with STATUS_SXS_KEY_NOT_FOUND.

svn path=/trunk/; revision=51339
2011-04-14 12:20:47 +00:00
Amine Khaldi
c512ea5c43 [TRANSLATIONS]
Igor Paliychuk (mansonigor at gmail dot com):
* Update Ukrainian localization.
* Leftover from r51055: Update reactos.exe strings and resource sizes.
* Fix displaying of doskey localizations.

svn path=/trunk/; revision=51338
2011-04-14 12:13:38 +00:00
Johannes Anderwald
2e9250bbec [USBEHCI_NEW]
- Implement stubs for classes CHCDController and CUSBHardwareDevice
- Implement CreateHCDController, CreateUSBHardware
- Implement CUSBHardwareDevice::QueryInterface, CUSBHardwareDevice::AddRef, CUSBHardwareDevice::Release
- Implement CHCDController::AddRef, CHCDController::Release, CHCDController::QueryInterface

svn path=/branches/usb-bringup/; revision=51337
2011-04-14 11:58:07 +00:00
Amine Khaldi
4ae88bb7a4 [CMAKE]
- Reflect the recent user32_apitest changes. Please consider updating the cmake files when you alter the rbuild files in the future.

svn path=/trunk/; revision=51336
2011-04-14 11:55:40 +00:00
Johannes Anderwald
009b2e00df [USBEHCI_NEW]
- Create empty USB EHCI driver in c++
- Design & review the interfaces with mjmartin
- Create stubs for creating IUSBHardwareDevice / IHCDController classes
- Implement DriverEntry, EHCI_AddDevice and EHCI_Dispatch

svn path=/branches/usb-bringup/; revision=51335
2011-04-14 11:35:16 +00:00
Aleksey Bragin
9561880163 [RTL]
- Properly check parameters in RtlFindActivationContextSectionString. Almost the same as Wine did, but factored out into a standalone function, improved undocumented flags checks and allowing null data pointer in certain cases.

svn path=/trunk/; revision=51333
2011-04-14 09:57:08 +00:00
Michael Martin
3203ddd6e1 [Win32k]
- Fix implementation of message callbacks,  now callbacks can be called across processes. 
- Fix some comments.

svn path=/trunk/; revision=51332
2011-04-14 01:21:38 +00:00
Matthias Kupfer
1968375672 remove obsolete object handling
svn path=/trunk/; revision=51331
2011-04-13 20:20:16 +00:00
Giannis Adamopoulos
45fc0e0951 [explorer]
- Use the shell default auto-arrangement positioning. Aloow using custom positioning when configured. This fixes the positioning of icons of the desktop to look like windows

svn path=/trunk/; revision=51330
2011-04-13 18:25:58 +00:00
Amine Khaldi
46a8da69da [CMAKE]
* Sync with trunk r51323.

svn path=/branches/cmake-bringup/; revision=51329
2011-04-13 08:39:17 +00:00
Rafal Harabien
b69fae78db [GDI32]
* DPtoLP/LPtoDP functions should return TRUE even if they get 0 or less points or if pointer to points is invalid. See gdi32:DPtoLP apitest.
* Fixes 24 gdi32:DPtoLP apitests.

svn path=/trunk/; revision=51328
2011-04-13 08:14:37 +00:00
Michael Martin
35e6c5fe82 [USB\USBEHCI]
- Implement ExecuteTransfer to replace SubmitTransfer.
- Start implentation for BulkTransfers and needed DMA. This needs much more work to be done correctly. We will get to it.
- Implement URB_FUNCTION_CLASS_INTERFACE.
- Add comments.
Change 3 of 3.

svn path=/trunk/; revision=51327
2011-04-13 04:48:50 +00:00
Michael Martin
fe97558adf [USB\USBEHCI]
- For common buffer memory, only allocate one page and allocate more as needed. This implementation will most likely be replaced with janderwalds.
- Use a safecount while attempting to stop and start the controller, so that an error can be displayed vice doing endless loop for controllers that are misbehaving.
- Reorganize a few structuers and remove members of structures that are not used.
- Add comments for some of the DirectCall Interface Functions.
Change 2 of 3.

svn path=/trunk/; revision=51326
2011-04-13 04:43:25 +00:00
Michael Martin
b6256418e9 [USB\USBEHCI]
- Fix linking of QueueHeads. Implement LinkQueueHeadToCompletedList and CleanupAsyncList. These functions are used to software link the completed queueheads to a completed list. Only after the driver handshakes with the controller can this memory be freed.
Fix a few incorrect values for QueueHead.
- EhciDefferedRoutine: Implement handling of completed QueueHeads by removing them from the AnsycList and setting any errors for failure.
- Reserved a QueueHead that will always be in the AsyncList Address Register. By setting it as the Head of Reclamation the controller can know when it has reached the end of the QueueHead list.
- Remove all code from FdoDispatchInternalDeviceControl. This should never be called by upper level drivers.
Change 1 of 3.

svn path=/trunk/; revision=51325
2011-04-13 04:33:14 +00:00
Johannes Anderwald
2e8b524c99 [USBEHCI]
- Re-implement DMA buffer routines. It is now faster and consumes less memory overhead per allocated memory block.
- IoGetDeviceProperty needs a PDO
- Add few comments
- No need to clear buffer twice in CreateQueueHead / CreateDescriptor




svn path=/branches/cmake-bringup/; revision=51324
2011-04-13 01:37:14 +00:00
Giannis Adamopoulos
9c9874002e [shell32]
- Properly arrange icons in explorer shell view window. This also fixes navigating in files with keyboard arrows

svn path=/trunk/; revision=51323
2011-04-12 20:59:50 +00:00
Rafal Harabien
e58c66359a [SHELL32]
* Return 1 in WM_ERASEBKGND when desktop is painted
* Fix background for desktop icons and their labels
* Moreover fixes explorer_new background

svn path=/trunk/; revision=51322
2011-04-12 18:45:06 +00:00
Rafal Harabien
7db2a95a80 [COMCTL32]
* Sync listview to Wine 1.3.17
* Set background and text color before calling DrawFocusRect. Those colors are used by monochrome brush during painting. Tested this function in Windows and our implementation is correct. Wine has DrawFocusRect not correctly implemented and that's why they don't see this bug. Should be sent to wine (tm).

svn path=/trunk/; revision=51321
2011-04-12 18:38:38 +00:00
Eric Kohl
0dda24faea [NPFS]
PATCH: Arty's fixes based on CMake branch testing. Just the NPFS code.
See issue #6103 for more details.

svn path=/trunk/; revision=51320
2011-04-11 17:52:06 +00:00
Aleksey Bragin
0669ecfaf3 [RAPPS]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51319
2011-04-11 17:36:44 +00:00
Aleksey Bragin
bdf1dd8864 [WIN32CSR]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51318
2011-04-11 17:03:20 +00:00
Gabriel Ilardi
7281838670 [SNDVOL32]
Italian and Spanish translation updates.

svn path=/trunk/; revision=51317
2011-04-11 12:26:16 +00:00
Gabriel Ilardi
e52e2fbef6 [WIN32CSR]
Italian translation of command prompt's window title

svn path=/trunk/; revision=51316
2011-04-11 10:56:45 +00:00
James Tabor
e059680fea [Win32k]
- PATCH: Arty's fixes based on CMake branch testing. Just the timer code. See bug 6103.

svn path=/trunk/; revision=51315
2011-04-11 03:24:14 +00:00
Rafal Harabien
52ce60c8d8 [ADVAPI32]
* Copy RegQueryValueExA from Wine. Fixes 24 winetests fails which appeared after r51222. They are caused by calling RegQueryValueExA with buffer size set to large value. Old implementation was allocating new buffer with specified size (it was failing) and using unicode function. New implementation use given buffer size only when coping data.
See issue #6105 for more details.

svn path=/trunk/; revision=51314
2011-04-10 21:24:49 +00:00
Eric Kohl
9f1ea5942e [NETAPI32]
NetUserModalsGet failed if the domain SID returned by LsaQueryInformationPolicy was NULL. Handle the NULL SID case correctly.
See issue #6102 for more details.

svn path=/trunk/; revision=51313
2011-04-10 15:42:55 +00:00
Giannis Adamopoulos
c08567e81e [user32_apitest]
- Add some more tests for SetCursorPos

svn path=/trunk/; revision=51312
2011-04-10 15:14:15 +00:00
Olaf Siejka
dcd0dff4cc Fix build. The translation patch was outdated.
svn path=/trunk/; revision=51311
2011-04-10 14:55:11 +00:00
Matthias Kupfer
70bef06a00 Radek Liska <radekliska AT gmail DOT com>
- Czech translations for sndrec32 and sndvol32.
- See issue #6098 for details.

svn path=/trunk/; revision=51310
2011-04-10 13:19:01 +00:00
Johannes Anderwald
d896f82fa7 [SHELL32]
- Fix control style of property dialogs
- Patch Edijs Kolesnikovics, terminedijs@yahoo.com, irc:Edijus

svn path=/trunk/; revision=51309
2011-04-10 10:44:05 +00:00
Olaf Siejka
efe9675fbd [WIN32CSR]
Polish translation of Command prompt window title

svn path=/trunk/; revision=51308
2011-04-10 08:49:31 +00:00
Amine Khaldi
588882aa00 [DOSKEY/SNDREC32]
- Activate polish translations. Patch by Adam Stachowicz.

svn path=/trunk/; revision=51307
2011-04-09 21:02:25 +00:00
James Tabor
e5989efb7f - Fix build
svn path=/trunk/; revision=51306
2011-04-09 20:41:04 +00:00
James Tabor
86153cc8a8 [Win32k]
- Revert parts of 51283, thanks to Giannis for setting me straight on SetCursorPos and without breaking setting the Track window for TrackMouseEvent. Pass the new SetCursorPos, and wine test_TrackMouseEvent and input test_mouse_ll_hook tests.

svn path=/trunk/; revision=51305
2011-04-09 20:32:52 +00:00
Giannis Adamopoulos
36147ed99d add some tests for GetKeyState and SetCursorPos
svn path=/trunk/; revision=51304
2011-04-09 19:12:49 +00:00
Amine Khaldi
f3ddbe5d71 [CMAKE]
- Disable incremental linking and edit-and-continue.

svn path=/branches/cmake-bringup/; revision=51303
2011-04-09 17:20:36 +00:00
Amine Khaldi
9c83a930b6 [CMAKE]
* Fix a typo.

svn path=/branches/cmake-bringup/; revision=51302
2011-04-09 16:46:28 +00:00
Amine Khaldi
dfe6b0c4b9 [CMAKE]
* msvc compatibility fixes for usbehci.

svn path=/branches/cmake-bringup/; revision=51301
2011-04-09 16:37:27 +00:00
Johannes Anderwald
e6b7c8a1e1 [EXPLORER_NEW]
- Use ReactOS registry key for ReactOS features
- Patch by Edijus Kolesnikovičs, terminedijs@yahoo.com

svn path=/trunk/; revision=51300
2011-04-09 16:34:15 +00:00
Amine Khaldi
2a1f050cb3 [CMAKE]
- Add USB modules to build.

svn path=/branches/cmake-bringup/; revision=51299
2011-04-09 16:01:04 +00:00
Johannes Anderwald
057f632693 [SNDVOL32]
- Remove 'E'

svn path=/trunk/; revision=51298
2011-04-09 15:28:46 +00:00
Daniel Reimer
bec28e056e Partial revert, as explained on ML. Sry...
svn path=/trunk/; revision=51297
2011-04-09 15:21:22 +00:00
Daniel Reimer
dc37bd8b99 - Sync all resource files with the English one.
- Translate the new Dialog in the German one.
- Normally we use BEGIN and END, no {}
- DIALOG -> DIALOGEX

svn path=/trunk/; revision=51296
2011-04-09 14:46:37 +00:00
Giannis Adamopoulos
893a0bfccb [win32k]
- Rewrite GetKeyState based on wine. Now it's results are based on whether or nor the message queue has processed a keyboard message and not the actual state of the keyboard.c
- TODO: ensure it works corectly and use this implementation in most other places in win32k when we need to check the state of a key. To ensure nothing breaks, this change affects only GetKeyState

svn path=/trunk/; revision=51295
2011-04-09 12:44:45 +00:00
Kamil Hornicek
4041e16e6f Updated Czech translations for ping, charmap, reactos, usetup, console, desk and shell32 by Radek Liska (radekliska at gmail dot com) with some subtle modifications by me.
See issue #6067 for more details.

svn path=/trunk/; revision=51294
2011-04-09 12:18:34 +00:00
Matthias Kupfer
f02f58236a Command Prompt with translated window title
- German translation added
- other languages need to be translated (.rc files prepared)

svn path=/trunk/; revision=51293
2011-04-09 12:01:36 +00:00
Johannes Anderwald
39dac2cce0 [SNDVOL32]
- Fix more subtle bugs:
- Check with long line name if the current connection is activated when adding lines to dialog or when adding lines to the preferences dialog
- Use the temporary preferences context when writing the line settings
- Don't destroy the mixer when the preferences dialog is closed. the new mixer will be used for the application when the preferences are changed
- Pass the current selected line to the preferences dialog





svn path=/trunk/; revision=51292
2011-04-09 10:36:25 +00:00
Michael Martin
6301753d1d [Win32k]
- Only call hooks and check if Win32Thread is in cleanup if the windows procedure is being called.
- Set DispatchingListEntry.Flink to NULL. The real fix for bug 5580. This bug may be the cause of other crashes experienced by users just before loading desktop. Found by rafalh.

svn path=/trunk/; revision=51291
2011-04-09 07:19:31 +00:00
James Tabor
f78f9456fb [Win32k]
- Added more missed mouse injection flag and extra data being passed in and from set cursor position. Wine mouse low level hook msg tests now see it and check the validity of the hook message.

svn path=/trunk/; revision=51290
2011-04-09 07:08:17 +00:00
Sylvain Petreolle
02a6a17e28 [SNDVOL32]
Redraw window with correct size.
Window height was growing after changing preferences.

svn path=/trunk/; revision=51289
2011-04-08 23:18:20 +00:00
Sylvain Petreolle
6d9847ecb3 [SNDVOL32]
Update french translation.

svn path=/trunk/; revision=51288
2011-04-08 22:40:12 +00:00
Johannes Anderwald
3fe212aea3 [SNDVOL32]
- Fix mute switch control style

svn path=/trunk/; revision=51287
2011-04-08 22:17:18 +00:00
Johannes Anderwald
a54b06c8cd [SNDVOL32]
- Always write line states configuration values in one step
- Fixes the problem when old line state settings were not present
- Advantage is that it is faster and sndvol32 now works in ReactOS

svn path=/trunk/; revision=51286
2011-04-08 22:04:41 +00:00
Olaf Siejka
fcdea4c19d [DOSKEY]
- Polish translation by Adam "Saibman" Stachowicz

[SNDREC32]
- Polish translation by Adam "Saibman" Stachowicz

[SNDVOL32]
- Polish translation update by me

[TRANSLATION]
- Polish translation fixes (spelling, typos, grammar) and updates on multiple modules by Adam "Saibman" Stachowicz, few small corrections by me.

See issue #6087 for more details.

svn path=/trunk/; revision=51285
2011-04-08 21:57:32 +00:00
Johannes Anderwald
d234fd5fc8 [SNDVOL32]
- Add english resources for sndvol32
- Enjoy ;)

svn path=/trunk/; revision=51284
2011-04-08 21:09:07 +00:00
James Tabor
5399e1d53e [User32|Win32k]
- Fix TrackMouseEvent! Keyboard and Mouse pass all the right flags. Update to accelerator code. Fixed recursion in global hooks. Hack-implement GetMouseMovePointsEx due to slack time and boredom, it passes the input tests but does nothing. Pass all the test_TrackMouseEvent!!! test_accelerators and test_menu_messages work too, so far no hangs.


svn path=/trunk/; revision=51283
2011-04-08 19:29:15 +00:00
James Tabor
efe3b7a684 [Win32k]
- Fix crash in msg test_interthread_message test. Noticed it once and not sure how to track it.

svn path=/trunk/; revision=51282
2011-04-08 18:48:28 +00:00
Aleksey Bragin
a6586c33b1 [NTDLL]
- Fix incorrect prototypes and partially implement fast unsafe versions of activation context activation/deactivation, however disable them for now, until the new loader is in place.
- Fix their usage in the new loader code, which by mistake (which got copypasted into three other places) was passing a totally empty activation context to the activate function.

svn path=/trunk/; revision=51281
2011-04-08 17:49:49 +00:00
Amine Khaldi
0c5fa99762 [CMAKE]
- Ensure that we index the static libs in *nix environments.

svn path=/branches/cmake-bringup/; revision=51280
2011-04-08 17:30:18 +00:00
Timo Kreuzer
b63bf768a6 [NTOSKRNL]
ExInitializePushLock takes a PEX_PUSH_LOCK as parameter, do it the same in the inline version instead of casting to PULONG_PTR everywhere

svn path=/trunk/; revision=51278
2011-04-08 12:30:33 +00:00
Aleksey Bragin
a3690ead55 [KERNEL32]
- Zero-initialize base address in BasepLoadLibraryAsDatafile. Should fix 2nd stage problems.
- Add a trace debugprint, silented by default.
See issue #6092 for more details.

svn path=/trunk/; revision=51277
2011-04-08 09:21:41 +00:00
Aleksey Bragin
ef01012506 [KMTEST]
- Thomas Faber: Reset test results before starting a new FsRtl test.
See issue #6083 for more details.

svn path=/trunk/; revision=51276
2011-04-08 08:35:48 +00:00
Michael Martin
0a6bb0f70d [Win32k]
- co_IntSendMessageWithCallBack: Insert the message into the messagequeue before attempting to wake the queue. Probably fixes bug 5580.
- Remove the use of MSQ_SENTNOWAIT that was used to determine if messagequeues needed dereferencing. Instead use the SenderQueue member of the message.
- Do not close the NewMessagesHandle member of the messagequeue in IntDereferenceMessageQueue. 
The last reference on a messagequeue could be released by a thread belonging to a process other than the on that created the handle.
Also the creating process could already be long gone. Instead close this handle in MsqDestroyMessageQueue which is in the thread/process that created the handle. Problem noticed by smiley.
- Revert change done in 51254. James you are indeed correct. 
Testing shows that the WM_PARENTNOTIFY message is not sent when the program is exiting.

svn path=/trunk/; revision=51275
2011-04-07 23:57:00 +00:00
Johannes Anderwald
07de2df4a2 [SNDVOL32]
- Implement retrieving current volume level and mute state and set the dialog controls on startup
- Remove last line separator from GUI
- Implement updating slider / switch control when another application modifies volume settings
- Implement writing current selected lines settings into registry when the preference dialog is closed
- Implement helper functions which receive / set volume level
- Sndvol32 is now fully functional and has been tested in Windows XP SP3
- TODO: implement support for setting volume balance (left - right slider)
- TODO: Resources have not yet been commited

svn path=/trunk/; revision=51274
2011-04-07 21:31:21 +00:00
Jérôme Gardou
04fa57f360 [CMAKE]
We provide everything (headers, libraries, executables...), so tell it to cmake
[CRT]
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not

svn path=/branches/cmake-bringup/; revision=51273
2011-04-07 14:11:36 +00:00
Aleksey Bragin
3983f64027 [KERNEL32]
- Finish the ldr.c rewrite. Properly implement LoadLibraryExW (which contained some good code pieces added by Alex). Implement BasepLoadLibraryAsDatafile, however it doesn't support redirection yet and a call to load alternate resource module is commented out (it's totally absent in the existing ntdll/ldr API now).
- Mark GetDllLoadPath as deprecated, should be removed when SearchPathW is rewritten (or at least, reviewed). The new function to use is BasepGetDllPath.

svn path=/trunk/; revision=51272
2011-04-06 21:49:04 +00:00
Johannes Anderwald
446f42d3af [SNDVOL32]
- Implement loading of resources and parsing the dialog template in memory
- Store the created windows in an array
- Implement destroying of controls when mixer is changed / line selection is altered
- Implement generating layout for each new line
- Implement setting line name
- Resources have not yet been commited
- Sndvol32 is not yet functional

svn path=/trunk/; revision=51271
2011-04-06 21:05:05 +00:00
Aleksey Bragin
672303db6b [KERNEL32]
- Rewrite most of kernel32 module loading APIs (except for LoadLibraryExW, for testing purposes it's gonna be committed in a separate commit). Rewritten parts include:
* Better definition of LOADPARMS32 structure for LoadModule, and rewritten LoadModule which is now a well structured function with proper parameters validation, proper work algorithm and setting proper last error values in failure cases. Optimization of allocating MAX_PATH buffer on stack instead of in the heap is saved from the old version of the function.
* LoadLibraryA, added a path-hack (present at least up to Windows 2003) for twain_32.dll loading (not that important, but still a compatibility issue).
* Make GetProcAddress() use BasepMapModuleHandle for mapping the passed-in handle (including properly handling NULL module handle which was incorrectly handled by the old implementation), and check for a special failure case when LdrGetProcedureAddress returns pointer to the image base address.

svn path=/trunk/; revision=51270
2011-04-06 19:03:20 +00:00
Timo Kreuzer
0e072c5063 [RPCRT4]
Fix return type of *ClientCall functions.
Merged from cmake branch

svn path=/trunk/; revision=51269
2011-04-06 18:49:16 +00:00
Amine Khaldi
3793b7fdf1 [CMAKE]
* Sync to trunk r51266.

svn path=/branches/cmake-bringup/; revision=51268
2011-04-06 16:00:24 +00:00
Jérôme Gardou
8324997bc4 [CMAKE]
RosTests : buildno_header is no longer a valid target

svn path=/trunk/; revision=51267
2011-04-06 13:28:32 +00:00
James Tabor
5cf13573ed - Turn on test_capture_4.
svn path=/trunk/; revision=51266
2011-04-06 12:56:46 +00:00
James Tabor
3890323807 [User32|Win32k]
- Pass all the wine test_capture_1/2/3/4.
- Fix the menu tracking pop up hang issue by looking for deceased windows that pass on while in the start of tracking. This could be a fix for other wine tests.
- ReactOS is not Linux and wine is not enough!

svn path=/trunk/; revision=51265
2011-04-06 12:53:52 +00:00
James Tabor
374e21b4e0 [Win32k]
- The Reak fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <vins8920@hotmail.com>.

svn path=/trunk/; revision=51264
2011-04-06 12:23:54 +00:00
James Tabor
f43d2fe8ca [Win32k]
- Fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <vins8920@hotmail.com>.

svn path=/trunk/; revision=51263
2011-04-06 01:31:50 +00:00
Eric Kohl
ddb4a8780d [WIDL]
Reapply the switchtype patch.

svn path=/trunk/; revision=51262
2011-04-05 21:37:54 +00:00
Rafal Harabien
26504807cd [USRMGR]
Free buffer instead of freeing pointer to buffer

svn path=/trunk/; revision=51261
2011-04-05 21:24:25 +00:00
Rafal Harabien
4ce4beb1cb [SYSTEMINFO]
Add Italian translation (patch by Vincenzo Cotugno <vins8920 at hotmail dot com>)
Decrease buffer size
Don't print NULL domain/workgroup
Add network adapters detection

svn path=/trunk/; revision=51260
2011-04-05 21:20:42 +00:00
Rafal Harabien
be54395eb8 [PSDK]
Add GetAdaptersAddresses declaration
Add forgotten GetComputerNameEx macro

svn path=/trunk/; revision=51259
2011-04-05 21:14:18 +00:00
Michael Martin
6ecaf80fcf [NTOS/MM]
- Update PoolTag used with ExFreePooWithTag to match changes made in 46987 by richard.

svn path=/trunk/; revision=51258
2011-04-05 11:42:38 +00:00
Eric Kohl
35a75304b7 [ADVAPI32/LSASRV]
- Implement LsaLookupNames2 in advapi32.dll.
- Implement LsarLookupNames3 in lsasrv.dll as a mock-up which returns a hard-coded user account (Administrator).

This fixes several wine tests.

svn path=/trunk/; revision=51257
2011-04-04 22:08:45 +00:00
Michael Martin
862d46f96e - Revert 51255 that was committed on accident. The patch is not ready yet.
svn path=/trunk/; revision=51256
2011-04-04 22:08:39 +00:00
Michael Martin
771f834c43 [Win32k]
- co_MsqDispatchOneSentMessage: After calling the windows procedure check if the message was a callback. If so place the message into the calling MessageQueue.  Also check if the current MessageQueue is the calling MessageQueue in which case dont call the Windows procedure but call the callback routine. SendMessageCallback is now properly implemented.
- Remove the use of MSQ_SENTNOWAIT and instead use the SenderQueue and CallBackSenderQueue members to determine if the MessageQueues need to be dereferenced.
- Modify co_MsqSendMessage to accept more parameters so that it can handle Notification, Callback and Internal messages. These changes make this function more complex but removes duplicate code in messages.c and move the handling for all queued messages in one location.
- co_IntSendMessageWithCallBack: If the callback is for the same Message Queue, call it vice queuing it.
Insert the message into the MessageQueue before waking the thread to handle the message. Should fix bug 5580.

svn path=/trunk/; revision=51255
2011-04-04 21:50:24 +00:00
Michael Martin
9990b69447 [Win32k]
- Do not block calling thread when sending WM_PARENTNOTIFY messages. Fixes hang at end of user32 winetest for msg.

svn path=/trunk/; revision=51254
2011-04-04 21:15:07 +00:00
Aleksey Bragin
7fcd953546 [KERNEL32]
- Minor cleanup, better flag names (thanks to ProcessHacker team for the good names and values).
- Return error in failure path of BasepGetModuleHandleExW.
- Optimize GetModuleHandleExA so that it calls the internal routine directly, without going through GetModuleHandleExW first and thus validating parameters second time.

svn path=/trunk/; revision=51253
2011-04-04 19:35:24 +00:00
Johannes Anderwald
15474a66e9 [SNDVOL32]
- Set Control variable to null, which prevents that mixer controls being assigned to another line when the current line does not have any controls. Bug was highlighted when opening the property window. In that case sndvol32 frees the previous setting, so all mixer lines are also getting freed including their controls, which caused a double free in the case the line did not have any controls assigned.

svn path=/trunk/; revision=51252
2011-04-04 14:27:29 +00:00
James Tabor
94b1cd39cd - Fix build.
svn path=/trunk/; revision=51249
2011-04-04 07:22:41 +00:00
James Tabor
7a18540a92 [User32|Win32k]
- Working on wine win test_capture_4, pass all the tests in test_capture_4_proc but still waiting forever in MenuTrackMenu:WaitMessage!

svn path=/trunk/; revision=51248
2011-04-04 07:18:54 +00:00
Sylvain Petreolle
594dd8de49 [RBUILD]
Use msvcrt as default crt for DLLs/OCX modules.

svn path=/trunk/; revision=51247
2011-04-03 22:09:07 +00:00
Aleksey Bragin
53af1b545e [KERNEL32]
- Implement BasepMapModuleHandle and use it in GetModuleFileNameW. Later, it'll be used by other module and loader related functions in kernel32.
- Wrap a call to RtlImageNtHeader into SEH, because winetest and for some reason FF installer call it with incorrect handle and expect it to not crash (Windows also has SEH, but inside RtlImageNtHeader).
- Fix null-termination problems in GetModuleFileNameA, and incorrect calculation of characters returned in GetModuleFileNameW.
- Various smaller improvements to the rewritten code (missing parenthesis, better variable names, use pretty LDR_ macros from http://msdn.microsoft.com/en-us/library/ms684179(v=vs.85).aspx ).
- Thanks for your feedback!
See issue #6079 for more details.

svn path=/trunk/; revision=51246
2011-04-03 21:46:42 +00:00
James Tabor
526f2d84e4 [Win32k]
- Fix GetPeekMessage apitest that was broken when fixing the last two post quite message test.

svn path=/trunk/; revision=51245
2011-04-03 21:12:40 +00:00
Sylvain Petreolle
e8b4cecff1 [CMAKE]
Merge r51243.

svn path=/branches/cmake-bringup/; revision=51244
2011-04-03 20:36:28 +00:00
Sylvain Petreolle
9d955773ac [CONSOLE]
Fix french resource file name.
Dedicated to HeisSpiter & JanusMagnus.


svn path=/trunk/; revision=51243
2011-04-03 20:26:57 +00:00
Timo Kreuzer
02ab41ff4d [CMAKE]
- Add HAVE_GETPAGESIZE to host config.h. should fix linux build (fix by Sylvain)
- uncomment @echo off in configure script
- Move a DECLSPEC_NORETURN

svn path=/branches/cmake-bringup/; revision=51242
2011-04-03 20:21:04 +00:00
Ged Murphy
4c2b7d67a1 [FULLFAT]
- Add the kernel APIs required by the library

svn path=/trunk/; revision=51241
2011-04-03 16:22:15 +00:00
Eric Kohl
8907f384eb [LSASRV]
Fix typos in lsa.idl (LsarLookupNames2, LsarLookupNames3 and LsarLookupNames4) and fix resulting errors in lsasrv.dll.

svn path=/trunk/; revision=51240
2011-04-03 14:51:18 +00:00
James Tabor
f66194544b [Win32k]
- Fix DDE test crash. it's a band-aide.
- Fix the last two post quite message test, all pass now.

svn path=/trunk/; revision=51239
2011-04-03 12:22:00 +00:00
Aleksey Bragin
629be1865d [KERNEL32]
- Rewrite large part of ldr.c code, including FreeLibrary, FreeLibraryAndExitThread, GetModuleFileNameA/W, GetModuleHandleA/W, ExA/W. Now they properly validate parameters, common code for getting module handles is factored into a standalone function which is reused for all 4 APIs instead of duplicating almost the same code four times. GetModuleFileNameA became a typical A->W wrapper around GetModuleFileNameW so duplication is also removed there.
- Getting module handle also became a correct implementation because now it takes process's dll path into account instead of always assuming a "default" one (which is incompatible with a new ntdll loader).
- Fixed a typo in BasepGetProcessPath which led to incorrect value being returned. Downgrade two debugprints.

svn path=/trunk/; revision=51238
2011-04-03 09:42:08 +00:00
James Tabor
6f4a96d594 [Win32k]
- Fix the return checks for  co_MsqWaitForNewMessages, now the wait_idle test no longer randomly crash, also tested the testkbd check from bug 3212. Setup co_MsqWaitForNewMessages to act like get message, checking QS bits and dispatching send messages if queued.
- Added desktop hit test data point, now the new track mouse timer code works. Not yet committed.

svn path=/trunk/; revision=51237
2011-04-03 02:14:14 +00:00
Ged Murphy
f6c92d8d84 [FULLFAT]
- Map the memory functions onto kernel APIs

svn path=/trunk/; revision=51236
2011-04-02 18:51:41 +00:00
Aleksey Bragin
901b5f0d91 [NDK]
- Add RTL_PERTHREAD_CURDIR structure definition.
- Fix RTL_DRIVE_LETTER_CURDIR type vs. structure definition typo (adding more underscores is a truly universal fix!).

svn path=/trunk/; revision=51235
2011-04-02 18:32:04 +00:00
Ged Murphy
d7899fc474 [FULLFAT]
- Fix warnings for both msc and rbuild
- These fixes will be applied to the FullFat source too, so I've not bothered with a local ros.diff

svn path=/trunk/; revision=51234
2011-04-02 18:12:31 +00:00
Rafal Harabien
a27aa83904 [SYSTEMINFO]
Clean it up a bit
Prepare for CSV format support

svn path=/trunk/; revision=51233
2011-04-02 17:51:09 +00:00
Ged Murphy
50fd13ae9c [FULLFAT]
- Switch UTF-16 support on throughout the library.

svn path=/trunk/; revision=51230
2011-04-02 16:37:25 +00:00
Ged Murphy
271454653d [FULLFAT]
- Update FullFat to the latest SVN code on James' recommendation.
- This release has many advantages over the previous, including full UTF-8 and UTF-16 support and the ability to modify attributes and timestamps. All of which are important for ros.
- It currently has a few warnings (in both gcc and msc), so I've had to turn allow warnings on.

svn path=/trunk/; revision=51229
2011-04-02 16:31:43 +00:00
Rafal Harabien
888f3912cb [SYSTEMINFO]
* Fix System Locale field
* Fix Input Locale field

svn path=/trunk/; revision=51228
2011-04-02 15:50:45 +00:00
Ged Murphy
91e657f782 {FULLFAT]
- Update FullFat to the latest stable release (1.0.5)
- I'm awaiting a reply from James as to when 1.1.0 will be released as it have some nice improvements.

svn path=/trunk/; revision=51227
2011-04-02 15:22:48 +00:00
Johannes Anderwald
542a951d46 [TEE]
- TEE should overwrite existing file
- Patch by vins8920 hotmail 
See issue #6022 for more details.

svn path=/trunk/; revision=51226
2011-04-02 15:15:08 +00:00
Rafal Harabien
88e51aaa47 [SYSTEMINFO]
* Fix Domain field
* Get rid of TCHAR
* Translate System Up Time to polish

svn path=/trunk/; revision=51225
2011-04-02 14:54:24 +00:00
Giannis Adamopoulos
0857319218 [win32k]
- Simplify co_IntWaitMessage
- In co_IntGetPeekMessage, call co_MsqWaitForNewMessages instead of co_IntWaitMessage when we  need to wait for a new message. co_IntWaitMessage calls co_IntPeekMessage again without removing messages. The problem is that processing some messages produce other messages or hooks even though the message must not be removed. As a result some messages like WM_NCHITTEST were received twice by the application
- Should fix bug 3232

svn path=/trunk/; revision=51224
2011-04-02 10:12:44 +00:00
Aleksey Bragin
1d045ebeb3 [NTDLL]
- Fix a typo which led to incorrect logic of TLS allocation. This repairs those installers broken by r51051.
See issue #6009 for more details.

svn path=/trunk/; revision=51223
2011-04-02 09:20:16 +00:00
Rafal Harabien
f4f2b68256 [ADVAPI32]
* Fix bug in RegQueryValueExA, which causes buffer overflow
* Fixes systeminfo in ReactOS
See issue #6050 for more details.

svn path=/trunk/; revision=51222
2011-04-01 22:10:52 +00:00
Rafal Harabien
7c126a9a69 [SYSTEMINFO]
Don't translate System Type
Don't mix TCHARs and chars
Fix Time Zone for not English systems
Use proper registry key for Install Date
Format dates using system settings
Format numbers

svn path=/trunk/; revision=51221
2011-04-01 18:58:12 +00:00
Jérôme Gardou
1d2b1c4a24 [CMAKE]
- Get rid of buildno_header target, builno.h is generated at configure time.

svn path=/branches/cmake-bringup/; revision=51220
2011-04-01 17:34:49 +00:00
Jérôme Gardou
ab94ebe598 [CMAKE]
- Do not make an artificial target for gendib generated files.
GENERATED property for source files is there for that and is automatically set by cmake for custom command OUTPUT files.

svn path=/branches/cmake-bringup/; revision=51219
2011-04-01 16:59:14 +00:00
Aleksey Bragin
472df5e17a - Fix build. Happens.
svn path=/trunk/; revision=51218
2011-04-01 12:18:54 +00:00
Aleksey Bragin
0ca9a93ca6 [KERNEL32]
- Implement a simple version of BasepGetDllPath()/BasepGetProcessPath().

svn path=/trunk/; revision=51217
2011-04-01 10:06:03 +00:00
James Tabor
951d604b0c [Win32k]
- Fix wine post message test, corrected the peek message window selection.
- Add a check for dead windows and new message queue flags. 
- Other miscellaneous fix ups.

svn path=/trunk/; revision=51216
2011-03-31 21:20:06 +00:00
Rafal Harabien
04afecea16 [SYSTEMINFO]
Add System Manufacturer and System Model to resources
Convert TABs to spaces in resources
Sort strings in resources a bit

svn path=/trunk/; revision=51215
2011-03-31 16:51:19 +00:00
Johannes Anderwald
0a3b87a1ef - Fix build attempt #1
svn path=/trunk/; revision=51214
2011-03-31 16:21:38 +00:00
Johannes Anderwald
62d4baba03 [PSDK]
- More header updates

svn path=/trunk/; revision=51213
2011-03-31 16:16:10 +00:00
Rafal Harabien
ddbfebc22a [SYSTEMINFO]
Convert TABs to spaces
Print output to stdout instead of stderr
Close opened registry keys
Simplify a bit
Add System Manufacturer and System Model
Add System Up Time (patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>, see issue 6055 for more details)

svn path=/trunk/; revision=51212
2011-03-31 15:56:24 +00:00
Aleksey Bragin
73b6d5b3d6 [NTDLL]
- Change Context/Parameter in LdrEnumerateLoadedModules() to PVOID (previous ULONG type was a typo).

svn path=/trunk/; revision=51210
2011-03-31 11:32:57 +00:00
Aleksey Bragin
c7b59706ce - Fix build.
svn path=/trunk/; revision=51209
2011-03-30 21:33:57 +00:00
Aleksey Bragin
b98f8ccd88 [NTDLL]
- Implement LdrEnumerateLoadedModules().

svn path=/trunk/; revision=51208
2011-03-30 21:21:42 +00:00
Aleksey Bragin
b94139f67f [NTDLL]
- Add RtlDosApplyFileIsolationRedirection_Ustr() stub.

svn path=/trunk/; revision=51207
2011-03-30 20:56:05 +00:00
Olaf Siejka
5882dc9038 [DESK]
- Translation patch by Adam "Saibamen" Stachowicz. See issue #6057 for more details.

[EXPLORER]
- Translation patch by Adam "Saibamen" Stachowicz.

[SERVMAN]
- Translation patch by Adam "Saibamen" Stachowicz. 

[SHELL32]
- Translation patch by Adam "Saibamen" Stachowicz. See issue #6060 for more details.

svn path=/trunk/; revision=51206
2011-03-30 18:49:01 +00:00
Gabriel Ilardi
e37934bec0 [CMD] Fix a typo in dir that led to omitting the last character in the AM/PM time format.
See issue #6061 for more details.

svn path=/trunk/; revision=51205
2011-03-30 13:02:57 +00:00
Aleksey Bragin
550e976e24 [NTOS/KE]
- Clear KernelApcPending flag every time the Kernel APCs queue is not empty.

svn path=/trunk/; revision=51204
2011-03-30 11:05:40 +00:00
James Tabor
88339aa831 [User32|Win32k]
- Move EnableWindow to Win32k.
- Fix sign in class function.

svn path=/trunk/; revision=51203
2011-03-30 08:19:52 +00:00
James Tabor
815eb466ba [User32]
- Connect the rest of the pump hooks and start tracking from application testing.

svn path=/trunk/; revision=51202
2011-03-30 01:26:54 +00:00
James Tabor
0d6b3c7ebd [User32|Win32k]
- Update NtUser pump functions, based on known values. Move one more function to the right place.

svn path=/trunk/; revision=51201
2011-03-30 01:00:28 +00:00
James Tabor
f42a29cf5c [Win32k]
- Move IntGdiSetBrushOwner and IntGdiSetRegionOwner out of the export section.

svn path=/trunk/; revision=51200
2011-03-29 23:44:22 +00:00
Olaf Siejka
c07f34ceee [SHELL32]
- Fix a bug, by Johannes Anderwald

svn path=/trunk/; revision=51199
2011-03-29 21:59:57 +00:00
Olaf Siejka
615f45bf9a [SHELL32]
- Fix build, borked by copypasta

svn path=/trunk/; revision=51198
2011-03-29 21:48:30 +00:00
Aleksey Bragin
a77d09adf9 [KERNEL32]
- Rename global vars to some better names (some of the names seen in Windows 2003 asserts and text messages).
- Add BaseDefaultPath initialization, which will be needed but the new kernel32/ldr code, which is in turn required by the new ntdll/ldr code.
- Add some beginnings of BasepGetDllPath(), but it returns NULL anyway now so no change in execution.

svn path=/trunk/; revision=51197
2011-03-29 21:48:13 +00:00
Olaf Siejka
ed27eba843 [SHELL32]
- Fix compile warning (uninitialized use). Based on patch by Edijs Kolesnikovics <terminedijs at yahoo dot com> slightly modified by Aleksiej
See issue #6058 for more details.

svn path=/trunk/; revision=51196
2011-03-29 21:41:14 +00:00
Olaf Siejka
c98d64bacb [SYSSETUP]
- Fix compilation warning. Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>
See issue #6059 for more details.

svn path=/trunk/; revision=51195
2011-03-29 21:21:18 +00:00
Timo Kreuzer
2127ff030c [WIN32K]
Addendum to r51188: set last error, when overflow check fails.
Fixes test regression.

svn path=/trunk/; revision=51194
2011-03-29 15:35:10 +00:00
Aleksey Bragin
6771858659 [RTL]
- Turn off LdrVerifyMappedImageMatchesChecksum() verification for now. (should have been part of r51192).

svn path=/trunk/; revision=51193
2011-03-29 11:00:34 +00:00
Aleksey Bragin
fb0b4f31c4 [NTOS/MM]
- Remove IMG_SCN_TYPE_NOLOAD support which was firstly removed by Alex, then reenabled by Herve. Hopefully it works this time.
- Return proper image size after successfully mapping an image section (previously, 0 was always returned). The change above is necessary for returning correct size.

svn path=/trunk/; revision=51192
2011-03-29 10:56:28 +00:00
Timo Kreuzer
d7e597d60e [WIN32K]
- Move IntGdiSetBrushOwner to brush.c
- Move IntGdiSetDCOwnerEx to dclife.c
- Move IntGdiSetRegionOwner to region.c

svn path=/trunk/; revision=51191
2011-03-29 10:25:10 +00:00
Timo Kreuzer
e78589d99a [WIN32K]
Disable system service hooks, that got accidentally enabled.


svn path=/trunk/; revision=51190
2011-03-29 10:07:11 +00:00
Timo Kreuzer
854e23cc3e [WIN32K]
Make GdiTableSection a static variable and use it only from gdiobj.c

svn path=/trunk/; revision=51189
2011-03-29 10:02:38 +00:00
Timo Kreuzer
216026918d [WIN32K]
Fix parameter check and buffer probing in NtUserSetSysColors

svn path=/trunk/; revision=51188
2011-03-29 09:52:39 +00:00
James Tabor
0bf0c70444 [User32|Win32k]
- Properly implement RealGetWindowClass, fixes the ApiTest. Keeping the Ansi support for now, will use it as a reference.

svn path=/trunk/; revision=51187
2011-03-29 05:53:34 +00:00
James Tabor
827e75cb89 [User32]
- Fix select old brush in FillRect.

svn path=/trunk/; revision=51186
2011-03-29 05:11:02 +00:00
James Tabor
9e22fe5962 [Win32k]
- Finish object attribute support part 2.
- Removed DC from the list, ReactOS handles this in a different way. Comment out Brush and Pen switches until proper handling is implemented.

svn path=/trunk/; revision=51185
2011-03-29 02:57:48 +00:00
Rafal Harabien
c5dad4998c [USER32]
Fix a bug causing "Attempted to lock object, wrong reuse counter" messages when CMD was started in LiveCD. Once got desktop HDC was used in different threads. When thread, which created handle terminated, DC handle was removed and next calls to CreateIcon* API was using invalid hDC.

svn path=/trunk/; revision=51184
2011-03-28 20:52:27 +00:00
Timo Kreuzer
9f5aa51751 [CMAKE/AVIFIL32]
Move utf-8 resources back into rsrc.rc, move avifile_Bg.rc to the bottom. Fixes compilation with MSVC

svn path=/branches/cmake-bringup/; revision=51183
2011-03-28 14:17:26 +00:00
Timo Kreuzer
cabc5ed079 [CMAKE/ROSSYM]
Implement some dummy functions for MSVC. ntoskrnl links now.

svn path=/branches/cmake-bringup/; revision=51182
2011-03-28 11:59:37 +00:00
Timo Kreuzer
0d3a397198 [NTOSKRNL]
Move macro definition out of macro instantiation.
Fixes compilation with MSVC

svn path=/branches/cmake-bringup/; revision=51181
2011-03-28 11:58:46 +00:00
Timo Kreuzer
4346778201 [CMAKE]
move the EXTERN _KiSystemService:PROC from syscalls.inc to zw.S. Fixes build of ntdll with MSVC

svn path=/branches/cmake-bringup/; revision=51180
2011-03-28 11:27:08 +00:00
James Tabor
4ef3dbc225 [GDI32|User32|Win32k]
- Fix ScrollDC ApiTest.

svn path=/trunk/; revision=51179
2011-03-28 00:17:21 +00:00
Rafal Harabien
f21acd6f09 [USER32]
Don't fail if FillRect is called without brush. Fixes user32:uitools winetest

svn path=/trunk/; revision=51178
2011-03-27 23:19:56 +00:00
Rafal Harabien
54cac2ef9e [PING]
Fix crash if option, which needs number is on the end of command line
Get rid of GetULONG and GetULONG2 functions. MS doesn't check input so precisely
Command line options can be preceded by "/"

See issue #6047 for more details.

svn path=/trunk/; revision=51177
2011-03-27 22:47:59 +00:00
Rafal Harabien
8174c5cfde [SYSSETUP]
Set HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate to install date.
Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com> slightly modified by me
See issue #6044 for more details.

svn path=/trunk/; revision=51176
2011-03-27 21:51:41 +00:00
Daniel Reimer
91eff339fd Update the Applications to the recent Versions.
Add the dlls the C,VB etc Runtime Packs will install into the description.
Remove goOO from rapps.

svn path=/trunk/; revision=51175
2011-03-27 18:34:22 +00:00
Amine Khaldi
baa1116143 [CMAKE]
- Alter base addresses to prevent kernel32 relocation.
- Fixes 2nd stage hang.

svn path=/branches/cmake-bringup/; revision=51174
2011-03-27 17:44:53 +00:00
Aleksey Bragin
29b96f834c - Lay out critical system DLLs so that they don't overlap when loaded properly.
svn path=/trunk/; revision=51173
2011-03-27 16:37:26 +00:00
Eric Kohl
4288ba6306 [SERVICES]
ScmWriteDependencies:
- Fixed an off-by-one bug. This bug caused a wrong calculation of the 'DependOnGroup' value data length. Group dependencies were not written properly to the registry.

- Write 'DependOnService' and 'DependOnService' values to the registry only if the dependency strings are not empty. Delete a value if the corresponding dependency string is empty.

This fixes another winetest.

svn path=/trunk/; revision=51172
2011-03-27 13:12:12 +00:00
Aleksey Bragin
828d04705a [NTOS/MM]
- Return STATUS_IMAGE_NOT_AT_BASE when mapping an image section to a different base address. New ntdll loader depends on this and fails to relocate the image if this status is not returned.

svn path=/trunk/; revision=51171
2011-03-27 11:32:55 +00:00
James Tabor
34bb476056 [GDI32]
- Finish object attribute support.

svn path=/trunk/; revision=51170
2011-03-27 05:40:30 +00:00
Rafal Harabien
8900f7d5d4 [WIN32K]
Rename IntResetMonitorSize to IntUpdateMonitorSize
Use IntUpdateMonitorSize instead of setting monitor size manually when attaching monitor
Change display device name from VIDEOx to DISPLAYx as it is in Windows (fixes user32:monitor winetest)

[USER32]
Return FALSE in EnumDisplayMonitors if EnumProc returned FALSE (fixes user32:monitor winetest)

svn path=/trunk/; revision=51169
2011-03-27 01:12:25 +00:00
Olaf Siejka
47d38c2989 [RAPPS]
- Add DoubleCommander to app list. Russian and Ukrainian translation by Igorko, Polish translation by me.

[CMD]
- Fix Russian translation of cmd. Patch by seven_ro. See bugreport no.#6043

svn path=/trunk/; revision=51168
2011-03-26 23:53:49 +00:00
Olaf Siejka
7dfe6edff5 [NTDLL]
- Fix "entry point not found" harderror parameters. Patch by Thomas Faber
See issue #5983 for more details.

svn path=/trunk/; revision=51167
2011-03-26 23:36:56 +00:00
Amine Khaldi
475719f162 [CMAKE]
- Sync with trunk r51165.

svn path=/branches/cmake-bringup/; revision=51166
2011-03-26 23:14:25 +00:00
Rafal Harabien
164140d904 Fix duplicated startup version string
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

svn path=/trunk/; revision=51165
2011-03-26 21:41:49 +00:00
Eric Kohl
ac4083c6d7 Disable some misleading service tests because a test cannot determine wheter or not the number of active or inactive services is correct.
svn path=/trunk/; revision=51164
2011-03-26 20:07:09 +00:00
Rafal Harabien
299f6a7826 [VIDEOPRT]
Add missing check
Don't assume UNICODE_STRING is NULL-terminated

svn path=/trunk/; revision=51163
2011-03-26 17:49:55 +00:00
Amine Khaldi
56e859054d [CMAKE]
- Merge the win32k change from r51126.

svn path=/branches/cmake-bringup/; revision=51162
2011-03-26 16:56:24 +00:00
Rafal Harabien
291012914d [GDI32]
Fix gdi32:CreatePen apitest

svn path=/trunk/; revision=51161
2011-03-26 15:24:05 +00:00
Rafal Harabien
68af0e9cd1 [GDI32_APITEST]
Improve CreatePen and GetCurrentObject tests

svn path=/trunk/; revision=51160
2011-03-26 15:23:10 +00:00
Rafal Harabien
7e914b6e08 [NDIS]
Correct Length value in case string is truncated

svn path=/trunk/; revision=51159
2011-03-26 15:12:23 +00:00
Amine Khaldi
9518b8f2a7 [CMAKE]
- Fix normaliz exports.

svn path=/branches/cmake-bringup/; revision=51158
2011-03-26 14:40:09 +00:00
Timo Kreuzer
9bc2dffdfa [CMAKE]
Fix build

svn path=/branches/cmake-bringup/; revision=51157
2011-03-26 13:33:46 +00:00
Amine Khaldi
66d7842e82 [CMAKE]
- Fix resource compilation with windres for 2.8.4

svn path=/branches/cmake-bringup/; revision=51156
2011-03-26 13:31:09 +00:00
Timo Kreuzer
cfa45698fb [CMAKE]
Convert normaliz to spec

svn path=/branches/cmake-bringup/; revision=51155
2011-03-26 13:30:16 +00:00
Amine Khaldi
785bea480a [CMAKE]
- Sync with trunk r51050.

svn path=/branches/cmake-bringup/; revision=51154
2011-03-26 13:00:21 +00:00
Jérôme Gardou
e8a0827c67 [CMAKE]
- fix cmake version check

svn path=/branches/cmake-bringup/; revision=51153
2011-03-26 12:36:15 +00:00
Jérôme Gardou
04410bf196 [CMAKE]
- wrap cmake 2.8.4 (which is > 2.8.2, ah ah) policy into right checks
  - put it in the right place

svn path=/branches/cmake-bringup/; revision=51152
2011-03-26 12:31:05 +00:00
Timo Kreuzer
3b76f1e67a [CMAKE]
define isinf to !_finite to fix MSVC build

svn path=/branches/cmake-bringup/; revision=51151
2011-03-26 11:43:22 +00:00
Timo Kreuzer
45fb05920d [CMAKE]
Fix wined3d dll filename for imports

svn path=/branches/cmake-bringup/; revision=51150
2011-03-26 11:37:13 +00:00
Jérôme Gardou
6765eed6e2 [CMAKE]
- cmake 2.8.4 comes with a new policy, set the needed behaviour.

svn path=/branches/cmake-bringup/; revision=51149
2011-03-26 11:11:46 +00:00
James Tabor
00a64f39cb [User32]
- Cleanup edit and add back missing break in combo.

svn path=/trunk/; revision=51148
2011-03-26 05:31:59 +00:00
James Tabor
b294b7d774 [GDI32]
- Patch by Thomas Faber: GetTextExtentPoint32 must not assume null termination of lpString.

svn path=/trunk/; revision=51147
2011-03-26 02:10:04 +00:00
Timo Kreuzer
6af9026458 [USER32]
Improve formatting

svn path=/trunk/; revision=51146
2011-03-26 01:20:11 +00:00
James Tabor
6e23217097 [Csrss|Win32k]
- Enable the desktop class and set the ReactOS variant of csrss back to local desktop class. Now all class tests pass, see bug 4778.

svn path=/trunk/; revision=51145
2011-03-26 00:43:56 +00:00
Rafal Harabien
61b6e9119f [WIN32K]
wcsncpy -> RtlStringCbCopyW (part 4/x)
Avoid unneeded allocation

svn path=/trunk/; revision=51144
2011-03-25 23:09:06 +00:00
Rafal Harabien
03a8c91d75 [WIN32K]
wcsncpy -> safe api (part 3/x)

svn path=/trunk/; revision=51143
2011-03-25 22:57:46 +00:00
Rafal Harabien
00cfa29229 [WIN32K]
Fix GDITAG_LDE/TAG_LDE mess

svn path=/trunk/; revision=51142
2011-03-25 22:49:30 +00:00
Rafal Harabien
eeaccfdfe1 [WIN32K]
Forgotten in r51139...

svn path=/trunk/; revision=51141
2011-03-25 22:45:59 +00:00
Rafal Harabien
04d67b9ebd [WIN32K]
Change wcsncpy to safe functions (part 2/x)

svn path=/trunk/; revision=51140
2011-03-25 22:36:37 +00:00
Rafal Harabien
0b986764d4 [WIN32K]
Make sure strings returned by internal function RegQueryValue are NULL terminated

svn path=/trunk/; revision=51139
2011-03-25 22:34:53 +00:00
Rafal Harabien
547a7d215f [NTOSKRNL]
Change strncpy calls to RtlStringSbCopyA (PART 1/x)
Fix bug in MmLoadSystemImage which caused FileName parameter to be freed

svn path=/trunk/; revision=51138
2011-03-25 22:28:15 +00:00
Rafal Harabien
54dc46543f [USER32]
Fix bug causing no NULL termination of strings after conversion in EnumDisplayDevicesA. Fixes one usr32:monitor winetest

svn path=/trunk/; revision=51137
2011-03-25 21:58:39 +00:00
Rafal Harabien
c14b8afbdc Forgotten in r51135...
svn path=/trunk/; revision=51136
2011-03-25 21:49:03 +00:00
Rafal Harabien
e0191e8920 [PSDK]
Import strsafe.h from mingw-w64. It's more complete compared to our headers

[DDK]
Import ntstrsafe.h from mingw-w64 (converted from strsafe.h). It's more complete compared to our headers

[NTOSKRNL]
Use sizeof instead of magic numbers

Let's use strsafe functions now instead of strncpy/wcsncpy, which doesn't always NULL terminate :)

svn path=/trunk/; revision=51135
2011-03-25 21:42:48 +00:00
Gabriel Ilardi
855227336f [SHELL32]
Italian & Spanish fixes + RunFileDlg translations

svn path=/trunk/; revision=51133
2011-03-24 08:34:49 +00:00
Amine Khaldi
70a12312e3 [BUILD]
- Remove redundant -fms-extensions as we set it globally already.

svn path=/trunk/; revision=51132
2011-03-23 23:17:45 +00:00
Rafal Harabien
58789369ad Revert previous commit
Sorry... I'll test first next time.

svn path=/trunk/; revision=51131
2011-03-23 20:48:20 +00:00
Rafal Harabien
a3c683546c [DDK]
Add most of RtlString***W functions based on ANSI versions.

svn path=/trunk/; revision=51130
2011-03-23 20:36:25 +00:00
Rafal Harabien
4732a3af3d [WIN32K]
Remove a useless if in cliprgn.c
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

svn path=/trunk/; revision=51129
2011-03-23 17:11:40 +00:00
Rafal Harabien
cd1a61c18f [USER32]
Gray close button if SC_CLOSE is disabled is sysmenu or class has CS_NOCLOSE flag
See issue #5272 for more details.

svn path=/trunk/; revision=51128
2011-03-23 16:51:26 +00:00
Rafal Harabien
fcd25281d9 [SHELL32]
Sync RunFileDlg to wine. It was crashing for one char input.
Add "All files (*.*)" filter to RunDlg and OpenWith dialogs. 
Improved polish translation.
Translators: please localize rest...

svn path=/trunk/; revision=51127
2011-03-23 16:22:38 +00:00
Rafal Harabien
cd22887a97 [NTOSKRNL]
Revert r51108. ProbeForRead doesn't check if memory is readable.
Improve comments and replace trick raising exception with call to ExRaiseAccessViolation.

[WIN32K]
Remove ASSERTs in IntSetSysColors: this function is only called in NtUserSetSysColors in SEH block. It shouldn't crash for NULL pointers.

svn path=/trunk/; revision=51126
2011-03-23 15:49:44 +00:00
Rafal Harabien
2165af8818 [WIN32K]
Check for failed allocations when creating window
See issue #6021 for more details.

svn path=/trunk/; revision=51125
2011-03-23 15:33:13 +00:00
Gabriel Ilardi
aeddc6ac0c Jeisson Toscano: Some Spanish translation updates plus some corrections added by elhoir and me. Bugs: 5891, 5892 and 5897.
See issue #5891 for more details.

svn path=/trunk/; revision=51124
2011-03-23 14:39:39 +00:00
Aleksey Bragin
17d6f165a7 [NTDLL/LDR]
- Fix a few bugs (wrong variable usage, wrong variable initialization) which led to incorrect snapping of import address table.
- Wrap LdrpSnapThunk() invocations into SEH.

svn path=/trunk/; revision=51123
2011-03-23 12:25:53 +00:00
Gabriel Ilardi
906bcad66a Paolo Devoti: Some Italian fixes.
See issue #5847 for more details.

svn path=/trunk/; revision=51122
2011-03-23 11:56:35 +00:00
Gabriel Ilardi
d312252d26 [NTOS/INBV]
- Update boot screen copyright year.

svn path=/trunk/; revision=51121
2011-03-23 11:44:35 +00:00
Aleksey Bragin
cc6c8e90e2 [NTOS/KE]
- Remove VirtualBox SYSENTER-hack added in r50991.
- Bring back NT-compatible SYSENTER support detection changed in r50991.

svn path=/trunk/; revision=51120
2011-03-22 16:35:51 +00:00
Aleksey Bragin
4fb00286d5 [RTL/HEAP]
- Thomas Faber: Use macro instead of manually removing item from the list.
See issue #6016 for more details.

svn path=/trunk/; revision=51119
2011-03-22 16:27:41 +00:00
Aleksey Bragin
64e9e4c196 [NTDLL]
- Implement LdrpInitializeProcess(). Currently unused.
- Add a whole bunch of supportive PE related code. Used only by the new code, which is not enabled yet in trunk.
- Implement LdrpCheckForLoadedDll().
- Move on to usage of various global vars defined in the new code, rename some of them to match.
- Almost no changes for the codepath in trunk.

svn path=/trunk/; revision=51117
2011-03-22 12:41:52 +00:00
Giannis Adamopoulos
4a05e4ef29 [win32k]
- Simplify BuildWindowStationNameList a bit

svn path=/trunk/; revision=51116
2011-03-22 09:59:36 +00:00
Giannis Adamopoulos
8cf95d1319 [ntoskrnl]
- Implement calling OkayToCloseProcedure callouts to win32k for desktop and window station objects
- Fix a bug that caused ObpCloseHandle to return success even when OkayToCloseProcedure failed

[win32k]
- Rewrite SetProcessWindowStation to actually set the current window station and close the previous one
- Implement OkayToCloseProcedure callouts from the kernel to prevent closing the current desktop or window station

svn path=/trunk/; revision=51115
2011-03-22 09:19:26 +00:00
Pierre Schweitzer
eb3ddf59b3 [NTDLL]
Fixed build

svn path=/trunk/; revision=51114
2011-03-22 06:53:56 +00:00
Aleksey Bragin
1df2f8464a [NTDLL/LDR]
- Implement misc utility functions needed for monstrous LdrpInitializeProcess(). Currently unused.

svn path=/trunk/; revision=51113
2011-03-21 22:58:47 +00:00
Rafal Harabien
46afc9aa8c Fix for r51111. Fixes build...
svn path=/trunk/; revision=51112
2011-03-21 18:30:17 +00:00
Rafal Harabien
08632f7128 [GDI32]
GetTextExtentExPointW doesn't fail if nMaxExtent is negative (only ANSI version does)
Fixes gdi32:GetTextExtentExPoint apitest

svn path=/trunk/; revision=51111
2011-03-21 17:58:08 +00:00
Rafal Harabien
f561f03d31 Fix gdi32:SetSysColors apitest
svn path=/trunk/; revision=51110
2011-03-21 14:52:08 +00:00
Rafal Harabien
347b8aee6f Make sure rectangle is not inverted in Rectangle function
Fixes gdi32:Rectangle apitest

svn path=/trunk/; revision=51109
2011-03-21 14:47:06 +00:00
Rafal Harabien
ec3c8d2441 Fix ProbeForRead. It wasn't ever checking if memory can be accessed. Thanks to big-endian it wasn't breaking MmUserProbeAddress as well. Code is now nearly the same as in ProbeForWrite. It shouldn't break anything. If it does, it's not bug in this code. :)
svn path=/trunk/; revision=51108
2011-03-21 14:43:56 +00:00
Rafal Harabien
96de2d1363 Improve GetClipRgn and SetSysColors apitests
svn path=/trunk/; revision=51107
2011-03-21 14:36:32 +00:00
Rafal Harabien
6a7c60945f Set last error to ERROR_INVALID_PARAMETER in NtGdiGetRandomRgn if invalid hdc is given
Fixes gdi32:GetClipRgn apitest

svn path=/trunk/; revision=51106
2011-03-21 14:32:46 +00:00
Rafal Harabien
32b6884390 Don't assume WM_DESTROY is last message - listview sends notification after it. Confirmed in Windows 7.
See issue #6026 for more details.

svn path=/trunk/; revision=51105
2011-03-21 14:21:16 +00:00
Rafal Harabien
8fb7057c46 Set last error to ERROR_PROC_NOT_FOUND in case of NULL module in GetProcAddress
Check for error when freeing datafile
Fixes 2 winetests

svn path=/trunk/; revision=51104
2011-03-21 14:16:01 +00:00
Rafal Harabien
073c778dcb Don't destroy ImageList used by ListView if control was created without LVS_SHAREIMAGELISTS flag
Fixes crashes when closing RegEdit, RApps and hardware tab in mouse settings.

svn path=/trunk/; revision=51103
2011-03-21 14:07:29 +00:00
James Tabor
01ecf02e26 [Win32k]
- Setup RectInRegion for internal use.

svn path=/trunk/; revision=51102
2011-03-21 02:20:24 +00:00
Giannis Adamopoulos
508ce4d9f8 [win32k]
- Fix disconnecting from a desktop when IntSetThreadDesktop gets NULL parameter

svn path=/trunk/; revision=51101
2011-03-20 14:28:12 +00:00
James Tabor
5177b0a967 [User32_ApiTests]
- Patch by Thomas Faber: Tests for new DeferWindowPos implementation. See bug 6025.

svn path=/trunk/; revision=51100
2011-03-20 12:59:07 +00:00
James Tabor
66f5809036 - Fix a miss var for testing.
svn path=/trunk/; revision=51099
2011-03-20 11:29:51 +00:00
Olaf Siejka
099a888ea2 [CACLS]
- Danish translation by Wilhelm Wiens

[RAPPS]
- Polish translations of SumatraPDF entry by Adam Stachowicz

[SETUP]
- Polish translation of 'VBR only' in the reactos.exe

svn path=/trunk/; revision=51098
2011-03-20 11:25:34 +00:00
Pierre Schweitzer
75629abccd [MSI]
Fix build according to Christoph recommandations

svn path=/trunk/; revision=51097
2011-03-20 10:10:52 +00:00
Christoph von Wittich
7dfa68869c [msi]
-partial sync to wine 1.3.16

svn path=/trunk/; revision=51096
2011-03-20 08:47:41 +00:00
James Tabor
06afcd3dd6 [User32]
- Finishing with setting window class types from the window proc. Next step will be checking it in the User32 message exchange instead of using the class structure. This was recognized with the MDI tests, this too could fix the combo listbox issue.
- Minor static test fixes and miscellaneous notes.

svn path=/trunk/; revision=51095
2011-03-20 01:29:39 +00:00
James Tabor
1b6ac48af4 [Win32k]
- Move the appropriate code from window.c to winpos.c, decreasing the size in window.c. Adding proper checks for maximums and desktop/message windows.
- Started MinMaximize, experimental, based on an idea and boredom, needing a good test case. Also away of troubleshooting our window positioning with minimize and maximizing windows.

svn path=/trunk/; revision=51094
2011-03-20 01:09:15 +00:00
James Tabor
f106ac2d2b [Win32k]
- Fix sign for BeginDeferWindowPos(-1) test, see bug 6025.


svn path=/trunk/; revision=51093
2011-03-20 00:21:45 +00:00
Eric Kohl
80b43e7b13 [SERVICES]
RQueryServiceConfig2A/W must return ERROR_SUCCESS if the Description value of a service does not exist. This fixes a winetest failure.

svn path=/trunk/; revision=51092
2011-03-19 19:14:53 +00:00
Olaf Siejka
fb3cc815f7 [DESK.CPL]
- Activate "Show window contents while dragging" button for all languages present. Spotted by Piotr_hh
See issue #6002 for more details.

svn path=/trunk/; revision=51091
2011-03-19 14:11:37 +00:00
Pierre Schweitzer
5f2514cd75 [HAL]
Remove HAL entry point (HalInitSystem) from generic lib, and move it to generic libs that handle different build flags.
This fixes HAL MP entry point, for example

svn path=/trunk/; revision=51090
2011-03-19 13:59:23 +00:00
James Tabor
115d07d686 [Win32k]
- Implement the set of DeferWindowPos functions. Regedit (one of many application) uses it and allocated three when it should be four. This was a good test to verify the batch list growing routine. Instead of drawing per DeferWindowPos call, now a real list is created and run down as a batch.
- ReactOS should handle this the correct way and a good test case is located here: http://bugs.winehq.org/show_bug.cgi?id=23187
- The code is from wine and modified for the use in ReactOS.

svn path=/trunk/; revision=51089
2011-03-18 22:41:22 +00:00
Aleksey Bragin
f5912e7155 [NTDLL]
- Rewrite the very first initialization routine: LdrpInit().
- Rename LdrpInit2() to LdrpInitializeProcess(), and LdrpAttachThread() to LdrpInitializeThread(). Still old code there.

svn path=/trunk/; revision=51088
2011-03-18 20:23:18 +00:00
Johannes Anderwald
39b14c177e [Y]
- Fix argument checking
- Close correct handle
- Patch by Kuts Alexey
- bug 6004

svn path=/trunk/; revision=51087
2011-03-18 16:28:21 +00:00
Giannis Adamopoulos
b75783bd61 [win32k]
- SetThreadDesktop: Actually set hdesk in PTHREADINFO
Now GetThreadDesktop doesn't return 0

svn path=/trunk/; revision=51086
2011-03-17 20:32:24 +00:00
Aleksey Bragin
1ba1132e21 [NTDLL/LDR]
- Use LdrpRunInitializeRoutines() instead of the old LdrpAttachThread(). This adds calls to unimplemented context functions, but since they were not called at all by the old code it shouldn't change the behaviour significantly. Besides of that, it's start of significant changes in the "mainstream" codepaths, so regressions might occur.

svn path=/trunk/; revision=51085
2011-03-17 17:47:42 +00:00
Aleksey Bragin
3b6432c7ed [NTDLL]
- Implement fetching address of a security cookie in an image. Still not used even if it's present there.
- Silence some debug prints.

svn path=/trunk/; revision=51084
2011-03-17 14:25:59 +00:00
Aleksey Bragin
6fc1e4e122 [RTL]
- Limit unimplemented warnings about RtlActivateActivationContextUnsafeFast calls for now so that they don't flood the log too much.

svn path=/trunk/; revision=51083
2011-03-17 14:24:34 +00:00
Giannis Adamopoulos
71201dea2c [win32k]
- Improve the definition and simplify NtUserCreateDesktop, NtUserOpenDesktop, NtUserCreateWindowStation, NtUserOpenWindowStation

svn path=/trunk/; revision=51082
2011-03-17 13:19:18 +00:00
Aleksey Bragin
bfb74cd0bc - Fix build.
svn path=/trunk/; revision=51080
2011-03-17 11:20:16 +00:00
Aleksey Bragin
22cb80d434 [NTDLL/LDR]
- Fix a typo in LdrQueryProcessModuleInformationEx().
- Stub LdrpEnsureLoaderLockIsHeld() for now.
- Improve LdrpRunInitializeRoutines() and enable it (just compiling, it's not in the running path of the code yet).
- Fix an uninit var warning in ldrpe.c
- Implement LdrpClearLoadInProgress().
- Rename "ExeModule" to a more consistent LdrpImageEntry.

svn path=/trunk/; revision=51079
2011-03-17 10:59:54 +00:00
Roel Messiant
64c7077d57 [GENERAL]
Patch by Rafal Harabien (rafalh1992 at o2 dot pl)
- Change () to (VOID) in function declarators. Part 6/XX.
[USETUP]
Patch by Rafal Harabien (rafalh1992 at o2 dot pl)
- Initialize Offset field of partition list. Spotted using DPH.

svn path=/trunk/; revision=51072
2011-03-16 21:07:25 +00:00
Colin Finck
58230f89cc [SHELL32]
Thomas Faber
- Fix memory leak in RenderHDROP.
  Modifications by me to have just a single return statement in the function.

See issue #5998 for more details.

svn path=/trunk/; revision=51069
2011-03-16 16:46:37 +00:00
Johannes Anderwald
0416030d2a [WDMAUD_KERNEL]
- Don't alter the IoStatus.Information field with the number of bytes written
- Fixes sndrec32 crash (now also working in ReactOS)
- Should be merged to 0.3.13 ;)

svn path=/trunk/; revision=51067
2011-03-16 15:18:52 +00:00
Aleksey Bragin
3f20ae61b8 [NTDLL/LDR]
- Rewrite LdrQueryProcessModuleInformation.
- Start committing PE loader related code (quite a lot of it, and still not all parts yet), unused right now so won't break anything.

svn path=/trunk/; revision=51065
2011-03-16 14:22:15 +00:00
Colin Finck
4b2c1d1a6b [RAPPS]
Change all ftp:// links to http:// ones. The changes to the fragile Mozilla links should be reverted as soon as our/Wine's URLDownloadToFileW function finally supports FTP URLs.
Vote for Wine Bug 26445 (http://bugs.winehq.org/show_bug.cgi?id=26445) to get this fixed!

svn path=/trunk/; revision=51063
2011-03-16 13:28:39 +00:00
Pierre Schweitzer
d1b85c4a85 [RAPPS]
Due to a lack of implemented feature in DLL, switch FF3.6 download links to HTTP.
Site given by Mozilla Foundation.

svn path=/trunk/; revision=51062
2011-03-16 12:18:57 +00:00
Aleksey Bragin
8f7c38cd44 [RTL]
- Hack away LdrVerifyMappedImageMatchesChecksum() invocations with zero ImageSize until MM is fixed.
- Implement a helper ChkSum() routine to be used later by LdrVerifyMappedImageMatchesChecksum().

svn path=/trunk/; revision=51061
2011-03-16 11:58:12 +00:00
Aleksey Bragin
cfec4ed826 [NTDLL/LDR]
- Rewrite LdrImageMatchesChecksum, remove now outdated LdrpCheckImageChecksum.

svn path=/trunk/; revision=51060
2011-03-16 09:52:41 +00:00
Aleksey Bragin
c396511623 [RTL]
- Implement LdrVerifyMappedImageChecksum (copied from ntdll/ldr/utils.c).

svn path=/trunk/; revision=51059
2011-03-16 09:49:07 +00:00
Colin Finck
7ffb757e8b [CRT]
- Revert 38185 which synced fputwc to the Wine version for the sake of fixing Winetests.
  This removed the implicit ANSI conversion, which was honestly checking the wrong flags. The new version correctly checks for WX_TEXT and only does the conversion in this case. This way we also don't fail any additional Winetests.
- Simplify streamout_char in the new printf implementation and use _fputtc instead of _flsbuf.
  This way, we correctly do an implicit ANSI conversion when required.
- Fix fgetwc declaration.

Thanks to Timo for many hints and assistance. Most of this code is actually his idea :-)
Thanks to Olaf for providing a build server to speed up my code tests.

See issue #6007 for more details.

svn path=/trunk/; revision=51058
2011-03-15 23:45:38 +00:00
Pierre Schweitzer
c6add84fb9 [NDK]
Define HAL_IRQ_TRANSLATOR_VERSION constant

[NTOSKRNL]
When needed, use HAL_IRQ_TRANSLATOR_VERSION from NDK and don't define it locally

svn path=/trunk/; revision=51057
2011-03-15 19:45:43 +00:00
Aleksey Bragin
10346cccb2 [NTDLL/LDR]
- Rewrite loader lock APIs. Now they support proper flags, return correct error codes and generate/check a cookie.

svn path=/trunk/; revision=51056
2011-03-15 18:56:17 +00:00
Aleksey Bragin
62fce851b1 [SETUP]
- Mario Kacmar: Added 'VBR only' as possible option to the reactos.exe - it is necessary to add it to other languages (I would not mess up codepages).

See issue #5734 for more details.

svn path=/trunk/; revision=51055
2011-03-15 18:50:31 +00:00
Roel Messiant
ba15ac9cfc [DRIVERS]
- Change () to (VOID) in function declarators. Part 5/XX.

svn path=/trunk/; revision=51054
2011-03-15 18:41:17 +00:00
Sylvain Petreolle
92d94fdb7c [SHELL32]
Fix missing "Open" menu entry on right click for All Users desktop shortcuts.
Patch by Thomas Faber <thfabba at gmx dot de>

See issue #5998 for more details.

svn path=/trunk/; revision=51053
2011-03-15 15:37:09 +00:00
Pierre Schweitzer
f565766808 [HAL\x86]
Define a flag when building HAL with ACPI support

svn path=/trunk/; revision=51052
2011-03-14 22:25:50 +00:00
Aleksey Bragin
6d38425b3f [NTDLL/LDR]
- Rewrite TLS part of the ntdll loader. Old TLS-related messy, duplicated and hard to maintain code is gone.
- Disclaimer: All new ldr-rewrite code is almost entirely based on Alex's patch made in 2006, with my improvements, bugfixes and adapting existing codepaths.
- File naming convention: Files of the ldr*.c mask are considered as a new rewritten loader code. All other files in ntdll/ldr directory are old code which soon may be deprecated.

svn path=/trunk/; revision=51051
2011-03-14 22:06:25 +00:00
Giannis Adamopoulos
123516873b [win32k]
- Partly revert r51031

svn path=/trunk/; revision=51050
2011-03-14 15:59:21 +00:00
Timo Kreuzer
7aafb75d80 [CMAKE]
Improve configure script. It now defaults to nmake for MSVC, if you want a "VSSolution", pass exactly this as 1st paramter
Patch by Samuel Serapion

svn path=/branches/cmake-bringup/; revision=50857
2011-02-21 20:11:52 +00:00
Amine Khaldi
6f76e10ed7 [CMAKE]
- Fix hhctrl msvc build.

svn path=/branches/cmake-bringup/; revision=50812
2011-02-18 19:48:33 +00:00
Amine Khaldi
296da83caf [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50811
2011-02-18 19:40:51 +00:00
Timo Kreuzer
1766b55f4d [CMAKE]
Add support for VS 8-10 and SDK to configure script, add error checks. Patch by Samuel Serapion with small modifications by me.

svn path=/branches/cmake-bringup/; revision=50810
2011-02-18 17:35:50 +00:00
Amine Khaldi
5a357ba755 [CMAKE]
- Fix shlwapi msvc build.

svn path=/branches/cmake-bringup/; revision=50809
2011-02-18 17:34:55 +00:00
Amine Khaldi
855d46d1f9 [CMAKE]
- Fix shlwapi build. This reverts r50794.

svn path=/branches/cmake-bringup/; revision=50808
2011-02-18 17:30:19 +00:00
Johannes Anderwald
c630ded4ea - Fix for the fix (suggested by cmake doyen)
svn path=/branches/cmake-bringup/; revision=50805
2011-02-18 15:09:22 +00:00
Johannes Anderwald
35981f6794 - Fix a few linking errors for msvc CMakeLists
- Fails to find _isinf

svn path=/branches/cmake-bringup/; revision=50802
2011-02-18 14:58:30 +00:00
Johannes Anderwald
a0dee4ab22 - Fix ddraw build
svn path=/branches/cmake-bringup/; revision=50801
2011-02-18 14:48:09 +00:00
Johannes Anderwald
0970afe8cf - Fix kmixer linking
svn path=/branches/cmake-bringup/; revision=50796
2011-02-18 12:09:10 +00:00
Johannes Anderwald
ab7c42e1cc - Fix acpi really.
svn path=/branches/cmake-bringup/; revision=50795
2011-02-18 12:01:54 +00:00
Johannes Anderwald
8981bb0251 - Fix shlwapi linking
svn path=/branches/cmake-bringup/; revision=50794
2011-02-18 11:27:42 +00:00
Amine Khaldi
3023e9622f [CMAKE]
- Fix sysdm build.

svn path=/branches/cmake-bringup/; revision=50793
2011-02-18 11:06:34 +00:00
Amine Khaldi
21a72dbc59 [CMAKE]
- Fix powercfg build.

svn path=/branches/cmake-bringup/; revision=50792
2011-02-18 11:04:12 +00:00
Amine Khaldi
6d6a4a8382 [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50791
2011-02-18 10:56:43 +00:00
Amine Khaldi
5b4e1e33bf [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50790
2011-02-18 10:51:01 +00:00
Amine Khaldi
9e237549fd [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50789
2011-02-18 10:45:12 +00:00
Amine Khaldi
b3ffef4ca9 [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50788
2011-02-18 10:43:59 +00:00
Amine Khaldi
2788bb0fbe [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50787
2011-02-18 10:42:11 +00:00
Amine Khaldi
c536bc34c9 [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50786
2011-02-18 10:23:44 +00:00
Amine Khaldi
00f9ce17fc [CMAKE]
- Fix msdmo build. Really.

svn path=/branches/cmake-bringup/; revision=50785
2011-02-18 10:12:42 +00:00
Amine Khaldi
ff62e63d04 [CMAKE]
- Fix wuapi build. Really.

svn path=/branches/cmake-bringup/; revision=50783
2011-02-18 09:47:14 +00:00
Johannes Anderwald
e600857c19 - Revert all changes made to wuapi. This doesnt work properly with gcc
svn path=/branches/cmake-bringup/; revision=50782
2011-02-18 02:27:40 +00:00
Johannes Anderwald
b56e88991d try fix build
svn path=/branches/cmake-bringup/; revision=50781
2011-02-18 02:16:29 +00:00
Johannes Anderwald
fb5f05beaa - Fix batt msvc build
svn path=/branches/cmake-bringup/; revision=50780
2011-02-18 01:22:32 +00:00
Johannes Anderwald
9eb2eb0af8 - Fix pcix msvc build
svn path=/branches/cmake-bringup/; revision=50779
2011-02-18 01:09:42 +00:00
Johannes Anderwald
f3b2ad3c84 - Fix linking error
svn path=/branches/cmake-bringup/; revision=50778
2011-02-18 01:06:17 +00:00
Johannes Anderwald
ee5db18b72 - Fix xinput msvc build
- Powered by Amine

svn path=/branches/cmake-bringup/; revision=50777
2011-02-18 00:39:31 +00:00
Johannes Anderwald
a72b838de5 - Amine fixes msvc linking of wuapi elegantly
- All complaints to him ;)

svn path=/branches/cmake-bringup/; revision=50776
2011-02-18 00:25:53 +00:00
Johannes Anderwald
895106f07c - Amine wins ;)
svn path=/branches/cmake-bringup/; revision=50775
2011-02-18 00:00:56 +00:00
Johannes Anderwald
5156ef29e8 - Add wuapi.idl to build
- Include psdk dir for header search
- Fixes wuapi compile with msvc, though doesnt link yet

svn path=/branches/cmake-bringup/; revision=50774
2011-02-17 23:54:23 +00:00
Amine Khaldi
2c828839b6 [CMAKE]
- A better, albeit temporary fix for 50714 and 50716.

svn path=/branches/cmake-bringup/; revision=50772
2011-02-17 22:12:27 +00:00
Amine Khaldi
c127856716 [CMAKE]
- Fix build. Really.

svn path=/branches/cmake-bringup/; revision=50771
2011-02-17 22:11:00 +00:00
Timo Kreuzer
99d12014da Try fix build
svn path=/branches/cmake-bringup/; revision=50769
2011-02-17 20:09:56 +00:00
Timo Kreuzer
ba07da3850 [MSHTML]
revert r50702

svn path=/branches/cmake-bringup/; revision=50765
2011-02-17 13:40:11 +00:00
Timo Kreuzer
91fce48fa1 [HEADERS]
- Remove include/reactos and include/reactos/wine include directories for host tools
- Add include/host/wine directory
- Move wpp.h to include/host/wine
- Put a seperate config.h into include/host
- Add a dummy debug.h and guiddef.h, wine/list.h, wine/port.h and wine/rpcfc.h that link to the original ones to include/host

svn path=/branches/cmake-bringup/; revision=50763
2011-02-16 22:48:56 +00:00
Timo Kreuzer
9eac3c415c [WINED3D]
Fix build

svn path=/branches/cmake-bringup/; revision=50762
2011-02-16 20:50:12 +00:00
Timo Kreuzer
a95f4bb427 [CMAKE]
Fix MSVC build of ATL

svn path=/branches/cmake-bringup/; revision=50761
2011-02-16 16:04:51 +00:00
Johannes Anderwald
94ee03d85a - Try fix build
svn path=/branches/cmake-bringup/; revision=50760
2011-02-16 15:58:40 +00:00
Timo Kreuzer
a0a2838527 [CMAKE]
fix build

svn path=/branches/cmake-bringup/; revision=50759
2011-02-16 15:48:59 +00:00
Johannes Anderwald
635df4ebf8 - Fix smss build
svn path=/branches/cmake-bringup/; revision=50758
2011-02-16 15:12:14 +00:00
Johannes Anderwald
cdb7e212a6 - Fix pdh build
svn path=/branches/cmake-bringup/; revision=50757
2011-02-16 14:59:53 +00:00
Johannes Anderwald
db6c80acc4 - Fix msimtf build (msvc)
svn path=/branches/cmake-bringup/; revision=50756
2011-02-16 14:55:04 +00:00
Johannes Anderwald
003221af2a - Fix linker warning
svn path=/branches/cmake-bringup/; revision=50755
2011-02-16 14:49:21 +00:00
Johannes Anderwald
8198650c01 - Fix mciseq linking for msvc
svn path=/branches/cmake-bringup/; revision=50754
2011-02-16 14:47:50 +00:00
Johannes Anderwald
9d318004b3 - Fix spec
svn path=/branches/cmake-bringup/; revision=50753
2011-02-16 14:45:23 +00:00
Johannes Anderwald
18c6ed81d8 - Fix linker (msvc) warning
svn path=/branches/cmake-bringup/; revision=50752
2011-02-16 14:44:36 +00:00
Johannes Anderwald
7e5fc16b29 - Fix a linker error in itss
svn path=/branches/cmake-bringup/; revision=50751
2011-02-16 14:43:14 +00:00
Johannes Anderwald
7fd3c04d0d - Fix more linker warning for msvc
svn path=/branches/cmake-bringup/; revision=50750
2011-02-16 14:37:43 +00:00
Johannes Anderwald
9a3aebab03 - Fix msvc linker warning
svn path=/branches/cmake-bringup/; revision=50749
2011-02-16 14:35:30 +00:00
Johannes Anderwald
3ae2bbdad9 - Fix build
svn path=/branches/cmake-bringup/; revision=50748
2011-02-16 14:33:34 +00:00
Johannes Anderwald
8c0ac25595 - Fix hhctrl build (MSVC)
svn path=/branches/cmake-bringup/; revision=50747
2011-02-16 14:31:08 +00:00
Johannes Anderwald
f4f7a60ffc - Fix build gdpiplus (MSVC)
svn path=/branches/cmake-bringup/; revision=50746
2011-02-16 14:27:41 +00:00
Johannes Anderwald
8d0d751fc8 - Fix linker warning
svn path=/branches/cmake-bringup/; revision=50745
2011-02-16 14:21:29 +00:00
Johannes Anderwald
c4a9cee447 - Fix linker warning
svn path=/branches/cmake-bringup/; revision=50744
2011-02-16 14:16:56 +00:00
Johannes Anderwald
7fa52e068e - Fix beepmidi linker error
svn path=/branches/cmake-bringup/; revision=50743
2011-02-16 14:14:47 +00:00
Johannes Anderwald
70746e30b0 - Fix batt build
svn path=/branches/cmake-bringup/; revision=50742
2011-02-16 14:12:09 +00:00
Johannes Anderwald
1f4a4e1a5b - Fix atl build
svn path=/branches/cmake-bringup/; revision=50741
2011-02-16 14:09:37 +00:00
Johannes Anderwald
fb127d4391 - Fix wined3d compilation with msvc
- Does not link yet

svn path=/branches/cmake-bringup/; revision=50740
2011-02-16 13:57:06 +00:00
Johannes Anderwald
4c8c01ba70 - Fix build ddraw
svn path=/branches/cmake-bringup/; revision=50739
2011-02-16 13:38:51 +00:00
Timo Kreuzer
f5d44f65f7 [CMAKE]
Fix include dir for wined3d

svn path=/branches/cmake-bringup/; revision=50738
2011-02-16 13:36:34 +00:00
Johannes Anderwald
56d1db8f55 Fix build d3d9
svn path=/branches/cmake-bringup/; revision=50737
2011-02-16 13:34:36 +00:00
Johannes Anderwald
333120e9eb - Fix build d3d8
svn path=/branches/cmake-bringup/; revision=50736
2011-02-16 13:30:37 +00:00
Johannes Anderwald
71bb5d31b6 - Fix build of msdmo
svn path=/branches/cmake-bringup/; revision=50735
2011-02-16 13:24:36 +00:00
Johannes Anderwald
148920d946 - Fix linker warning
svn path=/branches/cmake-bringup/; revision=50733
2011-02-16 13:04:34 +00:00
Timo Kreuzer
3782cef5b1 [WINED3D]
Replace 0/0, 1/0 with NAN and INFINITY

svn path=/branches/cmake-bringup/; revision=50732
2011-02-16 12:54:58 +00:00
Timo Kreuzer
e5251147ba [WINE]
Add math.h for wine code, with NAN and INFINITY as portable constants.

svn path=/branches/cmake-bringup/; revision=50731
2011-02-16 12:53:21 +00:00
Johannes Anderwald
7d3bc17152 - Fix msvc build
svn path=/branches/cmake-bringup/; revision=50729
2011-02-16 10:51:49 +00:00
Johannes Anderwald
62b0db3082 - Fix msvc framebuf build
svn path=/branches/cmake-bringup/; revision=50728
2011-02-16 10:46:02 +00:00
Johannes Anderwald
81619aef1e - Fix vgaddi build (msvc)
svn path=/branches/cmake-bringup/; revision=50727
2011-02-16 10:43:59 +00:00
Johannes Anderwald
a35e1b6b03 - Fix vbemp build
svn path=/branches/cmake-bringup/; revision=50726
2011-02-16 10:38:21 +00:00
Johannes Anderwald
6cf55b5d6d - Fix linker warnings
svn path=/branches/cmake-bringup/; revision=50725
2011-02-16 10:23:07 +00:00
Johannes Anderwald
e0b78ef7c3 - Fix build
svn path=/branches/cmake-bringup/; revision=50724
2011-02-16 10:21:15 +00:00
Sylvain Petreolle
a104502501 [CMAKE]
Fix dxdiag build.

svn path=/branches/cmake-bringup/; revision=50722
2011-02-15 22:07:05 +00:00
Timo Kreuzer
05f0a228c5 [KSPROXY]
- Fix gcc build
- don't pass gcc flags to msvc
. mark some exports as private

svn path=/branches/cmake-bringup/; revision=50720
2011-02-15 20:47:09 +00:00
Timo Kreuzer
2dffc72254 [MSI]
- Fix reource files (strings must be in one line)
- Fix compilation with MSVC

svn path=/branches/cmake-bringup/; revision=50719
2011-02-15 19:15:01 +00:00
Johannes Anderwald
9fc442cfa8 - Revert irrelevant changes
svn path=/branches/cmake-bringup/; revision=50718
2011-02-15 18:15:32 +00:00
Johannes Anderwald
95d0eed68e - Add wincodec.idl to build
- windowscodecs gets now further

svn path=/branches/cmake-bringup/; revision=50717
2011-02-15 18:08:53 +00:00
Johannes Anderwald
cc0604236b - Apply same fix for wmilib
- set_entrypoint macro appears to be broken for msvc 16.00.30319.01 (VS 2010)

svn path=/branches/cmake-bringup/; revision=50716
2011-02-15 17:39:00 +00:00
Timo Kreuzer
94da3603af [WINE]
Don't define __ASM_DEFINE_FUNC and __ASM_STDCALL_FUNC on MSVC builds

svn path=/branches/cmake-bringup/; revision=50715
2011-02-15 17:36:10 +00:00
Johannes Anderwald
6521a945bc - Fix drmk build for msvc
svn path=/branches/cmake-bringup/; revision=50714
2011-02-15 17:29:11 +00:00
Giannis Adamopoulos
d372ef8b22 [acpi]
-Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50713
2011-02-15 17:12:36 +00:00
Timo Kreuzer
a7014019f3 [NMIDEBUG]
Fix compilation with MSVC

svn path=/branches/cmake-bringup/; revision=50712
2011-02-15 17:03:28 +00:00
Giannis Adamopoulos
8e32abe55c [uniata]
- Fix some compilation issues with msc

svn path=/branches/cmake-bringup/; revision=50711
2011-02-15 17:01:38 +00:00
Giannis Adamopoulos
687b927625 [comctl32]
- Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50710
2011-02-15 16:19:10 +00:00
Giannis Adamopoulos
56cbf56146 [glu32]
- Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50709
2011-02-15 16:03:55 +00:00
Giannis Adamopoulos
6fb6b3dc44 [shell32]
- Fix some compilation issues with msc

svn path=/branches/cmake-bringup/; revision=50708
2011-02-15 16:01:02 +00:00
Giannis Adamopoulos
0020a48e12 [winmm]
- Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50707
2011-02-15 15:57:42 +00:00
Giannis Adamopoulos
53313b61be [oskittcp]
-Fix compilation with msc

svn path=/branches/cmake-bringup/; revision=50706
2011-02-15 15:54:42 +00:00
Johannes Anderwald
73d18c6855 - Missed that fix
- Really fixes mstask compilation ;)

svn path=/branches/cmake-bringup/; revision=50705
2011-02-15 15:29:09 +00:00
Timo Kreuzer
3b49c98d95 [CMAKE]
Temporarily don't compile mshtl on msvc. simply to see how many errors are left.

svn path=/branches/cmake-bringup/; revision=50704
2011-02-15 15:26:01 +00:00
Johannes Anderwald
ddb18f5bc0 - Fix compilation of mstask
svn path=/branches/cmake-bringup/; revision=50703
2011-02-15 15:11:46 +00:00
Timo Kreuzer
0d94103670 [MSHTML]
Fix compilation of nsiface.idl with midl. Only pointers to interfaces are allowed in typedefs.
Also define nsISupports to IUnknown, because thats what it is and nothing else is allowed.
Please someone pass this to wine.

svn path=/branches/cmake-bringup/; revision=50702
2011-02-15 13:29:05 +00:00
Sylvain Petreolle
29e5b3094b [CMAKE]
Fix msvc usetup build.

svn path=/branches/cmake-bringup/; revision=50701
2011-02-15 13:01:44 +00:00
Timo Kreuzer
b0fe2ffc8f [CMAKE]
fix msvc build of mswsock

svn path=/branches/cmake-bringup/; revision=50700
2011-02-15 12:54:50 +00:00
Timo Kreuzer
285dd00828 [CMAKE]
Fix MSVC build of ntdllsys

svn path=/branches/cmake-bringup/; revision=50699
2011-02-15 12:46:08 +00:00
Sylvain Petreolle
141181cdbc [CMAKE]
Fix msvc ext2 build.
Fix soundblaster includes.

svn path=/branches/cmake-bringup/; revision=50697
2011-02-14 20:56:12 +00:00
Timo Kreuzer
0c69202021 [ASM]
Add ljmp16 .fill and .space macros

svn path=/branches/cmake-bringup/; revision=50696
2011-02-14 20:12:12 +00:00
Timo Kreuzer
e274013c30 [MSVCRT]
_CxxThrowException is stdcall, not cdecl.
Someone please forward this to wine

svn path=/branches/cmake-bringup/; revision=50693
2011-02-14 14:28:07 +00:00
Timo Kreuzer
0ea1c67bac [NTOSKRNL]
Fix build with MSVC

svn path=/branches/cmake-bringup/; revision=50692
2011-02-14 13:45:15 +00:00
Timo Kreuzer
e29077a3cf [KDCOM]
Fix build of new kdcom

svn path=/branches/cmake-bringup/; revision=50691
2011-02-14 13:42:40 +00:00
Johannes Anderwald
2c23ee07a9 - Fix compiling (not linking)
svn path=/branches/cmake-bringup/; revision=50690
2011-02-14 13:02:24 +00:00
Timo Kreuzer
58541489db [CMAKE]
- Drop support for MSVC versions below 1300
- use the same flags for WDK / host as normal
- Disable optimization on Debug builds, its incompatible with /ZI

svn path=/branches/cmake-bringup/; revision=50689
2011-02-14 11:09:48 +00:00
Amine Khaldi
3f7f1e0d7f [CMAKE]
- Get rid of the redundancy in setting msvc flags, and set /ZI instead of /Zi for both host and target modules.
- Get rid of the redundancy in setting the default behaviour of the FIND_XXX() commands between toolchain files.

svn path=/branches/cmake-bringup/; revision=50688
2011-02-14 10:32:46 +00:00
Timo Kreuzer
25b4d48b89 [CMAKE]
Remove the RelWithDebInfo hack for MSVC

svn path=/branches/cmake-bringup/; revision=50687
2011-02-14 09:33:36 +00:00
Amine Khaldi
afd1fcd6cf [CMAKE]
- Fix host checking and the unix case handling in today() macro.
- Fixes unix build.

svn path=/branches/cmake-bringup/; revision=50684
2011-02-13 19:01:08 +00:00
Johannes Anderwald
f9fead82ad [MMIXER]
- Allocate memory for the logical pin array
- Use the correct counter variable for logical pin array
- Found by msvc

svn path=/branches/cmake-bringup/; revision=50674
2011-02-12 19:08:22 +00:00
Johannes Anderwald
d33174f9de [KS]
- Fix a bug where a spinlock was acquired on not initialized local variable
- Found by msvc

svn path=/branches/cmake-bringup/; revision=50671
2011-02-12 18:52:35 +00:00
Timo Kreuzer
44366c9fd0 Fix merge artifact
svn path=/branches/cmake-bringup/; revision=50666
2011-02-12 10:46:17 +00:00
Timo Kreuzer
33533af643 [RICHED20]
Fix compilation with MSVC
the small fix in txtsrv.c should be sent to wine (tm)

svn path=/branches/cmake-bringup/; revision=50664
2011-02-12 01:40:32 +00:00
Timo Kreuzer
bcf29f9d9d [NTOSKRNL]
Fix compilation of zw.S with MSVC

svn path=/branches/cmake-bringup/; revision=50660
2011-02-11 17:39:07 +00:00
Amine Khaldi
d4a7d0fb36 [CMAKE]
- Mark fastcall exports correctly, now that we have proper support in spec2def.

svn path=/branches/cmake-bringup/; revision=50658
2011-02-11 17:07:01 +00:00
Timo Kreuzer
054a3b2291 [CLASSPNP]
Fix a bug, I introduced.

svn path=/branches/cmake-bringup/; revision=50651
2011-02-10 13:07:54 +00:00
Timo Kreuzer
1d2ca9b115 [USB]
Fix merge artifact

svn path=/branches/cmake-bringup/; revision=50649
2011-02-10 12:56:12 +00:00
Amine Khaldi
54f8c1fb23 [CMAKE]
- Fix build.

svn path=/branches/cmake-bringup/; revision=50636
2011-02-09 17:06:56 +00:00
Timo Kreuzer
89fbead325 sync trunk HEAD (r50626)
svn path=/branches/cmake-bringup/; revision=50635
2011-02-09 15:56:57 +00:00
Amine Khaldi
d6f1cb454c [CMAKE]
- Apply the proper definition to user32_wsprintf using target properties.

svn path=/branches/cmake-bringup/; revision=50630
2011-02-09 12:09:21 +00:00
Timo Kreuzer
9b9bf81ccc [CMAKE]
Remove unneccessary EXTERNAL_OBJECT property

svn path=/branches/cmake-bringup/; revision=50629
2011-02-09 11:16:40 +00:00
Timo Kreuzer
fc12facc03 [CMAKE]
Ignore warnings about different section flags, when linking freeldr

svn path=/branches/cmake-bringup/; revision=50628
2011-02-09 11:09:50 +00:00
Timo Kreuzer
b32867cfba [CMAKE]
Link cryptdll to advapi32

svn path=/branches/cmake-bringup/; revision=50627
2011-02-09 10:30:01 +00:00
Amine Khaldi
f11bd43d00 [FREELDR]
- Don't apply gcc only flags to msvc.

svn path=/branches/cmake-bringup/; revision=50606
2011-02-04 22:43:36 +00:00
Amine Khaldi
4426c9c0e7 [PORTCLS]
- Merge 50601 and 50602 from trunk. Portcls now compiles and links with msvc.

svn path=/branches/cmake-bringup/; revision=50603
2011-02-03 18:26:08 +00:00
Timo Kreuzer
321385374d [CMAKE]
-Define HAVE_ALLOCA_H for dbghelp

svn path=/branches/cmake-bringup/; revision=50599
2011-02-02 17:40:25 +00:00
Timo Kreuzer
41d9b26507 [WINE]
Add alloca.h, which includes malloc.h. This is neccessary for MSVC builds of dbghelp

svn path=/branches/cmake-bringup/; revision=50598
2011-02-02 17:39:22 +00:00
Timo Kreuzer
85c0b78873 [SECUR32]
- Sort exports like on Windows
- Implement some functions as proper stubs
[SECURITY]
- Cleanup exports (remove 31 of 77 functions)
- properly forward all exports
- Link to secur32 for forwarded exports

svn path=/branches/cmake-bringup/; revision=50597
2011-02-02 17:06:20 +00:00
Timo Kreuzer
f9a184e117 [CMAKE]
Link fusion to uuid to fix msvc build

svn path=/branches/cmake-bringup/; revision=50595
2011-02-02 14:41:48 +00:00
Timo Kreuzer
f264eb68b2 [CMAKE]
Fix MSVC build of normaliz

svn path=/branches/cmake-bringup/; revision=50594
2011-02-02 14:05:29 +00:00
Timo Kreuzer
61c48c4272 [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=50593
2011-02-02 14:01:06 +00:00
Timo Kreuzer
7b45f773ed [CMAKE]
Link cfgmgr32 to setupapi, it redirects functions there and MSVC needs the importlib for that.

svn path=/branches/cmake-bringup/; revision=50592
2011-02-02 13:52:30 +00:00
Timo Kreuzer
ca768add12 [USER32]
- Remove exports for IsProcess16Bit and IsSETEnabled
- Redirect CalcMenuBar, PaintMenuBar and SetConsoleReserveKeys to NtUser*
- Implement stubs for BuildReasonArray, CreateSystemThreads, DestroyReasons, DeviceEventWorker, GetCursorFrameInfo, GetReasonTitleFromReasonCode, RecordShutdownReason, UserLpkPSMTextOut, UserLpkTabbedTextOut, Win32PoolAllocationStats
- Remove implementations of SetCursor, ClipCursor, GetClipCursor and HiliteMenuItem
- Remove auto stub file from sources
- Fix resource include path

svn path=/branches/cmake-bringup/; revision=50590
2011-02-02 13:15:26 +00:00
Timo Kreuzer
a2ceee354a [CMAKE]
revert r50587

svn path=/branches/cmake-bringup/; revision=50589
2011-02-01 22:07:32 +00:00
Timo Kreuzer
79d0882159 [CMAKE]
Correctly define CMAKE_RC_CREATE_SHARED_LIBRARY and CMAKE_ASM_CREATE_SHARED_LIBRARY for MSVC.

svn path=/branches/cmake-bringup/; revision=50588
2011-02-01 22:06:31 +00:00
Timo Kreuzer
fbba664095 [TAPIUI]
Set linker language C

svn path=/branches/cmake-bringup/; revision=50587
2011-02-01 21:51:48 +00:00
Timo Kreuzer
4fa40b55e4 [MSCMS]
mscms needs to link to advapi32, currently gcc builds optimize the calls to Reg* apis away, because of unimplemented fucntions.

svn path=/branches/cmake-bringup/; revision=50586
2011-02-01 20:23:33 +00:00
Timo Kreuzer
7d6c6d9196 [JSCRIPT]
Fix build with MSVC

svn path=/branches/cmake-bringup/; revision=50585
2011-02-01 20:08:13 +00:00
Timo Kreuzer
12eb8a290f [CMAKE]
add ftol2_asm.s to crt and ci.c to msvcsup

svn path=/branches/cmake-bringup/; revision=50584
2011-01-31 23:29:03 +00:00
Timo Kreuzer
84a13923a5 [CRT]
Implement call_finally_block, call_filter and call_unwind_func for MSVC

svn path=/branches/cmake-bringup/; revision=50583
2011-01-31 22:10:17 +00:00
Sylvain Petreolle
f22ed7dc10 [CMAKE]
Sync trunk up to r50570.

svn path=/branches/cmake-bringup/; revision=50581
2011-01-31 21:47:39 +00:00
Timo Kreuzer
99f04cc9ab [CMAKE]
(M)IDL doesn't allow definiting multiple identifiers with the same name and different case. Define MSIRUNMODE to MSIRUNMODE_T so it doesn't conflict with MsiRunMode anymore.

svn path=/branches/cmake-bringup/; revision=50580
2011-01-31 21:44:35 +00:00
Timo Kreuzer
b75df5788b [CMAKE]
Fix MSVC build of imm32

svn path=/branches/cmake-bringup/; revision=50579
2011-01-31 21:11:21 +00:00
Timo Kreuzer
8ea8ddbce1 [CMAKE]
Disable run-time type information for MSVC

svn path=/branches/cmake-bringup/; revision=50578
2011-01-31 19:47:02 +00:00
Timo Kreuzer
cb4db3af6f [CRT]
Put __declspec(nothrow) at a valid (for MSVC) position.

svn path=/branches/cmake-bringup/; revision=50577
2011-01-31 19:46:05 +00:00
Sylvain Petreolle
7de1e5ea8a [CMAKE]
Fix WSCUpdateProvider spec entry.

svn path=/branches/cmake-bringup/; revision=50576
2011-01-31 16:32:16 +00:00
Sylvain Petreolle
9fe4129254 [CMAKE]
Fix classpnp build.

svn path=/branches/cmake-bringup/; revision=50575
2011-01-31 15:56:39 +00:00
Timo Kreuzer
9cc4f5ceee [CMAKE]
Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation.

svn path=/branches/cmake-bringup/; revision=50574
2011-01-31 14:20:53 +00:00
Timo Kreuzer
ea3b37d0f8 [UUID]
Define _MIDL_USE_GUIDDEF_, this causes __decspec(selectany) to be used on the iids. This way we don't need any linker flags to silence warnings and it also fixes errors when linking later.

svn path=/branches/cmake-bringup/; revision=50573
2011-01-30 22:10:55 +00:00
Timo Kreuzer
1b18ef5578 [UUID]
Fix build with MSVC. We ignore warnings about duplicated symbols. MS uuid also contains them.

svn path=/branches/cmake-bringup/; revision=50572
2011-01-30 20:05:05 +00:00
Amine Khaldi
c2e1cbdff3 [ROSSYM]
- Properly handle images without debug symbols.

svn path=/branches/cmake-bringup/; revision=50571
2011-01-30 16:43:08 +00:00
Timo Kreuzer
96abfd1223 [UUID]
The old uuid library was one file containing all the uuids, generated from the psdk headers, which results in all GUIDs being linked, as soon as a single one is used. Also while widl creates DEFINE_GUID() entries in the header files, midl only creates "extern GUID", so this didn't work on MSVC. The new version uses iid files generated from the idl files and some extra C files. This works with both midl and widl, reduces overhead when linking uuids and is much closer to MS uuid lib.

svn path=/branches/cmake-bringup/; revision=50569
2011-01-30 14:09:38 +00:00
Timo Kreuzer
ff4324fb98 [CMAKE]
Fix compilation of actxprxy with MSVC

svn path=/branches/cmake-bringup/; revision=50563
2011-01-29 18:16:46 +00:00
Timo Kreuzer
4d2d6956d3 [CMAKE]
Link ole32 to iidlib. Fixes compilation on MSVC

svn path=/branches/cmake-bringup/; revision=50562
2011-01-29 17:58:43 +00:00
Timo Kreuzer
04e691ee90 [UUID]
Remove duplicate iids

svn path=/branches/cmake-bringup/; revision=50561
2011-01-29 17:58:06 +00:00
Timo Kreuzer
cdf564ef64 [CMAKE]
Add iidlib, a library containing all iids from the idl files

svn path=/branches/cmake-bringup/; revision=50560
2011-01-29 17:57:34 +00:00
Timo Kreuzer
1b389a39f8 [CMAKE]
- Add a macro add_iid_library to generate a static lib containing iids
- Fix get_includes and get_defines

svn path=/branches/cmake-bringup/; revision=50559
2011-01-29 17:45:45 +00:00
Timo Kreuzer
e33bf5e8ba [CLASSPNP]
Fix build with MSVC

svn path=/branches/cmake-bringup/; revision=50558
2011-01-29 15:12:40 +00:00
Timo Kreuzer
2ea20c66b6 [FRAMEBUF_NEW]
Fix build with MSVC

svn path=/branches/cmake-bringup/; revision=50557
2011-01-29 15:02:53 +00:00
Timo Kreuzer
a042b23093 [VGA_NEW]
Fix build with msvc

svn path=/branches/cmake-bringup/; revision=50556
2011-01-29 14:57:40 +00:00
Timo Kreuzer
e3d0802c23 [PSDK]
Fix include of windows.h from rpc.h

svn path=/branches/cmake-bringup/; revision=50554
2011-01-29 14:41:18 +00:00
Timo Kreuzer
48a509e1d2 [CMAKE]
Ignore MSVC standard includes

svn path=/branches/cmake-bringup/; revision=50549
2011-01-29 10:29:42 +00:00
Timo Kreuzer
ca495a84b1 [IP]
Convert checksum.S to new ML compatible syntax. Resulting obj was compared and is identical to trunk (both GAS and ML)

svn path=/branches/cmake-bringup/; revision=50545
2011-01-28 20:35:22 +00:00
Timo Kreuzer
56a3daafd4 [PSDK]
Fix inline definition of STRSAFEAPI for MSVC

svn path=/branches/cmake-bringup/; revision=50541
2011-01-28 19:41:28 +00:00
Timo Kreuzer
0f56e5955a [CMAKE]
Set linker language for win32ksys to C. Fixes MSVC compilation

svn path=/branches/cmake-bringup/; revision=50540
2011-01-28 19:37:22 +00:00
Timo Kreuzer
14a2a83fa2 [CMAKE]
Remove module name from ntoskrnl add_importlib_target

svn path=/branches/cmake-bringup/; revision=50539
2011-01-28 18:16:48 +00:00
Timo Kreuzer
066102156e [HID]
Fix spec file. All of the functions are present, either stubbed or implemented.

svn path=/branches/cmake-bringup/; revision=50538
2011-01-28 18:13:54 +00:00
Timo Kreuzer
2d96eac29f [CRT]
add a single prototype, instead of including math.h

svn path=/branches/cmake-bringup/; revision=50537
2011-01-28 17:44:30 +00:00
Timo Kreuzer
09d50a5784 [CMAKE]
- Preserve case of symbols when assembling (this is not default)
- link to msvcsup

svn path=/branches/cmake-bringup/; revision=50536
2011-01-28 17:40:36 +00:00
Sylvain Petreolle
cac01ad6eb [CMAKE]
Fix crt/bootcdregtest regression, due to _USER32_WSPRINTF.
add_definitions does not apply to target, but current directory.

svn path=/branches/cmake-bringup/; revision=50535
2011-01-28 13:41:55 +00:00
Amine Khaldi
79d8b4cf40 [CMAKE]
- Share freeldr_arch as a static lib between freeldr and setupldr.
- Some formatting fixes.

svn path=/branches/cmake-bringup/; revision=50534
2011-01-28 11:40:45 +00:00
Amine Khaldi
14c01bd73c [CMAKE]
- Properly handle setting the suffix variable. Fixes import libs creation.

svn path=/branches/cmake-bringup/; revision=50533
2011-01-28 11:25:24 +00:00
Amine Khaldi
818d876f00 [CMAKE]
- The suffix variable already holds a dot, don't add another one. Fixes import libs generation.

svn path=/branches/cmake-bringup/; revision=50525
2011-01-28 09:31:54 +00:00
Timo Kreuzer
8c4b892bea [undocuser.h]
Add nreline at the end of the file. MSVC is very picky about that.

svn path=/branches/cmake-bringup/; revision=50523
2011-01-27 23:45:40 +00:00
Timo Kreuzer
d57a12e96a [RTL]
_Interlocked(Compare)ExchangePointer is an intrinsic that doesn't exist on x86, use portable version.

svn path=/branches/cmake-bringup/; revision=50522
2011-01-27 23:03:01 +00:00
Timo Kreuzer
0af4984309 [CMAKE]
Remove dll name from add_importlib_target macro

svn path=/branches/cmake-bringup/; revision=50520
2011-01-27 21:57:54 +00:00
Timo Kreuzer
39ec3cff8c [CMAKE]
get the library suffix from the target instead of passing it to the macro.

svn path=/branches/cmake-bringup/; revision=50519
2011-01-27 21:50:54 +00:00
Timo Kreuzer
168ca7cab8 [CMAKE]
Use spec file for getuname importlib

svn path=/branches/cmake-bringup/; revision=50518
2011-01-27 21:48:44 +00:00
Timo Kreuzer
62ff363e37 [UUID]
Add IID_IWineD3DDeviceParent for MSVC

svn path=/branches/cmake-bringup/; revision=50515
2011-01-27 16:18:47 +00:00
Timo Kreuzer
fe46ef7daa [CMAKE]
Compile a dummy rossym library on MSVC

svn path=/branches/cmake-bringup/; revision=50514
2011-01-27 16:17:25 +00:00
Timo Kreuzer
e92a8c0a72 [CRT]
Fix some warnings

svn path=/branches/cmake-bringup/; revision=50513
2011-01-27 13:45:06 +00:00
Timo Kreuzer
676e232576 [CMAKE]
ML64 compatibility fixes for amd64 assembly

svn path=/branches/cmake-bringup/; revision=50512
2011-01-27 13:37:21 +00:00
Timo Kreuzer
4814cb8ca6 [EXPLORER_NEW]
Fix syntax

svn path=/branches/cmake-bringup/; revision=50509
2011-01-27 10:47:55 +00:00
Timo Kreuzer
ef0127add2 [WORDPAD]
Fix chinese resource file

svn path=/branches/cmake-bringup/; revision=50508
2011-01-27 10:44:08 +00:00
Timo Kreuzer
8b1927d888 [PING]
Fix resource syntax for MSVC and recent versions of the gcc preprocessor.

svn path=/branches/cmake-bringup/; revision=50507
2011-01-27 10:42:06 +00:00
Timo Kreuzer
8191f95396 [CMAKE]
- Sync with trunk 50501
- fix a couple of merge artifacts (indentation)

svn path=/branches/cmake-bringup/; revision=50505
2011-01-26 23:24:08 +00:00
Sylvain Petreolle
e2b7eacdd5 [CMAKE]
Sync trunk up to r50477.

svn path=/branches/cmake-bringup/; revision=50504
2011-01-26 22:19:12 +00:00
Timo Kreuzer
7ad2ae7720 [FREELDR]
Fix compilation on MSVC

svn path=/branches/cmake-bringup/; revision=50496
2011-01-25 22:23:10 +00:00
Timo Kreuzer
81995bfd2e [CRT]
Fix copy pasta. Spotted by rs on irc.

svn path=/branches/cmake-bringup/; revision=50495
2011-01-25 20:56:14 +00:00
Timo Kreuzer
0fab7e8671 [CRT]
On MSVC mark abs, labs and strcmp as intrinsics (needed when compiling with /O2+) and disable a warning that they are not intrinsics (when compiled with /O1)

svn path=/branches/cmake-bringup/; revision=50494
2011-01-25 20:48:56 +00:00
Timo Kreuzer
6b8ea6b64e [CMAKE]
Link smss to msvcsup on MSVC builds


svn path=/branches/cmake-bringup/; revision=50493
2011-01-25 19:19:02 +00:00
Timo Kreuzer
f9870b513e [PSDK]
Include pseh.h not only for gcc

svn path=/branches/cmake-bringup/; revision=50492
2011-01-25 18:58:21 +00:00
Timo Kreuzer
5a73dc4e58 [RTL]
Add InterlockedBitTestAndSet* defines

svn path=/branches/cmake-bringup/; revision=50491
2011-01-25 18:48:26 +00:00
Timo Kreuzer
67e321c158 [CMAKE]
- Fix mc command
- temporary disable optimization settings to prevent warning

svn path=/branches/cmake-bringup/; revision=50490
2011-01-25 18:09:29 +00:00
Timo Kreuzer
14bde089ab [CMAKE]
Don't include resources twice in findstr, remove rbuild file

svn path=/branches/cmake-bringup/; revision=50489
2011-01-25 17:00:43 +00:00
Timo Kreuzer
f4dd5fd0c6 [CMAKE]
msc.cmake: fix spec2def invocation, add pseh library, remove set_export_spec

svn path=/branches/cmake-bringup/; revision=50488
2011-01-25 16:31:04 +00:00
Timo Kreuzer
45cb5eb141 [CMAKE]
On MSVC builds, compile native SEH support into PSEH library.
This should be part of the crt, but our crt is too disorganized to handle that. The empty C file is for cmake to get the library right.

svn path=/branches/cmake-bringup/; revision=50486
2011-01-25 16:26:54 +00:00
Timo Kreuzer
0c480c0cb2 [KERNEL32]
Escape some characters in nls files for MSVC compatibility

svn path=/branches/cmake-bringup/; revision=50485
2011-01-25 14:40:32 +00:00
Timo Kreuzer
50c1320ff9 [CMAKE]
Fix return type of NdrClientCall*

svn path=/branches/cmake-bringup/; revision=50484
2011-01-25 11:55:45 +00:00
Timo Kreuzer
87ab59ef61 [CRT]
Implement __SEH_epilog

svn path=/branches/cmake-bringup/; revision=50483
2011-01-25 09:33:37 +00:00
Timo Kreuzer
776c09f1fd [CRT]
Implement ms compatible __SEH_prolog

svn path=/branches/cmake-bringup/; revision=50482
2011-01-25 01:28:41 +00:00
Timo Kreuzer
d5fecffd28 [NTDLL]
Fix some exports by marking them as fastcall instead of prepending an @ to the name

svn path=/branches/cmake-bringup/; revision=50480
2011-01-24 20:24:35 +00:00
Timo Kreuzer
d3f4900a66 [CRT]
compile memcmp, abs and labs on MSVC, too.

svn path=/branches/cmake-bringup/; revision=50479
2011-01-24 19:50:01 +00:00
Timo Kreuzer
0d54e35b94 [CMAKE]
Refactor IDL compilation:
- Move all macros to idl-support.cmake
- Make rpc proxy a static library, instead of fiddeling with SOURCE variable
- Merge client and server rpc libraries into one library
- Reorder global makelist file a little
- Improve configure script
- Improve naming, use add_* when a target is added, generate_* when only a file is generated
- Don't compile wbemcli.idl on MSVC (temp hack)
- Don't compile rossym on MSVC, we don't use it
- Use ml64 as assembler when compiling for amd64
- fix spec2def invocation

svn path=/branches/cmake-bringup/; revision=50478
2011-01-24 18:13:40 +00:00
Sylvain Petreolle
256c5c72c0 [CMAKE]
WIN32: get build date without overcomplicated string parsing.

svn path=/branches/cmake-bringup/; revision=50473
2011-01-23 13:10:14 +00:00
Sylvain Petreolle
9fb04fdf80 [CMAKE]
Fix buildno.h when subversion is not installed.

svn path=/branches/cmake-bringup/; revision=50472
2011-01-23 11:27:01 +00:00
Timo Kreuzer
4dbcb77b8f [CRT]
fix definition of _crt_va_arg for amd64

svn path=/branches/cmake-bringup/; revision=50471
2011-01-22 23:22:10 +00:00
Timo Kreuzer
5f6e050626 - _mingw.h: Don't define USE_MINGW_SETJMP_TWO_ARGS for MSVC
- _mingw.h: Fix definition of _CRT_ALIGN for MSVC
- intrin.h: _InterlockedAddLargeStatistic is not an intrinsic on MSVC for x64
- intrin.h: Fix return type of _InterlockedOr64
- wdm.h: Fix warnings in KfRaiseIrql and RtlExtendedMagicDivide inline implementations
- winnt.h: Simplify definition of GetCurrentFiber

svn path=/branches/cmake-bringup/; revision=50470
2011-01-22 19:17:10 +00:00
Timo Kreuzer
1fb963feea [CMAKE]
Remove _M_AXP64 definition

svn path=/branches/cmake-bringup/; revision=50469
2011-01-22 18:41:33 +00:00
Timo Kreuzer
e212d018ae [CMAKE]
Copy vadefs.h from amd64 branch

svn path=/branches/cmake-bringup/; revision=50467
2011-01-22 17:52:33 +00:00
Timo Kreuzer
a3604ffda3 [CMAKE]
- lowerize ARCH string (fixes cmlib)
- move definition

svn path=/branches/cmake-bringup/; revision=50465
2011-01-22 17:13:06 +00:00
Timo Kreuzer
83fb618aba [CMAKE]
Don't set lib pathes in msc toolchain file. Fixes amd64

svn path=/branches/cmake-bringup/; revision=50464
2011-01-22 16:26:37 +00:00
Timo Kreuzer
9ea0f74e9d [CMAKE]
Fix and improve configure script

svn path=/branches/cmake-bringup/; revision=50463
2011-01-22 16:25:35 +00:00
Timo Kreuzer
e3a47f88a8 [CMAKE]
Fix configure script for MSVC

svn path=/branches/cmake-bringup/; revision=50462
2011-01-22 16:05:07 +00:00
Sylvain Petreolle
029f4fd445 [CMAKE]
Forgotten deletion in previous commit.

svn path=/branches/cmake-bringup/; revision=50455
2011-01-21 20:37:01 +00:00
Sylvain Petreolle
5f1a2314f2 [CMAKE]
Use cmake subversion capabilities to generate buildno.h and version.h.

svn path=/branches/cmake-bringup/; revision=50454
2011-01-21 20:29:45 +00:00
Timo Kreuzer
1da8f22b84 [ROSSYM]
The function dexec uses the varable p only in one location where its checked against nil, It neither initialized, not used anywhere else. This is probably a typo and b->p was meant. Yes I'm completely guessing, but this code doesn't give any other chance then guessing and it will probably not be worse then using an uninitialized variable...
@original author: please review.

svn path=/branches/cmake-bringup/; revision=50450
2011-01-20 15:39:55 +00:00
Timo Kreuzer
0eada29ab7 [CMAKE]
Disable format warnings for winetest_ok

svn path=/branches/cmake-bringup/; revision=50449
2011-01-20 14:30:15 +00:00
Timo Kreuzer
35e02b21b1 [CMAKE]
cast some fprintf parameters explicitly to the required type to fix warnings.

svn path=/branches/cmake-bringup/; revision=50448
2011-01-20 12:53:47 +00:00
Timo Kreuzer
6e889205be [CMAKE]
test for the buildbot

svn path=/branches/cmake-bringup/; revision=50436
2011-01-19 16:19:52 +00:00
Timo Kreuzer
7d0de33986 [CMAKE]
Fix warnings by casting values explicitly to int in wine/test.h

svn path=/branches/cmake-bringup/; revision=50433
2011-01-19 13:50:22 +00:00
Timo Kreuzer
eb1dd36ba2 [CMAKE]
define _CRT_NONSTDC_NO_DEPRECATE for libmpg123 to silence a warning

svn path=/branches/cmake-bringup/; revision=50432
2011-01-19 13:35:09 +00:00
Timo Kreuzer
be0830b12f [CMAKE]
Move secure api functions from external file into string.h and use standard macros. Fixes 2 warnings.

svn path=/branches/cmake-bringup/; revision=50431
2011-01-19 13:33:48 +00:00
Timo Kreuzer
a23b388edb [CMAKE]
Include stdio.h into strsafe.h to silence a warning

svn path=/branches/cmake-bringup/; revision=50430
2011-01-19 12:05:18 +00:00
Timo Kreuzer
75818ca832 [CMAKE]
prevent macro refefinition

svn path=/branches/cmake-bringup/; revision=50429
2011-01-19 11:58:42 +00:00
Timo Kreuzer
8f523a01d4 [CMAKE]
Add missing strcpy_s and strcat_s prototypes to silence some warnings

svn path=/branches/cmake-bringup/; revision=50428
2011-01-19 11:55:45 +00:00
Timo Kreuzer
0f17c54568 [CMAKE]
Don't add importlibs folder as link directory for anything other than i386 builds

svn path=/branches/cmake-bringup/; revision=50427
2011-01-19 11:33:27 +00:00
Sylvain Petreolle
5d2288d18d [CMAKE]
Convert wsock32 to spec.

svn path=/branches/cmake-bringup/; revision=50423
2011-01-18 15:02:26 +00:00
Timo Kreuzer
5524d17a56 [CMAKE]
Provide the asm offset constants that are used throughout the code instead the official ones. We'll have to decide which way to go later.

svn path=/branches/cmake-bringup/; revision=50401
2011-01-16 18:07:15 +00:00
Timo Kreuzer
f6165b795c [CMAKE] Convert crtdll to spec
svn path=/branches/cmake-bringup/; revision=50400
2011-01-16 18:02:17 +00:00
Amine Khaldi
5962942907 [CMAKE]
- Fix wmi and drmk entry points.
- Don't use both reactos and wine debug headers in iphlpapi. Fixes the macro redefinition warnings.

svn path=/branches/cmake-bringup/; revision=50353
2011-01-10 20:59:17 +00:00
Amine Khaldi
9790b02502 [CMAKE]
- Fix another warning in libxml2. Thanks to Timo.

svn path=/branches/cmake-bringup/; revision=50348
2011-01-09 21:34:20 +00:00
Amine Khaldi
90683e300a [CMAKE]
- Reduce libxml2 warnings.

svn path=/branches/cmake-bringup/; revision=50346
2011-01-09 20:40:34 +00:00
Amine Khaldi
b02f54b843 [CMAKE]
- Add missing define.

svn path=/branches/cmake-bringup/; revision=50341
2011-01-09 17:24:39 +00:00
Amine Khaldi
4bb42765f5 [CMAKE]
- Improve the warnings and compiler flags according to the different architectures we have.

svn path=/branches/cmake-bringup/; revision=50340
2011-01-09 16:49:10 +00:00
Sylvain Petreolle
acf11aa2c7 [CMAKE]
Get a proper bootcd for unix builds (3rd stage.)
Thanks to Amine for his findings.


svn path=/branches/cmake-bringup/; revision=50338
2011-01-08 23:25:58 +00:00
Sylvain Petreolle
f8f7ec4d56 [CMAKE]
-fshort-wchar is not related to inline, neither is i386 specific.


svn path=/branches/cmake-bringup/; revision=50337
2011-01-08 23:22:54 +00:00
Sylvain Petreolle
398ded55b9 [CMAKE]
Move -fshort-wchar defintion (gcc specific).


svn path=/branches/cmake-bringup/; revision=50336
2011-01-08 22:33:22 +00:00
Amine Khaldi
aa6bee3557 [CMAKE]
- Prevent some status codes redefinitions.

svn path=/branches/cmake-bringup/; revision=50335
2011-01-08 21:41:12 +00:00
Amine Khaldi
152b92b928 [CMAKE]
- Improve message headers handling.

svn path=/branches/cmake-bringup/; revision=50334
2011-01-08 20:44:41 +00:00
Amine Khaldi
9d64a217d5 [CMAKE]
- Prevent cmake from escaping preprocessor definition values added via add_definitions.
- Fix a FIXME in oleaut32 and urlmon builds.

svn path=/branches/cmake-bringup/; revision=50333
2011-01-08 20:01:33 +00:00
Amine Khaldi
458d9009dd [CMAKE]
- Fix the browseui bulgarian translation file name.

svn path=/branches/cmake-bringup/; revision=50328
2011-01-08 14:11:37 +00:00
Amine Khaldi
a3ca9b561e [CMAKE]
- Fix rossym dependencies.

svn path=/branches/cmake-bringup/; revision=50327
2011-01-08 13:55:06 +00:00
Amine Khaldi
74811b583a [CMAKE]
- Fix more dependencies.

svn path=/branches/cmake-bringup/; revision=50326
2011-01-08 13:30:27 +00:00
Amine Khaldi
b4e7b22469 [CMAKE]
- Fix delayimp dependency.

svn path=/branches/cmake-bringup/; revision=50324
2011-01-08 13:19:38 +00:00
Amine Khaldi
dcee0f7cc5 [CMAKE]
- Fix dnslib dependency.

svn path=/branches/cmake-bringup/; revision=50323
2011-01-08 13:14:25 +00:00
Amine Khaldi
1ecaf59fcb [CMAKE]
- Fix a missing dependency.

svn path=/branches/cmake-bringup/; revision=50322
2011-01-08 13:00:35 +00:00
Amine Khaldi
287ba86f03 [CMAKE]
- Add -fshort-wchar to host tools

svn path=/branches/cmake-bringup/; revision=50320
2011-01-08 11:52:58 +00:00
Amine Khaldi
54f486c247 [CMAKE]
- Silence the quotes warning.

svn path=/branches/cmake-bringup/; revision=50310
2011-01-07 20:07:15 +00:00
Amine Khaldi
a0cb4ff5eb [CMAKE]
- Delete an unneeded lib.mak
- Don't build bin2c, we don't seem to need it.
- A minor cleanup, no functionality change intended.

svn path=/branches/cmake-bringup/; revision=50308
2011-01-07 12:11:46 +00:00
Amine Khaldi
24511aea48 [CMAKE]
- Restructure hal build.

svn path=/branches/cmake-bringup/; revision=50305
2011-01-06 18:59:49 +00:00
Amine Khaldi
0d77e58cf9 [CMAKE]
- Fix formatting.

svn path=/branches/cmake-bringup/; revision=50301
2011-01-06 17:08:38 +00:00
Amine Khaldi
166360a829 [CMAKE]
- Initial support of the arm toolchain/build.

svn path=/branches/cmake-bringup/; revision=50300
2011-01-06 16:57:56 +00:00
Amine Khaldi
6c0c23cb53 [CMAKE]
- Sync with trunk head (r50270)
- This also reverts r49298.

svn path=/branches/cmake-bringup/; revision=50271
2011-01-03 00:33:31 +00:00
Amine Khaldi
617f2dab5b [CMAKE]
- Don't link ks to msvcrt either.

svn path=/branches/cmake-bringup/; revision=50246
2010-12-31 18:51:00 +00:00
Amine Khaldi
8e1cf24706 [CMAKE]
- Don't link portcls to msvcrt (?!) Spotted using the dependency graph added recently by Timo.

svn path=/branches/cmake-bringup/; revision=50245
2010-12-31 18:48:26 +00:00
Timo Kreuzer
161033b429 [CMAKE]
Fix conflict artifacts.

svn path=/branches/cmake-bringup/; revision=50244
2010-12-31 16:54:37 +00:00
Timo Kreuzer
8c14a1744a [CMAKE]
Add generation of a depencency graph for shared libraries.
The output is a graphml file. Can be enabled with GENERATE_DEPENDENCY_GRAPH switch.

svn path=/branches/cmake-bringup/; revision=50243
2010-12-31 16:49:49 +00:00
Timo Kreuzer
6ebba3e6a5 [CMAKE]
Go back to DllMain entrypoints. Fixes cardgames.

svn path=/branches/cmake-bringup/; revision=50241
2010-12-31 15:53:55 +00:00
Timo Kreuzer
14ab9898c2 [CMAKE]
Delete hal_i386.def

svn path=/branches/cmake-bringup/; revision=50240
2010-12-31 15:43:06 +00:00
Timo Kreuzer
dca822d5db [CMAKE]
Delete ks.def

svn path=/branches/cmake-bringup/; revision=50239
2010-12-31 15:42:03 +00:00
Timo Kreuzer
43993833da [CMAKE]
Delete scsiport_i386.def

svn path=/branches/cmake-bringup/; revision=50238
2010-12-31 15:35:59 +00:00
Timo Kreuzer
922971f3c0 [CMAKE]
Fix ftfd.spec

svn path=/branches/cmake-bringup/; revision=50237
2010-12-31 15:35:13 +00:00
Timo Kreuzer
9c55eb1528 [CMAKE]
Delete msacm.spec.def

svn path=/branches/cmake-bringup/; revision=50236
2010-12-31 15:17:11 +00:00
Timo Kreuzer
40f51f077f [CMAKE]
Delete ntdll.def

svn path=/branches/cmake-bringup/; revision=50235
2010-12-31 15:15:09 +00:00
Timo Kreuzer
93ad7973a8 [CMAKE]
Remove def file for the kernel

svn path=/branches/cmake-bringup/; revision=50234
2010-12-31 15:12:58 +00:00
Timo Kreuzer
bf9290d80d [CMAKE]
Some amd64 compilation fixes

svn path=/branches/cmake-bringup/; revision=50233
2010-12-31 15:12:00 +00:00
Timo Kreuzer
288c48c7ad [CMAKE]
remove a def file

svn path=/branches/cmake-bringup/; revision=50232
2010-12-31 15:11:06 +00:00
Amine Khaldi
fce639e14b [CMAKE]
- Disable some resource files (mostly japanese ones) with a FIXME. They prevent us from compiling in unix due to an iconv issue.
- Lower the minimum required cmake version to 2.6
- Fix browseui resource paths.

svn path=/branches/cmake-bringup/; revision=50224
2010-12-30 15:39:10 +00:00
Timo Kreuzer
5351f44808 [CMAKE]
LD is stupid and doesn't handle stdcall decoration as proper as dlltool does (after we provided a patch). Passing --kill-at, also kills C++ mangled names and exports with stdcall decoration are imposible. In trunk we use dlltool to generate an exp file that we link with LD, but in the cmake branch we pass the def file to LD directly. Luckily we have a tool called spec2def that can handle these things. We now generate 2 different .def files, one for LD, containing the undecorated export name forwarded to the decorated symbol name (FooFunc=FooFunc@12), while the 2nd def file which is passed to dlltool for exportlib generation has full stdcall decorations. --kill-at is now passed to dlltool only. This commit might break msvc, but should be pretty easy to fix.

svn path=/branches/cmake-bringup/; revision=50217
2010-12-29 23:58:17 +00:00
Amine Khaldi
6e719f7d6f [CMAKE]
- Remove an unintended change.

svn path=/branches/cmake-bringup/; revision=50216
2010-12-29 19:11:17 +00:00
Jérôme Gardou
061f46d608 [CMAKE]
Improve rpcproxy macro
split boot/CMakeLists.txt into smaller and clearer CMakeLists.txt

svn path=/branches/cmake-bringup/; revision=50215
2010-12-29 18:28:34 +00:00
Timo Kreuzer
0c36281490 [STLPORT]
- Only use #pragma intrinsics on MSVC
- Don't add function prototypes for _InterlockedXxx

svn path=/branches/cmake-bringup/; revision=50213
2010-12-29 13:35:40 +00:00
Timo Kreuzer
9871a03861 [STLPORT]
- Fix compilation with 64 bit gcc

svn path=/branches/cmake-bringup/; revision=50212
2010-12-29 11:45:57 +00:00
Timo Kreuzer
88614730f8 [STLPORT]
- Add some additional definitions for amd64 compilation with gcc

svn path=/branches/cmake-bringup/; revision=50211
2010-12-29 11:42:10 +00:00
Timo Kreuzer
dd830cafba [NTOSKRNL]
- Add MiPdeToAddress and MI_IS_PAGE_LARGE for amd64
- Fix a pragma message
- Add some missing globals for amd64

svn path=/branches/cmake-bringup/; revision=50209
2010-12-29 10:20:39 +00:00
Timo Kreuzer
78cc22ef6f [CMAKE]
- fix decorations on non-x86 builds
- improve batt and aclui
- remove set_export_spec macro

svn path=/branches/cmake-bringup/; revision=50207
2010-12-29 08:08:18 +00:00
Timo Kreuzer
cf31695e04 [CMAKE]
Fix compilation of kddll

svn path=/branches/cmake-bringup/; revision=50200
2010-12-28 20:29:34 +00:00
Timo Kreuzer
4ebc5415a4 [CMAKE]
Build the right kdcom when _WINKD_ is set

svn path=/branches/cmake-bringup/; revision=50199
2010-12-28 19:56:55 +00:00
Timo Kreuzer
79816c62c3 [ASM]
KTIMER_TABLE are for win7 only

svn path=/branches/cmake-bringup/; revision=50198
2010-12-28 19:12:01 +00:00
Timo Kreuzer
158319da85 [CMAKE/ROSSYM]
Use _WIN32 instead of WIN32

svn path=/branches/cmake-bringup/; revision=50196
2010-12-28 17:12:58 +00:00
Timo Kreuzer
4bebddb463 [CMAKE/AMD64]
- add missing definitions for amd64

svn path=/branches/cmake-bringup/; revision=50195
2010-12-28 17:10:53 +00:00
Timo Kreuzer
c06e6d6e4a [CMAKE]
- Add _WINKD_ definition
- fix DBG and KDBG

svn path=/branches/cmake-bringup/; revision=50194
2010-12-28 17:08:11 +00:00
Timo Kreuzer
087eda6b50 [NTOSKRNL]
- Use SLIST_ENTRY instead of SINGLE_LIST_ENTRY for interlocked operations
- Remove unused variable

svn path=/branches/cmake-bringup/; revision=50191
2010-12-28 16:03:46 +00:00
Timo Kreuzer
4595756a37 [CMAKE]
Fix stdcall entry points for x86

svn path=/branches/cmake-bringup/; revision=50189
2010-12-28 12:42:05 +00:00
Timo Kreuzer
ad52f07f5a [CMAKE]
- Fix set_entrypoint for other architectures than x86, add an optional 3rd parameter for stdcall stackbytes
- don't add stdcall decoration to def files for other architectures then x86

svn path=/branches/cmake-bringup/; revision=50188
2010-12-28 12:14:13 +00:00
Amine Khaldi
67118af43a [CMAKE]
- Actually the ARCH initialization is needed in both places.

svn path=/branches/cmake-bringup/; revision=50187
2010-12-28 12:00:49 +00:00
Amine Khaldi
8c95f75064 [CMAKE]
- Move the ARCH initialization to the main cmake file instead of the toolchain file.

svn path=/branches/cmake-bringup/; revision=50186
2010-12-28 11:50:56 +00:00
Timo Kreuzer
c74b766c0c [CMAKE]
Fix configure script for host tools

svn path=/branches/cmake-bringup/; revision=50182
2010-12-28 09:17:42 +00:00
Timo Kreuzer
0549475d8e [CMAKE]
Fix genincdata for amd64

svn path=/branches/cmake-bringup/; revision=50180
2010-12-28 01:06:06 +00:00
Timo Kreuzer
654e22e491 [CMAKE]
Add a few definitions for amd64

svn path=/branches/cmake-bringup/; revision=50179
2010-12-28 01:04:55 +00:00
Jérôme Gardou
2fab3880ba [CMAKE]
- add bootcdregtest target

svn path=/branches/cmake-bringup/; revision=50178
2010-12-27 23:57:37 +00:00
Jérôme Gardou
17243e2930 [CMAKE]
- use already set variable for idl file compilation

svn path=/branches/cmake-bringup/; revision=50177
2010-12-27 23:57:12 +00:00
Timo Kreuzer
3f62bce4ad [CMAKE]
Add support for different architectures to configure script and simplify it a bit

svn path=/branches/cmake-bringup/; revision=50176
2010-12-27 23:14:50 +00:00
Jérôme Gardou
544ab09953 [CMAKE]
- add regtest.cmd to reactos.cab

svn path=/branches/cmake-bringup/; revision=50172
2010-12-27 21:05:32 +00:00
Amine Khaldi
0e74512f1e [CMAKE]
- Improve amd64 toolchain support.

svn path=/branches/cmake-bringup/; revision=50171
2010-12-27 20:10:40 +00:00
Timo Kreuzer
c44d0d4055 [CMAKE]
Fix a definition in svcctl.idl (MSVC)

svn path=/branches/cmake-bringup/; revision=50170
2010-12-27 18:44:31 +00:00
Amine Khaldi
9248292c48 [CMAKE]
- Improve formatting.

svn path=/branches/cmake-bringup/; revision=50169
2010-12-27 18:29:10 +00:00
Amine Khaldi
f09db5b9bf [CMAKE]
- Delete more useless definition files.
- Improve more modules.

svn path=/branches/cmake-bringup/; revision=50132
2010-12-24 19:07:09 +00:00
Amine Khaldi
ae92d98a66 [CMAKE]
- Delete more useless definition files.
- Improve more modules.

svn path=/branches/cmake-bringup/; revision=50131
2010-12-24 18:37:44 +00:00
Amine Khaldi
4ece6bd5ba [CMAKE]
- Delete some useless definition files.
- Improve some modules.

svn path=/branches/cmake-bringup/; revision=50130
2010-12-24 18:12:56 +00:00
Amine Khaldi
50b7280024 [CMAKE]
- Add new-cc activation flag. Dedicated to arty.

svn path=/branches/cmake-bringup/; revision=50129
2010-12-24 18:04:31 +00:00
Amine Khaldi
237d6eab1a [CMAKE]
- Improve some modules.

svn path=/branches/cmake-bringup/; revision=50126
2010-12-24 16:12:23 +00:00
Amine Khaldi
265a973995 [CMAKE]
- Add msi, qmgr and qmgrprxy to build.

svn path=/branches/cmake-bringup/; revision=50125
2010-12-24 14:25:10 +00:00
Amine Khaldi
6d973bdc1c [CMAKE]
- Improve formatting, mainly the uppercase macro names. No functionality change.

svn path=/branches/cmake-bringup/; revision=50124
2010-12-24 13:38:27 +00:00
Amine Khaldi
682ad4754b [CMAKE]
- Fix shell32.
- Fix and enable mstask.

svn path=/branches/cmake-bringup/; revision=50123
2010-12-24 12:23:19 +00:00
Timo Kreuzer
f81462977d [CMAKE]
Don't compile telnet and explorer on MSVC for now

svn path=/branches/cmake-bringup/; revision=50122
2010-12-24 12:13:17 +00:00
Amine Khaldi
cef278f70f [CMAKE]
- Add a macro to handle IDL interfaces.

svn path=/branches/cmake-bringup/; revision=50119
2010-12-24 12:08:24 +00:00
Amine Khaldi
7c5322ff9b [CMAKE]
- Use SIZE_T in MIDL_user_allocate. This reverts r49295.

svn path=/branches/cmake-bringup/; revision=50118
2010-12-24 11:42:18 +00:00
Amine Khaldi
bec9e0bfa6 [CMAKE]
- Add rostests to build when the folder exists.
- Alter the importlib target macro to handle definition files along with spec files.

svn path=/branches/cmake-bringup/; revision=50101
2010-12-22 16:37:32 +00:00
Jérôme Gardou
88a37f9ee8 [CMAKE]
- issue an error when an invalid module type is provided
  - add nativedll module type.

svn path=/branches/cmake-bringup/; revision=50075
2010-12-20 23:51:41 +00:00
Amine Khaldi
12c5516985 [CMAKE]
- Use an actual entrypoint for oleacc. Reflects r50064.

svn path=/branches/cmake-bringup/; revision=50065
2010-12-19 23:00:46 +00:00
Timo Kreuzer
94ac46c49e [CMAKE]
Fix configure script for msvc

svn path=/branches/cmake-bringup/; revision=50062
2010-12-19 17:01:35 +00:00
Amine Khaldi
f4cc19c36a [CMAKE]
- Improve several modules.

svn path=/branches/cmake-bringup/; revision=50055
2010-12-17 21:54:56 +00:00
Timo Kreuzer
79c58d8279 [CMAKE]
Add a simple configure script for windows hosts. Run it from any path, where you want to build both the tools and reactos in 2 subfolders.

svn path=/branches/cmake-bringup/; revision=50054
2010-12-17 20:11:04 +00:00
Amine Khaldi
ad73c3a733 [CMAKE]
- Improve mciwave.

svn path=/branches/cmake-bringup/; revision=50051
2010-12-17 13:54:13 +00:00
Amine Khaldi
f9880abc15 [CMAKE]
- Fix msacm32.dll entry point. This fixes the World Peace issue, I mean, bootcd and livecd userinit exception issue. We get to the shell now in both. Thanks to Johannes for helping me investigate this.

svn path=/branches/cmake-bringup/; revision=50050
2010-12-17 13:45:27 +00:00
Amine Khaldi
5e5b677ac5 [CMAKE]
- Update some more base addresses. Thanks to Roel for his help.

svn path=/branches/cmake-bringup/; revision=50039
2010-12-16 15:42:17 +00:00
Amine Khaldi
1a282efb6f [CMAKE]
- Assign a base address to ftfd.

svn path=/branches/cmake-bringup/; revision=50038
2010-12-16 15:03:13 +00:00
Amine Khaldi
4efeea1fb3 [CMAKE]
- Update some base addresses to adapt to new binary sizes. Thanks to Roel for his help.

svn path=/branches/cmake-bringup/; revision=50037
2010-12-16 14:35:26 +00:00
Amine Khaldi
4f505e46f5 [CMAKE]
- Arty: Add usermode addresses translation support. WIP.

svn path=/branches/cmake-bringup/; revision=50033
2010-12-15 23:37:54 +00:00
Amine Khaldi
ebc3a24d42 [CMAKE]
- Fix winspool import lib target.
- Improve some modules.

svn path=/branches/cmake-bringup/; revision=50023
2010-12-13 12:25:51 +00:00
Timo Kreuzer
6d9a17264d [CMAKE]
Revert some idl changes from r49286 and r49293, that broke mouse
and keyboard in 2nd stage.

svn path=/branches/cmake-bringup/; revision=50011
2010-12-11 17:04:24 +00:00
Amine Khaldi
e829be1010 [CMAKE]
- Add some importlib targets.

svn path=/branches/cmake-bringup/; revision=50005
2010-12-10 16:08:35 +00:00
Timo Kreuzer
3e64650a54 [ROSSYM]
Silence debug prints

svn path=/branches/cmake-bringup/; revision=49953
2010-12-04 21:16:35 +00:00
Timo Kreuzer
7764ff4c95 [CMAKE]
Give ntdll a baseaddress

svn path=/branches/cmake-bringup/; revision=49952
2010-12-04 20:18:24 +00:00
Timo Kreuzer
91b7e707a9 [CMAKE]
"don't assign 1 to a BOOL variable"

svn path=/branches/cmake-bringup/; revision=49947
2010-12-04 12:54:17 +00:00
Timo Kreuzer
090377fe9d [CMAKE]
- Fix configuration with cmake-gui (BOOL variables are TRUE/FALSE not 0/1)
- Remove unused DBG_OR_KDBG

svn path=/branches/cmake-bringup/; revision=49946
2010-12-04 12:48:02 +00:00
Amine Khaldi
d459599a8b [CMAKE]
- Activate ws2_32.

svn path=/branches/cmake-bringup/; revision=49943
2010-12-03 22:32:02 +00:00
Amine Khaldi
a1e7c693ec [CMAKE]
- Emit debug info.

svn path=/branches/cmake-bringup/; revision=49942
2010-12-03 22:23:37 +00:00
Timo Kreuzer
f1ebdab3df [CMAKE]
Remove duplicated dll import

svn path=/branches/cmake-bringup/; revision=49940
2010-12-03 21:05:01 +00:00
Sylvain Petreolle
a6c98dde60 [CMAKE]
Revert 49926.
Its not needed anymore after timo's stubs.h fix in 49933.

svn path=/branches/cmake-bringup/; revision=49938
2010-12-03 19:41:06 +00:00
Amine Khaldi
d37f67f379 [CMAKE]
- Improve some modules.
- Convert notifyhook def into a spec, and add the import lib target.
- Get rid of the import libs that we already generate (the rest are still just temporary)

svn path=/branches/cmake-bringup/; revision=49937
2010-12-03 19:20:45 +00:00
Timo Kreuzer
f4b7920876 [CMAKE]
define inline to __inline for host tools on MSVC builds

svn path=/branches/cmake-bringup/; revision=49934
2010-12-03 17:51:03 +00:00
Timo Kreuzer
be61366908 [CMAKE]
include debug.h explicitly from reactos folder, to avoid including the wine one. Fixes ws2_32

svn path=/branches/cmake-bringup/; revision=49933
2010-12-03 17:48:03 +00:00
Amine Khaldi
f7da79e889 [CMAKE]
- Improve more modules.

svn path=/branches/cmake-bringup/; revision=49932
2010-12-03 17:41:29 +00:00
Amine Khaldi
c2575b551d [CMAKE]
- Add dllname optional parameter to the import lib creation macro.
- Use it in the kernel.

svn path=/branches/cmake-bringup/; revision=49930
2010-12-03 16:17:41 +00:00
Sylvain Petreolle
3b0a4a1478 [CMAKE]
Manual stubs for user32.

svn path=/branches/cmake-bringup/; revision=49926
2010-12-03 13:48:48 +00:00
Timo Kreuzer
a7894a8714 [CMAKE]
Some manual stubs for mapi32

svn path=/branches/cmake-bringup/; revision=49925
2010-12-03 13:41:06 +00:00
Timo Kreuzer
53620b9c9b [CMAKE]
Fix libshdocvw

svn path=/branches/cmake-bringup/; revision=49921
2010-12-03 12:08:09 +00:00
Amine Khaldi
4ff54162dd [CMAKE]
- More work on import lib targets and improving modules.

svn path=/branches/cmake-bringup/; revision=49916
2010-12-03 11:01:21 +00:00
Amine Khaldi
11cdb20f02 [CMAKE]
- More work on import lib targets and improving modules.

svn path=/branches/cmake-bringup/; revision=49914
2010-12-03 10:26:32 +00:00
Amine Khaldi
d8b2780e7e [CMAKE]
- Start adding proper import lib targets.
- Improve some modules.

svn path=/branches/cmake-bringup/; revision=49913
2010-12-03 09:26:06 +00:00
Amine Khaldi
c47b3863d9 [CMAKE]
- Adapt to the new spec2def syntax.

svn path=/branches/cmake-bringup/; revision=49908
2010-12-02 23:37:33 +00:00
Amine Khaldi
b7f44d1892 [CMAKE]
- WIP: Make rossym and its users rely on dwarf debug info. Brought to you by the Arty.

svn path=/branches/cmake-bringup/; revision=49906
2010-12-02 23:20:22 +00:00
Timo Kreuzer
3ddfc0b355 [CMAKE]
Fix compilation of setupldr on msvc

svn path=/branches/cmake-bringup/; revision=49905
2010-12-02 22:24:58 +00:00
Timo Kreuzer
7d0047c609 [CMAKE]
Invoke spec2def only once to generate asm stub and def file.

svn path=/branches/cmake-bringup/; revision=49904
2010-12-02 22:16:59 +00:00
Amine Khaldi
faa04c1086 [CMAKE]
- Group some cross compiling related sections.
- Implement add_importlib_target() for gcc.
- Improve the msvc version.

svn path=/branches/cmake-bringup/; revision=49903
2010-12-02 21:56:40 +00:00
Timo Kreuzer
3f7c3ba575 [CMAKE]
On MSVC builds link eventvwr, dwnl, ftp, ping, telnet, tracert to ntdll to resolve _allmul and friends
link ftp to oldnames

svn path=/branches/cmake-bringup/; revision=49902
2010-12-02 19:44:46 +00:00
Timo Kreuzer
69e1da4398 [CMAKE]
Cleanup old comment

svn path=/branches/cmake-bringup/; revision=49901
2010-12-02 19:18:25 +00:00
Timo Kreuzer
d044fc5af3 [CMAKE]
- Add importlib for dplayx, ksuser, wined3d
- link dplay to dplayx

svn path=/branches/cmake-bringup/; revision=49900
2010-12-02 19:13:47 +00:00
Sylvain Petreolle
dc90d687fe [CMAKE]
Fix shlwapi.

svn path=/branches/cmake-bringup/; revision=49899
2010-12-02 14:57:32 +00:00
Timo Kreuzer
2d23617922 [MSVC]
Fix typeof(WineDirect3DCreateClipper) definition for MSVC.

svn path=/branches/cmake-bringup/; revision=49897
2010-12-02 13:37:59 +00:00
Sylvain Petreolle
d0d1abf53c [CMAKE]
Update msvcrt stubs.

svn path=/branches/cmake-bringup/; revision=49896
2010-12-02 13:32:01 +00:00
Sylvain Petreolle
4f5a031400 [CMAKE]
Fix build for winmm and syssetup.

svn path=/branches/cmake-bringup/; revision=49895
2010-12-02 12:58:59 +00:00
Sylvain Petreolle
e3e3bef533 [CMAKE]
Disable msnet32.

svn path=/branches/cmake-bringup/; revision=49894
2010-12-02 12:38:16 +00:00
Sylvain Petreolle
1d2630cc29 [CMAKE]
Add stubs file to source automatically.

Gcc: fix set_rc_compiler() so that it doesn't conflict with custom_incdefs().

svn path=/branches/cmake-bringup/; revision=49893
2010-12-02 12:36:16 +00:00
Timo Kreuzer
cabd360822 [CMAKE]
D3DXCreateTexture is already implemented, not a stub

svn path=/branches/cmake-bringup/; revision=49892
2010-12-02 12:14:35 +00:00
Timo Kreuzer
5c87a775bf [CMAKE]
- Link wine dx, that do forwards to the respective import libs (MSVC requires that)
- add import lib for d3dx9_24
- add IID_IUnknown to d3dx9_36_main.c for MSVC

svn path=/branches/cmake-bringup/; revision=49891
2010-12-02 11:49:15 +00:00
Timo Kreuzer
4ebc21e75b [CMAKE]
add libd3dx9_24.a

svn path=/branches/cmake-bringup/; revision=49890
2010-12-02 11:45:24 +00:00
Timo Kreuzer
28f9048710 [CMAKE]
Generate proper stdcall stubs for d3dx9_24 and d3dx9_36
Fix D3DXLoadSurfaceFromSurface parameters

svn path=/branches/cmake-bringup/; revision=49889
2010-12-02 11:44:24 +00:00
Timo Kreuzer
7b68fbc7bb [CMAKE]
Convert __wine_spec_unimplemented_stub to a macro

svn path=/branches/cmake-bringup/; revision=49888
2010-12-01 21:39:38 +00:00
Timo Kreuzer
92a36a982e [CMAKE]
Manual stubs for comctl32

svn path=/branches/cmake-bringup/; revision=49887
2010-12-01 21:16:25 +00:00
Amine Khaldi
f8bea92055 [CMAKE]
- Inhibit all warning messages for mesa32.

svn path=/branches/cmake-bringup/; revision=49886
2010-12-01 20:49:45 +00:00
Timo Kreuzer
a46bd17bc1 [CMAKE]
Manual stubs for cabinet

svn path=/branches/cmake-bringup/; revision=49885
2010-12-01 20:29:09 +00:00
Timo Kreuzer
a0e85898c8 [CMAKE]
Fix browseui

svn path=/branches/cmake-bringup/; revision=49884
2010-12-01 20:11:15 +00:00
Timo Kreuzer
c843606e23 [CMAKE]
wine depends on buildno header

svn path=/branches/cmake-bringup/; revision=49883
2010-12-01 18:28:34 +00:00
Timo Kreuzer
d18b9b0c9b [PSDK]
Fix include guard for unknown.h

svn path=/branches/cmake-bringup/; revision=49882
2010-12-01 14:56:05 +00:00
Sylvain Petreolle
30922e7435 [CMAKE]
Fix dwmapi, mpr and msxml3.
Ordinal stubs were given the same internal names as Wine.

svn path=/branches/cmake-bringup/; revision=49881
2010-12-01 13:36:16 +00:00
Timo Kreuzer
b9e6a0061a [CMAKE]
manual stubs for atl

svn path=/branches/cmake-bringup/; revision=49880
2010-12-01 13:16:39 +00:00
Timo Kreuzer
b9b9c03a1c [CMAKE]
Manual stubs for activeds

svn path=/branches/cmake-bringup/; revision=49879
2010-12-01 09:44:45 +00:00
Sylvain Petreolle
98fa3bb8d8 [CMAKE]
Fix msvcrt and query build.

svn path=/branches/cmake-bringup/; revision=49878
2010-11-30 22:31:17 +00:00
Sylvain Petreolle
53010e4c40 [CMAKE]
Stubs: Fix some win32 modules.

svn path=/branches/cmake-bringup/; revision=49876
2010-11-30 20:57:01 +00:00
Sylvain Petreolle
e57db5ea40 [CMAKE]
Add d3dx9_36 importlib.

svn path=/branches/cmake-bringup/; revision=49874
2010-11-30 17:51:44 +00:00
Sylvain Petreolle
e141d4c363 [CMAKE]
Stubs: Fix some win32 modules.

svn path=/branches/cmake-bringup/; revision=49871
2010-11-29 23:08:38 +00:00
Timo Kreuzer
db7b8d8030 [CMAKE]
Fix stubs and imports for wine dx

svn path=/branches/cmake-bringup/; revision=49870
2010-11-29 19:42:58 +00:00
Timo Kreuzer
5ef10219b5 [CMAKE]
- Add stub file for d3dx9_26 and d3dx9_36
- d3dx9_26 imports from d3dx9_36 (def redirection)

svn path=/branches/cmake-bringup/; revision=49869
2010-11-29 19:31:43 +00:00
Amine Khaldi
0522c531df [CMAKE]
- Add the stubs file as an output file.

svn path=/branches/cmake-bringup/; revision=49866
2010-11-29 18:36:22 +00:00
Amine Khaldi
2a6108be5a [CMAKE]
- Add auto stubs support to the msvc based toolchains.

svn path=/branches/cmake-bringup/; revision=49865
2010-11-29 18:35:43 +00:00
Amine Khaldi
0f1a6952bb [CMAKE]
- Add auto stubs support to the gcc based toolchains.

svn path=/branches/cmake-bringup/; revision=49864
2010-11-29 18:33:07 +00:00
Timo Kreuzer
6c24157fa1 add stubs.h
svn path=/branches/cmake-bringup/; revision=49863
2010-11-29 18:07:36 +00:00
Timo Kreuzer
89a3a5f960 [SPEC2DEF]
- add support for stubs generation
- add support for "proper" stubs, with calling convention and parameter dump
- handle -private
- change invokation a bit
[CMAKE]
- remove the old VARIANT hack

svn path=/branches/cmake-bringup/; revision=49862
2010-11-29 17:53:20 +00:00
Timo Kreuzer
dbf57f9949 [DXSDK]
Don't use stdole32.tlb.
Seems that this is the problem that made midl fail. Maybe not. Yesterday it was all about VARIANT, which has no effect today. Let's see what tomorrow will bring :-?

svn path=/branches/cmake-bringup/; revision=49860
2010-11-29 14:43:30 +00:00
Timo Kreuzer
434632f5ca [WINE]
Add msvchelper.h, a file that helps wine dx stuff to comple on msvc.

svn path=/branches/cmake-bringup/; revision=49859
2010-11-29 09:29:20 +00:00
Timo Kreuzer
1a27a9ff85 [CMAKE]
remove /GR from c++ options, it's on by default and we get a warning when additionally specifiying /GR-

svn path=/branches/cmake-bringup/; revision=49857
2010-11-28 21:49:54 +00:00
Timo Kreuzer
5c2f95e5a4 [CMAKE]
Make rpcproxy macro portable

svn path=/branches/cmake-bringup/; revision=49856
2010-11-28 20:16:40 +00:00
Timo Kreuzer
6ea3626acc [CMAKE]
Get rid of the stubs file for quartz, it was a mistake.

svn path=/branches/cmake-bringup/; revision=49855
2010-11-28 20:12:05 +00:00
Timo Kreuzer
e2d8cf2570 [CMAKE]
Don't compile CRT_fp8.c, CRT_fp10.c and xtxtmode.c. we don't need those and MSVC complains about duplicate symbols, as it's exported from msvcrt already.

svn path=/branches/cmake-bringup/; revision=49854
2010-11-28 19:28:03 +00:00
Timo Kreuzer
498b0098dd [UUID]
Add IID_IStream and IID_IEnumDMO for MSVC

svn path=/branches/cmake-bringup/; revision=49853
2010-11-28 19:05:03 +00:00
Timo Kreuzer
0dbbf13b57 [DXSDK]
Put coclass MediaDet into the library DexterLib

svn path=/branches/cmake-bringup/; revision=49852
2010-11-28 16:53:47 +00:00
Timo Kreuzer
69c7a5d30c [WINE]
Add a dummy DECL_GLOBAL_CONSTRUCTOR for MSVC

svn path=/branches/cmake-bringup/; revision=49849
2010-11-28 16:37:46 +00:00
Timo Kreuzer
5782837e7e [CMAKE]
Reapply the midl hack. Someone wants to trick me or something. I could swear it just worked one minute ago.

svn path=/branches/cmake-bringup/; revision=49847
2010-11-28 16:22:38 +00:00
Timo Kreuzer
7cef73429a [CMAKE]
Fix dependencies for importlib targets

svn path=/branches/cmake-bringup/; revision=49846
2010-11-28 16:12:25 +00:00
Timo Kreuzer
4592c1140e [CMAKE]
- Remove the dxsdk hack. It works now without. Why? I don't know. Why didn't it work before? I have no idea. Maybe the newlines. Anyway it works. If someone breaks it, I'll ki^Z^Z revert it ;-)

svn path=/branches/cmake-bringup/; revision=49845
2010-11-28 15:52:00 +00:00
Timo Kreuzer
4f075e995e [DXSDK]
- Reenable dxsdk for MSVC
[PSDK/DXSDK]
- add a newlines at the end of several files.

svn path=/branches/cmake-bringup/; revision=49844
2010-11-28 15:47:13 +00:00
Timo Kreuzer
0ee737e354 [CMAKE]
Add a hack for midl. Don't ask me why, but renaming IEnumVARIANT to something different globally fixes the compilation of dxsdk. someone with more idl knowledge should check that.

svn path=/branches/cmake-bringup/; revision=49843
2010-11-28 15:40:47 +00:00
Timo Kreuzer
f4d65e62c9 [CMAKE]
Remove the old global strict_context_handle hack

svn path=/branches/cmake-bringup/; revision=49842
2010-11-28 12:58:10 +00:00
Timo Kreuzer
fd2a3657cb [PSDK]
Add a hack for midl.

svn path=/branches/cmake-bringup/; revision=49841
2010-11-28 12:40:33 +00:00
Timo Kreuzer
b46aa66305 [CMAKE]
add a number of importlin targets and convert to spec

svn path=/branches/cmake-bringup/; revision=49839
2010-11-28 10:19:28 +00:00
Timo Kreuzer
a916747152 [CRT]
Implement thiscall wrapper for MSVC

svn path=/branches/cmake-bringup/; revision=49838
2010-11-28 10:14:51 +00:00
Timo Kreuzer
b8702f60f7 [UUID]
Add a number of GUIDs. They are duplicated from idl generated headers, because of a small difference between widl and midl. widl generates "DEFINE_GUID" entries for each interface, while midl generates "extern GUID" only. The latter matching MS SDK headers. If someone can think of a more elegant way of solving this, let me know.

svn path=/branches/cmake-bringup/; revision=49837
2010-11-28 10:12:35 +00:00
Timo Kreuzer
719c9e9811 [PSDK]
Add some GUIDs for MSVC.

svn path=/branches/cmake-bringup/; revision=49835
2010-11-28 09:28:28 +00:00
Timo Kreuzer
f5cd0290d4 [CMAKE]
- Link libxslt to ntdll for MSVC
- Don't compile some directx stuff with MSVC atm
- Add importlib target for dinput
- add importlib target for wined3d and use autogenerated def
- Improve quartz

svn path=/branches/cmake-bringup/; revision=49833
2010-11-28 01:24:36 +00:00
Timo Kreuzer
da553e4658 [REACTOS]
Fix Italian resource file syntax

svn path=/branches/cmake-bringup/; revision=49832
2010-11-28 01:01:36 +00:00
Timo Kreuzer
c79199adc1 [CMAKE]
Make rapps a win32gui app and link to msvcrt

svn path=/branches/cmake-bringup/; revision=49831
2010-11-28 00:47:58 +00:00
Timo Kreuzer
a97affe62a [CMAKE]
Fix build of msvcsup (add missing file)

svn path=/branches/cmake-bringup/; revision=49829
2010-11-27 23:47:10 +00:00
Timo Kreuzer
adfc8941cc [CMAKE]
ML wants /nologo, not /NOLOGO

svn path=/branches/cmake-bringup/; revision=49828
2010-11-27 23:41:23 +00:00
Timo Kreuzer
7b5ea6afe3 [CMAKE]
Add an incomplete cmake file for msi

svn path=/branches/cmake-bringup/; revision=49823
2010-11-27 18:30:39 +00:00
Timo Kreuzer
a4ef3baa57 [MSVCRT]
- Fix forwarded export of GetLocaleInfoW
- Rename _inp & co to MSVCRT__inp, because they are only available as intrinsics on MSVC
- Implement them using the intrinsic

svn path=/branches/cmake-bringup/; revision=49822
2010-11-27 15:50:53 +00:00
Amine Khaldi
86c023e2c7 [CMAKE]
- Add missing asm dependency.

svn path=/branches/cmake-bringup/; revision=49821
2010-11-27 15:31:33 +00:00
Amine Khaldi
2b43789ca0 [CMAKE]
- Fix xinput9_1_0

svn path=/branches/cmake-bringup/; revision=49819
2010-11-27 13:05:52 +00:00
Amine Khaldi
0893cf2ba7 [CMAKE]
- Fix xinput1_2

svn path=/branches/cmake-bringup/; revision=49818
2010-11-27 12:55:14 +00:00
Amine Khaldi
5a6f3448b7 [CMAKE]
- Improve kernel32.

svn path=/branches/cmake-bringup/; revision=49817
2010-11-27 12:49:37 +00:00
Sylvain Petreolle
20eb327863 [CMAKE]
Add msvcrt dependencies.

svn path=/branches/cmake-bringup/; revision=49816
2010-11-27 12:46:17 +00:00
Amine Khaldi
91afe86220 [CMAKE]
- Fix msvcrt.

svn path=/branches/cmake-bringup/; revision=49815
2010-11-27 12:41:23 +00:00
Timo Kreuzer
cb23bbe38a [INTRIN]
Implement _inp, _inpd, _inpw, _outp, _outpd, _outpw as intrinsics, like on MSVC

svn path=/branches/cmake-bringup/; revision=49814
2010-11-27 12:36:14 +00:00
Amine Khaldi
16fed19fbd [CMAKE]
- Add ccache support.

svn path=/branches/cmake-bringup/; revision=49813
2010-11-27 11:27:09 +00:00
Amine Khaldi
4103cf5929 [CMAKE]
- Comment out what seems to be a missing file.

svn path=/branches/cmake-bringup/; revision=49812
2010-11-27 10:48:44 +00:00
Amine Khaldi
eb8df6a835 [CMAKE]
- Fix more modules.

svn path=/branches/cmake-bringup/; revision=49811
2010-11-27 09:00:22 +00:00
Amine Khaldi
4e1f5725ff - Fix more dlls.
svn path=/branches/cmake-bringup/; revision=49810
2010-11-27 01:16:42 +00:00
Amine Khaldi
099f7ed3c4 - Remove some unneeded pdef files.
- Fix some modules now that they use proper startup code.

svn path=/branches/cmake-bringup/; revision=49809
2010-11-27 00:36:28 +00:00
Timo Kreuzer
9de09f2c2d [NDK]
Fix syntax for MSVC

svn path=/branches/cmake-bringup/; revision=49808
2010-11-27 00:10:47 +00:00
Timo Kreuzer
8040e998be [CMAKE]
add a bunch more importlib targets

svn path=/branches/cmake-bringup/; revision=49807
2010-11-27 00:02:36 +00:00
Amine Khaldi
4a8860b952 - Correct the entry point for win32dll, win32ocx and cpl module types.
- Fix acledit.

svn path=/branches/cmake-bringup/; revision=49806
2010-11-26 23:57:03 +00:00
Timo Kreuzer
efa7393534 [CMAKE]
- implicitly link to msvcsup
- set proper entrypoints
- add linkerflags /DLL and /DRIVER

svn path=/branches/cmake-bringup/; revision=49805
2010-11-26 23:48:07 +00:00
Timo Kreuzer
dc89f45599 [CMAKE]
Add msvcsup static library for MSVC. This might be superseded by something else later.

svn path=/branches/cmake-bringup/; revision=49804
2010-11-26 23:45:30 +00:00
Sylvain Petreolle
f1283c58c6 [CMAKE]
Sync with trunk. (r49792)

svn path=/branches/cmake-bringup/; revision=49803
2010-11-26 23:33:34 +00:00
Sylvain Petreolle
cca965e6bc [CMAKE]
Add missing asm dependency.

svn path=/branches/cmake-bringup/; revision=49801
2010-11-26 23:05:46 +00:00
Timo Kreuzer
0ff3955b9b [MINGW]
Merge .CRT section into .rdata when linking to mingw lib. This silences the warnings about uninitialized constructors.

svn path=/branches/cmake-bringup/; revision=49799
2010-11-26 22:52:46 +00:00
Timo Kreuzer
c2adbec142 [MINGW]
Fix .CRT section attributes to avoid linker warning, when merging with .rdata

svn path=/branches/cmake-bringup/; revision=49798
2010-11-26 22:51:06 +00:00
Timo Kreuzer
64e9a6a0a6 [CMAKE]
add importlib target for csrsrv

svn path=/branches/cmake-bringup/; revision=49797
2010-11-26 00:20:29 +00:00
Timo Kreuzer
0fc3ec9dea [CMAKE]
No mesa32 for MSVC for now. It has lots of assembly that would need to be ported. It also talkes ages to compile.


svn path=/branches/cmake-bringup/; revision=49796
2010-11-26 00:01:20 +00:00
Timo Kreuzer
cfba60d19d [LIBXML2]
add a hack around the hack

svn path=/branches/cmake-bringup/; revision=49795
2010-11-25 23:16:12 +00:00
Timo Kreuzer
5a54b0b454 [CRT]
simplify and fix definition of setjmp

svn path=/branches/cmake-bringup/; revision=49794
2010-11-25 22:35:57 +00:00
Timo Kreuzer
93f5d28abf [CMAKE]
Link libjpg explicitly to kernel32 and link to mingw_common on MSVC builds

svn path=/branches/cmake-bringup/; revision=49793
2010-11-25 22:14:07 +00:00
Timo Kreuzer
a68d9fb74f [CMAKE]
Convert win32k to spec and add importlib target

svn path=/branches/cmake-bringup/; revision=49791
2010-11-24 23:38:19 +00:00
Timo Kreuzer
c5244531f2 [WORDPAD]
Fix rc syntax (multiline strings with \ at the end). This is to compile with MS reasource compiler, we can hope wine will adopt this, because latest versions of gcc's preprocessor also don't support this anymore.

svn path=/branches/cmake-bringup/; revision=49788
2010-11-24 20:19:55 +00:00
Timo Kreuzer
c41cbd1d26 [NTOS]
Add some missing intrinsics for MSVC

svn path=/branches/cmake-bringup/; revision=49787
2010-11-24 20:03:01 +00:00
Timo Kreuzer
acc442de12 [CMAKE]
Add importlib targets for glu32, opengl32, rpcrt4

svn path=/branches/cmake-bringup/; revision=49784
2010-11-24 18:53:07 +00:00
Timo Kreuzer
d921c532f1 [TASKMGR]
- add #pragma code_page(1252) at the end of some resource files to help msvc's resource compiler
- "Untranslate" a few Japanese strings, as they contain illegal characters. Someone speaking Japanese should retranslate them using proper escape sequences where neccessary.
- Don't include headers twice

svn path=/branches/cmake-bringup/; revision=49776
2010-11-24 15:59:23 +00:00
Timo Kreuzer
8a51e80841 [CMAKE]
Add a number of importlib targets

svn path=/branches/cmake-bringup/; revision=49765
2010-11-24 08:55:07 +00:00
Timo Kreuzer
4ea9e2650f [XCOPY]
Fix Swedish resource file syntax

svn path=/branches/cmake-bringup/; revision=49764
2010-11-24 08:51:44 +00:00
Timo Kreuzer
49fae5916f [PSDK]
Fix compilation of ctfutb.idl with widl

svn path=/branches/cmake-bringup/; revision=49763
2010-11-24 08:48:34 +00:00
Timo Kreuzer
53eb6ed31f [PSDK]
- Add a workaround to dispex.idl to prevent sal annotations to be generated. A better solution would be to have definitions in pur headers, but they conflict with external c++ headers.
- Add a number of missing interfaces
- Fix MIDL compilation of mlang, by adding adding a library definition

svn path=/branches/cmake-bringup/; revision=49762
2010-11-24 00:27:08 +00:00
Timo Kreuzer
e71cf78478 [CMAKE]
Use spec file for ntoskrnl and set image base to 0x00400000 on MSVC builds. This is the value that Windows has and the ms linker doesn't like to use the kernel address.

svn path=/branches/cmake-bringup/; revision=49709
2010-11-22 14:11:16 +00:00
Timo Kreuzer
d208da9a5b [NTOSKRNL]
Don't include initguid.h in a global header. It causes the guids to be generated in every object file, using 16 bytes per guid. We were lucky that the linker seemed to detect duplicates, so that the resulting image size isn't affected. Add a new file guid.c, that only contains the guids.

svn path=/branches/cmake-bringup/; revision=49708
2010-11-22 14:08:41 +00:00
Timo Kreuzer
b473508960 [REGEDIT]
Fix syntax

svn path=/branches/cmake-bringup/; revision=49707
2010-11-22 13:06:05 +00:00
Timo Kreuzer
c9032b29c8 [CMAKE]
Don't automatically create and link manifest files on MSVC

svn path=/branches/cmake-bringup/; revision=49706
2010-11-22 12:57:51 +00:00
Timo Kreuzer
674c35dcd7 [CMAKE]
No precompiled headers for MSVC atm

svn path=/branches/cmake-bringup/; revision=49705
2010-11-22 12:25:25 +00:00
Timo Kreuzer
07359cbdc3 [PAINT]
Fix syntax

svn path=/branches/cmake-bringup/; revision=49704
2010-11-22 09:55:50 +00:00
Timo Kreuzer
0f10cf2e2a [PDSK]
MIDL doesn't like if interfaces are not defined. Add some empty interfaces to activedbg.idl make it compile.

svn path=/branches/cmake-bringup/; revision=49703
2010-11-22 00:34:25 +00:00
Timo Kreuzer
9053592456 [PSDK]
Fix HTMLFormElement uuid and add missing retval in IHTMLDocument6
Add back some previously disabled idl files for msvc

svn path=/branches/cmake-bringup/; revision=49702
2010-11-21 23:51:09 +00:00
Timo Kreuzer
59a904c185 [PSDK]
Fix IRequestDictionary uuid

svn path=/branches/cmake-bringup/; revision=49700
2010-11-21 21:27:57 +00:00
Timo Kreuzer
ef952b8a6a [PSDK]
Fix ITravelLog uuid

svn path=/branches/cmake-bringup/; revision=49699
2010-11-21 21:20:17 +00:00
Timo Kreuzer
ff48ee3d73 [KBSDLL]
Link explicitly to msvcrt

svn path=/branches/cmake-bringup/; revision=49698
2010-11-21 19:51:55 +00:00
Timo Kreuzer
e1f1113670 [CMAKE]
Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning

svn path=/branches/cmake-bringup/; revision=49697
2010-11-21 19:47:55 +00:00
Sylvain Petreolle
046d0e3522 [CMAKE]
ntdllsys: Add asm dependency.

svn path=/branches/cmake-bringup/; revision=49696
2010-11-21 18:37:27 +00:00
Timo Kreuzer
a89666c0c1 [gdi32]
Fix spec file

svn path=/branches/cmake-bringup/; revision=49695
2010-11-21 18:11:50 +00:00
Timo Kreuzer
ea9d55b42c [HAL]
Fix exports

svn path=/branches/cmake-bringup/; revision=49694
2010-11-21 17:24:11 +00:00
Timo Kreuzer
b9bb6eeba9 [RTL]
Add missing Interlocked definition

svn path=/branches/cmake-bringup/; revision=49690
2010-11-21 14:40:57 +00:00
Timo Kreuzer
dcb3379a79 [SCSIPORT]
Convert to spec

svn path=/branches/cmake-bringup/; revision=49689
2010-11-21 14:28:52 +00:00
Timo Kreuzer
357417071a [MSVCRT]
Add 25 exports with proper entries instead of stub

svn path=/branches/cmake-bringup/; revision=49688
2010-11-21 13:46:56 +00:00
Timo Kreuzer
a233914955 [MSVCRT]
- Make stubs raise an exception like winestubs
- Remove ugly wine-stubs

svn path=/branches/cmake-bringup/; revision=49686
2010-11-21 13:35:43 +00:00
Timo Kreuzer
8f135be13f [MSDMO]
add proper stubs

svn path=/branches/cmake-bringup/; revision=49685
2010-11-21 13:21:05 +00:00
Timo Kreuzer
129bc9c356 [MSVCRT]
- Add a number of stub functions to fix build
- Comment out some exports that are probably 2k/nt4 only
- don't set -u flag for MSVC

svn path=/branches/cmake-bringup/; revision=49684
2010-11-21 13:08:55 +00:00
Timo Kreuzer
26718d757e [CMAKE]
- Add /nologo, when preprocessing asm files
- Move add_pch to compiler specific files (maybe someone can fix it for MSVC)
- Update set_module_type for MSVC

svn path=/branches/cmake-bringup/; revision=49683
2010-11-21 12:32:03 +00:00
Timo Kreuzer
822496fa61 [MINGW]
Remove alloca_probe_16 stub

svn path=/branches/cmake-bringup/; revision=49682
2010-11-21 12:29:35 +00:00
Timo Kreuzer
63dde4fa13 [HAL]
Convert asm to new syntax, use spec file


svn path=/branches/cmake-bringup/; revision=49681
2010-11-21 10:10:38 +00:00
Timo Kreuzer
45a06d507a [RTL]
- Use portable interlocked functions in code, define them to intrinsics for x86 and x64 in the header

svn path=/branches/cmake-bringup/; revision=49680
2010-11-21 10:05:20 +00:00
Timo Kreuzer
0b8509a565 [CRT]
- Use ___readcr4 instead of __readcr4, because MSVC doesn't like this intrinsic to be redefined.
- Add _ftol2

svn path=/branches/cmake-bringup/; revision=49679
2010-11-21 09:36:26 +00:00
Timo Kreuzer
1a4c47df9e [RTL]
Don't use _InterlockedCompareExchangePointer, that function doesn't exist on x86

svn path=/branches/cmake-bringup/; revision=49678
2010-11-21 01:36:51 +00:00
Timo Kreuzer
f12dd9240e [CMAKE]
Add EXTERNAL_OBJECT TRUE for generated def files on gcc builds. Fixes empty exports.
Add kernelmodedriver module type for MSVC

svn path=/branches/cmake-bringup/; revision=49677
2010-11-21 00:55:46 +00:00
Timo Kreuzer
8ee00e2746 [CMAKE]
Bye, bye, winebuild. Welcome spec2def.

svn path=/branches/cmake-bringup/; revision=49675
2010-11-20 21:43:57 +00:00
Timo Kreuzer
e3d6ac2051 [LOADPERF]
add proper stubs

svn path=/branches/cmake-bringup/; revision=49673
2010-11-20 18:37:19 +00:00
Timo Kreuzer
531c9e5eee add missing file.
svn path=/branches/cmake-bringup/; revision=49672
2010-11-20 18:04:06 +00:00
Timo Kreuzer
580f370be3 [CRYPTDLL]
Add proper stubs.

svn path=/branches/cmake-bringup/; revision=49671
2010-11-20 18:03:01 +00:00
Timo Kreuzer
16720dd129 [QUARTZ]
Add stub for GetProxyDllInfo

svn path=/branches/cmake-bringup/; revision=49670
2010-11-20 17:39:53 +00:00
Timo Kreuzer
f90a97e5a6 [CRT]
- Add __readcr4 to crt to compensate for MSVC bug
- Compile strnset with MSVC

svn path=/branches/cmake-bringup/; revision=49669
2010-11-20 16:38:45 +00:00
Amine Khaldi
e11826a832 [CMAKE]
- Sync with trunk.

svn path=/branches/cmake-bringup/; revision=49668
2010-11-20 16:33:34 +00:00
Timo Kreuzer
5cd6be3583 [CMAKE]
- Pass /nologo to the assembler
- don't implicitly link msvcrt and kernel32

svn path=/branches/cmake-bringup/; revision=49667
2010-11-20 16:21:24 +00:00
Amine Khaldi
47c6e8006a [CMAKE]
- Get rid of the ugly stubs file. It's not needed anymore.

svn path=/branches/cmake-bringup/; revision=49666
2010-11-20 15:58:35 +00:00
Timo Kreuzer
795de760bd [CMAKE]
add importlib targets for bootvid, kdcom, ttfd

svn path=/branches/cmake-bringup/; revision=49664
2010-11-20 15:37:52 +00:00
Timo Kreuzer
dca867f3fd [ASM]
add some more missing constants

svn path=/branches/cmake-bringup/; revision=49661
2010-11-20 13:30:16 +00:00
Timo Kreuzer
d65aa994f7 [CRT]
Implement __alloca_probe_16

svn path=/branches/cmake-bringup/; revision=49660
2010-11-20 13:03:11 +00:00
Timo Kreuzer
66a7b7ba1d [NTOSKRNL]
Convert assembly to new sytax

svn path=/branches/cmake-bringup/; revision=49657
2010-11-20 11:09:32 +00:00
Timo Kreuzer
eea3ac2425 [NTOSKRNL]
Remove duplicated and incompatible implementations of setjmp / longjmp

svn path=/branches/cmake-bringup/; revision=49656
2010-11-20 10:57:26 +00:00
Timo Kreuzer
eb84dde490 [NTOSKRNL]
Use constants instead of a gcc extension

svn path=/branches/cmake-bringup/; revision=49655
2010-11-20 10:43:37 +00:00
Timo Kreuzer
4b3f3b86fd [KERNEL32]
Get rid of stub entries in spec file, either replacing them with a real export or commenting them out in case of win2k only exports and 1 Win7 export

svn path=/branches/cmake-bringup/; revision=49652
2010-11-20 00:50:08 +00:00
Timo Kreuzer
e0c83caeee [NTDLL]
- Convert dispatch.S to new asm syntax
- Add exports for RtlAddVectoredContinueHandler and RtlRemoveVectoredContinueHandler

svn path=/branches/cmake-bringup/; revision=49651
2010-11-20 00:46:31 +00:00
Timo Kreuzer
cf90c329f2 [RTL]
Add stubs for RtlAddVectoredContinueHandler and RtlRemoveVectoredContinueHandler

svn path=/branches/cmake-bringup/; revision=49649
2010-11-19 23:51:02 +00:00
Timo Kreuzer
ecdfe19579 [KERNEL32]
Switch to new asm syntax
Add dependency to asm

svn path=/branches/cmake-bringup/; revision=49648
2010-11-19 23:40:01 +00:00
Timo Kreuzer
cf6d90b6f2 [ASM]
Add more constants for ks386.inc

svn path=/branches/cmake-bringup/; revision=49647
2010-11-19 23:16:50 +00:00
Timo Kreuzer
8b7d047834 [CMAKE]
- Add asm dependencies to freeldr, ntdll, crt
- Add importlib for hal and ntoskrnl
- Fix ntoskrnl spec file
- Fix resource pathes in ntoskrnl.rc

svn path=/branches/cmake-bringup/; revision=49645
2010-11-19 22:02:33 +00:00
Timo Kreuzer
5312a38c2f [CRT]
Remove unneccessary prototypes

svn path=/branches/cmake-bringup/; revision=49643
2010-11-19 18:57:51 +00:00
Timo Kreuzer
da6504af5d [CRT]
Silence a warning

svn path=/branches/cmake-bringup/; revision=49642
2010-11-19 18:56:58 +00:00
Timo Kreuzer
39f50aac50 [RTL]
Add dependency to asm

svn path=/branches/cmake-bringup/; revision=49641
2010-11-19 18:55:26 +00:00
Timo Kreuzer
dcf8904df7 [WIN32K]
Convert asm files into new syntax

svn path=/branches/cmake-bringup/; revision=49640
2010-11-19 18:51:50 +00:00
Timo Kreuzer
f5958e9cb8 [ASM]
Add more constants for ks386.inc


svn path=/branches/cmake-bringup/; revision=49639
2010-11-19 18:27:05 +00:00
Amine Khaldi
b3705126a7 [CMAKE]
- Fix the remaining modules.

svn path=/branches/cmake-bringup/; revision=49638
2010-11-19 17:59:23 +00:00
Amine Khaldi
77c6616d62 [CMAKE]
- Revert back to including the definition files into the source files list.

svn path=/branches/cmake-bringup/; revision=49637
2010-11-19 17:41:48 +00:00
Amine Khaldi
478a5435a9 [CMAKE]
- Improve the _filename condition.
- Some minor formatting.

svn path=/branches/cmake-bringup/; revision=49636
2010-11-19 16:43:43 +00:00
Amine Khaldi
6a5e2c0992 [CMAKE]
- Fix libcntpr build.

svn path=/branches/cmake-bringup/; revision=49635
2010-11-19 16:42:39 +00:00
Timo Kreuzer
8dc1f0eb0e [CMAKE]
Fix dependencies, fix native-spec2def

svn path=/branches/cmake-bringup/; revision=49634
2010-11-19 16:38:25 +00:00
Amine Khaldi
70dbd8d479 [CMAKE]
- Fix gcc host tools build.

svn path=/branches/cmake-bringup/; revision=49633
2010-11-19 15:58:35 +00:00
Timo Kreuzer
9431c38607 [SPEC2DEF]
rename spec2pdef to spec2def

svn path=/branches/cmake-bringup/; revision=49632
2010-11-19 15:27:58 +00:00
Timo Kreuzer
9fcb3dd84a [CMAKE]
Hack away dxsdk for MSVC for now

svn path=/branches/cmake-bringup/; revision=49630
2010-11-19 15:16:26 +00:00
Timo Kreuzer
390cf6bc5f [CMAKE]
Add a new macro set_export_spec(), that replaces the use of spec2def + adding the generated def file to the sources
Remove EXTERNAL_OBJECT TRUE property for the generated def files.

svn path=/branches/cmake-bringup/; revision=49629
2010-11-19 14:21:18 +00:00
Timo Kreuzer
5054fc46a3 [INTRIN]
Add a workaround for __readcr4, MSVC suffers an internal error when using the intrinsic and optimization is on.

svn path=/branches/cmake-bringup/; revision=49628
2010-11-19 13:55:58 +00:00
Timo Kreuzer
c1929445d7 [NDK]
Simplify NtCurrentTeb, always use intrinsics
remove GetCurrentFiber

svn path=/branches/cmake-bringup/; revision=49627
2010-11-19 13:52:12 +00:00
Amine Khaldi
9457de721a [CMAKE]
- Make nmake makefiles verbose.

svn path=/branches/cmake-bringup/; revision=49626
2010-11-19 13:51:32 +00:00
Timo Kreuzer
993ebf53f1 [NDK]
Fix 64 bit TEB definition

svn path=/branches/cmake-bringup/; revision=49624
2010-11-19 11:43:22 +00:00
Timo Kreuzer
99a1acdf7e [ASM]
Rename the target to asm, to simplify dependencies
add missing constants

svn path=/branches/cmake-bringup/; revision=49622
2010-11-19 11:11:49 +00:00
Timo Kreuzer
dc0023e49d [CMAKE]
Fix typos in add_importlib_target macro, use /NOLOGO

svn path=/branches/cmake-bringup/; revision=49621
2010-11-19 10:54:05 +00:00
Timo Kreuzer
d8113f9ea2 [NTDLL]
Fix typos in spec file

svn path=/branches/cmake-bringup/; revision=49620
2010-11-19 10:23:39 +00:00
Jérôme Gardou
13aeeacdb3 [CMAKE]
- Improve browseui CMakeLists.txt
  - remove stdc++ dependancy to portcls
  - improve stlport header hack

svn path=/branches/cmake-bringup/; revision=49619
2010-11-19 09:53:49 +00:00
Jérôme Gardou
d738b24b6f [CMAKE]
- use correct link script file for freeldr and setupldr
  - use correct definition file for advapi32
  - don't specify name to add_bootcd_target if not needed
  - portcls is not a kernel mode driver
  - Disable stcall fixup, except for mesa32 which requires it
  - remove an useless file from minihal, add a forgotten one to freeldr

svn path=/branches/cmake-bringup/; revision=49615
2010-11-18 21:32:10 +00:00
Sylvain Petreolle
86e54f666f [CMAKE]
Add dplayx and ksproxy.ax to bootcd.

svn path=/branches/cmake-bringup/; revision=49611
2010-11-18 15:41:39 +00:00
Sylvain Petreolle
d490a7349e [CMAKE]
Fix crt parallel build.

svn path=/branches/cmake-bringup/; revision=49608
2010-11-16 17:44:24 +00:00
Timo Kreuzer
406dfdbc87 [CMAKE]
Sync trunk (rr49606)

svn path=/branches/cmake-bringup/; revision=49607
2010-11-16 13:43:39 +00:00
Timo Kreuzer
c4c880d59c [NTOSKRNL]
Don't declare a variable in the moddle of a function, MSVC gets very angry about that.

svn path=/branches/cmake-bringup/; revision=49604
2010-11-15 23:43:28 +00:00
Timo Kreuzer
440627d3df [NTOSKRNL]
Remove alloc pragmas for functions that don't exist enymore

svn path=/branches/cmake-bringup/; revision=49603
2010-11-15 22:30:20 +00:00
Timo Kreuzer
ac8a48c91f [NTOSKRNL]
Fix a warning for MSVC, stub __builtin_expect

svn path=/branches/cmake-bringup/; revision=49601
2010-11-15 22:06:01 +00:00
Timo Kreuzer
1c7fc49e5f [NTOSKRNL]
Convert pspec to spec

svn path=/branches/cmake-bringup/; revision=49600
2010-11-15 21:29:58 +00:00
Timo Kreuzer
d3d023aadc [HAL]
convert pspec to spec

svn path=/branches/cmake-bringup/; revision=49599
2010-11-15 21:26:06 +00:00
Timo Kreuzer
1335cf4210 [CRT]
Add a number of compilation fixes for MSVC

svn path=/branches/cmake-bringup/; revision=49598
2010-11-15 20:08:49 +00:00
Timo Kreuzer
b7383087f4 revert unwanted changes
svn path=/branches/cmake-bringup/; revision=49597
2010-11-15 19:45:52 +00:00
Timo Kreuzer
3ebe2aa8f7 [FREELDR]
Add a new file realmode.S for MSVC currently only containing some stubs to resolve references. The 16 bit code needs some work to be compilable with ML.
Delete some amd64 files that only duplicated x86 16 bit code. Remove unused _alloca.S. Improve freeldr rules, add some experimental linking flags for MSVC, it links with a few warnings.

svn path=/branches/cmake-bringup/; revision=49596
2010-11-15 19:44:48 +00:00
Timo Kreuzer
47508a0b72 [GENINCDATA]
- Use 32 bit constants by default and add macros for 64 bit and pointer size. Fixes some constants.

svn path=/branches/cmake-bringup/; revision=49594
2010-11-15 19:14:56 +00:00
Timo Kreuzer
ab6c2ee54c [CRT]
incude asm.inc instead of reactos/asm.h
Fix a bug that smeaked into _chkstk

svn path=/branches/cmake-bringup/; revision=49591
2010-11-15 01:29:12 +00:00
Timo Kreuzer
0c7d0cbc07 [CMAKE]
Add include/asm to asm include pathes

svn path=/branches/cmake-bringup/; revision=49590
2010-11-15 01:09:10 +00:00
Timo Kreuzer
07652e2631 [RTL]
Make asm files compilable with ML

svn path=/branches/cmake-bringup/; revision=49589
2010-11-15 01:03:14 +00:00
Timo Kreuzer
d3652562e5 [FREELDR]
Convert fathelp.S into ML compatible code. The result is identical to the old version when compiled with gcc, but slightly different when compiled with ml. Especially the code starts at position 6 instead of 0, with a one byte text section at the top, this needs more investigation. also there is a large reg move, but that doesn't hurt. Finally the padding at the end doesn't work at all.

svn path=/branches/cmake-bringup/; revision=49588
2010-11-14 17:46:56 +00:00
Timo Kreuzer
3947c4313f [ASM}
Add .org for ML

svn path=/branches/cmake-bringup/; revision=49586
2010-11-14 13:55:05 +00:00
Timo Kreuzer
ad20e16add [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=49585
2010-11-14 13:42:03 +00:00
Timo Kreuzer
acead639b1 [GENINCDATA] add dependency to bugcodes, factor out definitions in template files.
[ASM] Add asm.inc, to be included in all asm files for GAS / ML compatibility

svn path=/branches/cmake-bringup/; revision=49584
2010-11-14 13:40:19 +00:00
Timo Kreuzer
cbf119bf9b [FREELDR]
- Use macro __ASM__ instead of ASM
- guard #pragma once against inclusion in asm files
- Use the HEX() macro for constants for the asm files

svn path=/branches/cmake-bringup/; revision=49583
2010-11-14 13:36:25 +00:00
Timo Kreuzer
345892376c [FREELDR]
Convert arch.S to intel syntax.

svn path=/branches/cmake-bringup/; revision=49582
2010-11-14 13:25:20 +00:00
Timo Kreuzer
dcfe4ea6a9 [PSDK]
Move definitions of BitScanForward and BitScanReverse out of gcc specific area

svn path=/branches/cmake-bringup/; revision=49578
2010-11-13 23:57:49 +00:00
Jérôme Gardou
078e1855fa [CMAKE]
- syssetup.inf has its place in bootcd until we generate it automatically.

svn path=/branches/cmake-bringup/; revision=49577
2010-11-13 23:49:08 +00:00
Jérôme Gardou
e3dad735d4 [CMAKE]
- improve some files

svn path=/branches/cmake-bringup/; revision=49576
2010-11-13 22:23:59 +00:00
Timo Kreuzer
11a6e6c0c4 [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=49575
2010-11-13 21:06:05 +00:00
Timo Kreuzer
306ed4d40b [FREELDR]
Merge r49573

svn path=/branches/cmake-bringup/; revision=49574
2010-11-13 21:02:14 +00:00
Jérôme Gardou
6d8fe9df10 [CMAKE]
- fix typo

svn path=/branches/cmake-bringup/; revision=49572
2010-11-13 00:00:04 +00:00
Jérôme Gardou
eea0d56fec [CAKE]
- simplify set_image_base

svn path=/branches/cmake-bringup/; revision=49571
2010-11-12 23:52:40 +00:00
Amine Khaldi
d4fdd1fa4b [CMAKE]
- Fix build.

svn path=/branches/cmake-bringup/; revision=49570
2010-11-12 13:28:23 +00:00
Sylvain Petreolle
6496ec767d [CMAKE]
Add vgafonts dependency.
Thanks to AmineKhaldi.

svn path=/branches/cmake-bringup/; revision=49569
2010-11-12 13:05:10 +00:00
Sylvain Petreolle
38c38ad62d [CMAKE]
Move jscript stdole2 dependency to jsglobal.

svn path=/branches/cmake-bringup/; revision=49568
2010-11-12 12:46:54 +00:00
Timo Kreuzer
b554be26f1 [CRT]
Revert renaming change to tchar.h, which does not contain any assembly

svn path=/branches/cmake-bringup/; revision=49567
2010-11-11 17:12:12 +00:00
Timo Kreuzer
ab465e66e3 [CRT]
Rename a number of .h files that contain assembly code into .inc to better reflect their purpose

svn path=/branches/cmake-bringup/; revision=49566
2010-11-11 17:10:09 +00:00
Jérôme Gardou
6b0b6cb78f [HEADERS]
- move stlport headers to the c++ directory
 - add a specific _reactos.h configuration file for stlport
 - add cerrno to c++ headers
 - __declspec(nothrow) must be placed before calling convention with msvc. GCC doesn't care.
We now use our headers with both msvc and gcc.

svn path=/branches/cmake-bringup/; revision=49565
2010-11-11 15:58:18 +00:00
Timo Kreuzer
5e8bd0b3df [GENINCDATA]
Fix a bug that caused excessive quotes in the output


svn path=/branches/cmake-bringup/; revision=49563
2010-11-11 15:29:20 +00:00
Timo Kreuzer
82b1bd223a [CMAKE]
Add importlib target for acledit

svn path=/branches/cmake-bringup/; revision=49562
2010-11-11 15:28:02 +00:00
Timo Kreuzer
f2ab1b31c4 [ASM]
add genincdata, a module that will be compiled as a dll to provide the data for geninc to be converted into an .inc file.

svn path=/branches/cmake-bringup/; revision=49561
2010-11-11 13:40:29 +00:00
Timo Kreuzer
2e9717b577 [CMAKE]
Create importlibs from spec files for kernel32, advapi32, gdi32, user32 and msvcrt
calc now compiles with MSVC and works (slightly buggy)

svn path=/branches/cmake-bringup/; revision=49554
2010-11-10 22:50:21 +00:00
Timo Kreuzer
1d6d730ed6 [MSVCRT] Don't export linux stuff from our precious MSVCRT
[MINGW] Bring back _matherr()

svn path=/branches/cmake-bringup/; revision=49553
2010-11-10 22:43:46 +00:00
Jérôme Gardou
8c6671477e [HEADERS]
- start using our own c++ headers and forward stlport ones to them in msvc build.
 - fix fpecode declaration for MSVC.
[CMAKE]
 - cardlib is a cpp library.
Now stlport compiles with msvc.

svn path=/branches/cmake-bringup/; revision=49552
2010-11-10 22:20:05 +00:00
Timo Kreuzer
3742d626dc [CRT]
Add  pragma function for _wcsset on MSVC builds

svn path=/branches/cmake-bringup/; revision=49551
2010-11-10 22:15:10 +00:00
Timo Kreuzer
cfe78ef2b3 [RTL]
Instead of including ndk/asm.h, add the 2 neccessary constants to seh.s

svn path=/branches/cmake-bringup/; revision=49550
2010-11-10 22:11:12 +00:00
Jérôme Gardou
541b368402 [CMAKE]
- build and export spec2pdef

svn path=/branches/cmake-bringup/; revision=49549
2010-11-10 22:02:51 +00:00
Timo Kreuzer
6d02bbe70e [CMAKE]
- add importlib target for ntdll

svn path=/branches/cmake-bringup/; revision=49547
2010-11-10 21:01:14 +00:00
Jérôme Gardou
5d8dd5d148 [STLPORT]
- move headers to include directory
  - delete some incidentally committed things

svn path=/branches/cmake-bringup/; revision=49546
2010-11-10 17:36:28 +00:00
Timo Kreuzer
2b5855372c [CMAKE]
- Move spec2def into comppiler specific files, use spec2pdef tool on MSVC builds
- Add a ridiculously complex macro to create the importlibs for MSVC. (It was hard for me to figure this out, so be it for you ;-))

svn path=/branches/cmake-bringup/; revision=49545
2010-11-10 12:33:24 +00:00
Timo Kreuzer
f655f86d82 [MINGW]
special stuff for MSVC

svn path=/branches/cmake-bringup/; revision=49543
2010-11-09 20:43:09 +00:00
Timo Kreuzer
769e7c0eb8 [CMAKE]
Add a hack to fix compilation of irot.idl with MSVC. If someone knows how to correctly fix this, please let me know.

svn path=/branches/cmake-bringup/; revision=49538
2010-11-09 01:42:06 +00:00
Amine Khaldi
5c96fe41a4 [CMAKE]
- Use pdef files in some dlls.

svn path=/branches/cmake-bringup/; revision=49537
2010-11-08 22:57:05 +00:00
Timo Kreuzer
4dc6967310 [CRT]
Fix assembly syntax


svn path=/branches/cmake-bringup/; revision=49536
2010-11-08 19:21:13 +00:00
Timo Kreuzer
04d745acca [CMAKE]
add missing dependency

svn path=/branches/cmake-bringup/; revision=49535
2010-11-08 19:01:52 +00:00
Timo Kreuzer
84b1635034 [CRT]
- Add #pragma function to a number of intrisics that we implement to avoid a compiler error of MSVC
- Add a workaround to prevent some functions from being inlined
- Move sqrtf out of i386 directory
- Convert a number of inline assembly functions to raw assembly

svn path=/branches/cmake-bringup/; revision=49534
2010-11-08 18:36:45 +00:00
Timo Kreuzer
5e6639c9b2 [CMAKE]
Don't put /M* on the command line

svn path=/branches/cmake-bringup/; revision=49533
2010-11-08 18:14:26 +00:00
Timo Kreuzer
5f52062082 [MSVC]
Fix warnings

svn path=/branches/cmake-bringup/; revision=49532
2010-11-08 13:48:45 +00:00
Timo Kreuzer
77e17454fa [CMAKE]
Delete the Modules dir.

svn path=/branches/cmake-bringup/; revision=49531
2010-11-08 13:45:34 +00:00
Timo Kreuzer
aad5d0a980 [CMAKE]
Move the cmake module directory one level down

svn path=/branches/cmake-bringup/; revision=49530
2010-11-08 13:41:29 +00:00
Timo Kreuzer
7689b5dda6 [CMAKE]
Convert gdi32 to pdef

svn path=/branches/cmake-bringup/; revision=49529
2010-11-08 13:32:52 +00:00
Timo Kreuzer
21907631c7 [ACLDEDIT]
Delete acledit.def

svn path=/branches/cmake-bringup/; revision=49527
2010-11-08 13:15:54 +00:00
Timo Kreuzer
da76b4e5c2 [CMAKE]
Convert acledit to pdef

svn path=/branches/cmake-bringup/; revision=49526
2010-11-08 12:58:32 +00:00
Timo Kreuzer
c4f1145fca [CMAKE]
- add new macro add_linkerflag to avoid code duplication
- add new macro set_pdef_file, replacing the use of pdef2def, which is neccessary to resolve issues with MSVC. cmake doesn't handle def files as source files very well, when they are not in the current source directory.

svn path=/branches/cmake-bringup/; revision=49524
2010-11-08 12:24:33 +00:00
Sylvain Petreolle
c3774adb66 [CMAKE]
Add missing files to bootcd.

svn path=/branches/cmake-bringup/; revision=49518
2010-11-07 21:24:35 +00:00
Sylvain Petreolle
eb4821a38b [CMAKE]
Add remaining Wine directx dlls to bootcd.

svn path=/branches/cmake-bringup/; revision=49517
2010-11-07 21:22:31 +00:00
Amine Khaldi
42d74e98d6 [CMAKE]
- Add acledit.pdef

svn path=/branches/cmake-bringup/; revision=49510
2010-11-06 11:43:26 +00:00
Amine Khaldi
1c18b9b723 [CMAKE]
- Add a preprocessed definition file for acledit.
- Add the pdef2def macro.
- Include wpp into build, widl links to it.
- Fix libmpg123.

svn path=/branches/cmake-bringup/; revision=49509
2010-11-06 11:31:38 +00:00
Timo Kreuzer
351689996d [MINGW]
#if 0 _matherr(). We already have it in our crt and it's exported from msvcrt. MSVC doesn't like when it's there twice.

svn path=/branches/cmake-bringup/; revision=49506
2010-11-06 09:17:04 +00:00
Timo Kreuzer
d46d983c8f [MINGW]
Don't define __ImageBase to something else on MSVC builds

svn path=/branches/cmake-bringup/; revision=49505
2010-11-06 00:25:57 +00:00
Amine Khaldi
117bdf56ae [CMAKE]
- Fix and enable browseui.

svn path=/branches/cmake-bringup/; revision=49504
2010-11-05 23:25:51 +00:00
Amine Khaldi
7393a02b74 [CMAKE]
- Explicitly disable auto imports for executables.
- Set a proper linker invocation for C++ modules.

svn path=/branches/cmake-bringup/; revision=49503
2010-11-05 23:17:29 +00:00
Sylvain Petreolle
d929fc29f7 [CMAKE]
Bootcd/Livecd : Add dplayx, ntfs and mup.
Add forgotten wined3d importlib, my bad.

svn path=/branches/cmake-bringup/; revision=49502
2010-11-05 23:14:29 +00:00
Amine Khaldi
f8a9857975 [CMAKE]
- Fix and enable glu32 and winemp3.acm

svn path=/branches/cmake-bringup/; revision=49500
2010-11-05 23:06:24 +00:00
Sylvain Petreolle
e37863e0ac [CMAKE]
Bootcd: Add some directx dlls.

svn path=/branches/cmake-bringup/; revision=49498
2010-11-05 21:49:09 +00:00
Amine Khaldi
7c79c0ae87 [CMAKE]
- Explicitly disable auto imports, and fix the modules that were missed out by the previous related commit.
- Dedicated to Usurp.

svn path=/branches/cmake-bringup/; revision=49497
2010-11-05 21:22:07 +00:00
Jérôme Gardou
97863bb997 [CMAKE]
Fix mingw_dllmain build

svn path=/branches/cmake-bringup/; revision=49496
2010-11-05 18:52:57 +00:00
Amine Khaldi
9d024b274d [MMC]
- Remove pragma once from the main header.

svn path=/branches/cmake-bringup/; revision=49495
2010-11-05 18:41:05 +00:00
Amine Khaldi
f0156b8450 [CMAKE]
- Update spec2def use in bzip2.

svn path=/branches/cmake-bringup/; revision=49494
2010-11-05 18:35:47 +00:00
Amine Khaldi
045e8b304b [CMAKE]
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=49493
2010-11-05 18:09:09 +00:00
Amine Khaldi
c93d1289fd [CMAKE]
- Remove wpp from build.
- Improve several tools and libs.
- Improve the root cmake file.

svn path=/branches/cmake-bringup/; revision=49492
2010-11-05 18:06:25 +00:00
Amine Khaldi
2901215553 [CMAKE]
- Improve more libs.

svn path=/branches/cmake-bringup/; revision=49490
2010-11-05 17:35:39 +00:00
Amine Khaldi
0e69cd8f27 [CMAKE]
- Improve drivers' libs.

svn path=/branches/cmake-bringup/; revision=49489
2010-11-05 17:29:01 +00:00
Amine Khaldi
012f99f221 [CMAKE]
- Improve win32k, lib{jpeg,png,tiff,xslt} and win32k.

svn path=/branches/cmake-bringup/; revision=49488
2010-11-05 17:12:31 +00:00
Amine Khaldi
6967f20f37 [CMAKE]
- Improve the kernel build.

svn path=/branches/cmake-bringup/; revision=49487
2010-11-05 16:57:33 +00:00
Sylvain Petreolle
4bf0ec6bd9 [CMAKE]
Bootcd:
Added : syssetup.inf, vgafonts.cab, c_28593.nls, ntvdm.
Remove blue from reactos.cab.

svn path=/branches/cmake-bringup/; revision=49484
2010-11-05 14:33:14 +00:00
Sylvain Petreolle
fbf705275d [CMAKE]
Add more dll/ and drivers/ modules to bootcd.
Fix mesa32 definitions.

svn path=/branches/cmake-bringup/; revision=49483
2010-11-05 13:46:48 +00:00
Sylvain Petreolle
ac1ef420cd [CMAKE]
Add dlls to bootcd.
Fix hhctrl build.

svn path=/branches/cmake-bringup/; revision=49482
2010-11-05 13:25:28 +00:00
Timo Kreuzer
4a3ed006a1 [USER32]
Convert pspec to spec to fix build

svn path=/branches/cmake-bringup/; revision=49481
2010-11-05 13:14:37 +00:00
Sylvain Petreolle
5af2ed766e [CMAKE]
Add keyboards to bootcd.

svn path=/branches/cmake-bringup/; revision=49480
2010-11-05 12:08:37 +00:00
Amine Khaldi
30bb25e2f0 [CMAKE]
- Improve most of the static libraries.

svn path=/branches/cmake-bringup/; revision=49479
2010-11-05 12:02:12 +00:00
Sylvain Petreolle
b9041e39bf [CMAKE]
Add base/ modules to bootcd.

svn path=/branches/cmake-bringup/; revision=49477
2010-11-05 10:37:10 +00:00
Sylvain Petreolle
8456a5473e [CMAKE]
Revert incorrect auto import change and use proper definitions instead.

svn path=/branches/cmake-bringup/; revision=49476
2010-11-05 09:38:42 +00:00
Timo Kreuzer
de201a2357 [CMAKE]
Create importlib for advapi32
Link advapi32 to msvcrt, needed for SEH

svn path=/branches/cmake-bringup/; revision=49474
2010-11-05 00:12:47 +00:00
Timo Kreuzer
39989dc9be [CMAKE]
Add /SAFESEH:NO to MSVC linker command line to fix unresolved symbol issue.

svn path=/branches/cmake-bringup/; revision=49473
2010-11-05 00:08:12 +00:00
Amine Khaldi
12ab761aa1 [CMAKE]
- Improve hal, adns and bzip2.

svn path=/branches/cmake-bringup/; revision=49471
2010-11-04 21:38:28 +00:00
Amine Khaldi
08bb8bef3d [CMAKE]
- Improve the rest of the drivers.

svn path=/branches/cmake-bringup/; revision=49470
2010-11-04 21:31:33 +00:00
Amine Khaldi
a7fe68d16b [CMAKE]
- Improve more drivers.

svn path=/branches/cmake-bringup/; revision=49469
2010-11-04 21:06:20 +00:00
Amine Khaldi
bbecbe25fc [CMAKE]
- Improve base and bus drivers.

svn path=/branches/cmake-bringup/; revision=49468
2010-11-04 20:46:27 +00:00
Sylvain Petreolle
b37636dc12 [CMAKE]
One .acm suffix is enough.
Dedicated to AmineKhaldi.

svn path=/branches/cmake-bringup/; revision=49467
2010-11-04 13:29:58 +00:00
Jérôme Gardou
3e704fcf1c [WINE/CONFIG]
MSVC has no sys/time.h
[DDK]
  Directly include <wingdi.h>
[UNICODE]
  Fix build on msvc
All tools now build with msvc.

svn path=/branches/cmake-bringup/; revision=49461
2010-11-03 18:15:51 +00:00
Jérôme Gardou
8a92f19054 [CMAKE]
cmake doesn't like braces

svn path=/branches/cmake-bringup/; revision=49460
2010-11-03 16:59:50 +00:00
Jérôme Gardou
9e6d47d509 [CMAKE]
allow to specify build tools directory with -DREACTOS_BUILD_TOOLS_DIR=Y:\you\path
So now you're able to use multiple compilers with one tree without too much worry.

svn path=/branches/cmake-bringup/; revision=49459
2010-11-03 12:57:03 +00:00
Timo Kreuzer
d63277525c [CMAKE]
- fix add_importlib_target
- fix win32dll entrypoint (we wouldn't need to specify one, if the one in mingw lib had enough underscores)

svn path=/branches/cmake-bringup/; revision=49453
2010-11-02 21:31:45 +00:00
Timo Kreuzer
42f5ff6943 [MINGW]
add CRTDLL definition so that the startup code for dlls is actually compiled

svn path=/branches/cmake-bringup/; revision=49452
2010-11-02 20:39:19 +00:00
Amine Khaldi
cc843688e5 [CMAKE]
- Minor formatting.

svn path=/branches/cmake-bringup/; revision=49451
2010-11-02 20:27:06 +00:00
Amine Khaldi
2f6d499617 [CMAKE]
- Move more dlls with no stubs into using def files instead of spec files.

svn path=/branches/cmake-bringup/; revision=49450
2010-11-02 20:23:56 +00:00
Amine Khaldi
79b73c825d [CMAKE]
- Move more dlls with no stubs into using def files instead of spec files.

svn path=/branches/cmake-bringup/; revision=49449
2010-11-02 19:58:29 +00:00
Amine Khaldi
67948fbc90 [CMAKE]
- Move some dlls with no stubs into using def files instead of spec files.

svn path=/branches/cmake-bringup/; revision=49448
2010-11-02 18:19:44 +00:00
Jérôme Gardou
fa36534888 [CMAKE]
Poor little gcc, forgotten by Timo

svn path=/branches/cmake-bringup/; revision=49447
2010-11-02 17:25:36 +00:00
Timo Kreuzer
2b2d3d2776 [CMAKE]
Rename add_importlib_def to add_importlib_target
add importlib targets for ntdll, msvcrt, shell32, user32

svn path=/branches/cmake-bringup/; revision=49427
2010-11-02 09:22:58 +00:00
Cameron Gutman
0185e16451 [LWIP]
- Fix build and a few implementation bugs

svn path=/branches/tcp-rewrite-branch/; revision=49426
2010-11-02 04:57:37 +00:00
Cameron Gutman
5627947a08 [LWIP]
- Sync the lwIP headers to 1.4.0 RC1

svn path=/branches/tcp-rewrite-branch/; revision=49425
2010-11-02 04:19:42 +00:00
Cameron Gutman
ed460ae6df [LWIP]
- Sync lwIP to 1.4.0 RC1
- Some build fixes are included but this revision won't build

svn path=/branches/tcp-rewrite-branch/; revision=49424
2010-11-02 04:05:34 +00:00
Timo Kreuzer
a3623f23de [CRT]
- Make all x86assembly ML compatible
- Remove memcpy, it was duplicated from memmove, copy the label instead
- Guard some code against compilation on msvc, as these functions are intrinsics on MSVC and cannot be implemented
- Fix some x64 assembly (don't modify stack below rsp)

svn path=/branches/cmake-bringup/; revision=49421
2010-11-02 00:06:33 +00:00
Timo Kreuzer
0d7a1c46a0 [ASM]
Fix dummy ASSUME

svn path=/branches/cmake-bringup/; revision=49420
2010-11-02 00:03:41 +00:00
Timo Kreuzer
62ea941082 [ASM]
Add .double macro for ML and dummy ASSUME macro for GAS
Allow XMM instructions for ML

svn path=/branches/cmake-bringup/; revision=49419
2010-11-01 23:18:51 +00:00
Jérôme Gardou
070543284f [CMAKE]
- improve win32k/CMakeLists.txt

svn path=/branches/cmake-bringup/; revision=49418
2010-11-01 22:55:56 +00:00
Timo Kreuzer
3187b69e40 [HAL]
Temporary build "fix"

svn path=/branches/cmake-bringup/; revision=49414
2010-11-01 19:11:27 +00:00
Jérôme Gardou
d933565eff [ASM]
- no ML doesn't mean 64 bits, right?

svn path=/branches/cmake-bringup/; revision=49412
2010-11-01 18:42:33 +00:00
Jérôme Gardou
eea40886f2 [DXSDK]
- an interface must have an uuid.
If it "conflicts with uuids.h", then the problem il elsewhere.

svn path=/branches/cmake-bringup/; revision=49411
2010-11-01 18:24:17 +00:00
Jérôme Gardou
887046a6ee [CMAKE]
- build msvc importlibs explicitly from def file
  - circumvent lack of pseh lib in MSVC.
  - fix advapi32.def

svn path=/branches/cmake-bringup/; revision=49409
2010-11-01 17:24:32 +00:00
Timo Kreuzer
18dd356710 [HAL]
Make systimer.S ML compatible. Replace most hardcoded numerical values with proper symbolic constants.

svn path=/branches/cmake-bringup/; revision=49408
2010-11-01 16:42:53 +00:00
Timo Kreuzer
23ade33f3e [CMAKE]
set custom command to compile asm files for MSVC toolchain. They are being preprocessed first.

svn path=/branches/cmake-bringup/; revision=49407
2010-11-01 16:40:30 +00:00
Jérôme Gardou
7f39320ea9 [CMAKE]
- put advapi32.def into source files.

svn path=/branches/cmake-bringup/; revision=49406
2010-11-01 16:32:32 +00:00
Timo Kreuzer
f2fd276358 [CMAKE]
When PreLoad.cmake is run, the CMAKE_CURRENT_SOURCE_DIR points to the directory, where the cmake command was executed (bug?). To get the root folder of reactos, use CMAKE_CURRENT_LIST_FILE, which points to PreLoad.cmake in the root folder.

svn path=/branches/cmake-bringup/; revision=49405
2010-11-01 15:15:02 +00:00
Jérôme Gardou
85f6dd0d60 [CMAKE]
- fix build, sorry

svn path=/branches/cmake-bringup/; revision=49402
2010-11-01 14:05:48 +00:00
Timo Kreuzer
89358dad46 [RTL]
Make asm files ML compatible

svn path=/branches/cmake-bringup/; revision=49399
2010-11-01 11:41:01 +00:00
Timo Kreuzer
cf02eb354a [CMAKE]
Add missing dependencies for MSVC add_importlibs

svn path=/branches/cmake-bringup/; revision=49398
2010-11-01 09:39:53 +00:00
Timo Kreuzer
415f19bb99 [NTDLLSYS]
Set LINKER_LANGUAGE to C. Neccessary for MSVC.

svn path=/branches/cmake-bringup/; revision=49397
2010-11-01 09:39:06 +00:00
Jérôme Gardou
accc078cea [CMAKE]
- put ntdll.def in source files

svn path=/branches/cmake-bringup/; revision=49396
2010-11-01 09:32:04 +00:00
Timo Kreuzer
431cc33a5a [NTDLL]
- Convert the pspec to spec and use it
- add add_importlib_target

svn path=/branches/cmake-bringup/; revision=49395
2010-11-01 08:58:18 +00:00
Jérôme Gardou
9db2f953c2 [CMAKE]
- improve ntoskrnl/CMakeLists.txt

svn path=/branches/cmake-bringup/; revision=49391
2010-11-01 01:23:17 +00:00
Jérôme Gardou
9abab8be5e [CMAKE]
- add sermouse and kbdfr to live and boot cd
  - improve kbdclass, mouclass and i8042prt build files

svn path=/branches/cmake-bringup/; revision=49390
2010-11-01 00:54:15 +00:00
Jérôme Gardou
c5b6b76033 [CMAKE]
- add 3rdparty dlls to boot and live cd
  - use gdi32 spec file
  - mark user32.def as EXTERNAL_OBJECT

svn path=/branches/cmake-bringup/; revision=49387
2010-11-01 00:04:46 +00:00
Jérôme Gardou
a305f84916 [CMAKE]
- fix libxslt build

svn path=/branches/cmake-bringup/; revision=49384
2010-10-31 23:19:12 +00:00
Jérôme Gardou
adbabf12ed [CMAKE]
- fix classpnp compilation.
Thanks go to lassy to explain me why this didn't work before.

svn path=/branches/cmake-bringup/; revision=49383
2010-10-31 22:46:22 +00:00
Jérôme Gardou
8e61f006a7 [CMAKE]
- improve class2 build file
  - set EXTERNAL_OBJECT properties to ntdll def file

svn path=/branches/cmake-bringup/; revision=49382
2010-10-31 22:41:31 +00:00
Amine Khaldi
cce222beed [CMAKE]
- Improve ntdll.

svn path=/branches/cmake-bringup/; revision=49381
2010-10-31 22:38:10 +00:00
Jérôme Gardou
a6524961b3 [CMAKE]
- cmake handles gracefully def files if you tell him to do ;-)
  - partial revert of an (accidental?) kernel32 change

svn path=/branches/cmake-bringup/; revision=49380
2010-10-31 22:15:35 +00:00
Timo Kreuzer
1ddb50ec34 [KERNEL32]
Include English resource file first, escape certain characters for MSVC compatibility.
"Should be sent to wine"(tm)

svn path=/branches/cmake-bringup/; revision=49379
2010-10-31 21:56:17 +00:00
Timo Kreuzer
29207fa8b2 [KERNEL32]
Rename pspec to spec, fix a comment, remove a #define and use it instead of the def file

svn path=/branches/cmake-bringup/; revision=49378
2010-10-31 18:18:35 +00:00
Timo Kreuzer
ee10c4c2c7 [CMAKE]
Implement add_importlib_target macro to build importlibs for MSVC. We can't use MSVC's libraries, as they are incomplete.
gcc version does nothing.

svn path=/branches/cmake-bringup/; revision=49377
2010-10-31 17:31:05 +00:00
Timo Kreuzer
e25c1a8cee [FIND]
MSVC compatability: Properly escape quotes in string tables ("", not \")

svn path=/branches/cmake-bringup/; revision=49375
2010-10-31 13:38:58 +00:00
Jérôme Gardou
b3346b150f revert 49345 as requested by ros arm team.
svn path=/branches/cmake-bringup/; revision=49373
2010-10-31 10:42:40 +00:00
Timo Kreuzer
d1dfa87850 [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=49370
2010-10-31 09:16:35 +00:00
Amine Khaldi
a2e649110b [CMAKE]
- "cmake gracefully handles def files as source files" You mean it gracefully ignores them, right ?
- Fix the kernel and class2 exports. More to come.
- Fix imaadp32.acm

svn path=/branches/cmake-bringup/; revision=49367
2010-10-30 22:03:40 +00:00
Amine Khaldi
5afba1c7f7 [CMAKE]
- Fix mshtml.tlb

svn path=/branches/cmake-bringup/; revision=49365
2010-10-30 17:45:01 +00:00
Sylvain Petreolle
10abd192d4 [CMAKE]
Leftover from 49358.

svn path=/branches/cmake-bringup/; revision=49363
2010-10-30 17:37:44 +00:00
Jérôme Gardou
2e3d2c189b [CMAKE]
- leftover from r49358

svn path=/branches/cmake-bringup/; revision=49362
2010-10-30 17:05:21 +00:00
Sylvain Petreolle
810a1ec99c [CMAKE]
Add boot drivers to reactos.cab.

svn path=/branches/cmake-bringup/; revision=49361
2010-10-30 16:44:31 +00:00
Amine Khaldi
61ea2fc187 [CMAKE]
- Leftover from the previous commit.

svn path=/branches/cmake-bringup/; revision=49359
2010-10-30 16:24:35 +00:00
Jérôme Gardou
4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00
Jérôme Gardou
ddc4718357 [CMAKE]
- add ntdll to reactos.cab

svn path=/branches/cmake-bringup/; revision=49357
2010-10-30 16:03:40 +00:00
Sylvain Petreolle
fb307fc436 [CMAKE]
Fix livecd regression.

svn path=/branches/cmake-bringup/; revision=49354
2010-10-30 13:15:33 +00:00
Amine Khaldi
e943f1f3b2 [CMAKE]
- Create folders in single calls.
- Apply a consistent formatting.

svn path=/branches/cmake-bringup/; revision=49353
2010-10-30 13:07:15 +00:00
Jérôme Gardou
d60adaf6d7 revert unwanted change
svn path=/branches/cmake-bringup/; revision=49352
2010-10-30 13:04:29 +00:00
Jérôme Gardou
fda2e2e4f8 [CMAKE]
- add explorer-cfg-template.xml to livecd and bootcd
  - add idndl.dll to livecd

svn path=/branches/cmake-bringup/; revision=49351
2010-10-30 12:51:21 +00:00
Jérôme Gardou
5647d2cd6a [CMAKE]
- improve reactos.dff generation
  - rename reactos.dff reactos.dff.in to mark this is an input file.
This is THE file you'd have to edit for slipstreaming, adding binary files, whatever you usually like to do with reactos.dff

svn path=/branches/cmake-bringup/; revision=49349
2010-10-30 11:51:13 +00:00
Sylvain Petreolle
1c93be12da [CMAKE]
scrnsave: add missing dependency.

svn path=/branches/cmake-bringup/; revision=49348
2010-10-30 10:16:42 +00:00
Jérôme Gardou
fd5ef6b1c1 [CMAKE]
- add macros add_cab and add_cab_target to add files to reactos.dff
  - add bootcd target
  - make use of these macros to create bootcd and livecd
Bootcd works and install things, but 2nd stage fails booting. We need debug symbols!!!

svn path=/branches/cmake-bringup/; revision=49347
2010-10-30 09:53:53 +00:00
Jérôme Gardou
7ee0c086fc [CMAKE]
- jscript requires stdole2.tlb

svn path=/branches/cmake-bringup/; revision=49346
2010-10-30 09:22:55 +00:00
Jérôme Gardou
5e9036e712 [CLASSPNP]
- fix a whole bunch of function prototype. (how does t even work in trunk?)
[CMAKE]
  - add classpnp.sys to build

svn path=/branches/cmake-bringup/; revision=49345
2010-10-30 00:03:28 +00:00
Sylvain Petreolle
e617cbf750 [CMAKE]
Add dll/cpl and dll/3rdparty modules to build.

svn path=/branches/cmake-bringup/; revision=49344
2010-10-29 21:47:35 +00:00
Jérôme Gardou
52fa287f57 [CMAKE]
- add libcabinet.a

svn path=/branches/cmake-bringup/; revision=49341
2010-10-29 18:16:37 +00:00
Sylvain Petreolle
2be091d196 [CMAKE]
Enable auto import.

svn path=/branches/cmake-bringup/; revision=49339
2010-10-29 12:27:26 +00:00
Sylvain Petreolle
c5e8d03038 [CMAKE]
Add remaining base/applications modules, except sndrec32.
wordpad resources fixes will be submitted upstream.

svn path=/branches/cmake-bringup/; revision=49334
2010-10-28 22:16:07 +00:00
Sylvain Petreolle
240f4f6f73 [CMAKE]
Cant' have comments in mc files.

svn path=/branches/cmake-bringup/; revision=49333
2010-10-28 22:10:10 +00:00
Jérôme Gardou
8da36b0412 [CMAKE]
- add vgafonts cab file to build

svn path=/branches/cmake-bringup/; revision=49330
2010-10-28 16:36:49 +00:00
Jérôme Gardou
c386b94d62 [CMAKE]
- add spider and winmine to build

svn path=/branches/cmake-bringup/; revision=49327
2010-10-28 12:53:07 +00:00
Jérôme Gardou
8d49ee6f51 [CMAKE]
- simplify dxsdk

svn path=/branches/cmake-bringup/; revision=49326
2010-10-28 12:37:56 +00:00
Amine Khaldi
34134f4cfa [CMAKE]
- More work on the missing modules. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49325
2010-10-28 11:33:02 +00:00
Jérôme Gardou
ed8cab27c4 sync with trunk r49322
svn path=/branches/cmake-bringup/; revision=49323
2010-10-27 23:45:28 +00:00
Sylvain Petreolle
c5b7494a04 [CMAKE]
Export cabman as native tool.

svn path=/branches/cmake-bringup/; revision=49321
2010-10-27 22:43:04 +00:00
Jérôme Gardou
90fdc2da9a [CMAKE]
- qedit depends on dxsdk

svn path=/branches/cmake-bringup/; revision=49319
2010-10-27 22:39:48 +00:00
Amine Khaldi
2cfaec97b3 [CMAKE]
- Improve win32k

svn path=/branches/cmake-bringup/; revision=49318
2010-10-27 22:27:16 +00:00
Jérôme Gardou
f9b79bf9fc [CMAKE]
- Downgrade a warning to a status, so this is not too intrusive

svn path=/branches/cmake-bringup/; revision=49317
2010-10-27 22:25:35 +00:00
Sylvain Petreolle
b1e9d4a2df [WLANSVC]
Fix MIDL_user_allocate prototype.
Dedicated to zefklop.

svn path=/branches/cmake-bringup/; revision=49315
2010-10-27 20:50:14 +00:00
Jérôme Gardou
b2f64ac552 Sync with trunk (r49303)
svn path=/branches/cmake-bringup/; revision=49307
2010-10-27 15:52:24 +00:00
Sylvain Petreolle
5644ab604d [CMAKE]
Improve minicd and livecd macros.
Files and iso images are updated/cleaned without any manual steps.

svn path=/branches/cmake-bringup/; revision=49306
2010-10-27 14:06:40 +00:00
Jérôme Gardou
ef1e9cefa1 [CMAKE]
- use baseaddresses for dlls

svn path=/branches/cmake-bringup/; revision=49305
2010-10-27 14:00:51 +00:00
Jérôme Gardou
b7ce9b13b4 [CMAKE]
- remove unnecessary linkage

svn path=/branches/cmake-bringup/; revision=49299
2010-10-26 23:38:28 +00:00
Jérôme Gardou
f78d6fc1e2 [RPCRT4]
- Fix build

svn path=/branches/cmake-bringup/; revision=49298
2010-10-26 22:07:36 +00:00
Jérôme Gardou
5bc7ffddc4 [PSDK]
- remove GCC special flag, as it has no reason to exist. Thanks go to Timo for having tested this.

svn path=/branches/cmake-bringup/; revision=49297
2010-10-26 21:57:12 +00:00
Jérôme Gardou
252350f815 [WIN32 DLLS]
- fix MIDL_user_allocate once and for all

svn path=/branches/cmake-bringup/; revision=49295
2010-10-26 18:58:46 +00:00
Jérôme Gardou
3714ca7137 [PSDK]
- fix definition of MIDL_STUB_DESC

svn path=/branches/cmake-bringup/; revision=49294
2010-10-26 18:43:25 +00:00
Jérôme Gardou
f2537e5a3e [SERVICES]
- fix definition of midl_user_allocate, RQueryServiceConfigW and RQueryServiceConfigA

svn path=/branches/cmake-bringup/; revision=49293
2010-10-26 18:39:27 +00:00
Jérôme Gardou
4633d81b0a [UMPNPMGR]
- Fix definition of midl_user_allocate

svn path=/branches/cmake-bringup/; revision=49292
2010-10-26 18:38:03 +00:00
Jérôme Gardou
db8bb8c054 [CMAKE]
- rpcss depends on winesdk
[RPCSS]
  - fix declaration of MIDL_user_allocate

svn path=/branches/cmake-bringup/; revision=49291
2010-10-26 18:30:13 +00:00
Jérôme Gardou
b52b88ac96 [CMAKE]
- fix typo

svn path=/branches/cmake-bringup/; revision=49290
2010-10-26 18:01:37 +00:00
Jérôme Gardou
06537a6ad4 [CMAKE]
- midl support for building rpc server/client libraries

svn path=/branches/cmake-bringup/; revision=49289
2010-10-26 17:42:02 +00:00
Jérôme Gardou
cfbe481dc6 [WLANSVC]
- Fix wlansvc.idl for parsing with midl

svn path=/branches/cmake-bringup/; revision=49288
2010-10-26 17:36:57 +00:00
Jérôme Gardou
f22a9e6956 [CMAKE]
- WINNT isn't defined, don't redefine it. Pointed by Usurp.

svn path=/branches/cmake-bringup/; revision=49287
2010-10-26 17:23:00 +00:00
Jérôme Gardou
7c02a12b82 [SVCCTL]
- fix parsing of svcctl.idl with midl

svn path=/branches/cmake-bringup/; revision=49286
2010-10-26 17:20:00 +00:00
Jérôme Gardou
1537d3b259 [CMAKE]
- redefine _WIN32_WINNT too for building pnp rpc client and server libs

svn path=/branches/cmake-bringup/; revision=49285
2010-10-26 17:06:39 +00:00
Jérôme Gardou
85659d3f75 [LSARPC]
- define right interface in lsa.acf

svn path=/branches/cmake-bringup/; revision=49284
2010-10-26 16:55:46 +00:00
Jérôme Gardou
e829b4d212 [EVENTLOG]
- Correct definition of midl_user_allocate

svn path=/branches/cmake-bringup/; revision=49283
2010-10-26 16:36:25 +00:00
Jérôme Gardou
ec1e12e566 [PSDK]
- Add MIDL_user_allocate and MIDL_user_free definitions
  - #ifdef a GCC hack

svn path=/branches/cmake-bringup/; revision=49281
2010-10-26 16:01:08 +00:00
Jérôme Gardou
ab5836ad90 [CMAKE - MSC]
- Add set_image_base macro
  - add psdk and buildno dependencies to modules

svn path=/branches/cmake-bringup/; revision=49279
2010-10-26 07:31:04 +00:00
Sylvain Petreolle
394ca95775 [CMAKE]
Use msvc friendly macro.
Add network drivers to livecd.

svn path=/branches/cmake-bringup/; revision=49263
2010-10-24 21:19:00 +00:00
Sylvain Petreolle
9fad2797d5 [CMAKE]
Add network applications to build and livecd.

svn path=/branches/cmake-bringup/; revision=49262
2010-10-24 21:07:56 +00:00
Sylvain Petreolle
0ef2d803bf [CMAKE]
Fix winspool loading.

svn path=/branches/cmake-bringup/; revision=49260
2010-10-24 15:03:07 +00:00
Amine Khaldi
8c7563f645 [CMAKE]
- Add set_image_base macro.
- Fix ks linking.

svn path=/branches/cmake-bringup/; revision=49258
2010-10-24 12:44:36 +00:00
Sylvain Petreolle
1fb94b1cb5 [CMAKE]
sync with trunk (r49230)

svn path=/branches/cmake-bringup/; revision=49246
2010-10-23 22:14:59 +00:00
Sylvain Petreolle
956eb46aec [CMAKE]
Livecd: Add rundll32.
Cmake livecd lives !

svn path=/branches/cmake-bringup/; revision=49236
2010-10-23 11:55:36 +00:00
Sylvain Petreolle
070a3b3935 [CMAKE]
Livecd: Add inf files.
Temporarily add generated syssetup.inf from trunk.

svn path=/branches/cmake-bringup/; revision=49235
2010-10-23 11:35:26 +00:00
Amine Khaldi
b975ab079c [CMAKE]
- Create profiles related folders into the livecd iso.
- Add some missing modules to livecd.

svn path=/branches/cmake-bringup/; revision=49234
2010-10-23 10:38:48 +00:00
Amine Khaldi
885ea97149 [CMAKE]
- Add the missing resource file to explorer.

svn path=/branches/cmake-bringup/; revision=49233
2010-10-23 10:24:53 +00:00
Amine Khaldi
76697d8da4 [CMAKE]
- Add explorer, umpnpmgr, userinit and winhlp32 to livecd.

svn path=/branches/cmake-bringup/; revision=49232
2010-10-23 10:15:02 +00:00
Sylvain Petreolle
89271fe38d [CMAKE]
Add each win32dll module to livecd and remove global temporary add-on from gcc.cmake.
Fix pch use in fmifs.
Enable remaining dlls in dll/win32/CMakeLists.txt.

svn path=/branches/cmake-bringup/; revision=49230
2010-10-22 19:40:56 +00:00
Amine Khaldi
5299b0db47 [CMAKE]
- Fix comdlg32 and add it to build.

svn path=/branches/cmake-bringup/; revision=49228
2010-10-22 15:20:41 +00:00
Sylvain Petreolle
cfc11b5ca5 [CMAKE]
Add comdlg32, ole32, oleaut32, rpcrt4, shell32,urlmon to build.
comdlg32 remains disabled due to build error in Danish resources.

svn path=/branches/cmake-bringup/; revision=49227
2010-10-22 15:17:45 +00:00
Sylvain Petreolle
7dce7ccce4 [CMAKE]
Add rpcss to build.

svn path=/branches/cmake-bringup/; revision=49226
2010-10-22 14:55:38 +00:00
Sylvain Petreolle
3346380aaa [CMAKE]
Livecd: Add hal, ntoskrnl, csrss, csrsrv, win32k.

svn path=/branches/cmake-bringup/; revision=49225
2010-10-22 14:15:01 +00:00
Sylvain Petreolle
fd229355cc [CMAKE]
Livecd: Add base/ modules.

svn path=/branches/cmake-bringup/; revision=49224
2010-10-22 14:10:12 +00:00
Sylvain Petreolle
c56d82e4c8 [CMAKE]
Livecd: Add dlls that aren't win32dll modules.

svn path=/branches/cmake-bringup/; revision=49223
2010-10-22 14:05:00 +00:00
Sylvain Petreolle
b7e466a220 [CMAKE]
Livecd: Add drivers.

svn path=/branches/cmake-bringup/; revision=49222
2010-10-22 13:46:11 +00:00
Sylvain Petreolle
fc6a87624a [CMAKE]
Add win32dll modules to livecd for now.
For better flexibility, this will be needed in each module file.

svn path=/branches/cmake-bringup/; revision=49221
2010-10-22 13:40:02 +00:00
Sylvain Petreolle
5d3618ef80 [CMAKE]
Livecd : Add fonts and nls files.

svn path=/branches/cmake-bringup/; revision=49220
2010-10-22 13:21:57 +00:00
Sylvain Petreolle
493475d8d2 [CMAKE]
Add mkhive to build.
Add livecd target.
Make filename optional in add_mini_target, using the target one as default.
Move MACRO_IDL_FILES to CMakeMacros.cmake.
Add rpcproxy macro.
Build interface definitions headers for epm and irot.

svn path=/branches/cmake-bringup/; revision=49218
2010-10-22 13:15:58 +00:00
Sylvain Petreolle
cba659a83a [CMAKE]
Make midimap msc friendly.

svn path=/branches/cmake-bringup/; revision=49217
2010-10-22 10:54:06 +00:00
Timo Kreuzer
f58427d6cc [CMAKE]
disable rpcrt4 again, which was accidentally enabled


svn path=/branches/cmake-bringup/; revision=49207
2010-10-19 17:13:20 +00:00
Jérôme Gardou
2d93fd22ac [CMAKE]
- include stlport directory in set_cpp macro
  - move set_cpp macro where it belongs : it's generic enough to go to CMakeMacros.cmake

svn path=/branches/cmake-bringup/; revision=49148
2010-10-14 20:16:57 +00:00
Sylvain Petreolle
887822f92e [CMAKE]
Enable comctl32.

svn path=/branches/cmake-bringup/; revision=49143
2010-10-14 17:40:25 +00:00
Jérôme Gardou
33a0b314cd [CMAKE]
- add kernelmodedriver module type
  - add set_cpp macro, which takes care of all c++ stuff for you
  - hackfix stlport headers for c++ kernel mode modules.
  - complain about explorer
  - solitaire, telnet and uniata now build happily against stlport

svn path=/branches/cmake-bringup/; revision=49141
2010-10-14 11:03:20 +00:00
Daniel Reimer
bb61fb5246 Merge r49139.
svn path=/branches/cmake-bringup/; revision=49140
2010-10-13 21:24:20 +00:00
Sylvain Petreolle
2f9642faa3 [CMAKE]
Improve amstream and msdmo.

svn path=/branches/cmake-bringup/; revision=49138
2010-10-13 19:20:54 +00:00
Amine Khaldi
9ff87a62ad [CMAKE]
- More work on the dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49135
2010-10-13 12:11:50 +00:00
Daniel Reimer
90c7ea54cf Merge r49107.
svn path=/branches/cmake-bringup/; revision=49108
2010-10-10 23:30:05 +00:00
Amine Khaldi
24340825cc [CMAKE]
- Fix cryptui build. This should be sent upstream.

svn path=/branches/cmake-bringup/; revision=49106
2010-10-10 22:59:37 +00:00
Amine Khaldi
b02b04fc53 [CMAKE]
- More work on the dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49105
2010-10-10 22:58:42 +00:00
Daniel Reimer
b7cf54f91f Merge r49103.
svn path=/branches/cmake-bringup/; revision=49104
2010-10-10 22:37:09 +00:00
Daniel Reimer
09de31e63e Merge r49096 to cmake branch
svn path=/branches/cmake-bringup/; revision=49101
2010-10-10 19:31:41 +00:00
Timo Kreuzer
058a7eb644 [CMAKE]
MSVC: Don't use the debug version of msvcrt

svn path=/branches/cmake-bringup/; revision=49100
2010-10-10 16:27:01 +00:00
Timo Kreuzer
27301ff2e6 [CMAKE]
Add CMAKE_RC_CREATE_SHARED_LIBRARY for msvc (simply copied from gcc atm)


svn path=/branches/cmake-bringup/; revision=49099
2010-10-10 16:17:40 +00:00
Timo Kreuzer
684d97f9f3 [CMAKE]
- add Windows.cmake, copied from cmake, but with command line file disabled for debugging puposes
- for now use /MTd (static crt) for C++ apps compiled with MSVC

svn path=/branches/cmake-bringup/; revision=49088
2010-10-10 08:56:52 +00:00
Amine Khaldi
2c6d5eb092 [CMAKE]
- Add libspoolss.a

svn path=/branches/cmake-bringup/; revision=49080
2010-10-09 19:20:50 +00:00
Amine Khaldi
60a11ae666 [CMAKE]
- Some work on the dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49079
2010-10-09 19:15:45 +00:00
Timo Kreuzer
ae8c809c3b [CMAKE] Fix option checking
svn path=/branches/cmake-bringup/; revision=49077
2010-10-09 16:25:03 +00:00
Timo Kreuzer
1ae19bdc4a [CMAKE]
Disable PSEH for MSVC

svn path=/branches/cmake-bringup/; revision=49076
2010-10-09 16:23:07 +00:00
Timo Kreuzer
576f37ef4c [CMAKE]
Apply a custom script for MSVC to work around cmakes's WDK incompatibility.

svn path=/branches/cmake-bringup/; revision=49075
2010-10-09 16:13:29 +00:00
Amine Khaldi
78306f6e03 [CMAKE]
- Fix libmpg123 and add it to build.

svn path=/branches/cmake-bringup/; revision=49073
2010-10-09 14:34:03 +00:00
Sylvain Petreolle
da55a789c3 [CMAKE]
Add minicd target.
This partial bootcd target produces a minicd iso,
able to start the install process to the cabinet installation page.

svn path=/branches/cmake-bringup/; revision=49072
2010-10-09 13:54:36 +00:00
Amine Khaldi
303e51c09c [CMAKE]
- Apply the linker script to freeldr.

svn path=/branches/cmake-bringup/; revision=49070
2010-10-09 12:53:12 +00:00
Amine Khaldi
239538fb9b [CMAKE]
- Bring back explorer.

svn path=/branches/cmake-bringup/; revision=49068
2010-10-09 12:48:57 +00:00
Amine Khaldi
6340b50853 [CMAKE]
- Introduce lesser verbose makefiles.

svn path=/branches/cmake-bringup/; revision=49066
2010-10-09 10:10:39 +00:00
Amine Khaldi
2541969bd0 [CMAKE]
- More work on the base modules.

svn path=/branches/cmake-bringup/; revision=49062
2010-10-08 23:06:11 +00:00
Amine Khaldi
8db8028cbd [CMAKE]
- More work on the base modules.
- Fix a typo.
- Fix shlwapi and audio_test builds.

svn path=/branches/cmake-bringup/; revision=49061
2010-10-08 22:26:41 +00:00
Amine Khaldi
9967209aea [CMAKE]
- More work on the dlls.

svn path=/branches/cmake-bringup/; revision=49060
2010-10-08 21:34:25 +00:00
Amine Khaldi
e9977ecc9f [CMAKE]
- More work on the dlls.
- libgcc is already a standard C lib, don't relink to it for executables.
- ICU isn't needed for now, disable it.

svn path=/branches/cmake-bringup/; revision=49059
2010-10-08 21:02:11 +00:00
Amine Khaldi
da7764cd5c [CMAKE]
- Improve some dlls.
- Fix cmd and stlport.
- Add libgcc as a C standard lib.

svn path=/branches/cmake-bringup/; revision=49056
2010-10-08 19:10:33 +00:00
Jérôme Gardou
db37322eb6 [CMAKE]
- link executables against gcc and mingw_common
  - remove link dependencies from mingw_common
This puts C executables into a good shape again.

svn path=/branches/cmake-bringup/; revision=49054
2010-10-08 18:04:16 +00:00
Jérôme Gardou
e20a0a30ee [CMAKE]
- Use stlport specific includes only for c++ source files
  - remove linking to ntdll, kernel32 and oldnames for mingw_common

svn path=/branches/cmake-bringup/; revision=49050
2010-10-08 13:47:39 +00:00
Jérôme Gardou
27267a3cab [CMAKE]
- add gcc dependencies to executables, not to mingw_(w)main
[STLPORT]
  - move features definitions where it belongs.
[SDK]
  - errno _must_ be defined in errno.h, nowhere else, or stlport headers choke.

svn path=/branches/cmake-bringup/; revision=49049
2010-10-08 10:46:54 +00:00
Jérôme Gardou
1958e125aa [CMAKE]
- remove now useless libstdc++.a

svn path=/branches/cmake-bringup/; revision=49047
2010-10-08 08:32:53 +00:00
Amine Khaldi
4efda499f7 [CMAKE]
Jerome Gardou:
- Add STLport 5.2.1 (yes, STLport, the c++ stl implementation) to build. For now, it works only in user mode.
- Link some c++ executables to it
- sol.exe : one step towards a complete and modern OS.
- Dedicated to Amine for his patience and his help.
- Might Break Things! (tm)

svn path=/branches/cmake-bringup/; revision=49046
2010-10-07 22:09:31 +00:00
Jérôme Gardou
4553cddf93 [CMAKE]
- add missing file to mingw_common

svn path=/branches/cmake-bringup/; revision=49030
2010-10-07 11:47:29 +00:00
Amine Khaldi
9a1ab426cf [CMAKE]
- Rename netevent.mc to neteventmsg.mc
- Add some missing win32 dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49023
2010-10-06 18:57:42 +00:00
Amine Khaldi
cec00257f3 [CMAKE]
- Add win32ocx module type.
- Disable the linker script for now.

svn path=/branches/cmake-bringup/; revision=49015
2010-10-06 13:24:46 +00:00
Sylvain Petreolle
3345c4056d [CMAKE]
Add missing psdk dependency to nt and smlib.
Fixes parallel builds.

svn path=/branches/cmake-bringup/; revision=49009
2010-10-06 08:02:25 +00:00
Amine Khaldi
08265cb095 [CMAKE]
Alexey Komarov:
- More work on base modules.
- Add some dlls to build.

svn path=/branches/cmake-bringup/; revision=48996
2010-10-05 13:03:47 +00:00
Amine Khaldi
fa0db12e2a [CMAKE]
- Improve mciwave and mmdrv.

svn path=/branches/cmake-bringup/; revision=48995
2010-10-05 12:43:23 +00:00
Amine Khaldi
01c5da1020 [CMAKE]
- Add regsvr32 to build.

svn path=/branches/cmake-bringup/; revision=48985
2010-10-04 22:25:29 +00:00
Amine Khaldi
d686345e81 [CMAKE]
- More work on the base modules. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48984
2010-10-04 22:19:49 +00:00
Amine Khaldi
a5f513fed5 [CMAKE]
- Disable emitting debug info and applying the linker script for now.
- Enable explorer build.

svn path=/branches/cmake-bringup/; revision=48983
2010-10-04 22:06:46 +00:00
Amine Khaldi
5682f2f8b1 [CMAKE]
- Fix bzip2.

svn path=/branches/cmake-bringup/; revision=48974
2010-10-04 07:11:54 +00:00
Amine Khaldi
12c54162f5 [CMAKE]
- Add almost all base applications (some are included but disabled too). This is the work of a human being, so no bots BS, no rbuildism, every single module was tested, built with the new build system mentality (no defines and linked libs redundancy, use of the the available macros, the linked libs are carefully selected, the dependencies are correctly tracked... etc)
- Brought to you by Alexey Komarov, with my humble review.

svn path=/branches/cmake-bringup/; revision=48973
2010-10-03 22:26:21 +00:00
Amine Khaldi
40f47f612c [CMAKE]
- Improve win32csr.
- Add libdevmgr.a

svn path=/branches/cmake-bringup/; revision=48972
2010-10-03 21:57:08 +00:00
Amine Khaldi
c6dd9578be [CMAKE]
- Improve some dlls.

svn path=/branches/cmake-bringup/; revision=48967
2010-10-02 22:19:59 +00:00
Amine Khaldi
12fbca9aba [CMAKE]
- Introduce the case where entry point is 0.
- Improve some dlls.

svn path=/branches/cmake-bringup/; revision=48966
2010-10-02 19:08:06 +00:00
Amine Khaldi
e7caf66239 [CMAKE]
- Improve the IDL macro, along with some dependencies.

svn path=/branches/cmake-bringup/; revision=48965
2010-10-02 17:09:48 +00:00
Amine Khaldi
0281bf63e6 [CMAKE]
- Improve the unicode situation.
- Apply a consistent formatting.
- Improve the unicode modules we have so far.
- Get rid of some rbuildism.
- Overall improvements.

svn path=/branches/cmake-bringup/; revision=48964
2010-10-02 16:09:32 +00:00
Sylvain Petreolle
83719eaee5 [CMAKE]
Add missing libcryptui.a for wintrust.dll.

svn path=/branches/cmake-bringup/; revision=48963
2010-10-02 14:02:32 +00:00
Amine Khaldi
8bedef940b [CMAKE]
- Add wdmaud.drv, windowscodecs, winfax, wing32, winhttp, winmm, winspool, winsta and winsta to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48962
2010-10-02 11:18:13 +00:00
Amine Khaldi
1f173861bb [CMAKE]
- Add wininet to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48961
2010-10-02 10:15:25 +00:00
Amine Khaldi
4837d9a1c0 [CMAKE]
- Fix wininet translations so that wininet can compile. I'll provide a patch upstream.

svn path=/branches/cmake-bringup/; revision=48960
2010-10-02 10:14:50 +00:00
Amine Khaldi
7f773550af [CMAKE]
- Add wlanapi, wldap32, ws2_32(_new) and drmk to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48957
2010-10-01 21:52:15 +00:00
Amine Khaldi
466fc93fa7 [CMAKE]
- Make static libs out of the idl files.
- Improve wshirda, wshtcpip and wsock32.
- Include bmfd into build.

svn path=/branches/cmake-bringup/; revision=48956
2010-10-01 21:33:07 +00:00
Amine Khaldi
9d4f5c4c27 [CMAKE]
- Add ws2help, wshirda, wshtcpip, wsock32, wtsapi32, wuapi, xinput*, xmllite, cmbatt, compbatt, dxapi, dxg, dxgthk, fs_rec, msfs and mup to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48953
2010-10-01 16:30:49 +00:00
Amine Khaldi
657cc3f2f4 [CMAKE]
- Add libdrmk.a and libks.a

svn path=/branches/cmake-bringup/; revision=48952
2010-10-01 08:41:45 +00:00
Amine Khaldi
72864bcd6c [CMAKE]
- Add ksuser, npfs, ntfs, ks, parallel, serenum, serial, pciide, pciidex, usbdriver, usbd, framebuf, framebuf_new and portcls to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48951
2010-10-01 00:15:10 +00:00
Jérôme Gardou
b0ce92bdb2 [CMAKE]
- fix msvc extrac32 build

svn path=/branches/cmake-bringup/; revision=48950
2010-09-30 22:05:12 +00:00
Jérôme Gardou
5835ca9362 [CMAKE]
- fix msvc xcopy compilation by merging 48948 and linking it to ntdll

svn path=/branches/cmake-bringup/; revision=48949
2010-09-30 21:49:15 +00:00
Amine Khaldi
b69be78e88 [CMAKE]
- Add audio_test, kmixer, wdmaud, sysaudio and ntvdm to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48947
2010-09-30 20:37:04 +00:00
Amine Khaldi
98d310566e [CMAKE]
- Add vgaddi, bmfd, vbemp, vgamp, vga, vmx_svga and xboxvmp to build. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=48946
2010-09-30 19:10:49 +00:00
Jérôme Gardou
06bc5262ae [CMAKE]
- fix reg compilation with msc

svn path=/branches/cmake-bringup/; revision=48945
2010-09-30 18:57:28 +00:00
Jérôme Gardou
c332bcbe26 Merge 48942
svn path=/branches/cmake-bringup/; revision=48944
2010-09-30 18:56:42 +00:00
Amine Khaldi
f2afdbbc4a [CMAKE]
- Add csrss, csrsrv and win32csr to build. By Alexey Komarov (IRC: q4a)

svn path=/branches/cmake-bringup/; revision=48916
2010-09-28 13:41:23 +00:00
Amine Khaldi
9a79b1e80d [CMAKE]
- Add typelib support macro and use it with stdole2. By Jerome Gardou.

svn path=/branches/cmake-bringup/; revision=48914
2010-09-28 13:32:41 +00:00
Sylvain Petreolle
c0c597d9c6 [CMAKE]
Add a set_rc_compiler macro,
its a workaround for lack of mingw RC support in cmake.
Enable winemine build.
Improve user32 CMakeLists.txt.

Thanks to AmineKhaldi for initial support of resources in user32.

svn path=/branches/cmake-bringup/; revision=48906
2010-09-27 09:14:54 +00:00
Jérôme Gardou
3b92867c2a [CMAKE]
- Add disabled winemine build file

svn path=/branches/cmake-bringup/; revision=48901
2010-09-26 10:09:06 +00:00
Jérôme Gardou
c9dc1e22be [CMAKE]
- add iexplore to build

svn path=/branches/cmake-bringup/; revision=48900
2010-09-26 09:56:28 +00:00
Jérôme Gardou
5cacf14c7f [CMAKE]
- add hh to build

svn path=/branches/cmake-bringup/; revision=48899
2010-09-26 00:37:46 +00:00
Jérôme Gardou
796d321ba6 [CMAKE]
- add set_unicode macro to msvc toolchain
  - fix win32cui module type for msvc

svn path=/branches/cmake-bringup/; revision=48897
2010-09-25 23:01:09 +00:00
Amine Khaldi
9ea8827010 [CMAKE]
- Introduce proper set_entrypoint and set_subsystem macros for both mingw and msvc.
- Fix the subsystem for console apps.

svn path=/branches/cmake-bringup/; revision=48893
2010-09-25 20:44:46 +00:00
Jérôme Gardou
0dfa12e039 [CMAKE]
- add fontview to build
  - add experimental solitaire build file

svn path=/branches/cmake-bringup/; revision=48890
2010-09-25 19:51:28 +00:00
Sylvain Petreolle
1a3df1da9b [CMAKE]
Add importlibs for c++ modules.

svn path=/branches/cmake-bringup/; revision=48889
2010-09-25 19:43:52 +00:00
Sylvain Petreolle
fcc4413386 [CMAKE]
Add explorer to build.
Not enabled now, it links but executable is not valid.

svn path=/branches/cmake-bringup/; revision=48887
2010-09-25 19:17:39 +00:00
Jérôme Gardou
9273ed2434 merge r48884 from trunk
svn path=/branches/cmake-bringup/; revision=48885
2010-09-25 18:48:17 +00:00
Amine Khaldi
3938ef73b1 [CMAKE]
- Fix the linking regression.

svn path=/branches/cmake-bringup/; revision=48882
2010-09-25 17:57:03 +00:00
Jérôme Gardou
0196ce1ec8 [CMAKE]
- improve cacls build file
  - add control and extrac32 to build

svn path=/branches/cmake-bringup/; revision=48881
2010-09-25 17:42:29 +00:00
Sylvain Petreolle
ba887f723b [CMAKE]
Add cmd to build.

svn path=/branches/cmake-bringup/; revision=48880
2010-09-25 17:40:02 +00:00
Sylvain Petreolle
639ad14ab9 [CMAKE]
Add add_minicd_target and add_minicd macros.

svn path=/branches/cmake-bringup/; revision=48876
2010-09-25 15:36:17 +00:00
Jérôme Gardou
38dd8fce5f [CMAKE]
- improve cacls build file
  - add charmap, dbgprint, doskey, find, hostname, lodctr, more, reg and xcopy build files
  - add win32cui module type to msc toolchain
find is commented out for now. 

svn path=/branches/cmake-bringup/; revision=48875
2010-09-25 15:31:18 +00:00
Amine Khaldi
29ab93ce7f [CMAKE]
- Improve acpi, isapnp, pci, pcix and pcmcia (import libs, dependencies...etc)

svn path=/branches/cmake-bringup/; revision=48873
2010-09-25 14:39:51 +00:00
Amine Khaldi
afe5d2ee6e [CMAKE]
- Improve uuid and add psdk dependency.

svn path=/branches/cmake-bringup/; revision=48872
2010-09-25 14:30:47 +00:00
Sylvain Petreolle
4b8f69dfac [CMAKE]
Add set_unicode macro.
Add win32dll module type.
Set CMAKE_CXX_LINK_EXECUTABLE.
Clear CMAKE_CXX_STANDARD_LIBRARIES.
Improve calc.

svn path=/branches/cmake-bringup/; revision=48871
2010-09-25 14:22:16 +00:00
Amine Khaldi
6b61faf281 [CMAKE]
- Fix set_subsystem for mingw32.

svn path=/branches/cmake-bringup/; revision=48870
2010-09-25 14:02:06 +00:00
Jérôme Gardou
eb95f483b7 [CMAKE]
- Add win32cui module type to gcc toolchain
  - Add cacls to build

svn path=/branches/cmake-bringup/; revision=48869
2010-09-25 13:38:44 +00:00
Amine Khaldi
c746b1187c [CMAKE]
- Add fastfat_new by Alexey Komarov (IRC: q4a)

svn path=/branches/cmake-bringup/; revision=48856
2010-09-24 09:46:34 +00:00
Amine Khaldi
9c28319873 [CMAKE]
- Don't export symbols from pci(x) and pcmcia.

svn path=/branches/cmake-bringup/; revision=48852
2010-09-23 16:50:00 +00:00
Cameron Gutman
d6c01bce64 [LWIP]
- Don't call KeSetEvent while holding a spin lock (thanks to lassy for pointing it out)
- Don't advance to the next list entry because we are using ExInterlockedRemoveHeadList
- A couple more small code improvements

svn path=/branches/tcp-rewrite-branch/; revision=48841
2010-09-21 06:40:41 +00:00
Cameron Gutman
459e413725 [IP]
- Rewrite most of the lower TCP layer code to work with lwIP
[LWIP]
- Write all of the implementation-specific code and headers
[TCPIP]
- Add assertions in the object reference functions
- Remove the completion queue hack

This is still isn't totally finished yet. There are still two main issues that need to be overcome: listen/accept don't work at all and the performance is horrible.
I hope that once I tune some of the options, I can get it to perform reasonably well. If any curious testers want to try this out, be my guest but realize that not
a lot of apps will work yet. Suggestions are welcome! :)

svn path=/branches/tcp-rewrite-branch/; revision=48840
2010-09-21 06:11:24 +00:00
Timo Kreuzer
d7733b45c3 [CMAKE]
Create a portable way of compiling IDL files.
Sorry for the coding style :)

svn path=/branches/cmake-bringup/; revision=48838
2010-09-21 02:31:09 +00:00
Amine Khaldi
f8d1229750 [CMAKE]
- Remove a superfluous slash.
- Don't link to any standard libraries, we explicitly link to what's needed.

svn path=/branches/cmake-bringup/; revision=48837
2010-09-20 23:14:45 +00:00
Timo Kreuzer
ddd44b1b17 [CMAKE]
Improve calc

svn path=/branches/cmake-bringup/; revision=48836
2010-09-20 22:35:54 +00:00
Timo Kreuzer
aa9ef9f784 [CMAKE]
Improve usetup

svn path=/branches/cmake-bringup/; revision=48835
2010-09-20 22:35:23 +00:00
Amine Khaldi
80c36d8bb3 [CMAKE]
- Remove unneeded dependency.
- Remove rbuild file.

svn path=/branches/cmake-bringup/; revision=48834
2010-09-20 19:46:05 +00:00
Timo Kreuzer
e4d6536049 [CMAKE]
Add missing cportlib cmake file.

svn path=/branches/cmake-bringup/; revision=48832
2010-09-20 18:41:46 +00:00
Timo Kreuzer
912ce51ae6 [CMAKE]
Sync with trunk head (r48826)

svn path=/branches/cmake-bringup/; revision=48831
2010-09-20 17:27:52 +00:00
Timo Kreuzer
0540ad4d50 [CMAKE]
Add dependency to the .mc files

svn path=/branches/cmake-bringup/; revision=48830
2010-09-20 16:43:43 +00:00
Timo Kreuzer
f8447bf6ef [CMAKE]
Fix ntoskrnl compilation that broke after the changes to the configuration options

svn path=/branches/cmake-bringup/; revision=48829
2010-09-20 16:38:40 +00:00
Timo Kreuzer
688eef2602 [MSVC]
__MINGW_ATTRIB_DEPRECATED aka __declspec(deprecated) must be put before the function declaration for MSVC.

svn path=/branches/cmake-bringup/; revision=48828
2010-09-20 14:16:22 +00:00
Timo Kreuzer
8f7b60f9c7 [MSVC]
Remove some invalid characters in uk-UA.rc resource file.

svn path=/branches/cmake-bringup/; revision=48827
2010-09-20 13:44:32 +00:00
Timo Kreuzer
aeead4620b [CMAKE]
- Improved MSVC toolchain support, now working with WDK, as well
(Thanks to Amine for solving the problems)
- Add compiler specific macro set_subsystem
- add nativecui module type

svn path=/branches/cmake-bringup/; revision=48824
2010-09-19 23:03:25 +00:00
Timo Kreuzer
0ba3fa7266 [CMAKE]
syntax... "just for consistency"

svn path=/branches/cmake-bringup/; revision=48823
2010-09-19 20:16:40 +00:00
Timo Kreuzer
d6a629d822 Fix a typo.Thanks to Usurp for noticing.
svn path=/branches/cmake-bringup/; revision=48822
2010-09-19 20:10:55 +00:00
Timo Kreuzer
aefbd32d48 [CMAKE]
- Add support for gui configurable options
- globalize compiler specific cmake files
- Add compiler specific macros set_entrypoint, set_module_type

svn path=/branches/cmake-bringup/; revision=48821
2010-09-19 20:06:02 +00:00
Timo Kreuzer
e00685d331 [CMAKE]
Add RC compiler and Assembler to MSC toolchain

svn path=/branches/cmake-bringup/; revision=48820
2010-09-19 18:53:55 +00:00
Timo Kreuzer
d8ac6e1a9c [CMAKE]
Add MSVC compatible MC command

svn path=/branches/cmake-bringup/; revision=48819
2010-09-19 18:52:34 +00:00
Timo Kreuzer
942aa9560e [MSVC]
Don't pass gcc specific options to msvc

svn path=/branches/cmake-bringup/; revision=48818
2010-09-19 17:39:09 +00:00
Sylvain Petreolle
7330915418 [CMAKE]
Add ext2 to build.

svn path=/branches/cmake-bringup/; revision=48816
2010-09-19 16:36:43 +00:00
Timo Kreuzer
355f25521c [MSVC]
remove intrinsics that don't exist

svn path=/branches/cmake-bringup/; revision=48815
2010-09-19 16:27:13 +00:00
Sylvain Petreolle
886d934055 [CMAKE]
Fix minicd boot regression.
Remove unneeded usetup link to msvcrt.

svn path=/branches/cmake-bringup/; revision=48814
2010-09-19 16:16:01 +00:00
Amine Khaldi
f24f83f0b3 [CMAKE]
- Add network drivers (afd, ne2000, pcnet, ndis, tcpip and tdi) to build.

svn path=/branches/cmake-bringup/; revision=48811
2010-09-19 11:19:16 +00:00
Amine Khaldi
13f105b14b [CMAKE]
- Introduce MSVC toolchain support. Just use -DCMAKE_TOOLCHAIN_FILE=toolchain-msvc.cmake for the toolchain.
- Sync setjmp.h from trunk.
- Improve mingw targets (mingw_common, mingw_wmain, oldnames... etc) a bit to make them compile and link with msvc.
- Dedicated to Timo ;)

svn path=/branches/cmake-bringup/; revision=48809
2010-09-19 00:27:24 +00:00
Amine Khaldi
0dbb8d3eb2 [CMAKE]
- *cough* Separate compiler specific flags.

svn path=/branches/cmake-bringup/; revision=48808
2010-09-19 00:15:45 +00:00
Sylvain Petreolle
c702cc0d5a [CMAKE]
Generalize CMAKE_C_CREATE_SHARED_LIBRARY and remove per project instances.
Thanks to Amine for regexxer tool discovery ;)


svn path=/branches/cmake-bringup/; revision=48804
2010-09-18 15:22:08 +00:00
Amine Khaldi
13dc8a4761 [CMAKE]
- Generalize CMAKE_C_LINK_EXECUTABLE and CMAKE_EXE_LINKER_FLAGS, and use additional flags per module.
- Fix usetup: make it depend on psdk and buildno_header, and also fix the entry point (_NtProcessStartup -> _NtProcessStartup@4)
- Make ext2lib depend on psdk.

svn path=/branches/cmake-bringup/; revision=48802
2010-09-18 12:14:03 +00:00
Amine Khaldi
6730fe41ce [CMAKE]
- Export cdmake as a native tool.

svn path=/branches/cmake-bringup/; revision=48798
2010-09-17 22:19:48 +00:00
Sylvain Petreolle
41eb5217ba Add Amine's libgcc.a.
This allows to build without rosbe change.
(forgotten in previous commit)

svn path=/branches/cmake-bringup/; revision=48797
2010-09-17 20:41:58 +00:00
Sylvain Petreolle
174808a463 Move all temporary import libs to a single directory.
This allows linking to libraries with "-lfoo".

svn path=/branches/cmake-bringup/; revision=48796
2010-09-17 20:27:01 +00:00
Amine Khaldi
93dbd3207b [CMAKE]
- Add pci, pcixn pcmcia, videoprt and wmilib to build.

svn path=/branches/cmake-bringup/; revision=48765
2010-09-13 13:48:29 +00:00
Amine Khaldi
a5f63965c8 [CMAKE]
- Introduce support for the amd64 toolchain. Using it is as simple as adding -DARCH=amd64 to the cmake line (next to the toolchain file define).
- Dedicated to Sylvain (Usurp) ;)

svn path=/branches/cmake-bringup/; revision=48763
2010-09-12 21:03:47 +00:00
Amine Khaldi
6e7a324a26 [CMAKE]
- Improve bootvid, crt and ntoskrnl.

svn path=/branches/cmake-bringup/; revision=48762
2010-09-12 21:02:18 +00:00
Amine Khaldi
d95f9d3190 [CMAKE]
- Fix usetup build.

svn path=/branches/cmake-bringup/; revision=48760
2010-09-12 19:38:21 +00:00
Sylvain Petreolle
24906fcdfc Add usetup to build.
svn path=/branches/cmake-bringup/; revision=48755
2010-09-12 15:12:20 +00:00
Cameron Gutman
fa58fc5f13 [LWIP]
- Initial drop of lwIP 1.3.2

svn path=/branches/tcp-rewrite-branch/; revision=48720
2010-09-07 13:18:26 +00:00
Cameron Gutman
25720d75f4 Create a branch for work on porting an alternate TCP library with the main focus on stability
svn path=/branches/tcp-rewrite-branch/; revision=48714
2010-09-07 03:33:36 +00:00
Amine Khaldi
07d976dff7 [FREELDR]
- Update fathelp.S to reflect Timo's recent changes in trunk.

svn path=/branches/cmake-bringup/; revision=48702
2010-09-05 16:31:06 +00:00
Amine Khaldi
626eb6f07b [CMAKE]
- Mark nci_output and nci_folders as lists.

svn path=/branches/cmake-bringup/; revision=48699
2010-09-04 16:59:33 +00:00
Amine Khaldi
7dbd1be0fe [CMAKE]
- Mark nci output as generated.

svn path=/branches/cmake-bringup/; revision=48698
2010-09-04 16:12:21 +00:00
Amine Khaldi
1d2ab448d9 [CMAKE]
- Add floppy to build.

svn path=/branches/cmake-bringup/; revision=48697
2010-09-04 14:14:45 +00:00
Amine Khaldi
7ff72cbf64 [CMAKE]
- Add fastfat and isapnp to build.

svn path=/branches/cmake-bringup/; revision=48696
2010-09-04 13:43:01 +00:00
Amine Khaldi
cf6293b311 [CMAKE]
- Add cdrom, class2, disk and ramdisk to build.

svn path=/branches/cmake-bringup/; revision=48695
2010-09-04 13:36:49 +00:00
Amine Khaldi
f136f67feb [CMAKE]
- Add buslogic to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48694
2010-09-04 13:16:29 +00:00
Amine Khaldi
dc95036f5a [CMAKE]
- Add atapi, blue, cdfs and uniata to build.

svn path=/branches/cmake-bringup/; revision=48693
2010-09-04 12:57:01 +00:00
Amine Khaldi
abf5238858 [CMAKE]
- Add battc, acpica and acpi to build.

svn path=/branches/cmake-bringup/; revision=48691
2010-09-03 14:33:39 +00:00
Amine Khaldi
f61be19dd9 [CMAKE]
- Improve gendib build.
- Add gendib generated source files.
- Add win32k to build. Dedicated to Timo ;)

svn path=/branches/cmake-bringup/; revision=48690
2010-09-03 00:03:00 +00:00
Amine Khaldi
50bf553ad0 [CMAKE]
- Add ftfd driver to build.

svn path=/branches/cmake-bringup/; revision=48689
2010-09-02 22:38:36 +00:00
Amine Khaldi
1c24a9bbdd [FREELDR]
- Use fathelp.S from r43775 (amd64 branch by timo)
[CMAKE]
- Improve hal, ntoskrnl and freeldr/setupldr build.

svn path=/branches/cmake-bringup/; revision=48688
2010-09-02 21:00:02 +00:00
Amine Khaldi
c988b66126 [FREELDR]
- Convert fat12/16 boot sector helper code to gas syntax. Brought to you by the Arty.
[CMAKE]
- Add freeldr and setupldr to build.

svn path=/branches/cmake-bringup/; revision=48687
2010-09-02 17:39:45 +00:00
Amine Khaldi
b1e8d151a2 [CMAKE]
- Add mini_hal to build.

svn path=/branches/cmake-bringup/; revision=48672
2010-08-31 23:48:26 +00:00
Amine Khaldi
aec35b5416 [CMAKE]
- libcntpr needs buildno.h

svn path=/branches/cmake-bringup/; revision=48671
2010-08-31 21:24:12 +00:00
Amine Khaldi
10cf790c3c [CMAKE]
- Add boot sectors to build.

svn path=/branches/cmake-bringup/; revision=48669
2010-08-31 18:40:19 +00:00
Amine Khaldi
28f74e6701 [CMAKE]
- Add scsiport to build.

svn path=/branches/cmake-bringup/; revision=48668
2010-08-31 17:55:28 +00:00
Amine Khaldi
ea213941ac [CMAKE]
- Add bootvid, kddll, kdcom, nmidebug and null drivers to build.

svn path=/branches/cmake-bringup/; revision=48666
2010-08-31 16:30:02 +00:00
Amine Khaldi
d84e219b0b [CMAKE]
- Add input drivers (i8042prt, kbdclass, mouclass and sermouse) to build.

svn path=/branches/cmake-bringup/; revision=48664
2010-08-31 14:05:07 +00:00
Amine Khaldi
b28db78efe [CMAKE]
- Improve handling buildno.h

svn path=/branches/cmake-bringup/; revision=48663
2010-08-31 13:25:10 +00:00
Amine Khaldi
c961b36495 [CMAKE]
- Add placeholders for the remaining dlls.

svn path=/branches/cmake-bringup/; revision=48662
2010-08-31 11:11:11 +00:00
Amine Khaldi
5712f8489b [CMAKE]
- Add beep driver to build.

svn path=/branches/cmake-bringup/; revision=48661
2010-08-31 10:34:15 +00:00
Amine Khaldi
b41fc0f134 [CMAKE]
- Add ze kirnel to build.

svn path=/branches/cmake-bringup/; revision=48659
2010-08-30 14:31:44 +00:00
Amine Khaldi
def27fd0d4 [CMAKE]
- Improve rossym lib.

svn path=/branches/cmake-bringup/; revision=48658
2010-08-30 14:30:09 +00:00
Amine Khaldi
5ba1569888 [CMAKE]
- Improve pseh.

svn path=/branches/cmake-bringup/; revision=48656
2010-08-30 13:00:41 +00:00
Amine Khaldi
8719ae188a [CMAKE]
- Improve rtl.

svn path=/branches/cmake-bringup/; revision=48655
2010-08-30 12:37:44 +00:00
Amine Khaldi
5598df126e [CMAKE]
- Improve ntdll.

svn path=/branches/cmake-bringup/; revision=48652
2010-08-29 21:32:32 +00:00
Amine Khaldi
252d2d95f5 [CMAKE]
- Improve kernel32.

svn path=/branches/cmake-bringup/; revision=48647
2010-08-29 18:32:17 +00:00
Amine Khaldi
a867182e64 [CMAKE]
- Add hal (yes, hal) to build.

svn path=/branches/cmake-bringup/; revision=48645
2010-08-29 17:30:24 +00:00
Amine Khaldi
1e684c2d24 [CMAKE]
- Add samsrv, sccbase, schannel, sensapi, serialui, shdoclc, shfolder, shlwapi, slbcsp, smdll, sndblst, snmpapi, spoolss, srclient, sxs, t2embed, tapi32, tapiui, traffic, updspapi, url, usp10 and uxtheme to build.
- Add mlang, mpr, and shell32 import libs.
- Fix shdoclc and shlwapi translations (patches will be sent upstream).
- Improve mmebuddy.

svn path=/branches/cmake-bringup/; revision=48644
2010-08-29 14:13:38 +00:00
Amine Khaldi
a999e307d8 [CMAKE]
- Rewrite crt and libcntpr targets, with support for other than i386.
- Bring-in logf.c from trunk.

svn path=/branches/cmake-bringup/; revision=48643
2010-08-29 11:07:31 +00:00
Amine Khaldi
d73bc1f2e0 [CMAKE]
- Include crt headers when compiling RC files.

svn path=/branches/cmake-bringup/; revision=48634
2010-08-28 17:41:06 +00:00
Amine Khaldi
2aa2457be2 [CMAKE]
- Add mscoree, msg711.acm, msgina, msgsm32.acm, msimg32, msnet32, mssign32, mssip32, msvcrt20, msvcrt40, msvfw32, msvidc32, mswsock, nddeapi, netapi32, newdev, ntdsapi, ntlanman, ntprint, olecli32, oledlg, olesvr32, olethk32, pidgen, powrprof, printui, query, rasapi32, rasdlg, rasman, resutils and samlib to build.

svn path=/branches/cmake-bringup/; revision=48633
2010-08-28 13:20:03 +00:00
Amine Khaldi
1519f0138c [CMAKE]
- Add mciseq, mciwave, mmdrv, modemui, mpr, mprapi, msadp32.acm, msafd and mscms to build.
- Fixed mpr resource files (should be submitted upstream).

svn path=/branches/cmake-bringup/; revision=48613
2010-08-23 22:23:02 +00:00
Amine Khaldi
4741cefede [CMAKE]
- Update user32 now that we have a target named imm32.

svn path=/branches/cmake-bringup/; revision=48609
2010-08-23 15:23:35 +00:00
Amine Khaldi
f84ae9c1f8 [CMAKE]
- Add fmifs, fusion, getuname, hid, httpapi, iccvid, icmp, imaadp32.acm, imagehlp, imm32, initpki, iphlpapi, itircl, loadperf, lpk, lz32, mapi32, mciavi32, mcicda and mciqtz32 to build.

svn path=/branches/cmake-bringup/; revision=48608
2010-08-23 14:40:47 +00:00
Amine Khaldi
0a6253a028 [CMAKE]
- Temporarily add libdbghelp.a and libdhcpcsvc.a

svn path=/branches/cmake-bringup/; revision=48607
2010-08-23 14:34:34 +00:00
Amine Khaldi
62c4ea8ac6 [CMAKE]
- Add dciman32, dhcpcsvc, dnsapi, dwmapi and faultrep to build.

svn path=/branches/cmake-bringup/; revision=48599
2010-08-22 23:59:45 +00:00
Amine Khaldi
5ff40b3f5c [CMAKE]
- Fix adns lib.

svn path=/branches/cmake-bringup/; revision=48598
2010-08-22 23:46:10 +00:00
Amine Khaldi
e74bc8316b [CMAKE]
- Add compstui, credui, crtdll, crypt32, cryptdll and dbghelp to build.

svn path=/branches/cmake-bringup/; revision=48596
2010-08-22 22:52:07 +00:00
Amine Khaldi
fe1a81a83b [CMAKE]
- Guard pseh2.h against RC_INVOKED.

svn path=/branches/cmake-bringup/; revision=48594
2010-08-22 22:43:43 +00:00
Amine Khaldi
2b50254340 [CMAKE]
- Manually add source file (as suggested by Colin).
- I've filed a feature request to have the same effect when still using GLOB/GLOB_RECURSE : http://public.kitware.com/Bug/view.php?id=11156

svn path=/branches/cmake-bringup/; revision=48592
2010-08-22 13:40:53 +00:00
Amine Khaldi
6e4d96514e [CMAKE]
- Cache the mingw32 prefix.
- Improve the RC compiler invocation.

svn path=/branches/cmake-bringup/; revision=48591
2010-08-22 13:38:36 +00:00
Amine Khaldi
d8a98fcbbc [CMAKE]
- Add cabinet, cards, cfgmgr32 and clusapi to build.

svn path=/branches/cmake-bringup/; revision=48589
2010-08-22 01:17:53 +00:00
Amine Khaldi
7fdcb2e5d9 [CMAKE]
- Add avicap32, batt and beepmidi to build.
- Fix a typo.

svn path=/branches/cmake-bringup/; revision=48588
2010-08-22 00:52:26 +00:00
Amine Khaldi
bdc1e57c6f [CMAKE]
- Add activeds, advpack and authz to build.

svn path=/branches/cmake-bringup/; revision=48587
2010-08-21 23:52:17 +00:00
Amine Khaldi
a2fdd97426 [CMAKE]
- Add acledit to build.

svn path=/branches/cmake-bringup/; revision=48586
2010-08-21 23:35:57 +00:00
Amine Khaldi
f775807bed [CMAKE]
- Add aclui to build.

svn path=/branches/cmake-bringup/; revision=48585
2010-08-21 23:25:35 +00:00
Amine Khaldi
00c4b6a0fb [CMAKE]
- Add a macro to handle generating definition files from spec files (for Wine dlls)

svn path=/branches/cmake-bringup/; revision=48584
2010-08-21 23:23:46 +00:00
Amine Khaldi
6fa9a293d5 [CMAKE]
- mc : Make the generated bin file names prefixed by the base name of the source file.

svn path=/branches/cmake-bringup/; revision=48544
2010-08-14 10:49:27 +00:00
Amine Khaldi
5644c2c39d [CMAKE]
- Now that we have c++ flags set globally, no need to mention them on the respective targets.
- debug.h : leftover from the kernel32 sync.

svn path=/branches/cmake-bringup/; revision=48543
2010-08-14 10:47:57 +00:00
Amine Khaldi
82edce4255 [CMAKE]
- Link mingw_common to kernel32 and ntdll.
- Fix mingw_wmain.
- Improve the paths use.

svn path=/branches/cmake-bringup/; revision=48542
2010-08-14 10:44:46 +00:00
Amine Khaldi
e79e797ecc [CMAKE]
- Sync the recent crt changes from trunk.
- Improve crt build.

svn path=/branches/cmake-bringup/; revision=48541
2010-08-14 10:41:24 +00:00
Amine Khaldi
eba2955389 [CMAKE]
- I forgot to link to the wine lib instead of its compiled lib (I have it locally to avoid recompiling it).

svn path=/branches/cmake-bringup/; revision=48540
2010-08-14 10:34:01 +00:00
Amine Khaldi
4df8754758 [CMAKE]
- Improve advapi32 build.

svn path=/branches/cmake-bringup/; revision=48539
2010-08-14 10:32:00 +00:00
Amine Khaldi
4fecfbd2b9 [CMAKE]
- Don't include debug.c in libwine.

svn path=/branches/cmake-bringup/; revision=48538
2010-08-14 10:11:52 +00:00
Amine Khaldi
b0552e599d [CMAKE]
- Add an MSVC compatible definition file for msvcrt.
- Temporarily add the msvcrt import library (until RosBE ships with one).
- Group msvcrt wine stubs into msvcrt_stubs.c
- Add msvcrt to build.

svn path=/branches/cmake-bringup/; revision=48537
2010-08-14 10:10:21 +00:00
Amine Khaldi
a171a11523 [CMAKE]
- Add calc to build.

svn path=/branches/cmake-bringup/; revision=48535
2010-08-13 16:55:07 +00:00
Amine Khaldi
93302bce39 [CMAKE]
- Add an MSVC compatible definition file for user32.
- Temporarily add the user32 import library (until RosBE ships with one).
- Group user32 wine stubs into user32_stubs.c
- Add user32 to build.

svn path=/branches/cmake-bringup/; revision=48534
2010-08-13 16:36:38 +00:00
Amine Khaldi
ad7164ff5b [CMAKE]
- Add an MSVC compatible definition file for gdi32.
- Temporarily add the gdi32 import library (until RosBE ships with one).
- Add gdi32 to build.

svn path=/branches/cmake-bringup/; revision=48533
2010-08-13 16:27:15 +00:00
Amine Khaldi
57738417d5 [CMAKE]
- Add an MSVC compatible definition file for advapi32.
- Temporarily add the advapi32 import library (until RosBE ships with one).
- Group advapi32 wine stubs into advapi32_stubs.c
- Add advapi32 to build.

svn path=/branches/cmake-bringup/; revision=48532
2010-08-13 15:41:14 +00:00
Amine Khaldi
f31530ec6b [CMAKE]
- Add an MSVC compatible definition file.
- Temporarily add the kernel32 import library (until RosBE ships with one).
- Group kernel32 wine stubs into kernel32_stubs.c
- Add kernel32 to build.

svn path=/branches/cmake-bringup/; revision=48531
2010-08-13 14:56:34 +00:00
Amine Khaldi
af612f3786 [CMAKE]
- Sync kernel32 with trunk.

svn path=/branches/cmake-bringup/; revision=48530
2010-08-13 14:47:01 +00:00
Amine Khaldi
a62f514cfb [NDK]
- Mark DbgUiWaitStateChange as NTSYSAPI.
[CMAKE]
- Don't create an import library for ntdll, we'll ship with one.
- Temporarily add the ntdll import library (until RosBE ships with one).
- Make the definition file MSVC compatible.
- Include every object file in librtl when linking.
- NTDLL now compiles successfully with the MSVC compatible definition file.

svn path=/branches/cmake-bringup/; revision=48529
2010-08-13 14:12:45 +00:00
Amine Khaldi
684dd7e251 [CMAKE]
- Automatically choose the image base for DLLs.
- Improve RC compiler invocation.
- Add and apply the global linker script.

svn path=/branches/cmake-bringup/; revision=48528
2010-08-13 14:02:58 +00:00
Amine Khaldi
42b5833033 [CMAKE]
- Skip creating makefile rules for pre-processed files (object.i) and assembly files (object.s).
- Improve inclusions.
- Add -fno-set-stack-executable.
- Add C++ Flags.

svn path=/branches/cmake-bringup/; revision=48527
2010-08-13 13:54:13 +00:00
Amine Khaldi
32e98673b9 [CMAKE]
- Set windmc to write binary messages as ascii.

svn path=/branches/cmake-bringup/; revision=48460
2010-08-05 00:43:33 +00:00
Amine Khaldi
7c99b62e1f [CMAKE]
- Move generated precompiled headers to binary folders.
- Enable auto image base for ntdll.
- Update the location of generated PCH files for rtl, ntdll and crt.

svn path=/branches/cmake-bringup/; revision=48459
2010-08-04 19:10:43 +00:00
Sir Richard
fc5ac84ba5 [CMAKE]: Don't prefix DLLs with "lib".
[CMAKE]: Add our libgcc by default.

svn path=/branches/cmake-bringup/; revision=48458
2010-08-04 14:42:05 +00:00
Sir Richard
3930317e12 [CMAKE]: Disable standard C libraries (WIP: Should add libgcc).
[CMAKE]: Set global linker flags we need for all libraries.
[CMAKE]: Set specific NTDLL linker flag.
Thanks to Amine for some of his help.

svn path=/branches/cmake-bringup/; revision=48457
2010-08-04 14:29:24 +00:00
Amine Khaldi
98c16868ae [CMAKE]
- Add games base file.

svn path=/branches/cmake-bringup/; revision=48455
2010-08-04 13:30:27 +00:00
Amine Khaldi
48b65ad43b [CMAKE]
- Add cmdutils base file.

svn path=/branches/cmake-bringup/; revision=48454
2010-08-04 13:16:46 +00:00
Amine Khaldi
ba7d98adba [CMAKE]
- Fix precompiled header support (the pch cleanup phase).
- Improve its use in crt.

svn path=/branches/cmake-bringup/; revision=48452
2010-08-04 10:38:17 +00:00
Sir Richard
ce238e95a4 [CMAKE]: Add missing file.
svn path=/branches/cmake-bringup/; revision=48451
2010-08-04 08:17:04 +00:00
Sir Richard
3bad5d8bbf [CMAKE]: PCH for NTDLL too.
svn path=/branches/cmake-bringup/; revision=48450
2010-08-04 08:16:37 +00:00
Sir Richard
5ef41e4848 [CMAKE]: Closer to a valid NTDLL. Resources and exports are compiled in now.
[CMAKE]: WIP: CMAKE_C_CREATE_SHARED_LIBRARY breakdown + top-level.

svn path=/branches/cmake-bringup/; revision=48449
2010-08-04 07:52:21 +00:00
Sir Richard
807b0907d5 [CMAKE]: Add full support for linking RC files with windres.
svn path=/branches/cmake-bringup/; revision=48448
2010-08-04 07:51:26 +00:00
Sir Richard
d928872abe [CMAKE]: Add support for precompiled headers (this was not fun).
[CMAKE]: Use them in RTL and CRT. Someone needs to add them to the other makefiles.

svn path=/branches/cmake-bringup/; revision=48447
2010-08-04 06:41:07 +00:00
Amine Khaldi
53edf4d8fa [CMAKE]
- Formatting. No code change.

svn path=/branches/cmake-bringup/; revision=48444
2010-08-03 21:58:41 +00:00
Amine Khaldi
fb995372b0 [CMAKE]
- Fix ntdllsys and win32ksys.

svn path=/branches/cmake-bringup/; revision=48443
2010-08-03 21:57:06 +00:00
Amine Khaldi
34db564f0a [CMAKE]
- Improve header inclusions.

svn path=/branches/cmake-bringup/; revision=48442
2010-08-03 21:55:42 +00:00
Amine Khaldi
2939360909 [CMAKE]
- Add IDL generated headers to build.

svn path=/branches/cmake-bringup/; revision=48441
2010-08-03 21:51:59 +00:00
Sir Richard
9e90eaa575 [CMAKE]: NTDLL WIP.
svn path=/branches/cmake-bringup/; revision=48440
2010-08-03 21:39:17 +00:00
Sir Richard
0efbac95d2 [CMAKE]: Don't auto-link with Win32 stuff.
svn path=/branches/cmake-bringup/; revision=48439
2010-08-03 21:38:59 +00:00
Sir Richard
1bd315d9e1 [CMAKE]: Fix CRT.
svn path=/branches/cmake-bringup/; revision=48438
2010-08-03 21:38:39 +00:00
Sir Richard
3b6a29974b [CMAKE]: Use some nice options which will make makefiles simpler regarding includes.
svn path=/branches/cmake-bringup/; revision=48436
2010-08-03 21:12:51 +00:00
Sir Richard
12ccd98393 [CMAKE]: Cant' have comments in mc files.
svn path=/branches/cmake-bringup/; revision=48435
2010-08-03 21:12:16 +00:00
Sir Richard
700aa715cb [CMAKE]: Amine doesn't read man pages, nor does he actually review patches :-)
svn path=/branches/cmake-bringup/; revision=48434
2010-08-03 20:51:47 +00:00
Sir Richard
734491e01c [CMAKE]: Forgot to delete this guy.
svn path=/branches/cmake-bringup/; revision=48431
2010-08-03 16:06:10 +00:00
Sir Richard
3fff31cd81 [CMAKE]: Start working on ntdll.
svn path=/branches/cmake-bringup/; revision=48430
2010-08-03 16:05:53 +00:00
Sir Richard
f0a4bf29e6 [CMAKE]: Simplify more makefiles.
svn path=/branches/cmake-bringup/; revision=48429
2010-08-03 14:56:22 +00:00
Sir Richard
0436f84653 [CMAKE]: Simplify makefiles.
svn path=/branches/cmake-bringup/; revision=48428
2010-08-03 14:54:19 +00:00
Sir Richard
5abcbffcd0 [CMAKE]: Make simple rule for building ASM files.
[CMAKE]: Enable RC support.
[CMAKE]: Stop building tools we won't need.

svn path=/branches/cmake-bringup/; revision=48427
2010-08-03 14:53:12 +00:00
Amine Khaldi
9c529a8548 [CMAKE]
- Richard : Group message headers creation into one macro.

svn path=/branches/cmake-bringup/; revision=48426
2010-08-03 14:29:04 +00:00
Sir Richard
044e663dad [RTL]: Rtl ByteSwap functions should use intrinsics, isntead of assembly code. This should be merged into trunk!
svn path=/branches/cmake-bringup/; revision=48425
2010-08-03 01:56:35 +00:00
Amine Khaldi
3c0baef393 [CMAKE]
- Prepare for porting base modules.
- Add kernel_napi, subsystem_napi and kernel_zw to build.

svn path=/branches/cmake-bringup/; revision=48362
2010-07-29 16:45:01 +00:00
Amine Khaldi
6bdc331638 [CMAKE]
- mingw_common : set_property -> set_target_properties.
- crt : fix target properties.

svn path=/branches/cmake-bringup/; revision=48357
2010-07-29 15:52:00 +00:00
Amine Khaldi
102a9c242e [CMAKE]
- Export more native tools.
- Fix ntdllsys dependency.

svn path=/branches/cmake-bringup/; revision=48356
2010-07-29 15:34:21 +00:00
Amine Khaldi
007ecbd4c1 [CMAKE]
- Add debugsup lib to build.

svn path=/branches/cmake-bringup/; revision=48348
2010-07-29 01:53:31 +00:00
Amine Khaldi
a1fc7877ea [CMAKE]
- Add libcntpr lib to build.

svn path=/branches/cmake-bringup/; revision=48347
2010-07-29 01:37:53 +00:00
Amine Khaldi
cf9ff97d22 [CMAKE]
- Add ntsys to build.

svn path=/branches/cmake-bringup/; revision=48342
2010-07-28 23:21:13 +00:00
Amine Khaldi
666ab7d918 [CMAKE]
- We do have oldnames lib now.
- Add proper psdk dependency for libxml2.

svn path=/branches/cmake-bringup/; revision=48336
2010-07-28 22:01:07 +00:00
Amine Khaldi
e7c36f373f [CMAKE]
- Add mingw libs to build.

svn path=/branches/cmake-bringup/; revision=48335
2010-07-28 21:52:04 +00:00
Amine Khaldi
23735be2c3 [CMAKE]
- Fix stdole2.

svn path=/branches/cmake-bringup/; revision=48333
2010-07-28 17:00:50 +00:00
Amine Khaldi
42fd01caf3 [CMAKE]
- Add sound drivers libs to build.

svn path=/branches/cmake-bringup/; revision=48332
2010-07-28 16:24:00 +00:00
Amine Khaldi
9b289c4a25 [CMAKE]
- Add ip and oskittcp to build.

svn path=/branches/cmake-bringup/; revision=48331
2010-07-28 14:59:02 +00:00
Amine Khaldi
0d72b49f46 [CMAKE]
- We won't be using mkdir to create folders since cmake has a command for it.
- Split nci generated files into separate targets, so that modules can depend on each one of them separately if needed.
- Add win32ksys to build.

svn path=/branches/cmake-bringup/; revision=48329
2010-07-28 12:58:37 +00:00
Amine Khaldi
0de1055529 [CMAKE]
- Add ntdllsys to build.

svn path=/branches/cmake-bringup/; revision=48326
2010-07-28 10:35:37 +00:00
Amine Khaldi
a7d2ad6334 [CMAKE]
- Rename ncitool to nci and mark it as an exported native tool.
- Add nci generated intermediate files to build.

svn path=/branches/cmake-bringup/; revision=48325
2010-07-28 10:13:27 +00:00
Amine Khaldi
4455372650 [CMAKE]
- Add pseh to build.

svn path=/branches/cmake-bringup/; revision=48320
2010-07-28 00:08:02 +00:00
Amine Khaldi
917e248cc6 [CMAKE]
- Add rtl to build.

svn path=/branches/cmake-bringup/; revision=48319
2010-07-27 23:55:52 +00:00
Sir Richard
b2e6f743b6 [CMAKE]: Fix compiler detection, we should check for CMAKE_HOST_SYSTEM_NAME, not CMAKE_SYSTEM_NAME, which is always Windows on a cross-build.
[CMAKE]: PROCESSIR->PROCESSOR

svn path=/branches/cmake-bringup/; revision=48316
2010-07-27 17:36:25 +00:00
Sir Richard
bba1ffd927 [CMAKE]: Watch and learn, Amine...
svn path=/branches/cmake-bringup/; revision=48311
2010-07-27 16:07:39 +00:00
Sir Richard
6a78adc872 [CMAKE]: Too much of bzip2 was being built.
svn path=/branches/cmake-bringup/; revision=48310
2010-07-27 16:03:05 +00:00
Sir Richard
33d9345552 [CMAKE]: Detect correct MinGW compiler on Windows vs Linux/Darwin.
svn path=/branches/cmake-bringup/; revision=48309
2010-07-27 16:00:40 +00:00
Amine Khaldi
94fd5aceb2 [CMAKE]
- Add ext2lib, ntfslib, vfatlib and vfatxlib to build.

svn path=/branches/cmake-bringup/; revision=48304
2010-07-27 13:09:55 +00:00
Amine Khaldi
e16d438002 [CMAKE]
- Add proper dependencies on psdk.
- Parallel build works now.

svn path=/branches/cmake-bringup/; revision=48303
2010-07-27 12:53:24 +00:00
Amine Khaldi
a633674741 [CMAKE]
- cmlib depends on bugcodes.

svn path=/branches/cmake-bringup/; revision=48302
2010-07-27 11:12:09 +00:00
Amine Khaldi
05b70f3ba2 [CMAKE]
- Add idna, normalize and scripts to build.

svn path=/branches/cmake-bringup/; revision=48301
2010-07-27 11:01:39 +00:00
Amine Khaldi
1e82e45439 [CMAKE]
- Separate the resources creation into several targets. With this we're able to set proper dependencies on them selectively, and not as a whole.
- Make chew and csq, as a result, depend only on bugcodes.

svn path=/branches/cmake-bringup/; revision=48297
2010-07-27 01:36:55 +00:00
Amine Khaldi
401329a84b [CMAKE]
- Add rsym to build.
- Add fslib, nls and pseh placeholders.
- Make crt depend on psdk interfaces.

svn path=/branches/cmake-bringup/; revision=48296
2010-07-27 01:32:49 +00:00
Amine Khaldi
1bdc83e770 [CMAKE]
- No need to check these drivers for CMAKE_CROSSCOMPILING.

svn path=/branches/cmake-bringup/; revision=48295
2010-07-27 00:51:21 +00:00
Amine Khaldi
d667e37083 [CMAKE]
- Rename MACRO_ADD_INTERFACES to MACRO_ADD_PSDK_INTERFACES, HEADERS to PSDK_HEADERS.
- Change the psdk target name from build_headers to psdk.

svn path=/branches/cmake-bringup/; revision=48294
2010-07-27 00:49:52 +00:00
Amine Khaldi
5648d2bc9d [CMAKE]
- Add dxsdk interfaces to build.

svn path=/branches/cmake-bringup/; revision=48293
2010-07-27 00:48:07 +00:00
Amine Khaldi
486a2d0e81 [CMAKE]
- Add chew and csq to build.

svn path=/branches/cmake-bringup/; revision=48285
2010-07-26 18:49:24 +00:00
Ziliang Guo
147875c573 [CMAKE]
-Use hinting in freetype now that patent has expired.

svn path=/branches/cmake-bringup/; revision=48284
2010-07-26 18:21:09 +00:00
Amine Khaldi
4df268ef33 - Fix freetype.
svn path=/branches/cmake-bringup/; revision=48283
2010-07-26 18:09:20 +00:00
Ziliang Guo
ac666a6d0a [CMAKE]
-Add freetype to build.

svn path=/branches/cmake-bringup/; revision=48282
2010-07-26 17:59:46 +00:00
Amine Khaldi
f65e75e216 [CMAKE]
- Add icu4ros to build.

svn path=/branches/cmake-bringup/; revision=48281
2010-07-26 16:39:47 +00:00
Sir Richard
8efcb1c052 [CMAKE]: Add almost all the 3rdparty libs. The remaining ones are more annoying and will require more handwriting. I'm letting someone else write those out.
svn path=/branches/cmake-bringup/; revision=48270
2010-07-26 00:38:25 +00:00
Sir Richard
8235c4622d [CMAKE]: Build all the remaining host tools/libraries (I think).
[CMAKE]: Fix definitions for some libraries.
[CMAKE]: Build host tools with appropriate flags.

svn path=/branches/cmake-bringup/; revision=48268
2010-07-25 23:54:32 +00:00
Sir Richard
02b1c8a4e2 [CMAKE]: Add wmc to host tools, and export it as native-wmc.
[CMAKE]: Add a makelist to build the mc->headers as one target.
[CMAKE]: Fix the IDL rule to build all IDLs as one target.
[CMAKE]: Build a whole lot more libraries.

svn path=/branches/cmake-bringup/; revision=48267
2010-07-25 23:05:32 +00:00
Sir Richard
6907bbcc2f [CMAKE]: Add standard ReactOS compiler flags, and organize defines nicely too.
svn path=/branches/cmake-bringup/; revision=48266
2010-07-25 22:16:45 +00:00
Sir Richard
4a961b42be [CMAKE]: Build more stuff.
svn path=/branches/cmake-bringup/; revision=48264
2010-07-25 21:24:00 +00:00
Sir Richard
3b4b183c21 [CMAKE]: CRT can now be built! Our first cross-compile target.
[CMAKE]: Next steps should be to bring all the compiler settings/defines that aren't yet being used, to add per-architecture file tracking, and to enable precompiled header support.

svn path=/branches/cmake-bringup/; revision=48262
2010-07-25 20:28:17 +00:00
Sir Richard
13187ac941 [CMAKE]: Make cross-build work on all systems. RosBE Already is nice and adds itself to the path. CMAKE is magical and finds the RosBE compilers.
svn path=/branches/cmake-bringup/; revision=48261
2010-07-25 20:07:19 +00:00
Sir Richard
b50bbda653 [CMAKE]: Use some CMAKE magic to have widl defined as a "host tool", and make the cross build CMAKE import it (as native-widl). Cross-build CMAKE will then use "native-widl" to build the header/IDL files in the cross-output-directory, instead of the host-output-directory.
[CMAKE]: Add generated headers to the include path.

svn path=/branches/cmake-bringup/; revision=48260
2010-07-25 20:04:16 +00:00
Sir Richard
b2ab6100e7 [CMAKE]: Ignore "build" directory.
[CMAKE]: Fix build.
[CMAKE]: Generate headers outside the source tree, into intermediate directories.

svn path=/branches/cmake-bringup/; revision=48259
2010-07-25 19:27:03 +00:00
Sir Richard
d51dc0e932 [CMAKE]: Start supporting building the CRT.
svn path=/branches/cmake-bringup/; revision=48258
2010-07-25 19:18:15 +00:00
Sir Richard
844fdca239 [CMAKE]: Add a makefile to build the IDL files. Not perfect, but gets the job done.
[CMAKE]: Add a mignw32 toolchain file, right now it's pretty hacked for my system only, but it works.

svn path=/branches/cmake-bringup/; revision=48256
2010-07-25 17:03:07 +00:00
Sir Richard
50c679fa37 [CMAKE]: Add make lists for the core host tools/libraries, and add a command to generate the build.h header. There's little fixes needed here and there, but this should be a good template for people to see how easy CMake is. This will build all the wine tools/libraries, nci, gendib, rsym, etc...
svn path=/branches/cmake-bringup/; revision=48244
2010-07-25 05:53:51 +00:00
Sir Richard
a9581208d6 [CMAKE]: Remove legacy makefiles.
svn path=/branches/cmake-bringup/; revision=48242
2010-07-25 05:23:30 +00:00
Amine Khaldi
62ff6c86b7 - Delete rbuild and the rbuild files.
svn path=/branches/cmake-bringup/; revision=48237
2010-07-24 19:21:04 +00:00
Amine Khaldi
c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00
23025 changed files with 440141 additions and 1333029 deletions

208
CMakeLists.txt Normal file
View File

@@ -0,0 +1,208 @@
cmake_minimum_required(VERSION 2.6)
if(${CMAKE_VERSION} VERSION_GREATER "2.8.3")
# Shadow cmake provided modules
cmake_policy(SET CMP0017 OLD)
endif()
project(REACTOS)
#versioning
include(include/reactos/version.cmake)
# Don't escape preprocessor definition values added via add_definitions
cmake_policy(SET CMP0005 OLD)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
set(CMAKE_SKIP_PREPROCESSED_SOURCE_RULES TRUE)
set(CMAKE_SKIP_ASSEMBLY_SOURCE_RULES TRUE)
set(CMAKE_COLOR_MAKEFILE OFF)
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
if(NOT ARCH)
set(ARCH i386)
endif()
string(TOLOWER ${ARCH} ARCH)
# Compile options
if(ARCH MATCHES i386)
include(config.cmake)
elseif(ARCH MATCHES amd64)
include(config-amd64.cmake)
elseif(ARCH MATCHES arm)
include(config-arm.cmake)
endif()
add_definitions(-D__REACTOS__)
if(NOT CMAKE_CROSSCOMPILING)
add_definitions(-DTARGET_${ARCH})
if(MSVC)
add_definitions(-Dinline=__inline)
else()
add_definitions(-fshort-wchar)
endif()
include_directories(
${REACTOS_SOURCE_DIR}/tools/unicode
include
include/host
${REACTOS_BINARY_DIR}/include)
add_subdirectory(tools)
add_subdirectory(lib)
if(NOT MSVC)
export(TARGETS widl gendib cabman cdmake mkhive spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
else()
export(TARGETS gendib cabman cdmake mkhive spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
endif()
else()
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
# Do some cleanup
file(REMOVE
${REACTOS_BINARY_DIR}/dependencies.graphml
${REACTOS_BINARY_DIR}/boot/ros_livecd.txt
${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_cab.txt
${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
endif()
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
include(${IMPORT_EXECUTABLES})
# Compiler specific definitions and macros
if(MSVC)
include(msc.cmake)
else()
include(gcc.cmake)
endif()
# Generic macros
include(CMakeMacros.cmake)
# IDL macros for widl/midl
include(cmake/idl-support.cmake)
#Some useful variables
set(LIVECD_DIR "${REACTOS_BINARY_DIR}/boot/livecd")
set(BOOTCD_DIR "${REACTOS_BINARY_DIR}/boot/bootcd")
# Activate support for assembly source files
enable_language(ASM)
# Activate language support for resource files
enable_language(RC)
if(DBG)
add_definitions(-DDBG=1 -D_SEH_ENABLE_TRACE)
endif()
if(KDBG)
add_definitions(-DKDBG=1)
endif()
if(_WINKD_)
add_definitions(-D_WINKD_=1)
endif()
# Version Options
add_definitions(-DWINVER=0x502
-D_WIN32_IE=0x600
-D_WIN32_WINNT=0x502
-D_WIN32_WINDOWS=0x502
-D_SETUPAPI_VER=0x502)
# Arch Options
if(ARCH MATCHES i386)
add_definitions(-D_M_IX86 -D_X86_ -D__i386__)
elseif(ARCH MATCHES amd64)
add_definitions(-D_M_AMD64 -D_AMD64_ -D__x86_64__ -D_WIN64)
elseif(ARCH MATCHES arm)
# _M_ARM is already defined by toolchain
add_definitions(-D_ARM_ -D__arm__)
endif()
# Other
if(ARCH MATCHES i386)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T)
elseif(ARCH MATCHES amd64)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX)
elseif(ARCH MATCHES arm)
add_definitions(-DUSE_COMPILER_EXCEPTIONS)
endif()
include_directories(
include
include/psdk
include/dxsdk
${REACTOS_BINARY_DIR}/include
${REACTOS_BINARY_DIR}/include/dxsdk
${REACTOS_BINARY_DIR}/include/psdk
${REACTOS_BINARY_DIR}/include/reactos
include/crt
include/ddk
include/ndk
include/reactos
include/reactos/libs)
if(ARCH MATCHES arm)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/arm)
endif()
if(MSVC)
include_directories(include/crt/msc)
else()
include_directories(include/crt/mingw32)
endif()
add_dependency_header()
add_subdirectory(include/psdk)
add_subdirectory(include/dxsdk)
add_subdirectory(include/reactos/idl)
add_subdirectory(include/reactos/wine)
add_subdirectory(include/reactos/mc)
add_subdirectory(include/asm)
include(baseaddress.cmake)
add_subdirectory(base)
add_subdirectory(boot)
add_subdirectory(dll)
add_subdirectory(drivers)
add_subdirectory(hal)
add_subdirectory(lib)
add_subdirectory(media)
add_subdirectory(modules)
add_subdirectory(ntoskrnl)
add_subdirectory(subsystems)
file(MAKE_DIRECTORY ${REACTOS_BINARY_DIR}/include/reactos)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/importlibs)
#bootcd and livecd
include(ros_cd.cmake)
add_dependency_footer()
endif()

161
CMakeMacros.cmake Normal file
View File

@@ -0,0 +1,161 @@
if (NOT MSVC)
macro(CreateBootSectorTarget _target_name _asm_file _object_file)
get_filename_component(OBJECT_PATH ${_object_file} PATH)
get_filename_component(OBJECT_NAME ${_object_file} NAME)
file(MAKE_DIRECTORY ${OBJECT_PATH})
get_directory_property(defines COMPILE_DEFINITIONS)
get_directory_property(includes INCLUDE_DIRECTORIES)
foreach(arg ${defines})
set(result_defs ${result_defs} -D${arg})
endforeach()
foreach(arg ${includes})
set(result_incs -I${arg} ${result_incs})
endforeach()
add_custom_command(
OUTPUT ${_object_file}
COMMAND nasm -o ${_object_file} ${result_incs} ${result_defs} -f bin ${_asm_file}
DEPENDS ${_asm_file})
set_source_files_properties(${_object_file} PROPERTIES GENERATED TRUE)
add_custom_target(${_target_name} ALL DEPENDS ${_object_file})
add_minicd(${_object_file} loader ${OBJECT_NAME})
endmacro()
else()
macro(CreateBootSectorTarget _target_name _asm_file _object_file)
endmacro()
endif()
macro(add_minicd_target _targetname _dir) # optional parameter: _nameoncd
if("${ARGN}" STREQUAL "")
get_target_property(FILENAME ${_targetname} LOCATION)
get_filename_component(_nameoncd ${FILENAME} NAME)
else()
set(_nameoncd ${ARGN})
endif()
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt "${_targetname}\t${_dir}\t${_nameoncd}\n")
endmacro()
macro(add_minicd FILENAME _dir _nameoncd)
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_minicd.txt "${FILENAME}\t${_dir}\t${_nameoncd}\n")
endmacro()
macro(set_cpp)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
set(IS_CPP 1)
add_definitions(
-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
-DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
endmacro()
macro(add_livecd_target _targetname _dir )# optional parameter : _nameoncd
if("${ARGN}" STREQUAL "")
get_target_property(FILENAME ${_targetname} LOCATION)
get_filename_component(_nameoncd ${FILENAME} NAME)
else()
set(_nameoncd ${ARGN})
endif()
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt "${_targetname}\t${_dir}\t${_nameoncd}\n")
endmacro()
macro(add_livecd FILENAME _dir)# optional parameter : _nameoncd
if("${ARGN}" STREQUAL "")
get_filename_component(_nameoncd ${FILENAME} NAME)
else()
set(_nameoncd ${ARGN})
endif()
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_livecd.txt "${FILENAME}\t${_dir}\t${_nameoncd}\n")
endmacro()
macro(cab_to_dir _dir_num _var_name)
# 1 = system32
# 2 = system32\drivers
# 3 = Fonts
# 4 =
# 5 = system32\drivers\etc
# 6 = inf
# 7 = bin
# 8 = media
if(${_dir_num} STREQUAL "1")
set(${_var_name} "reactos/system32")
elseif(${_dir_num} STREQUAL "2")
set(${_var_name} "reactos/system32/drivers")
elseif(${_dir_num} STREQUAL "3")
set(${_var_name} "reactos/fonts")
elseif(${_dir_num} STREQUAL "4")
set(${_var_name} "reactos")
elseif(${_dir_num} STREQUAL "5")
set(${_var_name} "reactos/system32/drivers/etc")
elseif(${_dir_num} STREQUAL "6")
set(${_var_name} "reactos/inf")
elseif(${_dir_num} STREQUAL "7")
set(${_var_name} "reactos/bin")
elseif(${_dir_num} STREQUAL "8")
set(${_var_name} "reactos/system32/drivers")
else()
message(FATAL_ERROR "Wrong directory ${_dir_num}")
endif()
endmacro()
macro(add_cab_target _targetname _num )
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt "${_targetname}\t${_num}\n")
cab_to_dir(${_num} _dir)
add_livecd_target(${_targetname} ${_dir})
endmacro()
macro(add_cab FILENAME _num)
file(APPEND ${REACTOS_BINARY_DIR}/boot/ros_cab.txt "${FILENAME}\t${_num}\n")
cab_to_dir(${_num} _dir)
add_livecd(${FILENAME} ${_dir})
endmacro()
macro(add_dependency_node _node)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_node} TYPE)
if(_type MATCHES SHARED_LIBRARY)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <node id=\"${_node}\"/>\n")
endif()
endif()
endmacro()
macro(add_dependency_edge _source _target)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_source} TYPE)
if(_type MATCHES SHARED_LIBRARY)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <edge source=\"${_source}\" target=\"${_target}\"/>\n")
endif()
endif()
endmacro()
macro(add_dependency_header)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<graphml>\n <graph id=\"ReactOS dependencies\" edgedefault=\"directed\">\n")
add_dependency_node(ntdll)
endmacro()
macro(add_dependency_footer)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " </graph>\n</graphml>\n")
endmacro()
macro(add_message_headers)
foreach(_in_FILE ${ARGN})
get_filename_component(FILE ${_in_FILE} NAME_WE)
macro_mc(${FILE})
add_custom_command(
OUTPUT ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h
COMMAND ${COMMAND_MC}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.mc)
set_source_files_properties(
${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc
PROPERTIES GENERATED TRUE)
add_custom_target(${FILE} ALL DEPENDS ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc)
endforeach()
endmacro()

View File

@@ -58,6 +58,7 @@ Paolo Pantaleo <paolopan@freemail.it>
Peter Ward <dralnix@gmail.com>
Pierre Schweitzer <pschweitzer@reactos.org>
Phillip Susi <phreak@iag.net>
Rafal Harabien <rafalh@reactos.org>
Rex Jolliff <rex@lvcablemodem.com>
Richard Campbell <betam4x@gmail.com>
Robert Bergkvist <fragdance@hotmail.com>

10
PreLoad.cmake Normal file
View File

@@ -0,0 +1,10 @@
# small trick to get the real source directory at this stage
STRING(REPLACE "/PreLoad.cmake" "" REACTOS_HOME_DIR ${CMAKE_CURRENT_LIST_FILE})
#message("/PreLoad.cmake ... ${REACTOS_HOME_DIR}")
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/cmake" CACHE INTERNAL "")
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")

0
reactos/apistatus.lst → apistatus.lst Executable file → Normal file
View File

6
base/CMakeLists.txt Normal file
View File

@@ -0,0 +1,6 @@
add_subdirectory(applications)
add_subdirectory(services)
add_subdirectory(setup)
add_subdirectory(shell)
add_subdirectory(system)

View File

@@ -0,0 +1,37 @@
add_subdirectory(cacls)
add_subdirectory(calc)
add_subdirectory(charmap)
add_subdirectory(cmdutils)
add_subdirectory(control)
add_subdirectory(dxdiag)
add_subdirectory(extrac32)
add_subdirectory(findstr)
add_subdirectory(fontview)
add_subdirectory(games)
add_subdirectory(hh)
add_subdirectory(iexplore)
add_subdirectory(kbswitch)
add_subdirectory(logoff)
add_subdirectory(magnify)
add_subdirectory(mmc)
add_subdirectory(mplay32)
add_subdirectory(msconfig)
add_subdirectory(mscutils)
add_subdirectory(mstsc)
add_subdirectory(network)
add_subdirectory(notepad)
add_subdirectory(paint)
add_subdirectory(rapps)
add_subdirectory(regedit)
add_subdirectory(regedt32)
add_subdirectory(sc)
add_subdirectory(screensavers)
add_subdirectory(shutdown)
#add_subdirectory(sndrec32)
add_subdirectory(sndvol32)
add_subdirectory(taskmgr)
add_subdirectory(winhlp32)
add_subdirectory(winver)
add_subdirectory(wordpad)
add_subdirectory(write)

View File

@@ -0,0 +1,14 @@
set_unicode()
list(APPEND SOURCE cacls.c cacls.rc)
add_executable(cacls
${CMAKE_CURRENT_BINARY_DIR}/cacls_precomp.h.gch
${SOURCE})
add_pch(cacls ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(cacls win32cui)
add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32)
add_cab_target(cacls 1)

View File

@@ -0,0 +1,79 @@
/*
* German language file by Daniel Reimer <EmuandCo> 2006-06-15
*/
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "<22>ndringer fil-ACL'er (Access Control List) eller viser dem.\n\n\
CACLS Filenavn [/T] [/E] [/C] [/G Bruger:Adgang] [/R Bruger [...]]\n\
[/P Bruger:Adgang [...]] [/D Bruger [...]]\n\
Filnavn Viser ACL'er for angivet filer.\n\
/T <20>ndre ACL'er for angivene filer i mapper\n\
og alle undermapper.\n\
/E Bearbejde ACL i stedet for at erstatte.\n\
/C Forandre ACL'er ved adgangfejl videre.\n\
/G Bruger:Adgang Tillade angivene adgangsformer.\n\
Adgang kan v<>re: R l<>se\n\
W skrive\n\
C <20>ndre (At skrive)\n\
F Fuld adgang\n\
/R Bruger Fjerne adgangsrette af brugeren (kun gyldig med /E).\n\
/P Bruger:Adgang Erstatte adgangsretterne af brugeren.\n\
Adgang kan v<>re: N Ingen\n\
R L<>se\n\
W Skrive\n\
C <20>ndre (Skrive)\n\
F fuld adgang\n\
/D Bruger Forbyde adgang for brugeren.\n\
Mellemrum(Wildcards) bliver underst<73>ttet i filenavn.\n\
Man kan angive flere bruger i en kommando.\n\n\
Forkortninger:\n\
CI - Container overtagelse.\n\
ACE-Bidragen bliver overtaget fra mapperne.\n\
OI - Objekt overtagelse.\n\
ACE-Bidragen bliver overtaget fra filerne.\n\
IO - Kun overtagelse.\n\
ACE'ens egenskab passer ikke sammen med\n\
de aktuelle filer/mapper.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END

View File

@@ -0,0 +1,74 @@
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "Muestra o modifica la lista de control de accesos (ACLs) de los archivos\n\n\
CACLS archivo [/T] [/E] [/C] [/G user:perm [...]] [/R usuario [...]]\n\
[/P user:perm [...]] [/D usuario [...]]\n\
archivo Mostrar ACLs.\n\
/T Cambia ACLs de los archivos especificados en\n\
el directorio actual y todos sus subdirectorios.\n\
/E Edita la ACL en lugar de reemplazarla.\n\
/C Contin<69>a en caso de errores de acceso.\n\
/G user:perm Da los derechos de acceso al usuario especificado.\n\
Perm puede ser: R Lectura\n\
W Escritura\n\
C Modificaci<63>n (Escritura)\n\
F Control total\n\
/R usuario Revoca los derechos de acceso al usuario especificado (unicamente v<>lido con /E).\n\
/P user:perm Reemplaza los derechos de acceso del usuario especificado.\n\
Perm puede ser: N Nada\n\
R Lectura\n\
W Escritura\n\
C Modificaci<63>n (Escritura)\n\
F Control total\n\
/D usuario Revoca el acceso al usuario especificado.\n\
Es posible usar comodines para especificar m<>s de un archivo por comando.\n\
Se puede especificar m<>s de un usuario por comando.\n\n\
Abreviaciones:\n\
CI - Herencia del contenedor.\n\
ACE ser<65> heredado a los directorios.\n\
OI - Herencia del objeto.\n\
ACE sera heredado a los archivos.\n\
IO - Herencia sola.\n\
ACE no se aplicar<61> al archivo/directorio actual.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENEGA)"
IDS_SPECIAL_ACCESS, "(acceso especial:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END

View File

@@ -0,0 +1,83 @@
/*
* translated by TestamenT
* testament@users.sourceforge.net
* https://sourceforge.net/projects/reactospl
* updated by Saibamen - Adam Stachowicz (saibamenppl@gmail.com) (Apr, 2011)
*/
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_HELP, "Poka<6B> lub modyfikuj list<73> kontroli dost<73>pu (Access Control List) plik<69>w\n\n\
CACLS nazwa pliku [/T] [/E] [/C] [/G u<>ytkownik:dost<73>p [...]] [/R u<>ytkownik [...]]\n\
[/P u<>ytkownik:dost<73>p [...]] [/D u<>ytkownik [...]]\n\
nazwa pliku Poka<6B> ACL.\n\
/T Zmiana ACL okre<72>lonych plik<69>w w\n\
aktualnym katalogu i wszystkich podkatalogach.\n\
/E Umo<6D>liwia edycj<63> listy ACL zamiast jej zamiany.\n\
/C Kontynuuje mimo b<><62>d<EFBFBD>w braku dost<73>pu.\n\
/G u<>ytkownik:dost<73>p Przyznanie okre<72>lonemu u<>ytkownikowi prawa dost<73>pu.\n\
Dost<73>p ma by<62> tylko do:\n\
R Odczytu\n\
W Zapisu\n\
C Zmiany (zapis)\n\
F Pe<50>en dost<73>p\n\
/R u<>ytkownik Odwo<77>aj okre<72>lonemu u<>ytkownikowi prawa dost<73>pu (wa<77>ny tylko z /E).\n\
/P u<>ytkownik:dost<73>p Zast<73>p okre<72>lonemu u<>ytkownikowi prawa dost<73>pu.\n\
Dost<73>p ma by<62> tylko do:\n\
N <20>adnego\n\
R Odczytu\n\
W Zapisu\n\
C Zmiany (zapis)\n\
F Pe<50>en dost<73>p\n\
/D u<>ytkownik Odbiera prawa dost<73>pu okre<72>lonemu u<>ytkownikowi.\n\
W jednym poleceniu mo<6D>na okre<72>li<6C> wiele plik<69>w, u<>ywaj<61>c symboli wieloznacznych.\n\
W jednym poleceniu mo<6D>na okre<72>li<6C> wielu u<>ytkownik<69>w.\n\n\
Skr<EFBFBD>ty:\n\
CI - Dziedziczenie kontenera.\n\
CI - ACE b<>dzie dziedziczony przez katalogi.\n\
OI - Dziedziczenie obiektu.\n\
ACE b<>dzie dziedziczony przez pliki.\n\
IO - Tylko dziedziczenie.\n\
ACE nie odnosi si<73> do bie<69><65>cego pliku / katalogu.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
END

View File

@@ -0,0 +1,25 @@
#include <windows.h>
#include "resource.h"
#include "lang/bg-BG.rc"
#include "lang/es-ES.rc"
#include "lang/ca-ES.rc"
#include "lang/cs-CZ.rc"
#include "lang/da-DA.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"
#include "lang/fr-FR.rc"
#include "lang/id-ID.rc"
#include "lang/it-IT.rc"
#include "lang/ja-JP.rc"
#include "lang/ko-KR.rc"
#include "lang/no-NO.rc"
#include "lang/nl-NL.rc"
#include "lang/pl-PL.rc"
#include "lang/pt-BR.rc"
#include "lang/ru-RU.rc"
#include "lang/sk-SK.rc"
#include "lang/uk-UA.rc"
#include "lang/zh-CN.rc"
#include "lang/zh-TW.rc"

View File

@@ -0,0 +1,21 @@
set_unicode()
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
add_executable(calc
about.c
convert.c
function.c
rpn.c
utl.c
winmain.c
resource.rc)
set_module_type(calc win32gui)
add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
if(MSVC)
add_importlibs(calc ntdll)
endif()
add_cab_target(calc 1)

View File

@@ -0,0 +1,740 @@
/*
* translated by Caemyr - Olaf Siejka (Feb, Jun 2008)
* Use ReactOS forum PM or IRC to contact me
* http://www.reactos.org
* IRC: irc.freenode.net #reactos-pl;
* updated by Saibamen - Adam Stachowicz (saibamenppl@gmail.com) (Apr, 2011)
*/
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
// Dialog
IDD_DIALOG_SCIENTIFIC DIALOGEX 0, 0, 316, 161
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Kalkulator ReactOS"
MENU IDR_MENU_SCIENTIFIC_1
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "",IDC_STATIC,4,16,132,21
CONTROL "Hex",IDC_RADIO_HEX,"Button",BS_AUTORADIOBUTTON,8,24,29,10
CONTROL "Dec",IDC_RADIO_DEC,"Button",BS_AUTORADIOBUTTON,40,24,29,10
CONTROL "Oct",IDC_RADIO_OCT,"Button",BS_AUTORADIOBUTTON,72,24,27,10
CONTROL "Bin",IDC_RADIO_BIN,"Button",BS_AUTORADIOBUTTON,100,24,26,10
GROUPBOX "",IDC_STATIC,4,36,76,21
CONTROL "Inv",IDC_CHECK_INV,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,8,44,26,10
CONTROL "Hyp",IDC_CHECK_HYP,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,40,44,29,10
CTEXT "",IDC_TEXT_PARENT,84,40,24,17,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
CTEXT "",IDC_TEXT_MEMORY,112,40,24,17,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
PUSHBUTTON "Sta",IDC_BUTTON_STA,4,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Ave",IDC_BUTTON_AVE,4,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | WS_DISABLED | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Sum",IDC_BUTTON_SUM,4,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | WS_DISABLED | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "s",IDC_BUTTON_S,4,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | WS_DISABLED | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Dat",IDC_BUTTON_DAT,4,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | WS_DISABLED | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "F-E",IDC_BUTTON_FE,38,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "dms",IDC_BUTTON_DMS,38,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "sin",IDC_BUTTON_SIN,38,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "cos",IDC_BUTTON_COS,38,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "tan",IDC_BUTTON_TAN,38,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "(",IDC_BUTTON_LEFTPAR,64,64,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Exp",IDC_BUTTON_EXP,64,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "x^y",IDC_BUTTON_XeY,64,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "x^2",IDC_BUTTON_Xe2,64,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "x^3",IDC_BUTTON_Xe3,64,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON ")",IDC_BUTTON_RIGHTPAR,90,64,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "ln",IDC_BUTTON_LN,90,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "log",IDC_BUTTON_LOG,90,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "n!",IDC_BUTTON_NF,90,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "1/x",IDC_BUTTON_RX,90,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "MC",IDC_BUTTON_MC,124,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "MR",IDC_BUTTON_MR,124,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "MS",IDC_BUTTON_MS,124,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "M+",IDC_BUTTON_MP,124,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "pi",IDC_BUTTON_PI,124,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "7",IDC_BUTTON_7,158,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "4",IDC_BUTTON_4,158,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "1",IDC_BUTTON_1,158,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "0",IDC_BUTTON_0,158,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "A",IDC_BUTTON_A,158,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "8",IDC_BUTTON_8,184,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "5",IDC_BUTTON_5,184,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "2",IDC_BUTTON_2,184,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "+/-",IDC_BUTTON_SIGN,184,121,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "B",IDC_BUTTON_B,184,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "9",IDC_BUTTON_9,210,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "6",IDC_BUTTON_6,210,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "3",IDC_BUTTON_3,210,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON ",",IDC_BUTTON_DOT,210,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "C",IDC_BUTTON_C,210,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "/",IDC_BUTTON_DIV,236,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "*",IDC_BUTTON_MULT,236,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "-",IDC_BUTTON_SUB,236,102,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "+",IDC_BUTTON_ADD,236,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "D",IDC_BUTTON_D,236,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Mod",IDC_BUTTON_MOD,262,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Or",IDC_BUTTON_OR,262,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Lsh",IDC_BUTTON_LSH,262,102,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "=",IDC_BUTTON_EQU,262,121,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "E",IDC_BUTTON_E,262,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "And",IDC_BUTTON_AND,288,64,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Xor",IDC_BUTTON_XOR,288,83,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Not",IDC_BUTTON_NOT,288,102,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Int",IDC_BUTTON_INT,288,121,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "F",IDC_BUTTON_F,288,140,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
GROUPBOX "",IDC_STATIC,140,16,172,21
CONTROL "Qword",IDC_RADIO_QWORD,"Button",BS_AUTORADIOBUTTON |
NOT WS_VISIBLE,148,24,37,10
CONTROL "Dword",IDC_RADIO_DWORD,"Button",BS_AUTORADIOBUTTON |
NOT WS_VISIBLE,188,24,37,10
CONTROL "Word",IDC_RADIO_WORD,"Button",BS_AUTORADIOBUTTON | NOT
WS_VISIBLE,232,24,33,10
CONTROL "Bajt",IDC_RADIO_BYTE,"Button",BS_AUTORADIOBUTTON | NOT
WS_VISIBLE,272,24,30,10
CONTROL "Stopni",IDC_RADIO_DEG,"Button",BS_AUTORADIOBUTTON,148,24,
42,10
CONTROL "Radian<61>w",IDC_RADIO_RAD,"Button",BS_AUTORADIOBUTTON,192,
24,42,10
CONTROL "Gradian<61>w",IDC_RADIO_GRAD,"Button",BS_AUTORADIOBUTTON,
236,24,44,10
PUSHBUTTON "C",IDC_BUTTON_CANC,272,40,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "CE",IDC_BUTTON_CE,228,40,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Wstecz",IDC_BUTTON_BACK,184,40,40,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
RTEXT "",IDC_TEXT_OUTPUT,4,4,308,12,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
DEFPUSHBUTTON "",IDC_BUTTON_FOCUS,0,0,5,5, NOT WS_VISIBLE
END
IDD_DIALOG_STANDARD DIALOGEX 0, 0, 172, 127
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Kalkulator ReactOS"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
PUSHBUTTON "C",IDC_BUTTON_CANC,128,24,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "CE",IDC_BUTTON_CE,84,24,40,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Back",IDC_BUTTON_BACK,40,24,40,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
RTEXT "",IDC_TEXT_OUTPUT,4,4,164,12,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
PUSHBUTTON "7",IDC_BUTTON_7,40,48,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "4",IDC_BUTTON_4,40,67,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "1",IDC_BUTTON_1,40,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "0",IDC_BUTTON_0,40,105,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "8",IDC_BUTTON_8,66,48,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "5",IDC_BUTTON_5,66,67,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "2",IDC_BUTTON_2,66,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "+/-",IDC_BUTTON_SIGN,66,105,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "9",IDC_BUTTON_9,92,48,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "6",IDC_BUTTON_6,92,67,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "3",IDC_BUTTON_3,92,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON ",",IDC_BUTTON_DOT,92,105,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "/",IDC_BUTTON_DIV,118,48,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "*",IDC_BUTTON_MULT,118,67,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "-",IDC_BUTTON_SUB,118,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "+",IDC_BUTTON_ADD,118,105,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Pierw",IDC_BUTTON_SQRT,144,48,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "%",IDC_BUTTON_PERCENT,144,67,24,17,BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "1/x",IDC_BUTTON_RX,144,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "=",IDC_BUTTON_EQU,144,105,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
CTEXT "",IDC_TEXT_MEMORY,4,24,24,17,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
PUSHBUTTON "MC",IDC_BUTTON_MC,4,48,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "MR",IDC_BUTTON_MR,4,67,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "MS",IDC_BUTTON_MS,4,86,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "M+",IDC_BUTTON_MP,4,105,24,17,BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
DEFPUSHBUTTON "",IDC_BUTTON_FOCUS,0,0,5,5, NOT WS_VISIBLE
END
IDD_DIALOG_CONVERSION DIALOGEX 0, 0, 320, 130
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Kalkulator ReactOS"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg"
BEGIN
PUSHBUTTON "Konwersja",IDC_BUTTON_CONVERT,35,105,76,17
COMBOBOX IDC_COMBO_CATEGORY,4,31,140,168,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP | CBS_SORT
LTEXT "Kategoria:",IDC_STATIC,4,20,56,8
COMBOBOX IDC_COMBO_FROM,4,60,140,168,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP | CBS_SORT
LTEXT "Konwertuj z:",IDC_STATIC,4,49,56,8
COMBOBOX IDC_COMBO_TO,4,87,140,168,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP | CBS_SORT
LTEXT "Konwertuj na:",IDC_STATIC,4,76,56,8
CONTROL "C",IDC_BUTTON_CANC,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,276,24,40,17
CONTROL "CE",IDC_BUTTON_CE,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,232,24,40,17
CONTROL "Wstecz",IDC_BUTTON_BACK,"Button",BS_OWNERDRAW |
BS_CENTER | BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,24,
40,17
RTEXT "",IDC_TEXT_OUTPUT,4,4,312,12,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
CONTROL "7",IDC_BUTTON_7,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,48,24,17
CONTROL "4",IDC_BUTTON_4,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,67,24,17
CONTROL "1",IDC_BUTTON_1,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,86,24,17
CONTROL "0",IDC_BUTTON_0,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,188,105,24,17
CONTROL "8",IDC_BUTTON_8,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,214,48,24,17
CONTROL "5",IDC_BUTTON_5,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,214,67,24,17
CONTROL "2",IDC_BUTTON_2,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,214,86,24,17
CONTROL "+/-",IDC_BUTTON_SIGN,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,214,105,24,17
CONTROL "9",IDC_BUTTON_9,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,240,48,24,17
CONTROL "6",IDC_BUTTON_6,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,240,67,24,17
CONTROL "3",IDC_BUTTON_3,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,240,86,24,17
CONTROL ",",IDC_BUTTON_DOT,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,240,105,24,17
CONTROL "/",IDC_BUTTON_DIV,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,266,48,24,17
CONTROL "*",IDC_BUTTON_MULT,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,266,67,24,17
CONTROL "-",IDC_BUTTON_SUB,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,266,86,24,17
CONTROL "+",IDC_BUTTON_ADD,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,266,105,24,17
CONTROL "Pierw",IDC_BUTTON_SQRT,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,292,48,24,17
CONTROL "%",IDC_BUTTON_PERCENT,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,292,67,24,17
CONTROL "1/x",IDC_BUTTON_RX,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,292,86,24,17
CONTROL "=",IDC_BUTTON_EQU,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,292,105,24,17
CTEXT "",IDC_TEXT_MEMORY,152,24,24,17,SS_CENTERIMAGE,
WS_EX_CLIENTEDGE
CONTROL "MC",IDC_BUTTON_MC,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,152,48,24,17
CONTROL "MR",IDC_BUTTON_MR,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,152,67,24,17
CONTROL "MS",IDC_BUTTON_MS,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,152,86,24,17
CONTROL "M+",IDC_BUTTON_MP,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,152,105,24,17
DEFPUSHBUTTON "",IDC_BUTTON_FOCUS,0,0,5,5,NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX DISCARDABLE 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "O Kalkulatorze ReactOS"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "OK",IDOK,105,148,52,16
CONTROL IDB_BITMAP_ROS,IDC_STATIC,"Static",SS_BITMAP | SS_CENTERIMAGE |
SS_REALSIZEIMAGE | WS_BORDER,4,4,104,48
LTEXT "Kalkulator ReactOS",IDC_STATIC,120,12,132,8,
SS_CENTERIMAGE
LTEXT "Wersja ",IDC_TEXT_VERSION,120,20,132,8,SS_CENTERIMAGE
LTEXT "Autorstwa: Carlo Bramini",IDC_STATIC,120,32,132,8,
SS_CENTERIMAGE
GROUPBOX "",IDC_STATIC,112,0,148,52
GROUPBOX "",IDC_STATIC,4,56,256,88
EDITTEXT IDC_EDIT_LICENSE,12,68,240,68,ES_MULTILINE | ES_READONLY |
WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX DISCARDABLE 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statystyka"
FONT 8, "MS Shell Dlg"
BEGIN
LISTBOX IDC_LIST_STAT,4,4,156,40,LBS_NOINTEGRALHEIGHT |
WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "RET",IDC_BUTTON_RET,4,48,36,16
PUSHBUTTON "LOAD",IDC_BUTTON_LOAD,44,48,36,16
PUSHBUTTON "CD",IDC_BUTTON_CD,84,48,36,16
PUSHBUTTON "CAD",IDC_BUTTON_CAD,124,48,36,16
CTEXT "n=0",IDC_TEXT_NITEMS,4,68,156,12,SS_CENTERIMAGE |
SS_SUNKEN
END
// Menus
IDR_MENU_SCIENTIFIC_1 MENU DISCARDABLE
BEGIN
POPUP "Edycja"
BEGIN
MENUITEM "Kopiuj\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Wklej\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Wygl<67>d"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Szesnastkowo\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Dziesi<73>tnie\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "<22>semkowo\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Binarnie\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Stopni\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Radian<61>w\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Gradian<61>w\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "Grupowanie cyfr", IDM_VIEW_GROUP, CHECKED
END
POPUP "Pomoc"
BEGIN
MENUITEM "Tematy pomocy", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "O Kalkulatorze ReactOS", IDM_HELP_ABOUT
END
END
IDR_MENU_SCIENTIFIC_2 MENU DISCARDABLE
BEGIN
POPUP "Edycja"
BEGIN
MENUITEM "Kopiuj\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Wklej\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Wygl<67>d"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Szesnastkowo\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Dziesi<73>tnie\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "<22>semkowo\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Binarnie\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Qword\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "Dword\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Word\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "Bajt\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "Grupowanie cyfr", IDM_VIEW_GROUP, CHECKED
END
POPUP "Pomoc"
BEGIN
MENUITEM "Tematy pomocy", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "O Kalkulatorze ReactOS", IDM_HELP_ABOUT
END
END
IDR_MENU_STANDARD MENU DISCARDABLE
BEGIN
POPUP "Edycja"
BEGIN
MENUITEM "Kopiuj\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Wklej\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Wygl<67>d"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grupowanie cyfr", IDM_VIEW_GROUP, CHECKED
END
POPUP "Pomoc"
BEGIN
MENUITEM "Tematy pomocy", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "O Kalkulatorze ReactOS", IDM_HELP_ABOUT
END
END
// String Tables
STRINGTABLE DISCARDABLE
BEGIN
IDS_STRING_LICENSE "Kalkulator ReactOS jest darmowym programem, publikowanym zgodnie z licencj<63> GNU GPL.\r\n\r\nMo<4D>esz otrzyma<6D> kopi<70> licencji GNU GPL tutaj:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nT<6E>umaczenie licencji GNU GPL znajdziesz tutaj:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "B<><42>d"
IDS_QUICKHELP "Szybka pomoc"
END
// Types of conversion
STRINGTABLE DISCARDABLE
BEGIN
IDS_CONV_ANGLE "K<>t"
IDS_CONV_AREA "Powierzchnia"
IDS_CONV_CONSUMPTION "Zu<5A>ycie (silniki)"
IDS_CONV_CURRENCY "Waluty"
IDS_CONV_ENERGY "Energia"
IDS_CONV_LENGTH "D<>ugo<67><6F>"
IDS_CONV_POWER "Moc"
IDS_CONV_PRESSURE "Ci<43>nienie"
IDS_CONV_TEMPERATURE "Temperatura"
IDS_CONV_TIME "Czas"
IDS_CONV_VELOCITY "Pr<50>dko<6B><6F>"
IDS_CONV_VOLUME "Obj<62>to<74><6F>"
IDS_CONV_WEIGHT "Waga"
END
// TYPES OF ANGLES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ANGLE_DEGREES "Stopnie"
IDS_ANGLE_GRADIANS "Gradiany"
IDS_ANGLE_RADIANS "Radiany"
END
// TYPES OF AREAS
STRINGTABLE DISCARDABLE
BEGIN
IDS_AREA_ACRES "Akry"
IDS_AREA_ACRES_BRAZIL "Akry (Brazylia)"
IDS_AREA_ACRES_FRANCE "Akry (Francja)"
IDS_AREA_ACRES_SCOTS "Akry (Szkocja)"
IDS_AREA_ACRES_US "Akry (USA)"
IDS_AREA_ARES "Ary"
IDS_AREA_CHOU "Chou"
IDS_AREA_DANBO "Danbo"
IDS_AREA_HECTARES "Hektary"
IDS_AREA_JEONGBO "Jeongbo"
IDS_AREA_MORGEN_HUNGARY "Morgi (W<>gry)"
IDS_AREA_MU "Mu"
IDS_AREA_PING "Ping"
IDS_AREA_PYEONG "Pyeong"
IDS_AREA_PYEONGBANGJA "Pyeongbangja"
IDS_AREA_RAI "Rai"
IDS_AREA_SE "Se"
IDS_AREA_SQUARE_CENTIMETERS "Centymetry kwadratowe"
IDS_AREA_SQUARE_CHR "Chr kwadratowe"
IDS_AREA_SQUARE_FATHOMS "S<><53>nie kwadratowe"
IDS_AREA_SQUARE_FATHOMS_HUNGARY "S<><53>nie kwadratowe (W<>gry)"
IDS_AREA_SQUARE_FEET "Stopy kwadratowe"
IDS_AREA_SQUARE_INCHES "Cale kwadratowe"
IDS_AREA_SQUARE_KILOMETERS "Kilometry kwadratowe"
IDS_AREA_SQUARE_LAR "Lar kwadratowe"
IDS_AREA_SQUARE_METER "Metry kwadratowe"
IDS_AREA_SQUARE_MILES "Mile kwadratowe"
IDS_AREA_SQUARE_MILLIMETERS "Milimetry kwadratowe"
IDS_AREA_SQUARE_SHAKU "Shaku kwadratowe"
IDS_AREA_SQUARE_TSUEN "Tsuen kwadratowe"
IDS_AREA_SQUARE_VA "Va kwadratowe"
IDS_AREA_SQUARE_YARD "Jardy kwadratowe"
IDS_AREA_TAN "Tan"
IDS_AREA_TSUBO "Tsubo"
END
// TYPES OF COMSUMPTIONS
STRINGTABLE DISCARDABLE
BEGIN
IDS_CONSUMPTION_KM_PER_L "Kilometry/litr"
IDS_CONSUMPTION_L_PER_100_KM "Litry/100 kilometr<74>w"
IDS_CONSUMPTION_MILES_GALLON_UK "Mile/galon (UK)"
IDS_CONSUMPTION_MILES_GALLON_US "Mile/galon (USA)"
END
// TYPES OF CURRENCIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_CURRENCY_AUSTRIAN_SCHILLING "Austriacki szyling"
IDS_CURRENCY_BELGIAN_FRANC "Belgijski frank"
IDS_CURRENCY_CYPRIOT_POUND "Cypryjski funt"
IDS_CURRENCY_CZECH_KORUNA "Czeska korona"
IDS_CURRENCY_DEUTSCHE_MARK "Niemiecka marka"
IDS_CURRENCY_DUTCH_GUILDER "Holenderki gulden"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Fi<46>ska marka"
IDS_CURRENCY_FRENCH_FRANC "Francuski frank"
IDS_CURRENCY_GREEK_DRACHMA "Grecka drachma"
IDS_CURRENCY_IRISH_POUND "Irlandzki funt"
IDS_CURRENCY_ITALIAN_LIRA "W<>oskie liry"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luksemburski frank"
IDS_CURRENCY_MALTESE_LIRA "Malta<74>skie liry"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugalskie escudo"
IDS_CURRENCY_SLOVAK_KORUNA "S<>owacka korona"
IDS_CURRENCY_SLOVENIAN_TOLAR "S<>ove<76>ski tolar"
IDS_CURRENCY_SPANISH_PESETA "Hiszpa<70>ska peseta"
END
// TYPES OF ENERGIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_ENERGY_15_C_CALORIES "15 <20>C kalorie"
IDS_ENERGY_BTUS "British Thermal Unit"
IDS_ENERGY_ERGS "Ergi"
IDS_ENERGY_EVS "Elektronowolty"
IDS_ENERGY_FOOT_POUNDS "Stopo-funty"
IDS_ENERGY_IT_CALORIES "Mi<4D>dzynarodowa Tablica kalorii"
IDS_ENERGY_IT_KILOCALORIES "Mi<4D>dzynarodowa Tablica kilokalorii"
IDS_ENERGY_JOULES "D<>ule"
IDS_ENERGY_KILOJOULES "Kilod<6F>ule"
IDS_ENERGY_KILOWATT_HOURS "Kilowatogodziny"
IDS_ENERGY_NUTRITION_CALORIES "Kalorie spo<70>ywcze"
IDS_ENERGY_TH_CALORIES "Kalorie termochemiczne"
END
// TYPES OF LENGTHS
STRINGTABLE DISCARDABLE
BEGIN
IDS_LENGTH_ANGSTROMS "Angsztremy"
IDS_LENGTH_ASTRONOMICAL_UNITS "Jednostki Astronomiczne"
IDS_LENGTH_BARLEYCORNS "Palce"
IDS_LENGTH_CENTIMETERS "Centymetry"
IDS_LENGTH_CHAINS_UK "Chains (UK)"
IDS_LENGTH_CHI "Chi"
IDS_LENGTH_CHOU "Chou"
IDS_LENGTH_CHR "Chr"
IDS_LENGTH_CUN "Cun"
IDS_LENGTH_FATHOMS "S<><53>nie"
IDS_LENGTH_FATHOMS_HUNGARY "S<><53>nie (W<>gry)"
IDS_LENGTH_FEET "Stopy"
IDS_LENGTH_FURLONGS "Furlongs"
IDS_LENGTH_GAN "Gan"
IDS_LENGTH_HANDS "D<>onie"
IDS_LENGTH_HUNH "Hunh"
IDS_LENGTH_INCHES "Cale"
IDS_LENGTH_JA "Ja"
IDS_LENGTH_JEONG "Jeong"
IDS_LENGTH_KABIET "Kabiet"
IDS_LENGTH_KEN "Ken"
IDS_LENGTH_KEUB "Keub"
IDS_LENGTH_KILOMETERS "Kilometry"
IDS_LENGTH_LAR "Lar"
IDS_LENGTH_LIGHT_YEARS "Lata <20>wietlne"
IDS_LENGTH_LINKS_UK "Links (UK)"
IDS_LENGTH_METERS "Metry"
IDS_LENGTH_MICRONS "Mikrometry"
IDS_LENGTH_MILES "Mile"
IDS_LENGTH_MILLIMETERS "Milimetry"
IDS_LENGTH_NAUTICAL_MILES "Mile morskie"
IDS_LENGTH_NIEU "Nieu"
IDS_LENGTH_PARSECS "Parseki"
IDS_LENGTH_PICAS "Picas"
IDS_LENGTH_RI_JAPAN "Ri (Japan)"
IDS_LENGTH_RI_KOREA "Ri (Korea)"
IDS_LENGTH_RODS "Rods"
IDS_LENGTH_SAWK "Sawk"
IDS_LENGTH_SEN "Sen"
IDS_LENGTH_SHAKU "Shaku"
IDS_LENGTH_SPAN "Span"
IDS_LENGTH_SUN "Sun"
IDS_LENGTH_TSUEN "Tsuen"
IDS_LENGTH_VA "Va"
IDS_LENGTH_YARDS "Jardy"
IDS_LENGTH_YOTE "Yote"
IDS_LENGTH_ZHANG "Zhang"
END
// TYPES OF POWERS
STRINGTABLE DISCARDABLE
BEGIN
IDS_POWER_BTUS_PER_MINUTE "BTU na minut<75>"
IDS_POWER_FPS_PER_MINUTE "Stopo-funty na minut<75>"
IDS_POWER_HORSEPOWER "Konie mechaniczne"
IDS_POWER_KILOWATTS "Kilowaty"
IDS_POWER_MEGAWATTS "Megawaty"
IDS_POWER_WATTS "Waty"
END
// TYPE OF PRESSURES
STRINGTABLE DISCARDABLE
BEGIN
IDS_PRESSURE_ATMOSPHERES "Atmosfery"
IDS_PRESSURE_BARS "Bary"
IDS_PRESSURE_HECTOPASCALS "Hektopaskale"
IDS_PRESSURE_KILOPASCALS "Kilopaskale"
IDS_PRESSURE_MM_OF_MERCURY "Milimetry s<>upka rt<72>ci"
IDS_PRESSURE_PASCALS "Paskale"
IDS_PRESSURE_PSI "Funty na cal kwadratowy"
END
// TYPES OF TEMPERATURES
STRINGTABLE DISCARDABLE
BEGIN
IDS_TEMPERATURE_CELSIUS "Celsiusza"
IDS_TEMPERATURE_FAHRENHEIT "Fahrenheita"
IDS_TEMPERATURE_KELVIN "Kelvina"
IDS_TEMPERATURE_RANKINE "Rankina"
END
// TYPES OF TIME
STRINGTABLE DISCARDABLE
BEGIN
IDS_TIME_DAYS "Dni"
IDS_TIME_HOURS "Godziny"
IDS_TIME_NANOSECONDS "Nanosekundy"
IDS_TIME_MICROSECONDS "Mikrosekundy"
IDS_TIME_MILLISECONDS "Milisekundy"
IDS_TIME_MINUTES "Minuty"
IDS_TIME_SECONDS "Sekundy"
IDS_TIME_WEEKS "Tygodnie"
IDS_TIME_YEARS "Lata"
END
// TYPES OF VELOCITIES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VELOCITY_CMS_SECOND "Centymetry/sekund<6E>"
IDS_VELOCITY_FEET_HOUR "Stopy/godzin<69>"
IDS_VELOCITY_FEET_SECOND "Stopy/sekund<6E>"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometry/godzin<69>"
IDS_VELOCITY_KNOTS "W<>z<EFBFBD>y"
IDS_VELOCITY_MACH "Machy"
IDS_VELOCITY_METERS_SECOND "Metry/sekund<6E>"
IDS_VELOCITY_MILES_HOUR "Mile/godzin<69>"
END
// TYPES OF VOLUMES
STRINGTABLE DISCARDABLE
BEGIN
IDS_VOLUME_BARRELS_UK "Bary<72>ki (UK)"
IDS_VOLUME_BARRELS_OIL "Bary<72>ki"
IDS_VOLUME_BUN "Bun"
IDS_VOLUME_BUSHELS_UK "Buszle (UK)"
IDS_VOLUME_BUSHELS_US "Buszle (US)"
IDS_VOLUME_CUBIC_CENTIMETERS "Centymetry sze<7A>cienne"
IDS_VOLUME_CUBIC_FEET "Stopy sze<7A>cienne"
IDS_VOLUME_CUBIC_INCHES "Cale sze<7A>cienne"
IDS_VOLUME_CUBIC_METERS "Metry sze<7A>cienne"
IDS_VOLUME_CUBIC_YARDS "Jardy sze<7A>cienne"
IDS_VOLUME_DOE "Doe"
IDS_VOLUME_FLUID_OUNCES_UK "Uncje, p<>yn (UK)"
IDS_VOLUME_FLUID_OUNCES_US "Uncje, p<>yn (US)"
IDS_VOLUME_GALLONS_UK "Galony (UK)"
IDS_VOLUME_GALLONS_DRY_US "Galony, sypkie (US)"
IDS_VOLUME_GALLONS_LIQUID_US "Galony, p<>yn (US)"
IDS_VOLUME_GOU "Gou"
IDS_VOLUME_HOP "Hop"
IDS_VOLUME_ICCE "Icce"
IDS_VOLUME_KWIAN "Kwian"
IDS_VOLUME_LITERS "Litry"
IDS_VOLUME_MAL "Mal"
IDS_VOLUME_MILLILITERS "Mililitry"
IDS_VOLUME_PINTS_UK "Pinty (UK)"
IDS_VOLUME_PINTS_DRY_US "Pinty, sypkie (US)"
IDS_VOLUME_PINTS_LIQUID_US "Pinty, p<>yn (US)"
IDS_VOLUME_QUARTS_UK "Kwarty (UK)"
IDS_VOLUME_QUARTS_DRY_US "Kwarty, sypkie (US)"
IDS_VOLUME_QUARTS_LIQUID_US "Kwarty, p<>yn (US)"
IDS_VOLUME_SEKI "Seki"
IDS_VOLUME_SYOU "Syou"
IDS_VOLUME_TANANLOUNG "Tananloung"
IDS_VOLUME_TANG "Tang"
IDS_VOLUME_TO "To"
END
// TYPES OF WEIGHTS
STRINGTABLE DISCARDABLE
BEGIN
IDS_WEIGHT_BAHT "Bahty"
IDS_WEIGHT_CARATS "Karaty"
IDS_WEIGHT_CHUNG "Chung"
IDS_WEIGHT_DON "Don"
IDS_WEIGHT_GEUN "Geun"
IDS_WEIGHT_GRAMS "Gramy"
IDS_WEIGHT_GWAN "Gwan"
IDS_WEIGHT_HARB "Harb"
IDS_WEIGHT_JIN_CHINA "Jin (China)"
IDS_WEIGHT_JIN_TAIWAN "Jin (Taiwan)"
IDS_WEIGHT_KAN "Kan"
IDS_WEIGHT_KILOGRAMS "Kilogramy"
IDS_WEIGHT_KIN "Kin"
IDS_WEIGHT_LIANG_CHINA "Liang (China)"
IDS_WEIGHT_LIANG_TAIWAN "Liang (Taiwan)"
IDS_WEIGHT_MONME "Monme"
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Uncje, avoirdupois"
IDS_WEIGHT_OUNCES_TROY "Uncje, aptekarskie"
IDS_WEIGHT_POUNDS "Funty"
IDS_WEIGHT_QUINTAL_METRIC "Kwintale"
IDS_WEIGHT_SALOUNG "Saloung"
IDS_WEIGHT_STONES "Kamieni"
IDS_WEIGHT_TAMLUNG "Tamlung"
IDS_WEIGHT_TONNES "Ton"
IDS_WEIGHT_TONS_UK "Ton (UK)"
IDS_WEIGHT_TONS_US "Ton (US)"
END

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,64 @@
/*
* ReactOS Calc (global resource file)
*
* Copyright 2007, Carlo Bramini
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <windows.h>
#include "resource.h"
#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif
#ifndef DS_SHELLFONT
#define DS_SHELLFONT DS_SETFONT|DS_FIXEDSYS
#endif
// Common resources
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
// Icons
IDI_CALC_BIG ICON DISCARDABLE "res/calc.ico"
IDI_CALC_SMALL ICON DISCARDABLE "res/calc_sm.ico"
// Bitmaps
IDB_BITMAP_ROS BITMAP DISCARDABLE "res/ROS_logo.bmp"
#include "lang/bg-BG.rc"
#include "lang/cs-CZ.rc"
#include "lang/de-DE.rc"
#include "lang/el-GR.rc"
#include "lang/en-US.rc"
#include "lang/es-ES.rc"
#include "lang/fr-FR.rc"
#include "lang/it-IT.rc"
//#include "lang/ja-JP.rc" FIXME: iconv issue
#include "lang/ko-KR.rc"
#include "lang/nl-NL.rc"
#include "lang/no-NO.rc"
#include "lang/pl-PL.rc"
#include "lang/ro-RO.rc"
#include "lang/ru-RU.rc"
#include "lang/sk-SK.rc"
#include "lang/th-TH.rc"
#include "lang/uk-UA.rc"

View File

@@ -0,0 +1,21 @@
set_unicode()
list(APPEND SOURCE
about.c
charmap.c
lrgcell.c
map.c
charmap.rc)
add_executable(charmap
${CMAKE_CURRENT_BINARY_DIR}/charmap_precomp.h.gch
${SOURCE})
add_pch(charmap ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(charmap win32gui)
add_importlibs(charmap user32 gdi32 comctl32 kernel32 msvcrt)
add_cab_target(charmap 1)

View File

@@ -0,0 +1,40 @@
/* FILE: applications/charmap/lang/cs-CZ.rc
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
* UPDATED: 2011-03-31
*/
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 293, 205 //233
CAPTION "Mapa znak<61>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX
BEGIN
LTEXT "P<>smo:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE | WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "N<>pov<6F>da", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Znaky ke zkop<6F>rov<6F>n<EFBFBD>:", IDC_STATIC, 6, 188, 66, 9
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Ozna<6E>it", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kop<6F>rovat", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Pokro<72>il<69> zobrazen<65>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP
//EDITTEXT IDC_DISPLAY, 8, 217, 278, 13, WS_VISIBLE | WS_TABSTOP | ES_READONLY
END
IDD_ABOUTBOX DIALOGEX 22,16,210,182
CAPTION "O programu Mapa znak<61>"
FONT 8,"MS Shell Dlg",0,0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Mapa znak<61> v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "Zav<61><76>t", IDOK, 75, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&O programu..."
END

Some files were not shown because too many files have changed in this diff Show More