Compare commits

...

4068 Commits

Author SHA1 Message Date
David Quintana
430d5ab6cd * Fix svn merge-info confusion regarding this file.
svn path=/branches/GSoC_2017/rapps/; revision=75825
2017-09-10 21:26:00 +00:00
Alexander Shaposhnikov
a219ebec32 [RAPPS] Stopped GCC whining (fixed GCC build)
svn path=/branches/GSoC_2017/rapps/; revision=75824
2017-09-10 21:02:06 +00:00
Alexander Shaposhnikov
fa2ddd2f4c [ATL] Fixed atlcoll.h ignoring _ATL_NO_EXCEPTIONS
svn path=/branches/GSoC_2017/rapps/; revision=75823
2017-09-10 20:59:48 +00:00
Alexander Shaposhnikov
79ee865810 [ATL] CStringT fixes
- Added copy constructor and assignment from CSimpleStringT to CStringT 
  This fixed initialization while using `operator+` in GCC.
  ```CStringW s = a + b; ```
  operator+ operators are defined for CSimpleStringT.
  It worked in MSVC because it did implicit conversion of CSimpleStringT to PCXSTR which called appropriate CStringT constructor.
  GCC doesn't do such conversions and triggers an error.
- Unified `operator=(CStringT, PCXSTR)` with the rest

svn path=/branches/GSoC_2017/rapps/; revision=75822
2017-09-10 20:45:56 +00:00
David Quintana
164da232b6 * Sync with trunk HEAD (r75820).
svn path=/branches/GSoC_2017/rapps/; revision=75821
2017-09-10 19:23:45 +00:00
Alexander Shaposhnikov
ec69b8b62f [RAPPS] Moved cabinet.dll related definitions to separate header
svn path=/branches/GSoC_2017/rapps/; revision=75820
2017-09-10 17:33:14 +00:00
Sylvain Petreolle
cdf0904278 Commit forgotten part of the Esperanto support from r75378.
CORE-11021

svn path=/trunk/; revision=75819
2017-09-10 16:38:24 +00:00
Kamil Hornicek
3c1b7f0877 [WIN32K]
- really check whether the requested pixel is outside of the surface in NtGdiGetPixel
CORE-12820

svn path=/trunk/; revision=75818
2017-09-10 09:09:57 +00:00
Alexander Shaposhnikov
050d268e04 [RAPPS] Replaced my @gmail.com email with @reactos,org one & Removed my copyright from rosui.h
svn path=/branches/GSoC_2017/rapps/; revision=75816
2017-09-09 20:44:43 +00:00
Alexander Shaposhnikov
b49140dc40 [RAPPS] License header unification and minor style changes
- Unified & reformatted license headers according to https://www.reactos.org/wiki/Coding_Style
- Minor style changes

svn path=/branches/GSoC_2017/rapps/; revision=75815
2017-09-09 20:38:06 +00:00
Alexander Shaposhnikov
9cf1050fce [RAPPS] CConfigParser cleanup
- removed `static` from strings declaration as pointed out by gadamopoulos

svn path=/branches/GSoC_2017/rapps/; revision=75814
2017-09-09 19:43:39 +00:00
Alexander Shaposhnikov
a2bf4ef201 [RAPPS] Renamed CmdParser to UseCmdParameters
svn path=/branches/GSoC_2017/rapps/; revision=75813
2017-09-09 19:41:08 +00:00
Alexander Shaposhnikov
3bb7be0c59 [RAPPS] resource.h: Added missing space
svn path=/branches/GSoC_2017/rapps/; revision=75812
2017-09-09 19:13:35 +00:00
Alexander Shaposhnikov
991801248f [RAPPS] Deleted installdlg.cpp as unused
svn path=/branches/GSoC_2017/rapps/; revision=75811
2017-09-09 19:12:41 +00:00
Alexander Shaposhnikov
840044411f [RAPPS] Settings Dialog changes
- replaced `static` with unnamed namespace (static in this context was deprecated in C++03)
- fixed `Choose Folder` dialog text not loading the first time (trivial)

svn path=/branches/GSoC_2017/rapps/; revision=75810
2017-09-09 19:11:04 +00:00
Alexander Shaposhnikov
94e82f5f37 [RAPPS] Replaced double ternary operators with one if for readability
svn path=/branches/GSoC_2017/rapps/; revision=75809
2017-09-09 17:50:31 +00:00
Alexander Shaposhnikov
d733214459 [RAPPS] Library load fixup in crichedit.h
svn path=/branches/GSoC_2017/rapps/; revision=75808
2017-09-09 17:40:39 +00:00
Colin Finck
6116aa816b [MKISOFS]
Update mkisofs to schily-2017-09-07.
Among other things, this version comes with an upstream fix for David's x64 fix in r75399. We are now using 100% unmodified upstream code again.

svn path=/trunk/; revision=75806
2017-09-09 15:06:48 +00:00
Pierre Schweitzer
dc1e7928d0 [FSUTIL]
Implement fsutil hardlink create

svn path=/trunk/; revision=75804
2017-09-08 20:51:16 +00:00
Mark Jansen
e1ea305c4d [APPHELP_APITEST][APPSHIM_APITEST] Update the license headers
svn path=/trunk/; revision=75803
2017-09-08 20:33:40 +00:00
Mark Jansen
ab7639ea30 [XML2SDB][SHIMDBG] Update license headers
svn path=/trunk/; revision=75802
2017-09-08 20:31:28 +00:00
Mark Jansen
cd21e2fbda [ACLAYERS][ACGENRAL] Update license headers + include cleanup.
svn path=/trunk/; revision=75801
2017-09-08 20:29:16 +00:00
Kamil Hornicek
f65d8f9140 [WIN32SS|KBDHID]
- fix some typos and copypastas

svn path=/trunk/; revision=75800
2017-09-08 20:20:34 +00:00
Mark Jansen
7279c0c541 [APPHELP][ACPPAGE][SHIMLIB] Update license headers
svn path=/trunk/; revision=75799
2017-09-08 20:19:51 +00:00
Kamil Hornicek
8c09b9537d [SHELL32]
- some tweaks, optimizations and fixes for the free/used disk space pie chart drawing code to properly cover all corner cases and remove minor drawing artifacts
CORE-8757

svn path=/trunk/; revision=75798
2017-09-08 20:00:59 +00:00
Kamil Hornicek
266bdc5e3d [NOTEPAD]
- don't allow multiple instances of the find/replace dialog

CORE-13744


svn path=/trunk/; revision=75797
2017-09-08 19:09:48 +00:00
Pierre Schweitzer
8e31783cb7 [BTRFSLIB]
Sync to 1.0

CORE-13763

svn path=/trunk/; revision=75796
2017-09-08 16:31:32 +00:00
Pierre Schweitzer
925c2e9d2f [SHELLBTRFS]
Fix MSVC build?

CORE-13763

svn path=/trunk/; revision=75795
2017-09-08 12:13:10 +00:00
Pierre Schweitzer
05354b6107 [SHELLBTRFS]
Add missing header

CORE-13763

svn path=/trunk/; revision=75794
2017-09-08 12:01:47 +00:00
Pierre Schweitzer
c032d89e77 [SHELLBTRFS]
Sync the btrfs shell extension to 1.0

CORE-13763

svn path=/trunk/; revision=75793
2017-09-08 11:59:42 +00:00
Pierre Schweitzer
31328a8e2d [NDK]
- Make FILE_INFORMATION_CLASS definition consistent with XDK
- Add the definition of FILE_ACCESS_INFORMATION

CORE-13763

svn path=/trunk/; revision=75792
2017-09-08 11:46:06 +00:00
Pierre Schweitzer
ee763bc499 [NDK]
Add a missing typedef

svn path=/trunk/; revision=75791
2017-09-08 11:41:31 +00:00
Pierre Schweitzer
28683eed06 [PSDK]
Define FSCTL_GET_INTEGRITY_INFORMATION, FSCTL_SET_INTEGRITY_INFORMATION, FSCTL_DUPLICATE_EXTENTS_TO_FILE and their associated structures

CORE-13763

svn path=/trunk/; revision=75790
2017-09-08 11:40:52 +00:00
Pierre Schweitzer
679192cab4 [XDK]
Add a Win8.1 FSCTL

CORE-13763

svn path=/trunk/; revision=75789
2017-09-08 11:39:17 +00:00
Pierre Schweitzer
7eb6e7c2ac [BTRFS]
Fix build

CORE-13763

svn path=/trunk/; revision=75787
2017-09-08 08:15:21 +00:00
Pierre Schweitzer
68a5f90220 [BTRFS]
Sync btrfs to 1.0.

CORE-13763

svn path=/trunk/; revision=75786
2017-09-08 08:02:43 +00:00
Pierre Schweitzer
eb9a2dd5b2 [DDK]
Define IDE_COMMAND_FLUSH_CACHE

CORE-13763

svn path=/trunk/; revision=75785
2017-09-08 07:55:16 +00:00
Thomas Faber
8ec72be7cd [USBPORT][USBHUB_NEW]
- Add license headers

svn path=/trunk/; revision=75784
2017-09-08 07:32:39 +00:00
Thomas Faber
ba2be71aa9 [USBPORT]
- Begin implementing split transfers. Patch by Vadim Galyant.

svn path=/trunk/; revision=75783
2017-09-08 07:17:34 +00:00
Pierre Schweitzer
cb8ab26d8b [NTOSKRNL]
In IoReportDetectedDevice(), don't attempt to guess service name, use the one provided in DriverObject.
This fixes BtrFS file system driver initialization.
Patch by Thomas Faber.

CORE-13763

svn path=/trunk/; revision=75782
2017-09-07 21:23:19 +00:00
Mark Jansen
969293ce10 [SDK] Allow version lie shims to be applied to msi.dll
svn path=/trunk/; revision=75781
2017-09-07 16:46:33 +00:00
Pierre Schweitzer
8df0380fb1 [FSUTIL]
Fix a cppcheck warning

svn path=/trunk/; revision=75780
2017-09-07 12:49:13 +00:00
Timo Kreuzer
8011060032 [WDMAUD.DRV/KMIXER] Replace a float mul/div/round operation with integer math.
svn path=/trunk/; revision=75779
2017-09-06 21:09:25 +00:00
Pierre Schweitzer
78fa10c45b [FSUTIL]
Print nicer error messages

svn path=/trunk/; revision=75778
2017-09-06 17:11:03 +00:00
Pierre Schweitzer
3ffb3ab04a [FSUTIL]
Implement fsutil fsinfo volumeinfo.
Works well with our various FS :-)

svn path=/trunk/; revision=75777
2017-09-06 16:35:46 +00:00
Pierre Schweitzer
d738dbe0df [XDK]
Add missing defines for FS features

svn path=/trunk/; revision=75776
2017-09-06 16:28:22 +00:00
Pierre Schweitzer
cd85658a08 [FSUTIL]
Fix build (how does it even build locally?!)

svn path=/trunk/; revision=75775
2017-09-06 15:36:05 +00:00
Pierre Schweitzer
935155b549 [FSUTIL]
Implement fsutil fsinfo drives and fsutil fsinfo drivetype

svn path=/trunk/; revision=75774
2017-09-06 15:32:02 +00:00
Pierre Schweitzer
0134cec6f4 [FSUTIL]
Add a helper for opening a volume. Make it check for local devices if needed

svn path=/trunk/; revision=75773
2017-09-06 12:41:52 +00:00
Pierre Schweitzer
a8a2ee2151 [FASTFAT]
Don't decrease the open handle count too much (in cleanup & close). This avoid overflow and allows correct openings count

svn path=/trunk/; revision=75772
2017-09-06 11:49:30 +00:00
Pierre Schweitzer
a9dcc28ffb [FASTFAT]
Don't return uninit status on allocation failure.

svn path=/trunk/; revision=75771
2017-09-06 11:48:42 +00:00
James Tabor
dda7065bee [Shell32]
- Patch by Fabian Maurer : Draw text on message boxes without background.
- Fixes CORE-13742.

svn path=/trunk/; revision=75770
2017-09-06 05:33:35 +00:00
Pierre Schweitzer
76a0cdb017 [PSDK]
Define FSCTL_MARK_VOLUME_DIRTY.
This fixes build (erm)

svn path=/trunk/; revision=75769
2017-09-05 19:19:22 +00:00
Pierre Schweitzer
4274a76991 [FSUTIL]
Implement setting the dirty bit (fsutil dirty set) on a volume.

This doesn't allow to trigger a chkdsk on reboot with ReactOS, because of
the way we handle the dirty bit in our FAT implementation is a bit... weird.

This works on W2K3 though!

svn path=/trunk/; revision=75768
2017-09-05 19:11:02 +00:00
Pierre Schweitzer
bf608cfae1 [FASTFAT]
Fix a bug:
- IRP information was never set in VfatIsVolumeDirty() and thus dirty status was never copied back to the caller

svn path=/trunk/; revision=75767
2017-09-05 19:08:01 +00:00
Pierre Schweitzer
bb567d1320 [FSUTIL]
Avoid code duplication++

svn path=/trunk/; revision=75766
2017-09-05 13:24:00 +00:00
Pierre Schweitzer
e03a7274dc [FSUTIL]
Avoid code duplication

svn path=/trunk/; revision=75765
2017-09-05 13:10:16 +00:00
Pierre Schweitzer
7f463d43db [FSUTIL]
Add a skeleton for the fsutil tool.
As a proof of concept, implement fsutil dirty query.
More to follow ;-).

svn path=/trunk/; revision=75764
2017-09-05 12:56:45 +00:00
Pierre Schweitzer
a81f0507f2 [PSDK]
Add FSCTL for dirty bit read

svn path=/trunk/; revision=75763
2017-09-05 12:51:08 +00:00
Alexander Shaposhnikov
40b95d2e89 [RAPPS] Merged two Installed and Available enum values into one enum
svn path=/branches/GSoC_2017/rapps/; revision=75761
2017-09-03 21:10:24 +00:00
Alexander Shaposhnikov
1b21bb0fc5 [RAPPS] Complete renaming
svn path=/branches/GSoC_2017/rapps/; revision=75760
2017-09-03 21:03:06 +00:00
Alexander Shaposhnikov
a73e3ef3a3 [RAPPS] Amendment: undo renaming in loaddlg.cpp
svn path=/branches/GSoC_2017/rapps/; revision=75759
2017-09-03 20:48:53 +00:00
Alexander Shaposhnikov
49ec689c2d [RAPPS] Formatting fixes
- CAvailableApplicationInfo: added m_ prefixes to members
- CAvailableApps: renamed EnumAvailableApplications to Enum
- Renamed LICENSE_TYPE enum to LicenseType and renamed enum values
- unattended.cpp: Added license header

svn path=/branches/GSoC_2017/rapps/; revision=75758
2017-09-03 20:37:14 +00:00
Alexander Shaposhnikov
e949d212ca [RAPPS] Removed unecessary inline in crichedit.h
svn path=/branches/GSoC_2017/rapps/; revision=75756
2017-09-03 20:23:44 +00:00
Alexander Shaposhnikov
9be376d93f [RAPPS] Fixed newline in de-DE.rc
svn path=/branches/GSoC_2017/rapps/; revision=75754
2017-09-03 19:52:38 +00:00
Thomas Faber
fae06a9723 [USBPORT]
Patch by Vadim Galyant:
- Move isochronous transfer functions to their own file
- Fix return type of PUSBPORT_COMPLETE_TRANSFER
- Improve some debug prints

svn path=/trunk/; revision=75745
2017-09-02 22:48:45 +00:00
Timo Kreuzer
e8937c0896 [CMAKE] Add CL version 19.11 from VS 2017 version 15.3.3 to configure.cmd
svn path=/trunk/; revision=75743
2017-09-02 16:27:38 +00:00
Thomas Faber
22cc49f3f6 [NTOS:MM]
- Improve inaccurate debug print

svn path=/trunk/; revision=75742
2017-09-02 15:18:02 +00:00
James Tabor
a99a524b47 [User32]
- Disable code from CORE-10266.

svn path=/trunk/; revision=75741
2017-09-02 14:36:16 +00:00
Thomas Faber
0f34777514 [MBEDTLS]
- Update to version 2.6.0
CORE-13739

svn path=/trunk/; revision=75740
2017-09-02 13:06:14 +00:00
Thomas Faber
4db421613f [MPG123]
- Update to version 1.25.6
CORE-13739

svn path=/trunk/; revision=75739
2017-09-02 13:03:21 +00:00
Thomas Faber
16de0b2c4d [LIBPNG]
- Update to version 1.6.32
CORE-13739

svn path=/trunk/; revision=75738
2017-09-02 12:44:21 +00:00
Thomas Faber
f8b28727ba [USBPORT]
- Avoid unnecessary duplicate variables in USBPORT_FlushPendingTransfers

svn path=/trunk/; revision=75737
2017-09-02 09:03:07 +00:00
Thomas Faber
161bcc1aa2 [USBPORT]
- Fix logic error: don't complete IRPs for which the cancel routine has been called.

svn path=/trunk/; revision=75736
2017-09-02 08:59:52 +00:00
James Tabor
6af37fd54e [NtUser]
- Patch by Fabian Maurer : Send WM_NCPAINT and WM_ERASEBKGND when window is shown. Only send position-change messages when needed.
- Adapted patch and fixes CORE-3998.

svn path=/trunk/; revision=75735
2017-09-02 04:45:16 +00:00
James Tabor
968673daab [NtUser]
- Fix a potential crash in test_menu_locked_by_window.

svn path=/trunk/; revision=75734
2017-09-02 04:08:22 +00:00
Hermès Bélusca-Maïto
5e78e7c3c1 [EVENTCREATE]: Use wcstoul() to retrieve and check for valid numerical values.
svn path=/trunk/; revision=75733
2017-09-01 20:35:25 +00:00
Hermès Bélusca-Maïto
4e1f270f19 [CONSOLE.CPL]: Fix an invalid success check after calling wcstoul(), plus usage fixes for the True-Type combobox edit box.
svn path=/trunk/; revision=75732
2017-09-01 20:17:25 +00:00
Mark Jansen
f032e273d2 [SHIMENG] Fix logging when handling ordinal ordinal functions.
svn path=/trunk/; revision=75731
2017-09-01 19:06:04 +00:00
Mark Jansen
87ad6ca5ef [SERVICES] Allow CreateService to create an interactive service under the LocalSystem account.
MSDN stated that this is allowed, and this fixes VMWare Horizon setup not working.
CORE-13434

svn path=/trunk/; revision=75730
2017-09-01 18:27:40 +00:00
Hermès Bélusca-Maïto
bf14a6ac69 [NET]: Whitespace fixes only.
svn path=/trunk/; revision=75729
2017-09-01 18:00:06 +00:00
Hermès Bélusca-Maïto
89e4e6102e [ACPPAGE]: "Sync fail" with Mark Jansen's translation work in CORE-13693, sorry :(
svn path=/trunk/; revision=75726
2017-08-31 20:49:02 +00:00
Hermès Bélusca-Maïto
c65f4c81cf [ACPPAGE]: Improve the compatibility tab:
- Use the tab title from the corresponding dialog resource caption string.
- Fix some translations, and complete the french one.
- Use DialogBoxParamW and MAKEINTRESOURCEW (with W).

svn path=/trunk/; revision=75725
2017-08-31 20:38:38 +00:00
Alexander Shaposhnikov
be9184dfa6 [RAPPS] Adjusted splitter values a bit. CORE-13163
svn path=/branches/GSoC_2017/rapps/; revision=75718
2017-08-30 22:22:38 +00:00
Giannis Adamopoulos
08585bba00 [BROWSEUI] -Demote a fixme print to a mere comment.
svn path=/trunk/; revision=75714
2017-08-30 12:59:05 +00:00
Giannis Adamopoulos
f89672624d [SHELL32] -SHChangeNotifyRegister: Don't call CreateFileW with something that is not a filesystem path as this will obviously fail like when we are browsing My Computer.
svn path=/trunk/; revision=75713
2017-08-30 12:49:59 +00:00
Giannis Adamopoulos
a051cd5754 [SHELL32][BROWSEUI] -Demote some uselass error prints and promote some others that make sense to have. Avoid a case that would logically hit an error as initialization of the shell browser is still under way,
svn path=/trunk/; revision=75712
2017-08-30 12:29:43 +00:00
Alexander Shaposhnikov
409b9f317c [RAPPS] Fixed resizing issues. CORE-13163
svn path=/branches/GSoC_2017/rapps/; revision=75710
2017-08-30 07:59:27 +00:00
Giannis Adamopoulos
7396067b2a [EXPLORER] -Fix a comment typo. CORE-13566
svn path=/trunk/; revision=75706
2017-08-29 09:11:57 +00:00
Hermès Bélusca-Maïto
7a73afbbc0 [CMD]: Russian translation for the START command, adapted from amber CORE-13248, jperm CORE-13560 and reviewed by Alexander Shaposhnikov (sanchaez). Thank you all :)
Addendum to r75369.

svn path=/trunk/; revision=75705
2017-08-28 20:31:34 +00:00
Thomas Faber
62ae004747 [INF]
- Properly set svn:eol-style. These files are text, so they shouldn't be marked as binary, and they need to have CRLF line endings since they go on the iso.

svn path=/trunk/; revision=75704
2017-08-28 19:42:35 +00:00
Alexander Shaposhnikov
153d823dc2 [RAPPS] Final commit
- Removed atlex

svn path=/branches/GSoC_2017/rapps/; revision=75702
2017-08-28 15:12:23 +00:00
Giannis Adamopoulos
f6de9ccb3d [UXTHEME] -When calculating the size of caption buttons assume that they have the same size. Hacks in the theme files that change the way the buttons are drawn actually make them appear to have a different size. CORE-13512
svn path=/trunk/; revision=75696
2017-08-28 13:41:16 +00:00
Sylvain Petreolle
8fe63e68c5 [RAPPS] Add a SHA1 sum to uTorrent.
CORE-13666

svn path=/trunk/; revision=75691
2017-08-27 12:00:55 +00:00
Giannis Adamopoulos
6f1a2f7dc9 [UXTHEME] -Ignore the alpha channel so that TrasnparentBlt will be used when a bitmap has an alpha channel but no pixel has alpha transparency. CORE-13464
svn path=/trunk/; revision=75688
2017-08-27 10:55:30 +00:00
Giannis Adamopoulos
3ee6628aa5 [BROWSEUI] -CExplorerBand: Calling ILGetDisplayNameEx with a full pidl was a bit hacky after all because it doesn't work always in win10. Just get the name manually as no helper is good enough.
svn path=/trunk/; revision=75687
2017-08-27 09:35:03 +00:00
Alexander Shaposhnikov
3f0ba7a08e [RAPPS] RC of final commit
- Hide checkboxes in "Installed"

svn path=/branches/GSoC_2017/rapps/; revision=75686
2017-08-27 00:00:45 +00:00
James Tabor
93751aff42 [GDI32|Metafile]
- Andrew Eikum : Update metafile world transform immediately in winnt mode.
- More information at https://www.winehq.org/pipermail/wine-cvs/2017-August/122607.html .

svn path=/trunk/; revision=75685
2017-08-26 22:49:13 +00:00
Alexander Shaposhnikov
15a86cdf6a [RAPPS]
- Fixed crash when trying to double-click in the "Installed" category
- Replaced APPLICATION_INFO with CAvailableApplicationInfo
- Added DownloadInfo struct as a replacement of APPLICATION_INFO in CDownloadManager
- Minor fixes

svn path=/branches/GSoC_2017/rapps/; revision=75684
2017-08-26 22:43:05 +00:00
Alexander Shaposhnikov
b6ba25a4da [RAPPS]
- Fixed typo in lang/ru-RU.rc

svn path=/branches/GSoC_2017/rapps/; revision=75683
2017-08-26 22:35:29 +00:00
Kamil Hornicek
2cee3c23f7 [TRANSLATIONS]
- Fix missing shortcuts on desktop for Ukrainian localization.

svn path=/trunk/; revision=75682
2017-08-26 21:19:44 +00:00
Alexander Shaposhnikov
0430bfa868 [RAPPS]
- Fixed switching between "Installed" and "Available"
- Added default icon to "Installed"

svn path=/branches/GSoC_2017/rapps/; revision=75681
2017-08-26 19:41:09 +00:00
Alexander Shaposhnikov
93010e2e08 [RAPPS]
- Revert s_EnumInstalledAppProc()

svn path=/branches/GSoC_2017/rapps/; revision=75680
2017-08-26 17:52:55 +00:00
Alexander Shaposhnikov
9fa8155e7c [RAPPS]
- Amend last commit - added gui.h

svn path=/branches/GSoC_2017/rapps/; revision=75679
2017-08-26 17:42:21 +00:00
Alexander Shaposhnikov
c3baad9f4f [RAPPS]
- Removed hard-coded string leftover
- Re-enabled Installed category

svn path=/branches/GSoC_2017/rapps/; revision=75678
2017-08-26 16:49:18 +00:00
Giannis Adamopoulos
c311042950 [BROWSEUI][SHELL32] -Move bitmap resources used by browseui from shell32 to browseui. Browseui alongside filebrowser.exe can already be used in windows so it makes sense to let it have toolbar icons even in latest windows versions. (It works from xp to win10).
svn path=/trunk/; revision=75677
2017-08-26 14:38:32 +00:00
Hermès Bélusca-Maïto
0054982013 [BOOTDATA]: Move an inf comment where it belongs.
svn path=/trunk/; revision=75675
2017-08-26 12:52:28 +00:00
Alexander Shaposhnikov
5842c7c6d4 [RAPPS]
- Added language strings to all .rc
- Replaced hardcoded strings with resource counterparts
- Fixed settings loading always default
- Fixed force update not working
- Removed hInst from LoadStringW() where possible

svn path=/branches/GSoC_2017/rapps/; revision=75673
2017-08-26 08:39:42 +00:00
Thomas Faber
d8a59d7716 [WIN32K:NTUSER]
- Remove unnecessary thread reference in IsThreadSuspended.

svn path=/trunk/; revision=75672
2017-08-26 07:31:38 +00:00
Giannis Adamopoulos
9cf9a89aa0 [BROWSEUI] -CAddressEditBox: Populate address bar combobox. Patch by Barrett Karish with improvements by me to fix leaks and add error checks. CORE-10988
svn path=/trunk/; revision=75670
2017-08-25 15:03:25 +00:00
Giannis Adamopoulos
58ef11fbed [SHELL32] -Silence two unneeded prints.
svn path=/trunk/; revision=75666
2017-08-25 08:59:10 +00:00
Giannis Adamopoulos
19c1694e55 [SHELL32] -CRecycleBin: Call GetDriveTypeW with correct parameters. Now files can be deleted to the recycle bin again. Patch by Serge Gautherie. CORE-12340
svn path=/trunk/; revision=75665
2017-08-25 08:44:13 +00:00
Alexander Shaposhnikov
94406ba5bc [RAPPS]
- HACKFIX for ReactOS in gui.cpp - prevent counting below zero
  see explanation comment
- Fix for percentage being shown incorrectly

svn path=/branches/GSoC_2017/rapps/; revision=75664
2017-08-24 23:48:10 +00:00
Giannis Adamopoulos
a28235c709 [USER32_APITEST] -Add a monster of a test to check if WM_DESTROYCLIPBOARD is blocking or not. Use a critical section while recording as we use a single message cache in two threads. After 50154, 50816, 50846 and 75616 changing back and forth, this test shows that 75616 is correct and making sure that it won't be changed again in the future, somehting that would break the ole clipboard.
svn path=/trunk/; revision=75663
2017-08-24 23:08:09 +00:00
Alexander Shaposhnikov
aa15934f23 [RAPPS]
Changes in the update process:
- Made UpdateAppsDB() functions static and added ForceUpdateAppsDB()
- EnumAvailableApplications() doesn't update DB on it's own
- Force updating now done only if bUpdateAtStart set or if no settings loaded (first run)
- Minor cleanup

svn path=/branches/GSoC_2017/rapps/; revision=75662
2017-08-24 22:04:44 +00:00
James Tabor
ddaeb9ccac [User32]
- Patch by mudhead : If the index is out of range, no error should be set, see CORE-13716.

svn path=/trunk/; revision=75661
2017-08-24 22:03:01 +00:00
Alexander Shaposhnikov
f65f506032 [RAPPS]
- Clean up the DB directory if extracting failed

svn path=/branches/GSoC_2017/rapps/; revision=75660
2017-08-24 21:56:27 +00:00
Alexander Shaposhnikov
c41df30066 [RAPPS]
- Changed the download process - now ThreadFunc handles the download loop
- Passing values to ThreadFunc as a parameter rather than static members
- Declared .cab download AppInfo static so it won't fade away during the download
- Fixed .cab extraction failing while no rapps folder present
- Visual improvements to the .cab dialog

svn path=/branches/GSoC_2017/rapps/; revision=75659
2017-08-24 18:46:39 +00:00
Aleksandar Andrejevic
699a97f3e2 [NTVDM]: Fix linear 4-bpp mode. Return the status of the AC palette when the index register is read.
svn path=/trunk/; revision=75643
2017-08-23 04:44:55 +00:00
Giannis Adamopoulos
524ce41fa2 [SHELL32] -CRecycleBin: Factor out a new class called CRecyclerDropTarget, which will take the data object and call SHFileOperation for its contents. Add a noisy print to show the parameters passed in SHFileOperation and make it to always use DROPEFFECT_MOVE. Make CDefaultContextMenu use the new drop target in order to delete a file.
svn path=/trunk/; revision=75640
2017-08-22 13:50:25 +00:00
Colin Finck
78c1aeecb9 [FS_REC]
Always register CDFS as a low-priority filesystem. This inserts it at the tail of the filesystem queue instead of the head, meaning UDF always takes precedence and UDF/CDFS hybrid media is properly detected as UDF.
Thanks to Pierre for the hint!

Should fix what's reported in https://jira.reactos.org/browse/CORE-9816?focusedCommentId=78820&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-78820

svn path=/trunk/; revision=75638
2017-08-22 09:09:19 +00:00
Giannis Adamopoulos
8da0a3a46d [OLE32] -Recreate the clipboard window if it isn't a valid window handle. Can happen if the thread that first used the ole clipboard exists which also leads to the clipboard window being destroyed.
svn path=/trunk/; revision=75637
2017-08-22 08:02:30 +00:00
Giannis Adamopoulos
6bb9ea74e5 [SHELL32] Misc fixes for CFSFolder
- GetCLSIDForFileType: Check if the shell extension is blocked by the Blocked key like wine does.
- CFSFolder::BindToObject: Remove a redundant check as _ILGetFileStructW already does the same check.
- CFSFolder::GetUIObjectOf: Do not try to load an IconHandler or an arbitrary extension for directories.
- CFSFolder::SetNameOf: Simplify and make secure by using great helpers like wcscmp and PathCombineW

svn path=/trunk/; revision=75634
2017-08-21 12:18:46 +00:00
Giannis Adamopoulos
af33a37eb4 [SHELL32] -CFSFolder: Fix a couple of handle leaks.
svn path=/trunk/; revision=75633
2017-08-21 09:07:41 +00:00
Colin Finck
4f8ba0560c [FS_REC]
- Add a detection routine for CDFS (ISO-9660) volumes that verifies the Primary Volume Descriptor.
- Use this to also detect CDFS on disks and load the CDFS driver if it has not been loaded yet (e.g. when a bootcd/livecd flashed USB drive is inserted at boot of an installed ReactOS).
- Fix a comment in udfs.c.

svn path=/trunk/; revision=75630
2017-08-20 15:30:59 +00:00
Thomas Faber
ecc55a34f2 [HDAUDBUS]
- Correctly disable interrupts for status change events. Fixes infinite "HDA_InterruptService c0000000" debug spam (interrupt storm) on VMware with HDAudio sound enabled.
CORE-13704 #resolve

svn path=/trunk/; revision=75629
2017-08-20 15:02:53 +00:00
Hermès Bélusca-Maïto
0aa863c9ed [BROWSEUI]: Improve the rendering of the toolbar pin buttons. By dsp8195. Sorry for the delay!
CORE-10838

svn path=/trunk/; revision=75628
2017-08-20 12:05:25 +00:00
Eric Kohl
80b20b10c3 [SHELL32]
Folder Options: Japanese TreeView translation.
Patch by Katajama Hirofumi MZ.
CORE-13690

svn path=/trunk/; revision=75627
2017-08-20 08:47:23 +00:00
Eric Kohl
b53f16528b [SYSSETUP]
Japanese translation of Theme dialog.
Patch by Katajama Hirofumi MZ.
CORE-13691

svn path=/trunk/; revision=75626
2017-08-20 08:27:16 +00:00
Giannis Adamopoulos
b5af5aa749 [SHELL32] -CFSDropTarger: Improve the debug message that shows the first thing that is copied or moved and where. This way we sort of know what parameters we pass to SHFileOperationW.
svn path=/trunk/; revision=75625
2017-08-19 15:48:47 +00:00
Colin Finck
75cb0454f7 [USETUP]
Add type 0x96 as "CDFS/ISO-9660" to our list of partition types now that our ISOs flashed to USB use it.

svn path=/trunk/; revision=75624
2017-08-19 14:53:54 +00:00
Giannis Adamopoulos
9fee94b692 [SHELL32] -CFSDropTarget: Simplyfy the code path that handles the CFSTR_SHELLIDLIST format. Don't use FOF_MULTIDESTFILES to keep things simple. CORE-13176
svn path=/trunk/; revision=75623
2017-08-19 11:19:06 +00:00
Giannis Adamopoulos
3c6b222f15 [SHELL32] -Simplify the drop target of CRecycleBin to let the data object generate the list of names that can be passed to SHFileOperationW.
svn path=/trunk/; revision=75622
2017-08-19 11:09:28 +00:00
Mark Jansen
fe4d4aa690 [WINED3D] Dereference context slightly later, as seen in wine. This prevents some crashes while applications are starting up. (f.e. ANNO1602)
svn path=/trunk/; revision=75621
2017-08-19 09:51:17 +00:00
Christoph von Wittich
f5aed8f8c1 [WLANAPI] map rpc to win error codes
svn path=/trunk/; revision=75620
2017-08-19 06:04:08 +00:00
Giannis Adamopoulos
08b350c0dc [SHELL32] -CDefaultContextMenu: Correctly differentiate the copy and the cut commands.
svn path=/trunk/; revision=75619
2017-08-18 17:39:34 +00:00
Giannis Adamopoulos
1980176e15 [SHELL32] -CDefViewBckgrndMenu: Fix pasting in the background of a folder.
svn path=/trunk/; revision=75618
2017-08-18 17:32:20 +00:00
Mark Jansen
e6008ea636 [OLE32] Do not crash on an invalid / empty clipboard.
CORE-12302

svn path=/trunk/; revision=75617
2017-08-18 17:18:46 +00:00
Giannis Adamopoulos
8998ffaca2 [WIN32K] -NtUserEmptyClipboard: Change its behaviour to wait for WM_DESTROYCLIPBOARD to return so it behaves like windows and our ole32 doesn't trip on its assumptions that everything works fine. A test will be written soon to prove that this is correct. CORE-12302
svn path=/trunk/; revision=75616
2017-08-18 17:18:17 +00:00
Benedikt Freisen
44fc547ffa [MSPAINT] Use Gdiplus::Bitmap in place of ATL::CImage to load pictures -- this un-breaks loading a picture's resolution from file
svn path=/trunk/; revision=75615
2017-08-18 17:01:01 +00:00
Alexander Shaposhnikov
bf41db72f6 [RAPPS]
- Correct the build process

svn path=/branches/GSoC_2017/rapps/; revision=75614
2017-08-18 16:38:28 +00:00
Timo Kreuzer
369ad20c7b [FTFD] Ignore NULL objects in free() wrapper
svn path=/trunk/; revision=75613
2017-08-18 15:02:05 +00:00
Timo Kreuzer
45720ed145 [FTFD] Fix indentation
svn path=/trunk/; revision=75612
2017-08-18 15:02:01 +00:00
Eric Kohl
7a47c14c8f [STOBJECT]
- Add support for the hotplug icon.
- Set default menu items in the context menus.
- Use a timer to properly distinguish between a single and a double click on an icon.
- Some code cleanup.

svn path=/trunk/; revision=75611
2017-08-18 14:49:11 +00:00
Timo Kreuzer
6c364c895d [NTOSKRNL] Fix 64 bit warnings about conversion in PsExitSpecialApc and PspTerminateThreadByPointer
svn path=/trunk/; revision=75610
2017-08-18 12:31:19 +00:00
Timo Kreuzer
8dea5dc526 Revert "[WIN32K] Fix probing and parameter validation in NtGdiPolyPolyDraw"
svn path=/trunk/; revision=75609
2017-08-18 12:18:41 +00:00
Timo Kreuzer
dd172a4fce [WIN32K] Fix probing and parameter validation in NtGdiPolyPolyDraw
svn path=/trunk/; revision=75608
2017-08-18 11:15:54 +00:00
Giannis Adamopoulos
d800840ef7 [SHELL32] Shell extension support for files.
- CFSFolder: Implement binding to files, implement loading arbitrary extensions for GetUIObjectOf from the registry, implement loading IconHandler shell extensions. Use the new helper routines to simplify getting the drop target.
- Improve the shortcut icons hack.

svn path=/trunk/; revision=75607
2017-08-18 09:11:59 +00:00
Timo Kreuzer
0d5f8b292a [NDK] Fix prototype of Nt/ZwQuerySystemInformation
svn path=/trunk/; revision=75606
2017-08-18 08:44:08 +00:00
Timo Kreuzer
44ae2b0fee [NTOSKRNL] Fix memory area macros
svn path=/trunk/; revision=75605
2017-08-18 08:42:43 +00:00
Giannis Adamopoulos
ce6b6fab9f [STOBJECT] Fix bug that caused some resource strings not to be loaded.
- These strings need to either be in every language file or have their own resource range but since we are using the same resource ids with windows I will just duplicate them.

svn path=/trunk/; revision=75604
2017-08-18 08:38:52 +00:00
Benedikt Freisen
bac7b8613e [PSDK][GDIPLUS] Further work on Graphics
svn path=/trunk/; revision=75603
2017-08-18 08:09:04 +00:00
Timo Kreuzer
7f3f55628a [NTOSKRNL] Remove duplicate fields from MEMORY_AREA
svn path=/trunk/; revision=75602
2017-08-18 07:13:34 +00:00
Giannis Adamopoulos
695d9ff51e [WIN32K] -Fix a bug with TransparentBlt when it should really ignore the alpha channel. CORE-13040. Approved by Timo.
svn path=/trunk/; revision=75601
2017-08-17 22:45:51 +00:00
Giannis Adamopoulos
c312beab6a [UXTHEME] -Remove some dead code
svn path=/trunk/; revision=75600
2017-08-17 21:31:52 +00:00
Thomas Faber
18c780f243 [USBHUB_NEW]
- Fix interval calculation in USBH_Wait. Patch by Vadim Galyant.

svn path=/trunk/; revision=75599
2017-08-17 19:55:13 +00:00
Thomas Faber
a93c1aa32f [CMIDriver]
- Set svn:eol-style to CRLF for inf files. Files that end up on the iso should never have 'native' line endings.

svn path=/trunk/; revision=75598
2017-08-17 19:25:32 +00:00
Giannis Adamopoulos
e8f24951d6 [SHELL32] -Simplify some coe in CShellLink.cpp
svn path=/trunk/; revision=75597
2017-08-17 16:46:15 +00:00
Mark Jansen
9d8fe6f238 [SHIMENG] Enable the Application Compatibility framework by default.
- Also add disabled keys to configure the logging
- Demote a noisy print used in the shim engine.
At this point the shim engine should be functional enough to be used.
One thing that remains is creating more shims(fixes) to use, and implement more features for the already existing ones.
CORE-13284

svn path=/trunk/; revision=75596
2017-08-17 16:42:29 +00:00
Giannis Adamopoulos
123a0e6818 [SHELL32] -AddFSClassKeysToArray: Increase the size of the buffer for the value read from the registry. There are cases when 40 are not enough.
svn path=/trunk/; revision=75595
2017-08-17 16:35:16 +00:00
Mark Jansen
1eee5db1a5 [ACLAYERS] Add a compatibility shim + layer for the VMWare Horizon setup.
This fixes the setup trying to print some debug strings.
For now the shim has to be applied manually, however the setup does not complete yet.
Patch bits & fixes by Thomas.
CORE-13434

svn path=/trunk/; revision=75594
2017-08-17 16:27:56 +00:00
Giannis Adamopoulos
41f448998f [COM_APITEST] -Add tests for CLSID_AttachmentServices.
svn path=/trunk/; revision=75593
2017-08-17 16:01:29 +00:00
Giannis Adamopoulos
58edf0b679 [ADVAPI32] -RegOpenKeyExW: Call NtOpenKey again with aligned parameters if STATUS_DATATYPE_MISALIGNMENT was returned the first time. CORE-13689
svn path=/trunk/; revision=75592
2017-08-17 14:37:24 +00:00
Colin Finck
fb160be266 [CDFS]
- Add a basic CDFS filesystem library "cdfslib" for checking and formatting a CDFS volume. Checking is unimplemented and formatting not supported anyway :)
- Use this library in the new "ucdfs" DLL and that DLL in "autochk". Fixes the "Unable to verify a CDFS volume" message at boot.
- Return the right device type (FILE_DEVICE_CD_ROM or FILE_DEVICE_DISK) in when querying volume information in cdfs.sys to get the proper icon in Explorer.

svn path=/trunk/; revision=75591
2017-08-17 12:21:27 +00:00
Colin Finck
d31e5d598c [FORMATTING]
Convert all tabs to spaces in ntdddisk.h

svn path=/trunk/; revision=75590
2017-08-17 12:18:28 +00:00
Eric Kohl
38f8c1bdc2 [ADVAPI32]
RegQueryInfoKey: Initializing *lpcbSecurityDescriptor before calling NtQueryKey fixes the remaining api tests.

svn path=/trunk/; revision=75589
2017-08-17 12:11:10 +00:00
Mark Jansen
dd1078cd17 [NTDLL_APITEST] Test unaligned pointers for NtOpenKey
CORE-13689

svn path=/trunk/; revision=75588
2017-08-17 11:42:13 +00:00
Mark Jansen
441f8dc306 [ADVAPI32_APITEST] Addendum to 75585, use void pointers to work around gcc ignoring pshpack1.
svn path=/trunk/; revision=75587
2017-08-17 11:06:46 +00:00
Colin Finck
956092d462 - Add 0x96 as ISO9660 partition type to ntdddisk.h (from https://en.wikipedia.org/wiki/Partition_type) and detect it using IsRecognizedPartition.
- Make our isohybrid create an MBR with partition type 0x96.

This properly assigns a drive letter to the Live-CD and lets me boot into desktop using "qemu -hda livecd.iso".
Fixes CORE-13184

svn path=/trunk/; revision=75586
2017-08-17 11:03:40 +00:00
Mark Jansen
ddcdef0768 [ADVAPI32_APITEST] Test unaligned pointers for RegOpenKeyExW.
svn path=/trunk/; revision=75585
2017-08-17 10:30:10 +00:00
Benedikt Freisen
2e7b5c5b11 [PSDK][GDIPLUS] Further work on wrapper classes Pen, Graphics and Brush
svn path=/trunk/; revision=75584
2017-08-17 09:44:57 +00:00
Timo Kreuzer
26e00e78a8 [WIN32K] Revert an accidental change from r75566
Fixes gdi32_winetest metafile regression

svn path=/trunk/; revision=75583
2017-08-17 09:39:43 +00:00
Timo Kreuzer
e1e2478e77 [WIN32K] Don't call IntIsFontRenderingEnabled() while holding an exclusive GDI object lock.
Should fix GUI hangs.

svn path=/trunk/; revision=75582
2017-08-17 09:08:57 +00:00
Colin Finck
7607ced6c6 [CDFS]
Fix uninitialized variable usage (why did neither MSVC nor GCC catch this?)

svn path=/trunk/; revision=75581
2017-08-16 23:12:55 +00:00
Timo Kreuzer
7462d87d28 [NTOS] Make the GET_HASH_ENTRY() macro return a pointer to the entry instead of the entry itself.
Implicitly it was already returning a pointer, which was then referenced using a "." instead of "->", giving the impression we were working on the returned object instead of the original data. - Convert some macros to inline functions

svn path=/trunk/; revision=75580
2017-08-16 20:30:45 +00:00
Colin Finck
3c64b4cbe9 [CDFS]
Register CDFS as a disk filesystem too in order to flash our ISOs directly to USB drives and boot from them. Also fix some DPRINTs in the course of that.

One step closer towards CORE-13184: This gets qemu -hda bootcd.iso to work.
What still doesn't work is qemu -hda livecd.iso and booting from a flashed USB drive on real hardware.
Further changes are also required in fs_rec, but this code isn't ready yet and doesn't seem to be the current blocker either.

Credits go to the entire Hackfest Team for helping on this!!

svn path=/trunk/; revision=75579
2017-08-16 20:04:55 +00:00
Benedikt Freisen
03d7bcb26c [PSDK][GDIPLUS] Further Pen work
svn path=/trunk/; revision=75578
2017-08-16 18:13:22 +00:00
Timo Kreuzer
4c0b46fd0a [PSDK] Add Win10 NTDDI version defines, improve version check
svn path=/trunk/; revision=75577
2017-08-16 17:10:06 +00:00
Benedikt Freisen
ee3e42bee0 [PSDK][GDIPLUS] Partly implement Pen
svn path=/trunk/; revision=75576
2017-08-16 16:19:17 +00:00
Timo Kreuzer
366d9c7141 [FLTMC][NFSD] Fix version definition
svn path=/trunk/; revision=75575
2017-08-16 16:06:41 +00:00
Timo Kreuzer
85f9842aab [KERNEL32] Support PAGE_EXECUTE_WRITECOPY in CreateFileMappingW if OsMajorVersion is 6+.
svn path=/trunk/; revision=75574
2017-08-16 16:06:36 +00:00
Timo Kreuzer
e7ffae1153 [DELAYIMP] Use underscore symbol prefix only on x86
svn path=/trunk/; revision=75573
2017-08-16 16:06:31 +00:00
Timo Kreuzer
2bb99ee284 [PSDK] Add SymSrvIsStoreW prototype to dbghelp.h
svn path=/trunk/; revision=75572
2017-08-16 16:06:27 +00:00
Timo Kreuzer
28b262929a [INTRIN.H] Add _mul128 and _umul128 prototypes and remove some obsolete ones from the MSC version.
svn path=/trunk/; revision=75571
2017-08-16 16:06:22 +00:00
Timo Kreuzer
4a92978784 [FAT32] Remove duplicated print
svn path=/trunk/; revision=75570
2017-08-16 16:06:18 +00:00
Timo Kreuzer
af3006ca2d [SHELLDESKTOP] Add missing dependency to psdk
svn path=/trunk/; revision=75569
2017-08-16 16:06:14 +00:00
Eric Kohl
49141de174 [SETUPAPI]
Add stubs for the remaining range list functions.

svn path=/trunk/; revision=75568
2017-08-16 14:18:42 +00:00
Timo Kreuzer
566a13042f [WIN32K] Remove old comments
svn path=/trunk/; revision=75567
2017-08-16 14:18:08 +00:00
Timo Kreuzer
93cecddaa8 [WIN32K]
- Refactor GreExtTextOutW to use a single exit path instead of 3
- Call MouseSafetyOnDraw* only for direct DCs

svn path=/trunk/; revision=75566
2017-08-16 13:37:15 +00:00
Eric Kohl
66de37e22f [SETUPAPI]
- Implement CMP_GetBlockedDriverInfo.
- Make sure that CMP_GetServerSideDeviceInstallFlags and CMP_WaitServicesAvailable can be called on local and remote machines.

svn path=/trunk/; revision=75565
2017-08-16 11:45:21 +00:00
Colin Finck
a6222fc8f3 [FREELDR]
Lower MAX_DISKREADBUFFER_SIZE to let INT 13h, AH=42h only read a maximum of 127 sectors (instead of 128 previously).
This fixes USB booting into the kernel on at least Dell Latitude D531 and Lenovo ThinkPad X61.

Now CORE-13184 remains (in a VM and on real hardware, probably related to the CDFS driver)

svn path=/trunk/; revision=75564
2017-08-16 10:44:15 +00:00
Benedikt Freisen
87980a1275 [PSDK][GDIPLUS] Forward NULL parameters to wrapped functions instead of blindly dereferencing them when trying to pass a pointee's pointer member to the wrapped function
svn path=/trunk/; revision=75563
2017-08-16 09:57:56 +00:00
Eric Kohl
0078433e69 [SETUPAPI]
Implement CM_Create_Range_List and CM_Free_Range_List. Still WIP.

svn path=/trunk/; revision=75562
2017-08-16 09:44:20 +00:00
Giannis Adamopoulos
40b5e9f4f8 [SHLWAPI] -Addendum to 75533. Pass the id offset to IContextMenu::InvokeCommand. Fixes launching applications from the start menu. CORE-13680
svn path=/trunk/; revision=75561
2017-08-15 23:02:45 +00:00
Alexander Shaposhnikov
9f9cf93785 [RAPPS]
- Style changes, typo fixes etc.

svn path=/branches/GSoC_2017/rapps/; revision=75560
2017-08-15 22:35:45 +00:00
Alexander Shaposhnikov
0a7403c03b [RAPPS]
- Quit CmdParser() as soon as no valid key supplied

svn path=/branches/GSoC_2017/rapps/; revision=75559
2017-08-15 21:39:21 +00:00
Alexander Shaposhnikov
96d2f529a5 [RAPPS]
- Close the INF file after loading the info

svn path=/branches/GSoC_2017/rapps/; revision=75558
2017-08-15 20:47:10 +00:00
Alexander Shaposhnikov
5af894b102 [RAPPS]
- Added the icon provided by Pi_User5

svn path=/branches/GSoC_2017/rapps/; revision=75556
2017-08-15 19:39:20 +00:00
Alexander Shaposhnikov
14be048f6f [RAPPS]
- Changed "/SETUP" key to "/INSTALL"
- Added support for multiple apps install by "/INSTALL"
  rapps /INSTALL 7-Zip AkelPad [...]
- Added INF based batch install with the "/SETUP" key
  Works for the full path for the .inf file
  TODO: detect if user entered the relative path for the inf and correct it
- Moved CmdParser to include/unattended.h and unattended.cpp

svn path=/branches/GSoC_2017/rapps/; revision=75555
2017-08-15 19:36:23 +00:00
Timo Kreuzer
cdcf2da12e [WIN32K] IntEngBitBlt returns BOOL, not NTSTATUS!
Fix usage in NtGdiSetDIBitsToDeviceInternal accordingly and get rid of NTSTATUS variable entirely.

svn path=/trunk/; revision=75553
2017-08-15 18:13:14 +00:00
Mark Jansen
a5b5ed5bd3 [ACPPAGE] Do not allow shims to be applied to files in System32/WinSxs.
CORE-13618

svn path=/trunk/; revision=75552
2017-08-15 12:37:25 +00:00
Thomas Faber
0435bc7005 [DDK]
- Fix calling convention for NDIS_PROC. Fixes stack corruption when running 3rd party network drivers
CORE-13685 #resolve

svn path=/trunk/; revision=75551
2017-08-15 12:32:05 +00:00
Giannis Adamopoulos
2af89ef8f0 [SHELL32] -Greatly optimize the already hacky implementations of ILIsEqual, ILIsParent and ILFindChild by not using the crappy _ILSimpleGetText but the new one _ILHACKCompareSimpleIds. CORE-13681
svn path=/trunk/; revision=75550
2017-08-15 12:13:19 +00:00
Mark Jansen
c06d8a94c9 [ATL] Use the AtlThrow helper so we can disable exceptions by defining _ATL_NO_EXCEPTIONS
svn path=/trunk/; revision=75549
2017-08-15 09:02:17 +00:00
Eric Kohl
4730de1195 [EXPLORER]
Improve the taskbar property sheet.
- Improve the preview images (pixel perfect).
- Improve the Japanese translation.
Patch by Katayama Hirofumi MZ.
CORE-13574

svn path=/trunk/; revision=75548
2017-08-14 20:43:14 +00:00
Eric Kohl
3cb9b85a65 [VARIOUS]
Mass update for Romanian resource files.
Patch by Ștefan Fulea.
CORE-13599

svn path=/trunk/; revision=75547
2017-08-14 20:14:19 +00:00
Alexander Shaposhnikov
a59f6f7573 [RAPPS]
- Added headers to CMake file to have them in the VS project

svn path=/branches/GSoC_2017/rapps/; revision=75543
2017-08-14 17:04:43 +00:00
Alexander Shaposhnikov
69d1dbb371 [RAPPS]
- Added /SETUP key support 
  TODO: use the short names from db files
- Some style changes
- Conditional creation of the dialogs

svn path=/branches/GSoC_2017/rapps/; revision=75542
2017-08-14 17:00:20 +00:00
Mark Jansen
f70b9ef65f [SHIMENG] Filter shims based on the include/exclude node specified, as well as their presence in certain directories.
- Shims are not allowed on files from System32 / WinSxs.
- Individual shims can override this per module with includes/excludes.
- Shims can specify additional dlls to ignore or include.
- Specify a default list of dlls to be included from system32.
CORE-13618

svn path=/trunk/; revision=75541
2017-08-14 16:34:56 +00:00
Thomas Faber
84de59dab1 [USETUP]
- Include some actually useful information when printing errors

svn path=/trunk/; revision=75536
2017-08-14 16:01:46 +00:00
Giannis Adamopoulos
976a20a098 [COMCTL32] -DrawShadowText: Don't print an error when GdiAlphaBlend fails. This can happen when the painting is outside the clip region. Some themes tend to move text elements in weird places so as just to hide them so this only causes spam.
svn path=/trunk/; revision=75535
2017-08-14 15:51:12 +00:00
Eric Kohl
959a179f58 missing german translation and sort treeview alphabetically
Patches by: reactosfanboy and Katayama Hierofumi MZ
CORE-13674 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=75534
2017-08-14 15:40:15 +00:00
Giannis Adamopoulos
551d8fa312 [SHELL32]
- CDefaultContextMenu: Make it respect the IContextMenu interface and expect menu id offsets instead of real menu ids and actually use the idCmdFirst and idCmdLast parameters in QueryContextMenu. Make the default part use and existed menu from the resources but changed accordingly so the ids of its elements can be adjusted to the next free id of the constructed menu. Rename InsertMenuItemsOfDynamicContextMenuExtension to AddShellExtensionsToMenu, DoDynamicShellExtensions to InvokeShellExt, and DoStaticShellExtensions to InvokeRegVerb. Make AddShellExtensionsToMenu and AddStaticContextMenusToMenu behave like QueryContextMenu to return the number of ids they occupy. Add two helpers SHGetMenuIdFromMenuMsg and SHSetMenuIdInMenuMsg to change the id that is contained in the lparam of WM_DRAWITEM and WM_MEASUREITEM before forwarding them.
- CDefView: When calling QueryContextMenu before using TrackPopupMenu, use 1 as the first id that will filled by the IContextMenu because we want 0 to be used as an indicator that the menu was canceled. Use SHGetMenuIdFromMenuMsg and SHSetMenuIdInMenuMsg to change the lparam of the messages forwarded to the IContextMenu accordingly.
- CDefViewBckgrndMenu: Add a hack so as to keep the code as simple as possible while respecting idCmdFirst and idCmdLast.
- CNewMenu: Remove a hack that was needed because WM_DRAWITEM didn't come with the menu id offset but with the real menu id.
- CDesktopFolder, CFSFolder: Make the callbacks avoid adding an extra separators.
After that shell extensions in menus should work better and callbacks to shell folders should really be able to add several menu items. 

svn path=/trunk/; revision=75533
2017-08-14 15:25:58 +00:00
Hervé Poussineau
9748e8bde3 [USETUP] Remove one special case for keyboard devices
Keyboard devices must have an upperfilter (kdbclass) to work correctly. Detect these
devices using the Keyboard GUID class instead of using the inf section name.

svn path=/trunk/; revision=75532
2017-08-13 13:11:43 +00:00
Pierre Schweitzer
9e84082a45 [MOVEFILE]
Open source the movefile utily that allows queueing deletion/renaming operations for the next reboot

svn path=/trunk/; revision=75531
2017-08-13 10:15:55 +00:00
Pierre Schweitzer
88fd33f6a2 [ROSINTERNALS]
Addendum to r75529

svn path=/trunk/; revision=75530
2017-08-12 20:43:53 +00:00
Pierre Schweitzer
a4774e85c1 [ROSINTERNALS]
Move the sysinternals tools to their own directory: rosinternals. To be completed :-)

svn path=/trunk/; revision=75529
2017-08-12 20:39:12 +00:00
Pierre Schweitzer
128ea676bf [PENDMOVES]
Open source the PendMoves utility from Sysinternals that allow easy display of renaming/deleting operations queued for next reboot.
See: https://docs.microsoft.com/en-us/sysinternals/downloads/pendmoves

svn path=/trunk/; revision=75528
2017-08-12 18:17:12 +00:00
Hermès Bélusca-Maïto
e7fb5e7c33 [EVTLIB]: Allow specifying a memory allocation tag when freeing the allocated buffers (functionality similar to the Ex**WithTag kernel functions).
[EVENTLOG]: Use the previous functionality; use also the internal LogfpAlloc() / LogfpFree() functions when dealing with buffers related to event log files.

svn path=/trunk/; revision=75527
2017-08-11 12:37:15 +00:00
Mark Jansen
bfac984256 [RAPPS] Delete uTorrent until CORE-13666 is cleared up.
svn path=/trunk/; revision=75521
2017-08-10 17:09:58 +00:00
Giannis Adamopoulos
7e43b947a1 [UXTHEME] -Implement taking into account the flags set by SetThemeAppProperties. Now the shim that disables themes per application works.
svn path=/trunk/; revision=75514
2017-08-09 08:14:50 +00:00
Giannis Adamopoulos
61427a2eaf [UXTHEME_APITEST] -Add tests for SetThemeAppProperties.
svn path=/trunk/; revision=75513
2017-08-09 07:14:44 +00:00
Alexander Shaposhnikov
9293dbee23 [RAPPS]
- Refactoring
- A template for a future parameters parser

svn path=/branches/GSoC_2017/rapps/; revision=75512
2017-08-08 21:32:11 +00:00
Giannis Adamopoulos
effafa925c [USER32] -Make it clear when VersionRegisterClass is used. This should be called after a versioned class was not found hence it should appear after some failures in win32k (and this is exactly how RegisterClassNameW was designed to be used, after a failure to find a class).
svn path=/trunk/; revision=75511
2017-08-08 21:09:51 +00:00
Mark Jansen
92d7c962fa [UNATTEND] Show how to enable the lautus theme in unattended mode.
svn path=/trunk/; revision=75510
2017-08-08 19:43:49 +00:00
Giannis Adamopoulos
f33a6d3c88 [COMCTL32] -Fix a typo.
svn path=/trunk/; revision=75502
2017-08-07 11:08:26 +00:00
Hermès Bélusca-Maïto
5bef76033f [SYSSETUP]: Fix a typo.
svn path=/trunk/; revision=75501
2017-08-07 11:03:02 +00:00
Giannis Adamopoulos
7a138bc11f [SHELL32] -Restore some code I incorrectly removed in r75360. CORE-13564
svn path=/trunk/; revision=75500
2017-08-07 10:09:30 +00:00
Robert Naumann
28cce7cb83 [ACPPAGE][SYSSETUP] Update German translation
svn path=/trunk/; revision=75499
2017-08-06 20:38:49 +00:00
Robert Naumann
a27bfb60bd [CPL] Improve some German string translationd. This better matches the position of the applets in the control panel and avoids truncation of the icon captions. Patch by Joachim Henze. CORE-12099 #resolve #comment Committed all but "Ordneroptionen -> Ordner" in r75498
svn path=/trunk/; revision=75498
2017-08-06 20:23:00 +00:00
Pierre Schweitzer
cec633535f [SYSSETUP]
Translate r75495 in French.
Thanks Giannis! :-)

svn path=/trunk/; revision=75496
2017-08-06 12:15:19 +00:00
Giannis Adamopoulos
fc1f0c2088 [SYSSETUP] -Implement a wizard page that lets the user select lautus as the default theme. If the user keeps pressing enter, the theme will not be applied.
svn path=/trunk/; revision=75495
2017-08-06 09:18:19 +00:00
Giannis Adamopoulos
02cc8362fa [COMCTL32] -Implement BUTTON_IMAGELIST_ALIGN_RIGHT, BUTTON_IMAGELIST_ALIGN_TOP, BUTTON_IMAGELIST_ALIGN_BOTTOM
svn path=/trunk/; revision=75494
2017-08-06 09:05:58 +00:00
Mark Jansen
f13b9a9480 [FONTSUB] Russian translation by Sergey Stopkin.
ROSAPPS-339 #resolve #comment Thanks!

svn path=/trunk/; revision=75492
2017-08-05 20:08:00 +00:00
Mark Jansen
d10c0ec112 [WIN32SS] Improve GetFontResourceInfoW. Patch by Katayama Hirofumi MZ & Doug Lyons.
CORE-13365 #resolve #comment Thanks!

svn path=/trunk/; revision=75491
2017-08-05 20:04:24 +00:00
Daniel Reimer
d057073a7c [RAPPS]
Update RAPPS d/l urls to fix broken links.
Update version changes on unchanged direct links.

svn path=/trunk/; revision=75490
2017-08-05 16:52:57 +00:00
Mark Jansen
7746fd43d1 [APPHELP][XML2SDB] Code cleanup + add assertions
- Always used pdb or hsdb, no more 'db'
- Add property to an PDB that describes if it's opened for read/write, and assert on this
- Add comments

svn path=/trunk/; revision=75489
2017-08-05 12:05:06 +00:00
Giannis Adamopoulos
793519c8bc [COMCTL32] -BUTTON_PaintWithTheme: Draw checked pushlike buttons as pressed.
svn path=/trunk/; revision=75488
2017-08-05 10:23:07 +00:00
Pierre Schweitzer
98d7d08cbf [RDBSS]
- Implement RxSetRenameInfo()
- Implement the SL_OPEN_TARGET_DIRECTORY case in RxCreateFromNetRoot()
This implements renaming in RDBSS, and thus in NFS.
So far, renaming fails due to different NET_ROOT, I need to check why. So far, files are properly copied on rename failure.

CORE-8204
CORE-11327
CORE-13632

svn path=/trunk/; revision=75487
2017-08-05 08:12:23 +00:00
Sylvain Petreolle
a315eeefe1 Revert r75485, MSVC needs wininet to do the UrlCrackW forward.
svn path=/trunk/; revision=75486
2017-08-04 23:39:15 +00:00
Sylvain Petreolle
41c7842302 Remove a theoretical circular dependancy between wininet and shlwapi.
shlwapi actually doesn't use wininet.

svn path=/trunk/; revision=75485
2017-08-04 23:06:54 +00:00
Pierre Schweitzer
ff54a48737 [NFS]
And make NP a bit more discrete when not really used...

svn path=/trunk/; revision=75484
2017-08-04 19:46:32 +00:00
Pierre Schweitzer
b7661c5a63 [NFS]
Make hack introduced in r75415 more verbose.

CORE-8204
CORE-11327

svn path=/trunk/; revision=75483
2017-08-04 19:43:42 +00:00
Pierre Schweitzer
29a235cb9b [RDBSS]
Implement RxSetDispositionInfo(): this allows deleting files on a remote NFS share!

CORE-8204
CORE-11327
CORE-13636

svn path=/trunk/; revision=75482
2017-08-04 19:23:42 +00:00
Pierre Schweitzer
6afca05215 [RDBSS]
On cleanup, only take the quick path if the file was already orphaned

CORE-11327

svn path=/trunk/; revision=75481
2017-08-04 19:18:42 +00:00
Pierre Schweitzer
e010523b86 [RXCE]
In RxRemoveNameNetFcb(), check if name was already removed. MS doesn't do this, but as we use double linked-list macros
that perform extra sanity checks, this is required. This can be called twice for a single FCB.

CORE-11327
CORE-13632
CORE-13636

svn path=/trunk/; revision=75480
2017-08-04 19:05:11 +00:00
Pierre Schweitzer
ebe9e0bce0 [KERNEL32]
Don't leak a handle when renaming a source file which is a MS mount point or a file without the reparse attribute while we can query its reparse information.

CORE-13635

svn path=/trunk/; revision=75478
2017-08-04 12:18:52 +00:00
Giannis Adamopoulos
2dd61864ba [hivecls.inf] -Add an option to immediately enable an msstyles file with right click.
svn path=/trunk/; revision=75477
2017-08-04 09:12:33 +00:00
Giannis Adamopoulos
e5733424ba [DESK.CPL]
-Improve the hack that lets it process arguments by using the process command line instead of the one shell32 gives to the cpl.
-Implement a new action called ActivateMSTheme that activates an msstyle file without showing any gui. If no file is passed, the classic theme is activated thus making it possible to switch themes from command line (or any other application may need to switch themes by launching desk.cpl).

svn path=/trunk/; revision=75476
2017-08-04 08:53:06 +00:00
Mark Jansen
7b06ed4395 [RAPPS] Remove Burnaware free. CORE-12194 #resolve
svn path=/trunk/; revision=75475
2017-08-03 20:52:01 +00:00
Pierre Schweitzer
eae32333ca [RDBSS]
Don't attempt to dereference NULL-ptr if CCB isn't set.
Fixes crash in RxFsdCommonDispatch() under rare circumstances.

CORE-11327

svn path=/trunk/; revision=75474
2017-08-03 20:47:41 +00:00
Pierre Schweitzer
62806dc561 [RXCE]
In spite of what its name may look like: SyncEvent is a notification event, not a sync event.
Use the correct event for synchronization. This avoids infinite wait in certain circumstances in RxScavengeFobxsForNetRoot()

CORE-11327

svn path=/trunk/; revision=75473
2017-08-03 20:23:39 +00:00
Hermès Bélusca-Maïto
d767b361d2 [FREELDR][INFLIB]: It is perfectly correct to retrieve the field of index == 0 of an INF line, by using the InfGetStringField() helper (corresponding to the SetupGetStringField() API).
svn path=/trunk/; revision=75472
2017-08-03 14:56:07 +00:00
Alexander Shaposhnikov
284762155e [RAPPS]
- Split the rapps.h into multiple headers for easier managing
- Moved headers to include/
- Corrected some typos and moved functions around

svn path=/branches/GSoC_2017/rapps/; revision=75469
2017-08-02 12:50:53 +00:00
Pierre Schweitzer
54bb40541b [RXCE]
Make code that deals with DBG stuff only built in DBG builds

CORE-11327
CORE-13610

svn path=/trunk/; revision=75468
2017-08-01 18:04:18 +00:00
Thomas Faber
1332e273a2 [ACPICA]
- Update to version 20170728
CORE-13625 #resolve

svn path=/trunk/; revision=75467
2017-08-01 09:11:52 +00:00
Pierre Schweitzer
be6eed4f49 [RDBSS]
For non dbg builds, don't implement macro defined functions RxCheckShareAccess(), RxRemoveShareAccess(), RxSetShareAccess(), RxUpdateShareAccess()

CORE-11327
CORE-13610

svn path=/trunk/; revision=75465
2017-08-01 06:35:20 +00:00
Giannis Adamopoulos
c54a058138 [SYSSETUP.INF] -Move registering comctl32.dll and ole32.dll much earlier in the setup.
svn path=/trunk/; revision=75464
2017-07-31 16:11:09 +00:00
Giannis Adamopoulos
6a67b9ef6b [COMCTL32] -Fix some failed tests for TB_GETMETRICS. Add support for button spacing.
svn path=/trunk/; revision=75463
2017-07-31 13:10:46 +00:00
Giannis Adamopoulos
6aa52a76c8 [COMCTL32_APITESTS] -Add toolbar tests for TB_SETBUTTONSIZE, TB_SETPADDING, TB_GETBUTTONSIZE, TB_GETMETRICS.
svn path=/trunk/; revision=75462
2017-07-31 13:04:09 +00:00
Pierre Schweitzer
26c43d8081 [RXCE]
Only implement RxTrackerUpdateHistory() if RDBSS_TRACKER is defined

CORE-11327
CORE-13610

svn path=/trunk/; revision=75461
2017-07-31 10:35:18 +00:00
Pierre Schweitzer
3118deeae6 [RDBSS]
For non dbg builds, don't implement macro defined functions RxDumpCurrentAccess(), RxDumpWantedAccess()

CORE-11327
CORE-13610

svn path=/trunk/; revision=75460
2017-07-31 09:33:01 +00:00
Mark Jansen
fa95932bfc [REGEDIT] Fix the search dialog not opening when the root node is selected. Patch by Joachim Henze (reactosfanboy).
Small changes by me.
CORE-13071 #resolve #comment Thanks!

svn path=/trunk/; revision=75458
2017-07-30 14:04:44 +00:00
Mark Jansen
24376e47c4 [SDK][XML2SDB] Simplify include / exclude node specification.
svn path=/trunk/; revision=75457
2017-07-30 13:37:35 +00:00
Mark Jansen
22331e8f4b [SHIMENG] Partial rewrite to make the code easier to maintain.
- Protect ARRAY access with macro's / helper functions.
- Do not store objects in the ARRAY data, but store pointers to the objects.
- Rewrite import hooking to use an ARRAY instead of single linked lists.

svn path=/trunk/; revision=75455
2017-07-30 12:47:57 +00:00
Mark Jansen
cbb6f94f4d [ACPPAGE] Fix the shell extension asking to add an empty layer.
svn path=/trunk/; revision=75454
2017-07-30 12:46:53 +00:00
Pierre Schweitzer
e4cfb86b3e [RDBSS]
Implement RxPrepareToReparseSymbolicLink().
This allows symbolic links to work on a NFS share, we can now follow links that would have been exported by the server.

Safe to merge.

CORE-8204
CORE-11327
CORE-13615

svn path=/trunk/; revision=75451
2017-07-30 12:24:26 +00:00
Pierre Schweitzer
f9df6b72bf [RDBSS]
When CcFlushCache fails, properly set status before leaving.

CORE-11327

svn path=/trunk/; revision=75445
2017-07-30 08:54:09 +00:00
Pierre Schweitzer
36fbf224f6 [NFSD]
In case NFS session expires while reading/writing to a file, renew the session instead of just failing.
This avoids not being able to transfer any file with slow connection, and not being able to transfer big files with normal connection.

CORE-8204
CORE-13484

svn path=/trunk/; revision=75444
2017-07-30 08:46:01 +00:00
Pierre Schweitzer
0498ff85e3 [KERNEL32]
In case of synchronous read, it's legit for the FSD to notify EOF by returning success & zero read length.
It fixes never ending reads when copying a file from NFS to local disk.

CORE-8204
CORE-11327
CORE-13484

svn path=/trunk/; revision=75443
2017-07-30 08:31:59 +00:00
Pierre Schweitzer
a128acd13b [RXCE]
Don't forget to set RX_CONTEXT_FLAG_FROM_POOL flag when allocating a new RX_CONTEXT structure from pool.
This avoids leaking it afterwards and exhausting NP pool when using NFS.

CORE-8204
CORE-11327
CORE-13484
CORE-13604

svn path=/trunk/; revision=75442
2017-07-30 08:22:34 +00:00
Pierre Schweitzer
0eacafad27 [RXCE]
- Implement RxAcquireFcbForLazyWrite(), RxAcquireFcbForReadAhead(), RxReleaseFcbFromLazyWrite(), RxReleaseFcbFromReadAhead()

This makes RXCE better at dealing with Cc (and the other way round ;-)). This notably avoids infinite acquire loops from Cc when writing on a NFS share.

CORE-8204
CORE-11327

svn path=/trunk/; revision=75441
2017-07-30 07:58:25 +00:00
Giannis Adamopoulos
d09d1d8165 [EXPLORER] -Fix calculatting the size of the tray icons for ral this time. When positioning the windows in the tray take into account the theme content margins.
svn path=/trunk/; revision=75440
2017-07-29 13:57:29 +00:00
Giannis Adamopoulos
fd3b42b706 [UXTHEME] -Fix for the 3rd or 4th time the bug where the caption window overflows over the caption buttons which was last broken by me in 74960. CORE-13435
svn path=/trunk/; revision=75439
2017-07-29 09:43:48 +00:00
Giannis Adamopoulos
8215152588 [UXHTEME] - ThemeDrawCaptionText: Get the TMT_CONTENTALIGNMENT theme property and position the text accordingly. Patch by Stas'M. CORE-13600
svn path=/trunk/; revision=75438
2017-07-29 09:25:15 +00:00
Giannis Adamopoulos
9e7f835989 [COMCTL32] -Take into account the upper theme margin when drawing the icon so that it doesn't look misplaced. This makes the themed taskbar buttons look more or less good despite the fact that we completely ignore the left and right margins.
svn path=/trunk/; revision=75437
2017-07-29 08:52:04 +00:00
James Tabor
91dda33431 [User32]
- Patch by MudHead : Combobox sends a message to the deselect the text when focus is lost.
CORE-10266 #resolve

svn path=/trunk/; revision=75436
2017-07-29 01:59:07 +00:00
Alexander Shaposhnikov
af150f51fd [RAPPS] Incorrect "C" symbol replaced in the rest of the files
svn path=/branches/GSoC_2017/rapps/; revision=75435
2017-07-28 22:43:58 +00:00
Alexander Shaposhnikov
0169546588 [RAPPS] Incorrect symbol replaced (why was it there though)
svn path=/branches/GSoC_2017/rapps/; revision=75434
2017-07-28 22:42:00 +00:00
Alexander Shaposhnikov
e3fdbe5806 [RAPPS] Bulk install!
- Added ListView class
- Added ListView to a dialog
  Dialog shows the install progress of individual apps. It also waits for an installator to finish before issuing another download-install cycle.
- Fixed: Downloads pointing to "\"
- Fixed: Selection data is not retrieved correctly
- Yet again replacing some macros to wide functions
- Minor improvements

svn path=/branches/GSoC_2017/rapps/; revision=75433
2017-07-28 22:37:24 +00:00
Mark Jansen
63568c9f24 [APPHELP] Various cleanup tasks
- Move debug heap functionality to a separate file
- Clean includes
- Remove msvcrt dependency
- Clean up string usage
- Remove some higher level functions in favor of their ntdll counterparts (wip).

svn path=/trunk/; revision=75432
2017-07-28 19:00:27 +00:00
Giannis Adamopoulos
9f2558d971 [EXPLORER] -Implement changing the size of the icons in the notification area when the non client metrics change. Now they always have the size of the title bar icon. Center vertically or horizontally the notification area in the taskbar.
svn path=/trunk/; revision=75430
2017-07-28 10:04:38 +00:00
Mark Jansen
7315f47790 [APPHELP] Use DbgPrint instead of OutputDebugString + fix SDBAPI_DEBUG_ALLOC
svn path=/trunk/; revision=75429
2017-07-27 20:36:51 +00:00
Hermès Bélusca-Maïto
3b42dceffb [ATL]: - Both the CAtlList class and its helper class CNode do not support copy construction. - Remove a redundant call to GetFreeNode().
CORE-13597

svn path=/trunk/; revision=75427
2017-07-27 19:08:55 +00:00
Thomas Faber
42336ccb3c [DLLS]
- Fix import order
- Remove unnecessary imports

svn path=/trunk/; revision=75426
2017-07-27 18:48:19 +00:00
Pierre Schweitzer
5c2272b886 [EXT2]
Import commits by Kaho Ng <ngkaho1234@gmail.com> from upstream:
- b7657e5 Ext3Fsd: Introduce VCB_RO_COMPAT_READ_ONLY flag for struct VCB
- e7c1142 Ext3Fsd: EXT4_FEATURE_INCOMPAT_64BIT is not supported
- 785943f Ext3Fsd: fix issue #6

Refuse mounting filesystems with incompatible flags. This avoids corrupting 64bits filesystems.

Patch by Lubomir Rintel

CORE-13589

svn path=/trunk/; revision=75422
2017-07-27 10:22:57 +00:00
Pierre Schweitzer
4f5478d56a [KERNEL32_VISTA]
Delay load NTDLL_vista, in order to save *380KB* at boot.

CORE-13361

svn path=/trunk/; revision=75421
2017-07-27 09:43:56 +00:00
Pierre Schweitzer
51e9c7f51a [RDBSS]
- Misc fixes with DPRINTS

[RXCE]
- In RxFinalizeSrvOpen, always dereference the FCB, it's always referenced on SRV_OPEN creation
- Misc fixes with DPRINTS

With that revision and r75419, I'm now able to mount a NFS share, browse it, read a file from it, and unmount it.
We're OK regarding references counting!

CORE-8204
CORE-11327
CORE-13581

svn path=/trunk/; revision=75420
2017-07-27 09:37:10 +00:00
Pierre Schweitzer
4a4f6e5d9f [SHELL32]
Revert r75348.
Because of r75349, this revision was made useless, and even worse, it was leaking a handle to the directory where the FSD doesn't support notifications.
Also made some debug traces more useful

svn path=/trunk/; revision=75419
2017-07-27 09:33:11 +00:00
Benedikt Freisen
b36097ee50 [MSPAINT]
- Enable drag cancellation -- patch by Katayama Hirofumi MZ

CORE-13395 #resolve

svn path=/trunk/; revision=75418
2017-07-27 09:29:42 +00:00
Alexander Shaposhnikov
084ec8dee3 [RAPPS]
- Added DownloadManager class (static for now)
- Multiple selection launches multiple download dialogs
  (Checkbox selection has a priority over Selection when clicking Install)
  *A preperation for lauching a single dialog with a list of apps*
- Show currently installing app in the dialog window

svn path=/branches/GSoC_2017/rapps/; revision=75417
2017-07-27 09:02:42 +00:00
Pierre Schweitzer
564e7818da [NFS]
Huge "hack" for ReactOS.
In case we're asked to unmount a NFS share, and there are still active FCBs, browse the prefix table for active NET_ROOT, and then, dump their associated FCBs (prefix + refcount).
It seems we only leak the root FCB.

CORE-8204
CORE-11327
CORE-13581

svn path=/trunk/; revision=75415
2017-07-26 20:00:30 +00:00
Pierre Schweitzer
bf93adc414 [DDK]
Define RxIsFcbTableLockAcquired

CORE-8204
CORE-11327
CORE-13581

svn path=/trunk/; revision=75414
2017-07-26 19:57:50 +00:00
Alexander Shaposhnikov
9b5e78353a [RAPPS]
- A quick fix for counter - used a list that is not updated prior to the message

svn path=/branches/GSoC_2017/rapps/; revision=75413
2017-07-26 17:27:34 +00:00
Thomas Faber
2d5ebe0ac1 [ACPICA]
- Update to version 20170629
CORE-13538 #resolve

svn path=/trunk/; revision=75412
2017-07-26 14:49:35 +00:00
Alexander Shaposhnikov
ec9d05004b [RAPPS] Making checkboxes useful WIP
- Added selection counter
  *NOTE: This requires changes in lang files*
- Added Sellect/Desellect button functionality
- Fixed some typos and macros-to-wide-functions

svn path=/branches/GSoC_2017/rapps/; revision=75411
2017-07-26 13:30:46 +00:00
Pierre Schweitzer
23e5c53ced [COPYSUP]
Remove leftovers from some attempted ugly things.
Should fix MSVC build

svn path=/trunk/; revision=75410
2017-07-26 09:55:30 +00:00
Pierre Schweitzer
85470b1b8e [RDBSS]
- Implement RxFastIoWrite()
- Finish implementation of RxFastIoCheckIfPossible()

[COPYSUP]
- Implement FsRtlCopyWrite2()

This brings (in link with r75398 fast IO writes to RDBSS, and thus NFS!

CORE-8204
CORE-11327

svn path=/trunk/; revision=75409
2017-07-26 09:28:41 +00:00
James Tabor
09ab5ea7ed [NtUser]
- Broadcast the appropriate messages to notify a change in display parameters and color. This should fix rollback issues from setting display modes. See CORE-12571 and CORE-13212.

svn path=/trunk/; revision=75407
2017-07-26 02:52:00 +00:00
Giannis Adamopoulos
27783c2956 [COMCTL32] -Implement taking into account the contents margins from the theme when calculating the size of the toolbar button. Using it while painting the button will be implemented in a later commit as it caused me some problems.
svn path=/trunk/; revision=75406
2017-07-25 22:41:26 +00:00
David Quintana
536fd901af [FREELDR]
Fix compilation on ARM.

svn path=/trunk/; revision=75404
2017-07-25 18:12:33 +00:00
David Quintana
ed2b3728b6 [BOOTLIB]
[BOOTMGR]
Disabled x86-specific code when building ARM.

[LIBSUPP]
Use a hack to replace inline asm which is not supported by MSVC ARM.

[DBGHELP]
Fix ARM register access from context struct.

[MSVCRT]
Fix typo in spec file.

[NTOSKRNL]
[WIN32SS]
Add asm dependency to *sys modules.

[CPPRT]
Add one of the missing constructor aliases. There's more, but my brain is fried at this point.

[BTRFS]
Define-away an include for x86-specific intrinsics.

This is the first batch of fixes for building reactos using the MSVC ARM toolchain. A lot more work is needed to get a full build including rostests and rosapps.

svn path=/trunk/; revision=75403
2017-07-25 17:30:21 +00:00
Pierre Schweitzer
294ab75756 [RDBSS]
- Implement RxCommonSetInformation(), RxpSetInfoMiniRdr(), RxSetBasicInfo()
- Stub RxSetAllocationInfo(), RxSetDispositionInfo(), RxSetEndOfFileInfo(), RxSetPipeInfo(), RxSetPositionInfo(), RxSetRenameInfo(), RxSetSimpleInfo()

CORE-8204
CORE-11327

svn path=/trunk/; revision=75402
2017-07-25 12:09:11 +00:00
Pierre Schweitzer
83bcd980a2 [XDK]
Define FILE_ATTRIBUTE_INTEGRITY_STREAM

svn path=/trunk/; revision=75401
2017-07-25 11:34:36 +00:00
James Tabor
65e31a0c41 [NtUser]
- Initialize rectangle to all zero's. See CORE-13582.

svn path=/trunk/; revision=75400
2017-07-24 23:48:08 +00:00
David Quintana
b0469b9227 [CABMAN]
Fix pointer math ('unsigned long' will truncate the pointer).

[MKISOFS/SCHILY TOOLS]
Fix the invalid assumption that a 'long' variable can hold pointers. Will be sent upstream.

With this the whole of reactos and rostests builds on x64. Rosapps still has issues.

svn path=/trunk/; revision=75399
2017-07-24 18:37:25 +00:00
Pierre Schweitzer
f8e1661549 [RDBSS]
- Implement __RxWriteReleaseResources(), RxCommonWrite(), RxCompleteMdl(), RxGetTopIrpIfRdbssIrp(), RxLowIoWriteShell(), RxLowIoWriteShellCompletion()
- Finish implementation of RxCommonCleanup() so that it handles setting EOF on a file
- Finish implementation of RxCommonCreate() so that it handles sharing violations and attempts to scavenge open files

[RXCE]
- Implement RxpScavengeFobxs(), RxpTrackDereference(), RxpTrackReference(), RxPurgeFobx(), RxPurgeRelatedFobxs(), RxReinitializeContext(), RxSetFileSizeWithLock(), RxScavengeFobxsForNetRoot()
- Fix a bug in RxPrefixTableLookupName() where it was badly handling nodes in scavenger

This commits brings several improvments to the NFS driver.
First of all, now, the driver handles creating, extending and writing to files!
It also handles purging dormant opened files when a file opening fails because of a sharing violation
Finally, it also brings something to look at our references issues in RDBSS to help finding out why our FCB are never (or nearly) dereferenced

CORE-8204
CORE-11327
CORE-13581

svn path=/trunk/; revision=75398
2017-07-24 17:05:05 +00:00
David Quintana
30a8a02f54 [APITESTS]
MSVCRT_CRT_APITEST: Remove getmainargs tests from X64 build.
DELAYIMP: Fix callback prototype.
CComHeapPtr: Fix implementation of IMallocSpy to match the actual interface.

[WINETESTS]
ntdll: Disable 'generated' tests when not i386 platform, since they were generated for x86 and not x64 or ARM.


Fixes x64 compilation for tests.

svn path=/trunk/; revision=75397
2017-07-24 15:09:22 +00:00
David Quintana
86c98bfda7 [BOOTLIB]
Stub out some arch-specific functions (fixes x64 build).

[USBPORT]
Actually fix x64 build. The old code was not working at all, but the bootlib errors cancelled the build earlier than I thought.

The X64 compilation now succeeds, but cabman crashes trying to generate the bootcd.

svn path=/trunk/; revision=75396
2017-07-24 15:08:16 +00:00
David Quintana
a822da7802 [EXPLORER]
[RSHELL]
[NTOBJSHEX]
[BROWSEUI]
[SHELL32]
Get rid of the unused "placement new" operators.

svn path=/trunk/; revision=75394
2017-07-24 10:40:55 +00:00
David Quintana
e0280ef3ab [USBPORT]
Oops, brainfart (Fixes 32bit build).

svn path=/trunk/; revision=75393
2017-07-24 10:37:53 +00:00
David Quintana
cdf1fc5784 [MSPAINT]
Correct callback return type (Fixes X64 build).

[USETUP]
Correct definition of the struct (fixes X64 build).

[USBPORT]
Improve struct size checks so they are X64-compatible (fixes X64 build).

The build as a whole still fails due to bootlib, but implementing those is beyond my expertise.

svn path=/trunk/; revision=75392
2017-07-24 10:34:06 +00:00
Mark Jansen
dbcb280e05 [SHORTCUTS.INF] Move the shortcut creation for screenshot.exe to the new rosapps_shortcuts.inf. Patch by Joachim Henze (reactosfanboy)
CORE-13426 #resolve #comment Thanks!

svn path=/trunk/; revision=75391
2017-07-22 20:23:33 +00:00
Mark Jansen
808c1d2aac [WIN32SS][SHELL32] Fix the location and repaint of the version info shown on the desktop. Patch by Katayama Hirofumi MZ.
CORE-13567 #resolve #comment Thanks!

svn path=/trunk/; revision=75390
2017-07-22 18:27:32 +00:00
Giannis Adamopoulos
6e74f9217a [EXPLORER] -Restore a call to RegLoadSettings while handling WM_DISPLAYCHANGE which was removed in r74221. This is not really correct since it resets the size and position of the taskbar but I add it back since it updates the cached rects for all four positions.
svn path=/trunk/; revision=75389
2017-07-22 17:13:06 +00:00
Mark Jansen
68a311b64d [SYSSETUP][SHORTCUTS.INF] Add FontSub program shortcut to Start Menu. Patch by Katayama Hirofumi MZ.
CORE-13428 #resolve #comment Thanks!

svn path=/trunk/; revision=75388
2017-07-22 16:55:08 +00:00
Hermès Bélusca-Maïto
2152b66c27 [UNATTEND]: Move a comment sign ';' to a better place.
svn path=/trunk/; revision=75387
2017-07-22 15:54:40 +00:00
Giannis Adamopoulos
74348be606 [EXPLORER] -Implement the minimum taskbar size for the vertical position.
svn path=/trunk/; revision=75386
2017-07-22 09:13:33 +00:00
Giannis Adamopoulos
0c41ef8fb6 [BROWSEUI]
-CBandSite: Remove CCS_NORESIZE style. This is a hack probably needed because our rebar control is buggy.

[EXPLORER]
-CTaskBand::GetBandInfo: Use the toolbar button size as the minimum and integral size for the band.
-CTaskSwitchWnd: Use the system small icon size for the size of the icon. Recreate the image list if this size changes. This together with the size of the font are the only factors for the size of the toolbar and consequently for the size of the band and if it is the only band, the size of the taskbar. Don't use TB_SETBUTTONSIZE. Now the size of the image list and the font dictate the size.
-CTrayWindow: In the classic theme make the start button have the same height with the tasks toolbar button height. Improve the calculation of the size of the taskbar in FitToRebar.

These changes should make the taskbar and the toolbar have a proper size. On top of that the taskbar is finally resizable (however our rebar is too buggy and still fills only the first line in the taskbar). While testing this I noticed that moving the taskbar in the sides of the screen is buggy now. I'm not sure if this was uncovered by these changes, if this was broken before or this was caused by these changes (looks unlikely to me) but will be fixed in subsequent commits).

svn path=/trunk/; revision=75385
2017-07-21 14:32:15 +00:00
Alexander Shaposhnikov
1866b89100 [RAPPS] Improvements & multiple selections
- Improved translations view - storing LCIDs now
- Added checkboxes on list view and Select All button (although they do nothing just yet)
- Made download dialogs nonmodal (yay, download and install multiple apps at once!)
- Minor code improvements

svn path=/branches/GSoC_2017/rapps/; revision=75384
2017-07-20 22:57:48 +00:00
Sylvain Petreolle
ce979b05e3 Revert r70669, it was a change in an unused 3rd party file.
CORE-10629

svn path=/trunk/; revision=75383
2017-07-20 21:32:16 +00:00
James Tabor
2b90a87358 [NtUser]
- Patch by Huw Davies : Explicitly set last error to ERROR_SUCCESS.
- Remove hack and added a note.

svn path=/trunk/; revision=75382
2017-07-20 20:26:14 +00:00
James Tabor
f11f599e16 [NtUser]
- Patch by Fabian Maurer : Don't send WM_CHAR when a menu gets VK_ESCAPE and add tests.

svn path=/trunk/; revision=75381
2017-07-20 19:57:25 +00:00
James Tabor
f6da80a67e [NtUser]
- Patch by Alex Henrie : Tell MENU_SuspendPopup which message to remove.

svn path=/trunk/; revision=75380
2017-07-20 19:46:17 +00:00
James Tabor
ab58eda781 [NtUser]
- Remove unused code and reintegrate wine code.

svn path=/trunk/; revision=75379
2017-07-20 19:40:17 +00:00
Sylvain Petreolle
6157c78fb8 Patch by Mike Swanson :
This adds support for Esperanto as a language and a keyboard layout based on the one from X.Org.

CORE-11021


svn path=/trunk/; revision=75378
2017-07-19 20:33:58 +00:00
Daniel Reimer
9d8a8c4366 [CAROOT]
Updates root CAs to recent ones.

svn path=/trunk/; revision=75377
2017-07-19 19:23:47 +00:00
Alexander Shaposhnikov
bbc5642138 [RAPPS] Fixed multiple redraws of the apps list
svn path=/branches/GSoC_2017/rapps/; revision=75376
2017-07-19 11:35:46 +00:00
Alexander Shaposhnikov
f07567454b [RAPPS] Translations
- Implemented HasNativeLanguage() and HasEnglishLanguage()
- Moved config parser to it's own class CConfigParser
- Added translation strings

svn path=/branches/GSoC_2017/rapps/; revision=75375
2017-07-19 10:39:03 +00:00
Hervé Poussineau
86d4e580c0 [SETUPAPI] Do not crash when encountering a device with HardwareIDs
svn path=/trunk/; revision=75374
2017-07-19 09:19:11 +00:00
Alexander Shaposhnikov
ce70e3c89b [RAPPS] Refactoring & bugfixes
- Made a bunch of classes for Available apps;
- Removed unnessesary GetBuffer calls;
- Set a bit higher minimum height for RichEdit;
- Added "Single" indicator for the Languages to show that the translation available is the only one;
- Small style changes.

svn path=/branches/GSoC_2017/rapps/; revision=75373
2017-07-18 22:52:51 +00:00
Sylvain Petreolle
06b5ec800a [BDASUP]
Add digital TV tuning device driver to build.

svn path=/trunk/; revision=75372
2017-07-18 22:48:18 +00:00
Hermès Bélusca-Maïto
6721692a02 [REACTOS]: Russian translation update part 2/2 by amber: time-zones.
svn path=/trunk/; revision=75370
2017-07-17 21:30:20 +00:00
Hermès Bélusca-Maïto
dbdfdc99f7 [REACTOS]: Russian translation update part 1/2 by amber.
CORE-13248

svn path=/trunk/; revision=75369
2017-07-17 21:26:25 +00:00
Hermès Bélusca-Maïto
e3397b9bdc [CRT]: Add a missing _munlock call, caught by Serge Gautherie.
CORE-11568

svn path=/trunk/; revision=75368
2017-07-17 20:55:34 +00:00
Hermès Bélusca-Maïto
f87f8bea7d [CMD]: Update the description of the START command, with the commutators that are known to work.
Translators, please update the translations based on en-US!

svn path=/trunk/; revision=75366
2017-07-17 17:17:22 +00:00
Hermès Bélusca-Maïto
1345a5a8a7 [MSVCRT][CRT]: Improvements/fixes over popen(), from Wine code and ported by Andreas Maier: the popen_handles array, which is used in _pclose, was never filled. _popen correctly fills it now.
Should fix returned codes by popen() and pclose(), which are functions that are called by windres, and this latter expects them to succeed. This was not the case before, in ROS, and therefore
trying to e.g. compile ROS within ROS failed from time to time with windres throwing the error that "preprocessing failed".
CORE-11568 #resolve

svn path=/trunk/; revision=75365
2017-07-17 16:11:18 +00:00
Hermès Bélusca-Maïto
73375485df [MSVCRT_APITEST]: Commit a simple test for popen(), by Andreas Maier.
CORE-11568

svn path=/trunk/; revision=75364
2017-07-17 15:27:40 +00:00
Hermès Bélusca-Maïto
2a5ed24776 [RXCE]: Fix bug, thanks MSVC! (warning C4553)
svn path=/trunk/; revision=75363
2017-07-17 12:47:18 +00:00
Eric Kohl
f5dcc15bd4 [NETAPI32]
DsAddressToSiteNamesExW: Remove dead code.
This bug was found by Christian Bosch. Thanks a lot!

svn path=/trunk/; revision=75362
2017-07-16 21:48:30 +00:00
Alexander Shaposhnikov
f2b68a0423 [ATL] [3RDPARTY] Updated & moved atlex to sdk/lib/3rdparty
svn path=/branches/GSoC_2017/rapps/; revision=75361
2017-07-16 15:38:38 +00:00
Giannis Adamopoulos
689777616b [SHELL32]
-CRegFolder: Implement CRegFolder::EnumObjects. Change its constructor to receive an extra parameter for the name of the key that should be enumerated.
-CEnumIDListBase: Add a new method called AppendItemsFromEnumerator to facilitate merging the contents from one IEnumIDList to another.
-Use the above in the enumerators of CControlPanelFolder, CDesktopFolder and CDrivesFolder to make them significantly simpler.

svn path=/trunk/; revision=75360
2017-07-16 15:13:02 +00:00
Mark Jansen
347ea70d19 [SHIMENG] Pass shim commandline to shims. CORE-11329
svn path=/trunk/; revision=75359
2017-07-16 13:56:08 +00:00
Mark Jansen
116dfc5bd7 [SHIMLIB] Add debug print functionality for shims. CORE-11329
svn path=/trunk/; revision=75358
2017-07-16 13:50:23 +00:00
Mark Jansen
9215c5efc4 [ACPPAGE] Usability: Convert the edit box to a combobox, ask the user if they want to add the layer when closing the dialog.
svn path=/trunk/; revision=75357
2017-07-16 13:47:16 +00:00
Mark Jansen
e41b7d9270 [SHELL32] Do not dereference a nullpointer for logging. CORE-13552
svn path=/trunk/; revision=75356
2017-07-16 13:44:18 +00:00
Sylvain Petreolle
21fc538caa Patch by Serge Gautherie:
[BOOTDATA]
hivesys.inf: Put 'Mup' service back in 'File System' group. (Fix r72450)
Fixes installation of Vmware Tools which was always hanging.
CORE-12107 #resolve


svn path=/trunk/; revision=75355
2017-07-16 13:37:29 +00:00
Pierre Schweitzer
13ae1129e5 [RDBSS]
Complementary to r75353: implement RxCancelNotifyChangeDirectoryRequestsForFobx()

CORE-11327

svn path=/trunk/; revision=75354
2017-07-15 11:41:24 +00:00
Pierre Schweitzer
8f00170a93 [RDBSS]
Implement RxNotifyChangeDirectory(), RxLowIoNotifyChangeDirectoryCompletion(), RxCancelNotifyChangeDirectoryRequestsForVNetRoot()

This means the first parts of the directory watch are here. Though, NFS driver doesn't support these, but at least, it reduces the UNIMPLEMENTED spam!

CORE-11327

svn path=/trunk/; revision=75353
2017-07-15 10:05:32 +00:00
Giannis Adamopoulos
0c134b04f8 [SHELL32] -Move CFSExtractIcon_CreateInstance to CFSFolder.cpp
svn path=/trunk/; revision=75352
2017-07-15 09:38:45 +00:00
Mark Jansen
e12241f5a1 [USBPORT] Fix incorrect transfer direction for URBs. Patch by Vadim Galyant. CORE-13546
svn path=/trunk/; revision=75351
2017-07-15 09:24:30 +00:00
Giannis Adamopoulos
c343d309f2 [SHELL32]
- CDesktopFolder: Create the enumerators of the internal fs folders and add their items in its own list instead of calling CreateFolderEnumList which enumerates ... files.
- Remove CEnumIDListBase::CreateFolderEnumList and move its code to CFileSysEnum::Initialize.

svn path=/trunk/; revision=75350
2017-07-15 09:18:06 +00:00
Pierre Schweitzer
9f3cbac23f [SHELL32]
In case a FSD doesn't support directory changes notifications, don't try to requeue a notification each time it returns 0 data.
Just quit instead.

CORE-13549

svn path=/trunk/; revision=75349
2017-07-15 07:48:47 +00:00
Pierre Schweitzer
c4689f7e1d [SHELL32]
Avoid double-free and use-after-free in case the FSD fails to register the change directory notification

CORE-13549

svn path=/trunk/; revision=75348
2017-07-15 07:45:28 +00:00
James Tabor
47ade62a62 [ENG]
- Patch by Katayama Hirofumi MZ : Add counts to path data. See CORE-13536.

svn path=/trunk/; revision=75347
2017-07-15 03:58:42 +00:00
Hermès Bélusca-Maïto
f6dbb71053 [USETUP]: Also adapt the INFCONTEXT structure here.
svn path=/trunk/; revision=75344
2017-07-14 22:17:12 +00:00
Hermès Bélusca-Maïto
882901c398 [INFLIB][FREELDR]: Introduce a (non-used) "CurrentInf" field in the INFCONTEXT structure, to make it compatible with the "standard" one defined in setupapi.h, so that it can be possible to either use our inflib or setupapi.dll in our code.
This will break build inside usetup, and this will be fixed in the next commit.

svn path=/trunk/; revision=75343
2017-07-14 22:15:48 +00:00
Mark Jansen
39596fae98 [APPHELP_APITEST] Convert test_match_ex to a data driven test + fix a bug in the apitest.
svn path=/trunk/; revision=75342
2017-07-14 20:35:11 +00:00
Mark Jansen
9f1e4379e0 [SPOOLSS] Stub BuildOtherNamesFromMachineName as seen in wine commit cdb5f35. This fixes a crash in spoolss:spoolss
svn path=/trunk/; revision=75341
2017-07-14 20:05:27 +00:00
Mark Jansen
ae49e29351 [APPCOMPAT] Various fixes.
- Simplify shimdbg output as suggested by Thomas
- Simplify media/sdb/sysmain.xml
- Fix some warnings + a debug print

svn path=/trunk/; revision=75340
2017-07-14 19:29:34 +00:00
Peter Hater
eb6e21dd58 [ADNS] Add function to return number of DNS servers available for query.
[DNSAPI] Use newly added function to return without search if no DNS servers are available.
CORE-13441 #resolve

svn path=/trunk/; revision=75339
2017-07-14 16:05:31 +00:00
Hermès Bélusca-Maïto
0b6eedad3a [WIN32K]: Addendum to r75332 : fix variable usage without initialization error C4700 (certainly due to a copy-paste error), caught by MSVC compiler...
CORE-13536

svn path=/trunk/; revision=75337
2017-07-14 01:37:06 +00:00
Hermès Bélusca-Maïto
41f2eb6c3e [GETUNAME]: Translation update by Sergey Stopkin.
CORE-13222 #resolve

svn path=/trunk/; revision=75335
2017-07-14 00:40:31 +00:00
Alexander Shaposhnikov
5db3c35fc8 [RAPPS] Showing info from Languages sectin
- Created dummies & added new string resources
- lang/uk-UA.rc: translated all strings
- crichedit.h: safe text add

svn path=/branches/GSoC_2017/rapps/; revision=75334
2017-07-13 22:01:02 +00:00
Hermès Bélusca-Maïto
00d7ab957b [CMAKE]: Correctly set valid PE image version numbers for the OS subsystem (GCC builds), and image and OS version numbers from the NT OS version ReactOS is based on.
svn path=/trunk/; revision=75333
2017-07-13 20:50:49 +00:00
James Tabor
899d12e786 [Eng]
- Implement PATHOBJ_Xxx service routines, see CORE-13536.

svn path=/trunk/; revision=75332
2017-07-13 19:34:49 +00:00
James Tabor
e61d96aa6a [NtGDI]
- Update path structure for future use.

svn path=/trunk/; revision=75329
2017-07-13 17:30:15 +00:00
Alexander Shaposhnikov
e01bd5a80f [RAPPS] Language loading
- RAPPS now can load language list from a file where locale identifiers are separated by '|'
  `Language=0C09|0813|0422 \\English|Dutch|Ukrainian`
The only limitation is that the parameter is only 260 chars.
So there arises another goal - multiline parameters
- This list is stored in `CSimpleArray<CStringW>` as strings
Maybe it would be wiser to store them as INT array.
- Some refactoring

svn path=/branches/GSoC_2017/rapps/; revision=75328
2017-07-13 15:29:53 +00:00
James Tabor
deaa7df817 [Win32SS]
- Remove old GDI structure and use the new one.

svn path=/trunk/; revision=75326
2017-07-13 01:59:41 +00:00
Hermès Bélusca-Maïto
be9a0afc1f [SHELL32]: Enable showing the sorting arrows in the sorting header column of shell folder listviews.
CORE-11776 #resolve

svn path=/trunk/; revision=75325
2017-07-13 00:21:32 +00:00
Alexander Shaposhnikov
8e4e422ba7 [RAPPS] More code improvements
- Replaced some functions with their Wide versions
- Generalized `GetInstalledVersion` function so it could accept NULL
- Minor cleanup

svn path=/branches/GSoC_2017/rapps/; revision=75324
2017-07-12 22:59:26 +00:00
Hermès Bélusca-Maïto
6f2c13e4df [WELCOME]: Diverse improvements:
- Compute once, when loading the list of topics with their associated commands, their special arguments or starting paths. The computed values can then be used each time a topic command is invoked.
- Distinguish between runnable commands (aka. external executables or files to be started), and internal actions like <msg> and <exit>.
- I have recently discovered that Windows' welcome.exe could also use a custom (OEM) "welcome.ini" file, much like what we already supported: see http://i.imgur.com/Se3IoQN.png .
  To make ours backwards-compatible with Windows' one, rename the "Button" keyword into "MenuText", and introduce two new keywords "ConfigCommand" and "ConfigArgs" that specify respectively the command to be started
  and its associated arguments. We continue to support our "Action" keyword for specifying internal actions.
- Improve the loading of the localized resources from the INI files.
- Correctly print the ReactOS version text, at a correct position depending on whether the checked box is display or not.
- Simplify some StringCchCopy + StringCchCat calls into StringCchPrintf.
- Simplify the code that creates the different fonts to be used within the program.
- Use more readable resource ID names.

svn path=/trunk/; revision=75322
2017-07-12 22:16:50 +00:00
Mark Jansen
d9827356db [WIN32SS] Fix EqualFamilyInfo function logic. Patch by Victor Martinez Calvo, modified by Katayama Hirofumi MZ.
CORE-13411 #resolve, CID 1411971

svn path=/trunk/; revision=75321
2017-07-12 18:40:49 +00:00
Giannis Adamopoulos
3841692020 [COMCTL32_APITEST] - Log the dwDrawStage when the NM_CUSTOMDRAW is received to make the test slightly more descriptive.
svn path=/trunk/; revision=75320
2017-07-12 12:17:05 +00:00
Alexander Shaposhnikov
c4527e3a56 [SDK] Added atlex for future use
- atlex is ATL wrappers for WINAPI functions
- It is header-only library licensed under GPLv3
- For details see https://github.com/Amebis/atlex 

svn path=/branches/GSoC_2017/rapps/; revision=75319
2017-07-11 22:08:48 +00:00
Alexander Shaposhnikov
8f622b4bd0 [ATL]
- Added missing operator+=

svn path=/branches/GSoC_2017/rapps/; revision=75318
2017-07-11 21:58:31 +00:00
Alexander Shaposhnikov
09da413dc8 [RAPPS] Fixes
- Minor style improvements
- Not resizing with GetBuffer() calls where not nessesary
- loaddlg.cpp: Wrong logic fixed
- rosui.h: Fixed length determination

svn path=/branches/GSoC_2017/rapps/; revision=75317
2017-07-10 22:45:53 +00:00
Alexander Shaposhnikov
c8a43ce2d1 [RAPPS] Some fixes
- winmain.cpp, loaddlg.cpp, installed.cpp: 
  Changed string-related opreations
- installed.cpp: Fixed buffer sizing when calling RegQueryValueExW()
- misc.cpp: Removed unused function
- rosui.h: Made use of GetWindowTextLength()
        

svn path=/branches/GSoC_2017/rapps/; revision=75316
2017-07-10 22:26:01 +00:00
Alexander Shaposhnikov
cf469e4f74 [RAPPS] Extensive conversion to ATL and general improvements
* Converted most of the WCHAR buffers to ATL::CStringW
* available.cpp: replaced C heap list with ATL::CAtlList
* Improved style consistency
* Added myself to the headers
* Other improvements

svn path=/branches/GSoC_2017/rapps/; revision=75315
2017-07-10 21:02:24 +00:00
Thomas Faber
4c8e09598a [USBPORT]
Patch by Vadim Galyant:
- Improve variable naming
- Make more consistent use of constants

svn path=/trunk/; revision=75314
2017-07-09 21:05:58 +00:00
Giannis Adamopoulos
0e8444a310 [EXPLORER]
- CTrayWindow: Implement the IContextMenu interface. This will be used by the CBandSite to query the context menu of its site (the CTrayWindow) and add it in its context menu. 
- CTrayWindowCtxMenu: Use Shell_MergeMenus in QueryContextMenu and respect its parameters.

svn path=/trunk/; revision=75313
2017-07-09 20:57:01 +00:00
James Tabor
1c0aedce83 [ENG]
- Turn on GradientFill apply small hack fix to keep it out of a loop.
- Turning code off does not fix the code, 8 years later!

svn path=/trunk/; revision=75312
2017-07-09 18:06:24 +00:00
Hermès Bélusca-Maïto
d2fc6e6ee2 [old_WORDPAD]: Fix typo (caught by user_trisquel).
svn path=/trunk/; revision=75311
2017-07-09 16:06:07 +00:00
Mark Jansen
d88628173c [FONTS] Add substitutes for the System font, and remove a hack for the System font. Patch by Katayama Hirofumi MZ. CORE-9222
svn path=/trunk/; revision=75310
2017-07-09 15:06:49 +00:00
Pierre Schweitzer
36532bafeb [RDBSS]
Fix broken assignment.
Spotted by cppcheck.

svn path=/trunk/; revision=75309
2017-07-08 21:22:55 +00:00
Eric Kohl
994a9eced3 [NETAPI32]
- Add DsAddressToSiteNamesExA stub.
- Implement DsAddressToSiteNamesExW.

svn path=/trunk/; revision=75308
2017-07-08 21:07:29 +00:00
Pierre Schweitzer
ae1901b2c3 [RXCE]
- Define RxShouldPostCompletion() and use it
- Define RxIsResourceOwnershipStateExclusive() and use it
- Define some magic values

[RDBSS]
- Implement CheckForLoudOperations(), RxAdjustFileTimesAndSize(), RxIsOkToPurgeFcb()
- Continue implementation of RxCommonCleanup()
- Fix bugs in the RxCommonCleanup() implementation and make it more explicit when in the delete on close path
- Stub RxCleanupPipeQueues(), RxLowIoLockControlShell()
- Silent a few DPRINTs

CORE-8204
CORE-11327

svn path=/trunk/; revision=75307
2017-07-08 17:12:33 +00:00
Eric Kohl
f45220c16f [NETAPI32]
- Add DsValidateSubnetNameA/W stubs.
- Move DsRoleFreeMemory to a better location.

[SDK/INCLUDE]
Add DsValidateSubnetNameA/W prototypes to dsgetdc.h.

svn path=/trunk/; revision=75306
2017-07-08 12:00:44 +00:00
Eric Kohl
a18e985b12 [NETAPI32]
- Add DsDeregisterDnsHostRecordsA stub.
- Implement DsDeregisterDnsHostRecordsW.

[SDK/INCLUDE]
Add DsDeregisterDnsHostRecordsA/W prototypes to dsgetdc.h.

svn path=/trunk/; revision=75305
2017-07-08 09:11:22 +00:00
Hermès Bélusca-Maïto
0a7125a8be Integrate the USERINIT changes r75295, r75302 and r75303 from the setup_improvements branch back to trunk.
svn path=/trunk/; revision=75304
2017-07-08 00:23:33 +00:00
Giannis Adamopoulos
201f83b4b1 [SHELL32]
- Simplify SHELL32_CoCreateInitSF by letting the callers fill the PERSIST_FOLDER_TARGET_INFO. This lets us stop using _ILSimpleGetTextW in it which breaks the logic that pidls should be read only by their shell folder. Also add an overload for SHELL32_CoCreateInitSF  that makes it simpler to create a shell folder with a csidl.
- Add a SHELL32_BindToSF helper to share some logic that was duplicated in several shell folders.
- Move SHELL32_GetCustomFolderAttributeFromPath, SHELL32_GetCLSIDForDirectory and SHELL32_GetFSItemAttributes, SHELL32_BindToFS to CFSFolder.cpp as these were fs specific.
- These changes give finer control to shell folders for how the bind will be done and shares more logic that can be shared.

svn path=/trunk/; revision=75301
2017-07-07 20:34:27 +00:00
Eric Kohl
99fe0ae037 [NETAPI32]
- Add DsMergeForestTrustInformationW stub.
- Implement DsGetForestTrustInformationW.

[SDK/INCLUDE]
Add DsGetSiteNameA/W, DsGetForestTrustInformationW and DsMergeForestTrustInformationW prototypes to dsgetdc.h.

svn path=/trunk/; revision=75300
2017-07-07 17:59:14 +00:00
James Tabor
04b696718d [NtGDI]
- Return Set if managed, part of CORE-12888.

svn path=/trunk/; revision=75294
2017-07-06 19:13:49 +00:00
James Tabor
a1938e7ca3 [NtUser]
- Part of CORE-13110. Set DC window rectangle and pointer.

svn path=/trunk/; revision=75293
2017-07-06 19:06:29 +00:00
James Tabor
b1f132e660 [Gdi32]
- Sync/Port Wine Enhanced/Metafile code. This is a fix for CORE-12888.
- Wine made this difficult to port and keep the whole file unchanged for syncing.

svn path=/trunk/; revision=75292
2017-07-06 18:52:22 +00:00
Giannis Adamopoulos
3b7b8b89b3 [SHELL32] -Remove IShellView_Constructor and CDefView_Constructor. Use SHCreateShellFolderView and SHCreateShellFolderViewEx instead.
svn path=/trunk/; revision=75289
2017-07-05 21:36:20 +00:00
Colin Finck
4c022adf19 [PRINTING]
Apply a consistent style to all similar functions:
- Spoolss functions don't necessarily set ERROR_SUCCESS. Check the boolean return value instead and only query the error code on failure.
- Use AlignRpcPtr and UndoAlignRpcPtr wherever feasible.
- Use one static function per level that can be called from both Get* and Enum* APIs.
- Use PackStrings in all functions that return structures with strings.
- Add TRACEs to all non-static functions in localspl.
- Pass a double pointer to all Marshalling functions and advance to the next structure there.
- Perform sanity checks and return the right error codes in a Windows-compatible way.
- Return TRUE when an Enum* API has no elements to enumerate.

Also fixes CORE-12793

svn path=/trunk/; revision=75287
2017-07-05 15:29:13 +00:00
Pierre Schweitzer
f93ac7e964 [RXCE]
- Implement RxFinalizeConnection(), RxOrphanSrvOpens()
- Stub RxOrphanSrvOpensForThisFcb()

[RDBSS]
- Fix a bug in RxCommonDevFCBClose() where prefix table wasn't acquire exclusively; this was problematic due to potential prefix table removal on dereference
- Stub RxCancelNotifyChangeDirectoryRequestsForVNetRoot()

This commit basically allows you to delete a NFS share you would have made use of in ReactOS.
Like net use z: \\share\path can be deleted through net use /delete z:

Note that if you access the share using cmd tools (dir, copy, more, and so on), dismount will work.
If you attempt to access with Explorer, then, handles will be kept open and dismount will fail.

CORE-8204
CORE-11327

svn path=/trunk/; revision=75286
2017-07-05 06:11:10 +00:00
Pierre Schweitzer
d135302c2f [MPR]
Import Wine commit:
- 26192671700360859cd8a0133dabcd96ec1a786b, Implement WNetConnectionDialog().

CORE-13516

svn path=/trunk/; revision=75285
2017-07-05 05:40:01 +00:00
Hermès Bélusca-Maïto
d876a3ea01 [WELCOME]: UI improvements:
- Allow only one running instance of the Welcome application at a time.
- Implement translating \xhhhh hexadecimal character specifications in topic text descriptions.
- Allow using the keyboard for navigating amongst the topics, and ENTER key presses to run the selected topic command.
  <rant> *OF COURSE*, because we are ReactOS *SO* we are *buggy* (well, user32/win32k), keyboard navigation via arrow keys *DOES NOT WORK*!! (only navigation via TAB key do work) 8^(((( </rant>
  This however works OK on Windows.
- Improve topic buttons activation when mouse hovers around above the window, as well as when window activation is lost or regained.
- Change the default text font to Tahoma.
- Don't hardcode white brush, but instead use stock object WHITE_BRUSH. Similarly, don't hardcode text black colour, but instead use the ambient text colour of the system.
- Add keyboard shortcuts to the default topic items.
- Shift the window ID of both the checkbox and the Exit buttons to be below a fixed topic-button base ID.
- In GetLocaleName(), use more explicit returned-variable names (cchRet, because it's a returned string length in character numbers).

svn path=/trunk/; revision=75282
2017-07-05 02:02:43 +00:00
James Tabor
e22e9fc81f [GDI32_WINETEST]
- Sync with Wine main head 2017-07-03.

svn path=/trunk/; revision=75275
2017-07-03 20:39:50 +00:00
Mark Jansen
85dde2e51b [USER32_APITEST] Add tests to validate the messages sent during MDI window creation. CORE-12052
The test passes from 2k3 - 10.

svn path=/trunk/; revision=75274
2017-07-03 20:33:36 +00:00
Pierre Schweitzer
3ff085924b [NET]
On dismount, you can either use: net use /delete <drive>: or net use <drive>: /delete

CORE-13517

svn path=/trunk/; revision=75271
2017-07-02 20:39:48 +00:00
Eric Kohl
c8ee4f6694 [NETAPI32]
- Add DsGetDcSiteCoverageA stub.
- Implement DsGetDcSiteCoverageW.

[SDK/INCLUDE]
Add DsGetDcSiteCoverageA/W prototypes to dsgetdc.h.

svn path=/trunk/; revision=75270
2017-07-02 20:21:27 +00:00
Pierre Schweitzer
07c8bb3ca4 [RXCE]
Assorted fixes:
- Avoid list corruption
- Avoid stack corruption
- Avoid ASSERT on FCB reuse for same file type

CORE-11327

svn path=/trunk/; revision=75269
2017-07-02 20:10:16 +00:00
Eric Kohl
84eb2fc018 [NETAPI32]
- Add DsAddressToSiteNamesA stub.
- Implement DsAddressToSiteNamesW.

[SDK/INCLUDE]
Add DsAddressToSiteNamesA/W and DsAddressToSiteNamesExA/W prototypes to dsgetdc.h.

svn path=/trunk/; revision=75268
2017-07-02 18:29:38 +00:00
Pierre Schweitzer
cf2dee2914 [COPYSUP]
Addendum to r75265 (bis)

svn path=/trunk/; revision=75267
2017-07-02 17:08:27 +00:00
Pierre Schweitzer
23cc1ba7bf [RDBSS]
Addendum to r75265

svn path=/trunk/; revision=75266
2017-07-02 17:04:12 +00:00
Pierre Schweitzer
0584d49170 [RDBSS]
- Implement RxCloseAssociatedSrvOpen(), RxFastIoRead(), RxPurgeNetFcb(), RxRemoveShareAccess(), RxRemoveShareAccessPerSrvOpens()
- Continue implementation of RxCommonCleanup() to handle allocated SRV_OPEN
- Halfplement RxFastIoCheckIfPossible() so that it handles read operations
- Stub RxCancelNotifyChangeDirectoryRequestsForFobx()

[RXCE]
- Implement RxChangeBufferingState(), RxFinalizeSrvOpen(), RxFreeFcbObject(), RxGatherRequestsForSrvOpen(), RxGetDeviceObjectOfInstance(), RxInitializeRxTimer(), RxMarkFobxOnCleanup(), RxMarkFobxOnClose(), RxpDiscardChangeBufferingStateRequests(), RxpDispatchChangeBufferingStateRequests(), RxpLookupSrvOpenForRequestLite(), RxpMarkInstanceForScavengedFinalization(), RxPostOneShotTimerRequest(), RxPrepareRequestForReuse(), RxProcessChangeBufferingStateRequestsForSrvOpen(), RxpUndoScavengerFinalizationMarking(), RxPurgeChangeBufferingStateRequestsForSrvOpen(), RxPurgeFobxFromCache(), RxRemoveNameNetFcb(), RxScavengerTimerRoutine(), RxTimerDispatch()
- Finish implementation of RxDereference() to handle scavenger
- Finish implementation of RxLowIoCompletionTail() to handle blocked operations resume
- Fix a bug in RxFinalizeNetFcb() where it was dereferencing its NET_ROOT instead of its V_NET_ROOT
- Fix bugs in __RxAcquireFcb() where it improperly handled the lack of RX_CONTEXT
- Halfplement RxResumeBlockedOperations_ALL() to extract blocked operations from RX_CONTEXT (and drop them...)
- Stub RxDispatchChangeBufferingStateRequests(), RxScavengerFinalizeEntries()

[COPYSUP]
- Implement FsRtlCopyRead2()
This library is basically what you can find in FsRtl with an extended support of Top Level IRP. It is used by RDBSS for FastIO. Next to come in it will be FsRtlCopyWrite2().

This commit brings several improvements to current work on RBDSS/RXCE. First of all, both libraries will leak less (again!).
It also brings the scavenger infrastructure (not fully fonctionnal though). Our NFS driver doesn't make use of it though.
Finally, this brings support of FastIO (for read operations ;-)) to our NFS driver!

Regarding CORE-13484, with copy + FastIO I could copy a file without troubles. But that seems to be still problematic with xcopy without FastIO...

CORE-13484
CORE-11327

svn path=/trunk/; revision=75265
2017-07-02 17:00:11 +00:00
Mark Jansen
92ea310563 [SHIMDBG] Output both to the console and the debug output + fix a copypasta error.
svn path=/trunk/; revision=75264
2017-07-02 11:56:01 +00:00
Mark Jansen
a386d71b0e [REGEDIT] Pre-select the text in the edit dialog.
svn path=/trunk/; revision=75263
2017-07-02 11:50:38 +00:00
Mark Jansen
14bd8eb6f1 [APPHELP] Propagate applied layers to child processes by setting the env var __COMPAT_LAYER. CORE-13284
svn path=/trunk/; revision=75262
2017-07-02 11:43:54 +00:00
Eric Kohl
35bbb0a567 [NETAPI32]
- Add DsEnumerateDomainTrustsA, DsEnumerateDomainTrustsW, DsRoleFreeMemory, DsGetDcNameA, DsGetDcNameW, DsGetSiteNameA and DsGetSiteNameW stubs to netlogon.c.
- Remove the now obsolete file ds.c.
- Implement DsGetSiteNameW and NetEnumerateTrustedDomains. These functions call their counterpart in the netlogon service.

svn path=/trunk/; revision=75261
2017-07-01 23:12:06 +00:00
Sebastian Gasiorek
321c2c1f08 [WIN32K][DXG] DxDdReenableDirectDrawObject: update dhpdev. It is wrong after screen resolution change
svn path=/trunk/; revision=75259
2017-07-01 20:12:37 +00:00
Mark Jansen
711a1cb341 [APPHELP/SHIMENG] Begin implementing the core of the SHIM engine.
With this, the basics of the app compat engine are implemented and should be functional.
Currently it is disable with a policy, to be enabled soon.
CORE-13284
CORE-11300

svn path=/trunk/; revision=75258
2017-07-01 20:06:30 +00:00
Mark Jansen
1fa3c1a922 [ACPPAGE] Register the extension + allow it to be disabled with policies. Disable it with the rest of the app compat infrastructure. CORE-10375
svn path=/trunk/; revision=75256
2017-07-01 11:37:44 +00:00
Thomas Faber
b4533fa94a [USBPORT][USBHUB_NEW]
- Make use of the newly defined structures and constants and remove locally defined versions. Patch by Vadim Galyant.

svn path=/trunk/; revision=75255
2017-07-01 06:22:27 +00:00
Thomas Faber
3db54fabc1 [PSDK]
Patch by Vadim Galyant:
- Add USB port status change constants and structures
- Add USB hub descriptor type constants and missing device class constants

svn path=/trunk/; revision=75254
2017-07-01 06:19:26 +00:00
Thomas Faber
68430f1260 [USBPORT]
Patch by Vadim Galyant:
- Add USBPORT_HUB_CHARACTERISTICS structure
- Indicate the USB3 hub descriptor type when the miniport is an XHCI controller

svn path=/trunk/; revision=75253
2017-07-01 06:06:12 +00:00
James Tabor
bcea1db7b0 [NtGDI]
- Memory DC with no surface selected return true. WIP and part of CORE-12888.

svn path=/trunk/; revision=75252
2017-07-01 02:35:28 +00:00
James Tabor
9338a7ec63 [NtGDI]
- Memory DC with no surface selected return true. WIP and part of CORE-12888.

svn path=/trunk/; revision=75251
2017-06-30 23:23:33 +00:00
James Tabor
c4b72f20c6 [NtGDI]
- Remove DC information checking for non-BLT functions. WIP and part of CORE-12888.

svn path=/trunk/; revision=75243
2017-06-30 00:33:41 +00:00
James Tabor
6554d0079b [PSDK]
- Add EMRGRADIENTFILL, part of CORE-12888.

svn path=/trunk/; revision=75242
2017-06-30 00:17:50 +00:00
Alexander Shaposhnikov
d555cfe80a [RAPPS] StringCbCatW => StringCchCatW, sizeof() => _countof()
:(

svn path=/branches/GSoC_2017/rapps/; revision=75241
2017-06-29 19:31:19 +00:00
Alexander Shaposhnikov
f1d019a00a [RAPPS] winmain.cpp: sizeof instead of _countof
svn path=/branches/GSoC_2017/rapps/; revision=75240
2017-06-29 19:22:13 +00:00
Alexander Shaposhnikov
096c811846 [RAPPS] Fixed default "Download" folder default. Now defaults to "RAPPS Downloads" folder in user Documents or installation drive.
svn path=/branches/GSoC_2017/rapps/; revision=75239
2017-06-29 18:57:52 +00:00
Mark Jansen
af96013370 [APPHELP] Implement SdbpMatchExe, allowing to match applications / files based on properties. CORE-13284
svn path=/trunk/; revision=75238
2017-06-29 17:32:03 +00:00
Mark Jansen
2fc232f21e [ATL] Add missing CString += overload (char). Patch by Alexander Shaposhnikov. CORE-13503
svn path=/trunk/; revision=75237
2017-06-29 17:09:49 +00:00
Thomas Faber
1931f33c9b [KMTESTS:KERNEL32]
- Add a test for SetFileAttributes/GetFileAttributes
- Add KmtSendUlongToDriver helper and fix some doc comments
CORE-13495

svn path=/trunk/; revision=75236
2017-06-29 16:16:20 +00:00
Thomas Faber
24ac7c8bed [KMTESTS:KERNEL32]
- Rename FindFile_drv to kernel32_drv (and perform some other appropriate renames), since it can be used for multiple tests, not just FindFile
- Change license to LGPL (this is okay since nobody but me has touched these files)
CORE-13495

svn path=/trunk/; revision=75235
2017-06-29 15:30:23 +00:00
Thomas Faber
f4e131fa49 [USBPORT]
- Correctly distinguish between current hub status and status change in USBPORT_RootHubSCE. Patch by Vadim Galyant.

svn path=/trunk/; revision=75234
2017-06-29 15:01:47 +00:00
Alexander Shaposhnikov
82f11f1d0b [RAPPS] Update check, license type
* Added LicenseType numeric field in the RAPPS DB files. 
  Values mean: 1 - open source, 2 - freeware, 3 - trial/demo
  The existing License field will be used to contain the license name itself.
* Finished version parser and update check.
  Now RAPPS can suggest an update.
* Added new strings to lang/en-US.rc, lang/ru-RU.rc, lang/uk-UA.rc

svn path=/branches/GSoC_2017/rapps/; revision=75233
2017-06-29 14:17:16 +00:00
Giannis Adamopoulos
7d2398b6af [BROWSEUI] -CBandSite: Remove the Close item menu if the band is undeletable. Remove the Show caption menu item if the band doesn't have a caption. Implement showing or hiding the band caption.
svn path=/trunk/; revision=75230
2017-06-29 09:41:00 +00:00
Thomas Faber
10dc514582 [PSDK]
- Add USB_HUB_CHANGE and USB_HUB_STATUS_AND_CHANGE

svn path=/trunk/; revision=75229
2017-06-29 08:09:44 +00:00
Amine Khaldi
dc50f1da19 [USBHUB_NEW] Bring-in the USB Hub driver created by Vadim Galyant. GitHub PR #29. As usual, I thank the code reviewers, especially Thomas for contributing most of the reviews, improvements and fix suggestions.
svn path=/trunk/; revision=75227
2017-06-28 23:23:01 +00:00
Hermès Bélusca-Maïto
922e006ea6 [BOOTDATA]: Sprinkle few FLG_ADDREG_NOCLOBBER (0x00000002) flags for registry keys/values that need to remain the same across ReactOS upgrades. This also includes the "Session Manager\DOS Devices" as well as the "Session Manager\Environment" values!
Also, fix the default LastKnownGood value to the 'Current'/'Default' one. These values should also not be touched across upgrades (well, they can be touched manually by the (u)setup program, but they must not when updating the registry in bulk).

svn path=/trunk/; revision=75225
2017-06-28 22:17:53 +00:00
Hermès Bélusca-Maïto
b44faa47ed [CMLIB]: Addendum to r63495: Fix the CmpCopyKeyValueList() helper to make it what it is supposed to do: copy the list of values of a given key: this means, also copying the values themselves!!
For that aim I also introduce a CmpCopyValue() helper that allows copying the value data of a given registry value, taking into account whether the value is "small", normal or "big" (we don't support "big values" yet). This function allocates and copies the necessary hive cells corresponding to the given value. Only then, we add a new entry into the registry key value list that is grown dynamically.
Cleanup is performed in case of failure.
Now we can export registry sub-trees as registry hives, and successfully re-mount them in the registry.
CORE-13476 CORE-8259 CORE-10793

svn path=/trunk/; revision=75222
2017-06-28 00:04:13 +00:00
Hermès Bélusca-Maïto
60dedbf232 [CMLIB]: Adjust the old-style parameter annotations for two functions.
svn path=/trunk/; revision=75221
2017-06-27 23:46:17 +00:00
Alexander Shaposhnikov
de725c5391 [FORMATTING][RAPPS] available.cpp: Fix braces
svn path=/branches/GSoC_2017/rapps/; revision=75220
2017-06-27 23:33:15 +00:00
Alexander Shaposhnikov
17e36ed120 [RAPPS]
* Separated available and installed version. 
  If the app is installed it's DisplayVersion is shown.
* Reduced registry key access checks
* Version parser WIP

svn path=/branches/GSoC_2017/rapps/; revision=75219
2017-06-27 23:21:58 +00:00
Mark Jansen
c959a66fb5 [SHIMDBG] Add option to dump file properties.
svn path=/trunk/; revision=75218
2017-06-27 20:27:31 +00:00
Mark Jansen
5e0896e8ab [APPWIZ] Enable the 'Cancel' button while downloading. Patch by Jared Smudde and 'thc'. CORE-9629
svn path=/trunk/; revision=75217
2017-06-27 20:09:53 +00:00
Giannis Adamopoulos
9e4da13034 [BROWSEUI] -CBandSite: Implement the context menu of the rebar. It queries the IContextMenu if the band and appends to it a static menu part that can show or hide the title and close the toolbar. Showing or hiding the title isn't implemented yet.
svn path=/trunk/; revision=75216
2017-06-27 10:05:59 +00:00
Colin Finck
20bbfa5624 [PRINTING]
Fix all EnumPrintProcessorDatatypes API tests.

svn path=/trunk/; revision=75215
2017-06-27 07:25:04 +00:00
Eric Kohl
26d220be5e [IDL]
Prevent duplicate declaration of NTSTATUS.

svn path=/trunk/; revision=75214
2017-06-26 22:58:26 +00:00
Eric Kohl
64b471340a [IDL]
Prevent duplicate declaration of STRING and PSTRING.

svn path=/trunk/; revision=75213
2017-06-26 22:52:40 +00:00
Eric Kohl
4c3c7daba6 [NETAPI32]
- Add netlogon RPC binding code.
- Implement NetGetAnyDCName. This function calls its counterpart in the netlogon service.

svn path=/trunk/; revision=75212
2017-06-26 22:08:37 +00:00
Alexander Shaposhnikov
928e1c0ba3 [RAPPS]
* Reduced "installed" check - checks only for the key inself and not the DisplayName.
  Blazing fast!
* Added installed version getter
* Added version parser function (without definition yet).
  Meant to support versions like 1.2.3.4.
* rapps.h: Added #pragma once

svn path=/branches/GSoC_2017/rapps/; revision=75211
2017-06-26 22:07:43 +00:00
Pierre Schweitzer
0706d8cb47 [FASTFAT]
- Stop passing DO, directly pass VCB
- Try to compute some unique value as internal ID for objects. As MS, return the LBO

CORE-13489

svn path=/trunk/; revision=75210
2017-06-26 18:10:43 +00:00
Colin Finck
ef0ae276af [NETAPI32_APITEST]
Fix GCC build

svn path=/trunk/; revision=75209
2017-06-26 15:43:58 +00:00
Colin Finck
e5654cce9f [NETAPI32_APITEST]
Add a simple API Test for netapi32.dll, only covering DsRoleGetPrimaryDomainInformation so far.
It succeeds in ReactOS, but outputs a heap error in the debug log. In real world applications, this later leads to a heap assertion failure.

svn path=/trunk/; revision=75208
2017-06-26 15:19:07 +00:00
Colin Finck
1525fa31fc [PRINTING]
- Create the actual generic handle in _LocalOpenPrinterHandle.
- Fix _RpcClosePrinter call.
- Enable many more tests in winspool_apitest, GetPrinterData.
- Bail out with ERROR_INVALID_PARAMETER for empty strings in _MakePrinterSubKey as well.
- Add the Name registry value for "Dummy Printer on LPT1" to make a test succeed.

This fixes many basic things.. which only got unnoticed, because Printing is only used in the form of API Tests so far.

CORE-13458
CORE-13459

svn path=/trunk/; revision=75207
2017-06-26 15:16:46 +00:00
Colin Finck
2bd66111fc [ADVAPI32_APITEST]
Fix copy-paste mistakes in messages.

svn path=/trunk/; revision=75206
2017-06-26 15:10:27 +00:00
Mark Jansen
54d38174b1 [APPHELP_APITEST] Add tests for SdbGetMatchingExe, to test matching on version resources. CORE-13284
svn path=/trunk/; revision=75205
2017-06-26 14:58:08 +00:00
Mark Jansen
a04fdc1e99 Missing functions
svn path=/trunk/; revision=75204
2017-06-26 12:50:46 +00:00
Mark Jansen
9102288ea4 Missing include
svn path=/trunk/; revision=75203
2017-06-26 12:47:08 +00:00
Mark Jansen
2ef285e193 [SDK][XML2SDB] Simplify helper functions, output Exe matches + file attributes
svn path=/trunk/; revision=75202
2017-06-26 12:45:01 +00:00
Mark Jansen
5c59bd330a [APPHELP_APITEST:db] Fix the test for Win10, use WCHAR for data paths
svn path=/trunk/; revision=75201
2017-06-26 10:26:57 +00:00
Eric Kohl
41af86fadd [IDL]
Add the Netlogon service interface definition.

svn path=/trunk/; revision=75197
2017-06-25 13:14:06 +00:00
Eric Kohl
31f03442d0 [NETAPI32]
Implement I_BrowserrDebugTrace and I_BrowserServerEnum. This functions calls their counterpart in the computer browser service.

svn path=/trunk/; revision=75196
2017-06-25 12:14:35 +00:00
Pierre Schweitzer
81eba8d3e7 [RXCE]
- Implemented RxCompleteSrvOpenKeyAssociation(), RxInitiateSrvOpenKeyAssociation(), RxProcessChangeBufferingStateRequests()
- Implemented RxFinalizeFcbTable(), RxFinalizeNetFobx(), RxFinalizeNetRoot(), RxFinalizeSrvCall(), RxFinalizeVNetRoot(), RxFreeObject(), RxpDestroySrvCall(), RxRemovePrefixTableEntry(), RxRemoveVirtualNetRootFromNetRoot(), RxScavengeRelatedFobxs(), RxTearDownBufferingManager(), RxUndoScavengerFinalizationMarking()
- Implemented RxPostToWorkerThread()
- Implemented RxFlushFcbInSystemCache(), RxPurgeFcb(), RxPurgeFcbInSystemCache()
- Stubbed RxOrphanSrvOpens(), RxpDiscardChangeBufferingStateRequests(), RxpDispatchChangeBufferingStateRequests(), RxpProcessChangeBufferingStateRequests()
- Continued implementation of RxDereference() so that it supports more objects than just SRV_CALL
- Reworked RxInsertWorkQueueItem() implementation so that it accepts any work item, and not just dispatch work items
- Finished implementation of RxTableLookupName() so that it properly returns a V_NET_ROOT on NET_ROOT match

Notable effects of this commit are:
- RXCE/RDBSS leak less memory; now objects without references are properly deleted from the system
- This means that stale objects are also deleted; this fixes CORE-13483 were same stale SRV_CALL was used again and again
- Because in prefix table NET_ROOT are correctly handled, it's now possible to mount several path from the same prefix; this fixes CORE-13482

CORE-8204
CORE-11327
CORE-13482
CORE-13483

svn path=/trunk/; revision=75195
2017-06-25 11:55:37 +00:00
Thomas Faber
db0b0e9ee3 [USBPORT]
- Fix setting the direction in USBPORT_OpenPipe. Patch by Vadim Galyant.

svn path=/trunk/; revision=75194
2017-06-25 08:17:33 +00:00
Alexander Shaposhnikov
5582a642ef [RAPPS]
* available.cpp: Replaced macros with inline functions.
* gui.cpp: Fixed typo.

svn path=/branches/GSoC_2017/rapps/; revision=75190
2017-06-25 01:09:00 +00:00
Sebastian Gasiorek
9cb674f17f - update EDD_DIRECTDRAW_LOCAL, EDD_SURFACE and EDD_DIRECTDRAW_GLOBAL structures
- initial implementation of DxDdCreateD3DBuffer and DxDdCreateSurfaceObject CORE-4490

svn path=/trunk/; revision=75189
2017-06-24 22:24:04 +00:00
David Quintana
292f51e33a [NTOBJSHEX]
Fix registration.

svn path=/trunk/; revision=75188
2017-06-24 22:01:46 +00:00
Eric Kohl
debf556003 [NETAPI32]
Implement NetBrowserStatisticsGet().

svn path=/trunk/; revision=75187
2017-06-24 21:47:27 +00:00
Eric Kohl
6317bb3ec2 [NETAPI32]
Move the functions NetGetDCName, NetGetAnyDCName and NetEnumerateTrustedDomains into a separate file for the Netlogon service interface code.

svn path=/trunk/; revision=75186
2017-06-24 16:42:21 +00:00
Pierre Schweitzer
33b1caea25 [DXG]
Fix GCC build

svn path=/trunk/; revision=75185
2017-06-24 16:22:24 +00:00
Eric Kohl
c05ad4799c [NETAPI32]
Implement I_BrowserQueryOtherDomains, I_BrowserQueryStatistics and I_BrowserResetNetlogonState. This functions calls their counterpart in the computer browser service.


svn path=/trunk/; revision=75184
2017-06-24 14:59:14 +00:00
Sylvain Deverre
3e9107ceec [MMIXER] Cleanup mixer notifications opened by an application when it is closed.
CORE-10735 #comment Please retest.

svn path=/trunk/; revision=75183
2017-06-24 13:54:10 +00:00
Sebastian Gasiorek
1f993d692c [DXG] Initial implementation of DxDdLock and better stub for DxDdUnlock
svn path=/trunk/; revision=75182
2017-06-24 13:53:22 +00:00
Sebastian Gasiorek
355e52a599 [WIN32SS][NTDDRAW] Remove debug dump. Forgot about this.
svn path=/trunk/; revision=75181
2017-06-24 13:21:24 +00:00
Sebastian Gasiorek
52f67885e7 [WIN32SS][NTDDRAW] Remove debug dump of structures during ReactX initialisation. It's not needed and shouldn't be commited.
svn path=/trunk/; revision=75180
2017-06-24 12:36:19 +00:00
Sebastian Gasiorek
fa50e67d23 [DXG] Replace wrong PLONG with PBYTE as it was in original development. CORE-13392
svn path=/trunk/; revision=75179
2017-06-24 12:14:01 +00:00
David Quintana
1c5588d156 [NTOBJSHEX]
Make nt object symlinks work more like shortcuts. Fixes the addressbar not quite knowing what to show when you click on a symlink.

svn path=/trunk/; revision=75177
2017-06-23 23:23:17 +00:00
David Quintana
1777a8d251 [NTOBJSHEX]
Make GCC happy.

svn path=/trunk/; revision=75176
2017-06-23 21:40:19 +00:00
David Quintana
504d12bfff [NTOBJSHEX]
* Added a common superclass for the ntobj and registry folders.
* Refactored the ntobj and registry folders to make use of this superclass.
* Removed the concept of a "pidl helper", since it works best to just have the methods be part of the folders.
* Cleaned up the ItemID comparison logic.

svn path=/trunk/; revision=75175
2017-06-23 21:28:36 +00:00
Pierre Schweitzer
f369525725 [MPR]
Import Wine commit:
- 8d461c1f42b0b667b2aa6a235d007eea1dd6f561, Don't stop enumeration on the first failing network provider.

This fixes 'net use' stoping connections enumeration when a network returns an error or no connection.

CORE-13475

svn path=/trunk/; revision=75173
2017-06-23 19:29:31 +00:00
Pierre Schweitzer
f8e9e5ec4b [MPR]
Import Wine commit:
- 51b4a42969366cc409808aded23d3602a34206e2, Properly handle the count set to -1 when enumerating connections.

This fixes 'net use' not being able to enumerate multiple connections served by multiple network providers.

CORE-13475

svn path=/trunk/; revision=75172
2017-06-23 19:21:29 +00:00
Hermès Bélusca-Maïto
ab30fb1d60 [NTOS]: Improve a bit CmpDeepCopyKeyInternal():
- Normally getting the SrcNode and DestNode must succeed (checked with assert);
- Set the DestNode Flags member, in particular when this is the new root node of the saved registry hive;
- Copy the key class cell (OK), and the key security cell (currently done in a hackish way; proper way: call the CmpAssignSecurity* function);
- Add more clean-up on failure;
- Warn in code about the fact that CmpDeepCopyKeyInternal is recursive, and will easily exhaust kernel stack. This function will need to be reworked later...
CORE-10793 CORE-10796

svn path=/trunk/; revision=75171
2017-06-23 17:33:44 +00:00
Alexander Shaposhnikov
53a7a45ec6 [RAPPS]
* Added individual icons loading for each app 
  The icons are loaded by the Name field in the DB for the proof-of-concept.
  It falls back to default icon if none present. 
  TODO: It would be best to make another entry there for icon name.

svn path=/branches/GSoC_2017/rapps/; revision=75168
2017-06-23 07:04:43 +00:00
David Quintana
3dae17b0e7 [NTOBJSHEX]
* Fix gcc build.
* Remove magic.
* Address nitpicks.

svn path=/trunk/; revision=75167
2017-06-22 18:00:57 +00:00
David Quintana
cdb3d06d8d [NTOBJSHEX]
Fixed registry value display for values that are too long to fit inside the shitemid.
Set the maximum for shitemid embedding back to a smaller number.

svn path=/trunk/; revision=75166
2017-06-22 17:49:42 +00:00
Hermès Bélusca-Maïto
624f4e9319 [WINTERNL.H]: Fix the value of OBJ_VALID_ATTRIBUTES, and add the definition for OBJ_FORCE_ACCESS_CHECK.
svn path=/trunk/; revision=75165
2017-06-22 15:41:44 +00:00
David Quintana
eb4e4b6e9f [NTOBJSHEX]
* Fixed NT object symbolic link target retrieval.
* Fixed NT path parsing (didn't consider paths sub sub-folders in them).
* Fixed BindToObject to properly resolve the target path for symlinks.
* Made the maximum embedded content length for registry keys a bit bigger.

svn path=/trunk/; revision=75160
2017-06-21 22:32:34 +00:00
Hermès Bélusca-Maïto
04201ba762 [CMLIB]: Use the generic allocator functions, and fix build.
svn path=/trunk/; revision=75159
2017-06-20 23:29:54 +00:00
Hermès Bélusca-Maïto
903ac43860 [CMLIB]: Implement the dynamic array of the hive cell reference tracker.
svn path=/trunk/; revision=75158
2017-06-20 23:11:53 +00:00
David Quintana
05bae83b22 [NTOBJSHEX]
Improve the GetDisplayNameOf logic from "badly broken" to "seems to work". I'm not convinced it's perfect, but it's better than before.

svn path=/trunk/; revision=75157
2017-06-20 23:03:24 +00:00
David Quintana
3832e3a6d8 [NTOBJSHEX]
Fix crash showing registry keys that have values.
CORE-13456 #resolve

svn path=/trunk/; revision=75156
2017-06-20 21:32:42 +00:00
Giannis Adamopoulos
6af2c49b5f [WIN32K:NTUSER] -IntSetThreadDesktop: Don't close the previous desktop handle. Fixes a lot of tests. Based on a patch by Sebastian Gasiorek. CORE-13463
svn path=/trunk/; revision=75154
2017-06-20 19:26:37 +00:00
Giannis Adamopoulos
7dea13d496 [USER32_APITEST] -Initial tests for desktop reference numbers.
svn path=/trunk/; revision=75153
2017-06-20 19:25:10 +00:00
Thomas Faber
60382e46c8 [RTL]
- Correctly use the page heap's lock in RtlLockHeap/RtlUnlockHeap when appropriate. Fixes assertion failure when Global/Local memory allocations are performed concurrently with DPH enabled.

svn path=/trunk/; revision=75152
2017-06-20 17:15:43 +00:00
Hermès Bélusca-Maïto
03a1f14142 [USER.EXE]: Addendum to r75126: add a (dummy) version resource to USER.EXE so as to fix error 1812 "ERROR_RESOURCE_DATA_NOT_FOUND" encountered when starting the DirectX 9.0 installer. From patch by Stas'M, thanks!
CORE-13462

svn path=/trunk/; revision=75151
2017-06-20 16:44:40 +00:00
Thomas Faber
e7e6f2ec5f [NTOS:MM]
- In MiDeletePte, check the ReferenceCount of transition PTEs, not the ShareCount (which is actually u2.Blink, since the page is in a modified/standby list). Also don't reset the PageLocation, since MiDecrementReferenceCount expects it to be anything but ActiveAndValid.
Fixes physical page leaks when using DPH, or other code that sets PAGE_NOACCESS.
CORE-13311 #resolve

svn path=/trunk/; revision=75150
2017-06-20 15:51:47 +00:00
Colin Finck
ecd9852691 That shouldn't have been committed in r75125. Thanks Thomas!
svn path=/trunk/; revision=75149
2017-06-20 14:48:26 +00:00
Colin Finck
b29844edd8 [LOCALSPL]
Add the missing root backslash to the symbolic link path. Fixes CORE-13457

svn path=/trunk/; revision=75148
2017-06-20 06:08:30 +00:00
Hermès Bélusca-Maïto
d5ed3d00c5 [FILESYSTEMS]: Fix printf-like counted string specifiers.
svn path=/trunk/; revision=75147
2017-06-20 00:45:07 +00:00
Hermès Bélusca-Maïto
2716a86ca7 [NTOS:CM]: Simplify code by using suitable assertion macro.
svn path=/trunk/; revision=75146
2017-06-19 23:18:42 +00:00
Jérôme Gardou
cf62382937 [DDK]
- Use FORCEINLINE where appropriate

svn path=/trunk/; revision=75145
2017-06-19 21:17:17 +00:00
Hermès Bélusca-Maïto
547949716c [NTOS]: Addendum to r75142: Use strsafe printf functions (suggested by Thomas).
svn path=/trunk/; revision=75144
2017-06-19 20:37:36 +00:00
Hermès Bélusca-Maïto
a449c39c25 [CMLIB][NTOS]: Use correct parameter type for the 4th parameter of CmpGetValueData().
[CMLIB]: Fix debug.h inclusion.
[NTOS]: Use RtlCopyUnicodeString() to initialize the contents of FullName.

svn path=/trunk/; revision=75143
2017-06-19 20:14:09 +00:00
Hermès Bélusca-Maïto
38274203e7 [NTOS]: Fixes & improvements:
- Fix a bug in CmpInitHiveFromFile(): correctly set the MaximumLength value of NewHive->FileFullPath;
- Code simplification: no need to use temporary ANSI string operations followed by UNICODE conversion, when one can do the same thing directly in UNICODE.
- Use NULL for NULL handles.

svn path=/trunk/; revision=75142
2017-06-19 20:07:15 +00:00
Hermès Bélusca-Maïto
f4518d125d [NTOS]: Improve parameter namings in CmpLinkKeyToHive() and some of its DPRINTs; use UNICODE_NULL where needed.
svn path=/trunk/; revision=75141
2017-06-19 20:04:25 +00:00
Mark Jansen
7117ea3375 [WIN32SS] Rewrite GetFontFamilyInfoForSubstitutes to use the subsitute list loaded at boot. Patch by Katayama Hirofumi MZ. CORE-13064
svn path=/trunk/; revision=75140
2017-06-19 20:00:36 +00:00
Hermès Bélusca-Maïto
e4ca76000c [NTOS]: Improve some DPRINTs, and variables naming + buffer data type in CmpAddToHiveFileList().
svn path=/trunk/; revision=75139
2017-06-19 19:55:14 +00:00
Hermès Bélusca-Maïto
b17ce9c805 [NTDLL_APITEST]: Temporarily disable part of the NtLoad/UnloadKey test (related to force-unload a hive while some handles to subkeys are still opened), because this creates memory corruptions, due to the fact we currently don't perform force-unloads correctly.
CORE-13448

svn path=/trunk/; revision=75138
2017-06-19 19:50:49 +00:00
Hermès Bélusca-Maïto
87cb029a9a [NTOS]: Fix the ObpLookupObjectName() prototype in regard to r75133.
svn path=/trunk/; revision=75136
2017-06-19 16:47:45 +00:00
Mark Jansen
939e841f4a [APPHELP] Implement Sdb[Un]packAppCompatData and SdbGetAppCompatDataSize. CORE-13284
svn path=/trunk/; revision=75135
2017-06-19 16:37:47 +00:00
Hermès Bélusca-Maïto
3c1c6952b7 [NTOS]: Avoid initializing variables within if-conditions.
svn path=/trunk/; revision=75134
2017-06-19 16:30:17 +00:00
Hermès Bélusca-Maïto
5cb03586f5 [NTOS]: Revert the pool tag change from r75128, and explain in comment why we cannot actually use it.
svn path=/trunk/; revision=75133
2017-06-19 16:29:44 +00:00
Hermès Bélusca-Maïto
8820136bd2 [NTOS]: Fix typos.
svn path=/trunk/; revision=75132
2017-06-19 15:26:08 +00:00
Mark Jansen
8f2f019415 [APPSHIM_APITEST] Addendum to r75041, add a missed line.
svn path=/trunk/; revision=75131
2017-06-19 15:24:05 +00:00
Mark Jansen
7cc3312dde [SHELL32] Partially sync shlexec with wine staging 2.9 CORE-13362 CORE-13407
svn path=/trunk/; revision=75130
2017-06-19 15:04:20 +00:00
Giannis Adamopoulos
615f2ccd2f [ATL]
-Add a new template called CComQIIDPtr and its partner I_ID macro. Its purpose is to be a gcc compatible version of CComQIPtr. 
-CComQIIDPtr<I_ID(Itype)> is the gcc compatible version of CComQIPtr<Itype>
- WARNING: this is not tested yet.

svn path=/trunk/; revision=75129
2017-06-19 14:52:51 +00:00
Hermès Bélusca-Maïto
f43b456462 [NTOS]: Minor fixes:
- Use NULL instead of 'zero' for setting a handle / pointer to NULL;
- Don't hardcode an array size; fix a comment;
- Use ExFreePoolWithTag();
- Whitespace fix.

svn path=/trunk/; revision=75128
2017-06-19 14:48:59 +00:00
Giannis Adamopoulos
d19f4a3169 [SHELL32]
-Rename constructors from Class_Creator to Class_CreateInstance. Prepend the ones that are exported from rshell with RSHELL_. The reasoning is that rshell will always use our code but whether or not internal classes will be used in shellmenu lib will be controlled by preprocessor definitions in shellmenu.h

[BROWSEUI]
-Rename more constructors to use the _CreateInstance suffix.

[RSHELL]
- The functions that let rshell export some objects have the RSHELL_ postfix but they are not exported as such. 

[EXPLORER]
- Rename _CStartMenu_Constructor to _CStartMenu_CreateInstance.

svn path=/trunk/; revision=75127
2017-06-19 14:27:51 +00:00
Hermès Bélusca-Maïto
ee591f5b01 [USER.EXE]: Add a *stub* user.exe to make the DirectX 9.0 installer happy (it searches user.exe for existence for no reason, and if it cannot find it, the installer bails out). (WARNING: This is in NO WAY our implementation of WoW16!!)
Reported on https://www.reactos.org/forum/viewtopic.php?f=4&t=15576 , http://reactos.org/forum/viewtopic.php?f=4&t=16498 .
This is not a ReactOS problem per se, because it also happens on Windows, as reported here:
https://xpetips.wordpress.com/2009/09/18/installing-directx-9-0c-on-xpe/ and http://www.xpembedded.info/DirectX_v9_0c_and_finding_missing_components_.html .

svn path=/trunk/; revision=75126
2017-06-19 14:24:48 +00:00
Colin Finck
a82d7577b3 [PRINTING]
- Implement GetPrinterDataA, GetPrinterDataExA, GetPrinterDataExW, GetPrinterDataW, SetPrinterDataA, SetPrinterDataExA, SetPrinterDataExW, SetPrinterDataW.
  They support all features for Print Server and Printer Handles (minus security checks!)
  I've also added tests for them.
- Store Printer data in SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers instead of SYSTEM\CurrentControlSet\Control\Print\Printers and create a registry symlink from the former path to the new one just like Windows does.
  According to https://social.technet.microsoft.com/Forums/windowsserver/en-US/a683ab54-c43c-4ebe-af8f-1f7a65af2a51, this is needed when having >900 printers to work around a size limit of the SYSTEM registry hive. And if Windows has both locations, we need both for compatibility anyway.
- Add several settings which are queried by the new Printer Data APIs when working with Print Server Handles.
- Store the job directory in the Windows-compatible "DefaultSpoolDirectory" setting and make use of it.
- Revert the ASSERTs in LocalEnumPrinters again to let us verify the NULL pointer exceptions in localspl_apitest (thanks Serge! CORE-13433)
- Translate ERROR_INVALID_NAME to ERROR_INVALID_PRINTER_NAME in all cases in OpenPrinterW (thanks Victor! CORE-13412)
- Make EnumMonitorsW and EnumPortsW in spoolss more robust against failing Print Monitors.
- Remove the wrong !phPrinter check in OpenPrinterW to make Print Server Handles work for real.
- Fix error handling when memory allocation fails: HeapAlloc doesn't set last error, so it's just wrong to query or return it.

One more item done from https://reactos.org/wiki/Printing !
This is all still a big Work-in-Progress, with many subtle bugs deep down in ReactOS, for which I need to open additional tickets. But I didn't want to make this commit even bigger..

svn path=/trunk/; revision=75125
2017-06-19 14:18:19 +00:00
Eric Kohl
483bdaa405 [NETAPI32]
Implement I_BrowserQueryEmulatedDomains, I_BrowserResetStatistics and I_BrowserSetNetlogonState. This functions calls their counterpart in the computer browser service.


svn path=/trunk/; revision=75124
2017-06-19 14:06:04 +00:00
Eric Kohl
75c3f8d542 [INCLUDE]
Replace the lmbrowsr.h form wine by a more complete psdk version.
Lmbrowsr.h was a part of Visual Studio 6 but Microsoft removed it from the PSDK later.

svn path=/trunk/; revision=75123
2017-06-19 13:48:40 +00:00
Benedikt Freisen
ee77d7ac02 [MSPAINT]
- clicking the blank dark gray area will now reset the selection -- patch by Katayama Hirofumi MZ

CORE-13452 #resolve

svn path=/trunk/; revision=75122
2017-06-19 13:02:09 +00:00
Pierre Schweitzer
5037dd926d [NFSD]
Misc. fixes by Thomas

svn path=/trunk/; revision=75121
2017-06-19 11:51:48 +00:00
Pierre Schweitzer
b3312ecfdf [NFS]
Add the missing pieces for the NFS filesystem: registry information.
Register the pnfs service (nfsd) as manual, so that it only gets started when user wants/needs it.
Same goes to the nfs41_driver service (driver). nfsd as a code modification specific to ReactOS so that it loads the driver
as soon as it gets started.

That means, in order to use NFS in ReactOS, you need to start the nfsd service: net start nfsd
Then, you can mount your remote share: net use * \\IP\path (you can replace * by a letter, e.g. z:)
There's no GUI stuff implemented yet for this in MPR.

If you want to access the share without mounting it in ReactOS (like, in Explorer), you've to be aware of a small detail:
after you start pnfs service, in explorer bar, type \\IP\nfs4\path. This is required so that NFS driver can claim the path
without troubles.

Something else you've to know: so far, tests where conducted with a remote share being 777, read-only and anonymously mounted.
Other scenarii are likely to fail (auth, rw, server?!, etc.).

Also note that if you attempt to mount a share on which you don't have traverse right, mounting will succeed but any later
operation will fail, refused by the remote NFS server. This is a bit different than the behavior on Linux where mount is denied
if traverse is not granted.

Final thing: this is highly experimental and not fully implemented yet: expect not working stuff, broken asserts, deadlocks, etc.

CORE-8204

svn path=/trunk/; revision=75120
2017-06-19 11:36:17 +00:00
Pierre Schweitzer
5ef4290a15 [NFSD]
Fix build?

svn path=/trunk/; revision=75119
2017-06-19 09:40:12 +00:00
Pierre Schweitzer
8d64c9de05 [LIBTIRPC]
Add a spec file

svn path=/trunk/; revision=75118
2017-06-19 09:09:22 +00:00
Pierre Schweitzer
cc89486210 [NFS]
More properly fix build for GCC/MSVC. By Thomas.

svn path=/trunk/; revision=75117
2017-06-19 08:20:13 +00:00
Pierre Schweitzer
67536408ff [NFSD]
Fix MSVC build by Thomas.

svn path=/trunk/; revision=75116
2017-06-19 08:17:45 +00:00
Pierre Schweitzer
7426b69076 [PDSK]
Complete iptypes.h

svn path=/trunk/; revision=75115
2017-06-19 08:02:19 +00:00
Pierre Schweitzer
f445db2c5c [NFSD]
Import the nfsd deamon from the nfs41 project.

CORE-8204

svn path=/trunk/; revision=75114
2017-06-19 07:57:04 +00:00
Pierre Schweitzer
de51bd8b04 [LIBTIRPC]
As suggested, move to 3rdparty

svn path=/trunk/; revision=75113
2017-06-19 07:45:14 +00:00
Eric Kohl
b0442978e8 [NETAPI32]
NetEnumerateComputerNames: Convert the returned array of strings. 

svn path=/trunk/; revision=75112
2017-06-18 22:52:05 +00:00
Eric Kohl
3138c9072b [NETAPI32]
Implement NetConnectionEnum(). This function calls its counterpart in the server service.


svn path=/trunk/; revision=75111
2017-06-18 22:43:24 +00:00
Pierre Schweitzer
6607c27063 [RXCE]
lolfix build

svn path=/trunk/; revision=75110
2017-06-18 22:15:34 +00:00
Hermès Bélusca-Maïto
1a67145131 [NFS][RXCE]: Fix MSVC build (definitively?)
svn path=/trunk/; revision=75109
2017-06-18 21:47:52 +00:00
Eric Kohl
91cbbbe892 [NTOS:SE]
Add the CmpAssignSecurityDescriptor() stub and improve some comments.

svn path=/trunk/; revision=75108
2017-06-18 21:43:09 +00:00
Pierre Schweitzer
abf7007043 [NFS]
Remove dependency already brought in by rxce

svn path=/trunk/; revision=75107
2017-06-18 21:40:52 +00:00
Pierre Schweitzer
7f7d54ce48 [RDBSS]
Clean up CMake files, based on suggestions by Hermès.
Might fix MSVC build.

svn path=/trunk/; revision=75106
2017-06-18 21:27:56 +00:00
Pierre Schweitzer
42e5eee699 [NFS]
Import the NFS file system mini-redirector and the associated network provider.
Not all the pieces are in place to make it working.

CORE-8204

svn path=/trunk/; revision=75105
2017-06-18 20:49:46 +00:00
Thomas Faber
1ee7db3ccc [NTOS:MM]
- Directly pass the file object to MmCreateDataFileSection

svn path=/trunk/; revision=75104
2017-06-18 20:10:44 +00:00
Thomas Faber
220e2a29b0 [NTOS:PNP]
- If PFN tracing is enabled, create a device object that allows the user to trigger a PFN dump (e.g. via "type \\.\Global\GLOBALROOT\Device\PfnDump")

svn path=/trunk/; revision=75103
2017-06-18 19:48:45 +00:00
Thomas Faber
cd7d2a507c [NPFS]
- Misc changes to improve code clarity

svn path=/trunk/; revision=75102
2017-06-18 18:08:52 +00:00
Thomas Faber
a916000ce2 [LIBTIFF]
- Update to version 4.0.8
CORE-13451

svn path=/trunk/; revision=75101
2017-06-18 17:50:12 +00:00
Thomas Faber
7e43425f53 [MBEDTLS]
- Update to version 2.4.2
CORE-13451

svn path=/trunk/; revision=75100
2017-06-18 17:25:30 +00:00
Thomas Faber
32d14fbc55 [LIBTIRPC]
- Try to fix VC2010 build as well
CORE-8204

svn path=/trunk/; revision=75099
2017-06-18 17:01:14 +00:00
Thomas Faber
962da98340 [LIBTIRPC]
- Fix MSVC build
CORE-8204

svn path=/trunk/; revision=75098
2017-06-18 16:41:23 +00:00
Pierre Schweitzer
080086f7e7 [LIBTIRPC]
Fix MSVC build?

svn path=/trunk/; revision=75097
2017-06-18 15:41:54 +00:00
Pierre Schweitzer
4008c7e312 [LIBTIRPC]
Import the libtirpc from the nfs41 project.

CORE-8204

svn path=/trunk/; revision=75096
2017-06-18 15:31:06 +00:00
Thomas Faber
3c643293dc [LIBMPG123]
- Add missing files
CORE-13451

svn path=/trunk/; revision=75094
2017-06-18 14:08:53 +00:00
Thomas Faber
d1d15ad1a6 [LIBMPG123]
- Update to version 1.25.0
CORE-13451

svn path=/trunk/; revision=75093
2017-06-18 14:03:50 +00:00
Thomas Faber
f5be5e8bfe [LIBMPG123]
- Fix ssize_t
CORE-13451

svn path=/trunk/; revision=75092
2017-06-18 13:35:40 +00:00
Thomas Faber
bb12a351c7 [LIBMPG123]
- Update to version 1.23.0
CORE-13451

svn path=/trunk/; revision=75091
2017-06-18 13:21:16 +00:00
Giannis Adamopoulos
eda316218d [SHELL32] -CMenuBand::SetSite: Don't fail if the site doesn't support the SID_STopLevelBrowser service.
svn path=/trunk/; revision=75090
2017-06-18 12:34:30 +00:00
Thomas Faber
635d21750f [LIBPNG]
- Update to version 1.6.29
CORE-13451

svn path=/trunk/; revision=75089
2017-06-18 12:19:52 +00:00
Thomas Faber
8f060bddfb [LIBSAMPLERATE]
- Update to version 1.0.9
CORE-13451

svn path=/trunk/; revision=75088
2017-06-18 11:41:14 +00:00
Thomas Faber
764f83d90d [NTOS:MM]
- Implement MiMapLockedPagesInUserSpace and MiUnmapLockedPagesInUserSpace.
CORE-13444 #resolve

svn path=/trunk/; revision=75087
2017-06-18 11:18:41 +00:00
Pierre Schweitzer
acaa894b33 [DESK]
French translation for Eric's work on r75085.

CORE-8352

svn path=/trunk/; revision=75086
2017-06-18 08:48:12 +00:00
Eric Kohl
838d4a450d [DESK]
Replace the screen resolution change confirmation message box by a proper dialog box with timeout.
CORE-8352

svn path=/trunk/; revision=75085
2017-06-18 08:31:20 +00:00
Thomas Faber
6bea3b076d [KMTESTS:MM]
- Test unaligned address and addresses close to MmHighestUserAddress in MmMapLockedPagesSpecifyCache test
CORE-13444

svn path=/trunk/; revision=75084
2017-06-18 08:00:29 +00:00
Hermès Bélusca-Maïto
2a16952b1c [NTOS]: Use SEH inside CmQueryKey(), as it can be called with user-mode parameter KeyInformation. Remove unused code in CmLoadKey().
I've noticed that in cmapi.c / ntapi.c we do not correctly check the validity of some OBJECT_ATTRIBUTES variables and user-mode vs. kernel-mode registry handles.

svn path=/trunk/; revision=75083
2017-06-17 23:34:32 +00:00
Eric Kohl
afdb90c845 [DESK]
- Add a message box to ask the user to confirm the screen resolution change.
- The resolution change will be reverted if the user clicks 'No'.
A separate dialog box with a timer will be added next.

svn path=/trunk/; revision=75082
2017-06-17 23:21:16 +00:00
Thomas Faber
d88cd4165d [PSDK]
- Properly add NTSTATUS code

svn path=/trunk/; revision=75081
2017-06-17 20:26:53 +00:00
Hermès Bélusca-Maïto
6398772537 [NTOS]: Improve a DPRINT.
svn path=/trunk/; revision=75080
2017-06-17 20:16:40 +00:00
Hermès Bélusca-Maïto
7f8dc7dfcc Just use REG_FORCE_UNLOAD since we're at it.
svn path=/trunk/; revision=75079
2017-06-17 20:13:17 +00:00
Hermès Bélusca-Maïto
9808e1ee19 [NTDLL_APITEST]: Add tests for NtLoadKey and NtUnloadKey.
CORE-13448

svn path=/trunk/; revision=75078
2017-06-17 20:08:48 +00:00
Pierre Schweitzer
3b5b6fd6f1 [GFLAGS]
Add some usage

svn path=/trunk/; revision=75077
2017-06-17 20:02:51 +00:00
Amine Khaldi
333789f736 [FREETYPE] Update to v2.8. By Katayama Hirofumi MZ, confirmed by me. CORE-13295
svn path=/trunk/; revision=75076
2017-06-17 19:04:57 +00:00
Pierre Schweitzer
97a76faf99 [BOOTDATA]
Use a gflag compatible way to enable Page Heap

svn path=/trunk/; revision=75075
2017-06-17 18:00:18 +00:00
Pierre Schweitzer
d7113fdd2b [GFLAGS]
Add a quick'n'dirty implementation of gflags utility.
It only covers some page heap usage (enough to enable/disable DPH :-)).
It's syntax compatible with MS one, and with what's written down in ROS wiki.

See: https://www.reactos.org/wiki/Debugging#Debug_Page_Heap_.28DPH.29

svn path=/trunk/; revision=75073
2017-06-17 12:34:08 +00:00
Giannis Adamopoulos
040ae7635a [SHELL32] -CMenuBand: forward WM_WININICHANGE to CMenuToolbarBase so that when themes get enabled, the menu bar in explorer becomes flat immediately.
svn path=/trunk/; revision=75072
2017-06-17 07:43:52 +00:00
Giannis Adamopoulos
5a105b3163 [BROWSEUI]
- CShellBrowser: Propagate WM_WININICHANGE to all immediate children.
- CInternetToolbar: Forward WM_WININICHANGE to the menu band to make aware that the flat menus option changed.

svn path=/trunk/; revision=75071
2017-06-17 07:28:35 +00:00
Hermès Bélusca-Maïto
d56490d24a [NTOS]: Employ the simple CMP_ASSERT_KCB_LOCK() macro to perform these asserts.
svn path=/trunk/; revision=75070
2017-06-17 01:22:17 +00:00
Hermès Bélusca-Maïto
0c258ecde0 [NTOS]: Whitespace fixes only.
svn path=/trunk/; revision=75069
2017-06-17 01:21:21 +00:00
James Tabor
6f9aac412d [User32]
- Based on patch by Nikolay Sivov : Fix static control id. Fixes dialog tests, see CORE-13362.

svn path=/trunk/; revision=75068
2017-06-16 22:49:36 +00:00
James Tabor
5d4aa30793 [User32]
- Skip desktop for positive index. See CORE-13362.

svn path=/trunk/; revision=75067
2017-06-16 22:44:21 +00:00
Hermès Bélusca-Maïto
3112a6b342 [NTOS]: Fix a bit the CmUnloadKey() function:
- When a hive is unloaded, we *must* set the HIVE_IS_UNLOADING flag before doing anything else (as other code in Cm depends on this);
- If we don't force a hive unload, we *must* check whether there are other opened handles to keys inside this hive, and if so, we must fail.
  If this is a force-unload however, we *must* invalidate/close all the opened handles to keys inside this hive, BUT this is left UNIMPLEMENTED at the moment (and therefore expect the already existing problems linked to this to still happen).
- Move the HvFree(Hive); call at the very end, just before deleting the Cm hive, and as is done in CmpDestroyHive().

svn path=/trunk/; revision=75066
2017-06-16 21:06:04 +00:00
Hermès Bélusca-Maïto
3c50fb3900 [NTOS]: Reorder the destruction code in CmpDestroyHive() to make it similar to the one in CmUnloadKey(). Same remark for a comment in NtUnloadKey2() too.
svn path=/trunk/; revision=75065
2017-06-16 21:02:27 +00:00
Hermès Bélusca-Maïto
4d90c65d54 [NTOS]: Few improvements:
- Remove few unneeded PCMHIVE "backwards"-casts, and in particular the 1st parameter of CmpUnlinkHiveFromMaster().
- Improve the dprints in CmCountOpenSubKeys().

svn path=/trunk/; revision=75064
2017-06-16 20:59:15 +00:00
Hermès Bélusca-Maïto
89d7d06790 [NTOS]: Remove trailing whitespace ; Use a correct pool tag in the CmpFree() call in CmpFreeDelayItem().
svn path=/trunk/; revision=75063
2017-06-16 20:44:51 +00:00
Amine Khaldi
098839afec [USBPORT] Bring-in the usbport driver created by Vadim Galyant. CR-111 GitHub PR #27. This is the first module out of many to come, so stay tuned! Many thanks to everyone involved in the code review. Very special thanks for Thomas as his help, insight and reviews helped tremendously.
svn path=/trunk/; revision=75062
2017-06-16 19:20:03 +00:00
Amine Khaldi
4b0ee92f91 [D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 2.9. This work couldn't have been committed without Sebastian Gasiorek's work on CORE-11331 so thanks again! Dedicated to Daniel. CORE-13362
svn path=/trunk/; revision=75061
2017-06-16 18:50:42 +00:00
Amine Khaldi
0cc09fc848 [PSDK] Update D3DCOLOR_ARGB and D3DQUERYTYPE. [DXSDK] Add missing D3DDEVICEDESC1, D3DDEVICEDESC2, D3DFINDDEVICERESULT1 and D3DFINDDEVICERESULT2.
svn path=/trunk/; revision=75060
2017-06-16 18:40:31 +00:00
Amine Khaldi
f6d85c300f [WIN32SS] Implement D3DKMT{Create,Destroy}DCFromMemory. Brought to you by Sebastian Gasiorek. CORE-11331 CORE-13362
svn path=/trunk/; revision=75059
2017-06-16 18:38:08 +00:00
Giannis Adamopoulos
3770c2d134 [SHELL32] -CMenuBand: When the flat menus style is enabled, shell menu bars should not look like toolbars.
svn path=/trunk/; revision=75058
2017-06-16 17:53:50 +00:00
Thomas Faber
8c8f34f7fd [KMTESTS:MM]
- In the MmMapLockedPagesSpecifyCache test, try to allocate & free memory or unmap a section view in the mapped buffer space
CORE-13444

svn path=/trunk/; revision=75057
2017-06-16 11:06:33 +00:00
Eric Kohl
57206b450b [ADVAPI32]
ScmRpcStatusToWinError: Convert STATUS_ACCESS_VIOLATION to ERROR_INVALID_HANDLE.
UnlockServiceDatabase returns ERROR_INVALID_SERVICE_LOCK instead of ERROR_INVALID_HANDLE.

svn path=/trunk/; revision=75053
2017-06-15 23:19:34 +00:00
Eric Kohl
a26e5a47fc [ADVAPI32]
CreateServiceA/W: Call SetLastError() in case of success too.

svn path=/trunk/; revision=75052
2017-06-15 21:40:12 +00:00
Thomas Faber
830b3fc070 [NTOS:IO]
- Pass the class key handle as a parameter to IopAttachFilterDrivers, since we already opened it in PipCallDriverAddDevice.
CORE-13336 #resolve

svn path=/trunk/; revision=75051
2017-06-15 18:32:14 +00:00
Thomas Faber
56c393d8f4 [NTOS:IO]
- Consistently treat class filters as optional in IopAttachFilterDrivers
CORE-13336

svn path=/trunk/; revision=75049
2017-06-15 16:14:01 +00:00
Thomas Faber
7b8f448f33 [NTOS:IO]
- Simplify logic in PipCallDriverAddDevice.
CORE-13336

svn path=/trunk/; revision=75048
2017-06-15 13:51:09 +00:00
Thomas Faber
b2405204cd [NTOS:IO]
- Addendum to r75046: add missing header change.
CORE-13336

svn path=/trunk/; revision=75047
2017-06-15 13:33:55 +00:00
Thomas Faber
2103cf341f [NTOS:IO]
- Pass Enum subkey handle to IopAttachFilterDrivers, since we've already opened it in PipCallDriverAddDevice.
CORE-13336

svn path=/trunk/; revision=75046
2017-06-15 13:25:26 +00:00
Thomas Faber
3dda28e8fb [WIN32K:NTUSER]
- Fix clipboard lock check in UserSetClipboardData. Fixes 24 user32:clipboard tests.
CORE-13414 #resolve

svn path=/trunk/; revision=75045
2017-06-15 12:16:09 +00:00
Eric Kohl
6664d60e19 [ADVAPI32]
OpenServiceA/W: Call SetLastError() in case of success too.

svn path=/trunk/; revision=75044
2017-06-15 09:29:22 +00:00
Thomas Faber
907d0d20e8 [RTL]
- Implement RtlIsCriticalSectionLocked and RtlIsCriticalSectionLockedByThread
CORE-13436 #resolve

svn path=/trunk/; revision=75043
2017-06-15 06:47:42 +00:00
Eric Kohl
248545d219 [NETAPI32]
Add obsolete NetRepl functions.

svn path=/trunk/; revision=75042
2017-06-15 00:21:07 +00:00
Mark Jansen
272bc3ef9f [APITEST] Move RedirectIat into it's own header so that it can be used from multiple tests.
svn path=/trunk/; revision=75041
2017-06-14 15:25:04 +00:00
Mark Jansen
0d157ecbc8 [NOTEPAD] Fix default font settings. Patch by Katayama Hirofumi MZ. CORE-13037
svn path=/trunk/; revision=75040
2017-06-14 14:22:32 +00:00
Eric Kohl
ec398e2908 [NETAPI32]
- Add I_BrowserQueryEmulatedDomains and I_BrowserSetNetlogonState to the new computer browser inferface file.
- Get rid of the now obsolete browsr.c file.

svn path=/trunk/; revision=75039
2017-06-14 13:44:11 +00:00
Eric Kohl
243e71c96c [NETAPI32]
- Add the computer browser service client interface.
- Add binding code for the computer browser service client interface.

svn path=/trunk/; revision=75038
2017-06-14 13:10:36 +00:00
Eric Kohl
4d493bb613 [NETAPI32]
Implement NetEnumerateComputerNames. This function calls its counterpart in the workstation service.


svn path=/trunk/; revision=75037
2017-06-14 13:06:41 +00:00
Eric Kohl
8ef995b4d0 [IDL]
Add computer browser service interface definition files.

svn path=/trunk/; revision=75035
2017-06-14 12:57:52 +00:00
Eric Kohl
005d3af030 [NETAPI32]
Move the stubs NetServerEnum and NetServerEnumEx into a new file for the computer browser service interface code.

svn path=/trunk/; revision=75034
2017-06-14 12:17:08 +00:00
Eric Kohl
89eb252fb8 [NETAPI32]
Implement NetGetJoinableOUs and NetValidateName. These functions call their counterparts in the workstation service.


svn path=/trunk/; revision=75033
2017-06-14 11:31:54 +00:00
Eric Kohl
4747d6a5c1 [NETAPI32]
Implement NetAddAlternateComputerName, NetJoinDomain, NetRemoveAlternateComputerName, NetRenameMachineInDomain, NetSetPrimaryComputerName and NetUnjoinDomain. These functions call their counterparts in the workstation service.


svn path=/trunk/; revision=75032
2017-06-14 09:50:54 +00:00
Thomas Faber
25b44b332b [SETUPAPI]
- Properly stub SetupDiRemoveDeviceInterface. From Wine commit cdb72f39 by Hans Leidekker. Fixes crash when running setupapi_winetest:devinst.
CORE-13362

svn path=/trunk/; revision=75031
2017-06-14 07:14:44 +00:00
Thomas Faber
b5cdb03dd8 [DEVENUM_WINETEST]
- Fix return value check for IEnumMoniker_Next. Fixes crash when running the test without renderers installed (as is the case on ROS).
CORE-13421 #resolve

svn path=/trunk/; revision=75030
2017-06-14 06:44:39 +00:00
Robert Naumann
0b9b807d23 [FONTS] Improve the font-substitution for Franklin Gothic Medium to better match the original font. This improves Luna's start button. CORE-12877
svn path=/trunk/; revision=75029
2017-06-13 21:40:41 +00:00
Eric Kohl
7b4db04803 [NTOSKRNL]
NtAccessCheck: Call SePrivilegePolicyCheck to get the list of required privileges and return it to the caller.
This fixes the ERROR_INSUFFICIENT_BUFFER failures in the advapi32 security winetest.

svn path=/trunk/; revision=75028
2017-06-13 20:58:10 +00:00
Thomas Faber
74a68e0f6b [SCHANNEL]
- Apply Wine commit 81861ddd (secur32: Don't change input buffer in InitializeSecurityContext) by Jacek Caban. Fixes crash when running secur32_winetest:schannel
CORE-13425 #resolve

svn path=/trunk/; revision=75027
2017-06-13 20:51:26 +00:00
Giannis Adamopoulos
74cca4dd1e [WIN32K] -Use RtlStringCchCopyW instead of RtlStringCbCopyW in SubstituteFontRecurse as LF_FACESIZE is the number of characters of the buffer. Patch by Katayama Hirofumi MZ. CORE-13419, CORE-13416
svn path=/trunk/; revision=75026
2017-06-13 20:17:07 +00:00
Thomas Faber
eb3f29d2ad [WIN32K:NTUSER]
- Fail UserSetClipboardData in case of 0 format, as shown by user32:clipboard test

svn path=/trunk/; revision=75024
2017-06-13 14:11:26 +00:00
Thomas Faber
a41482aaa8 [USER32]
- Set last error on success in EnumClipboardFormats, as shown by user32:clipboard test

svn path=/trunk/; revision=75022
2017-06-13 13:40:55 +00:00
Thomas Faber
5e10767ccd [WIN32K:NTUSER]
- Close the clipboard when a thread is destroyed. Fixes 148 user32:clipboard tests
CORE-13414

svn path=/trunk/; revision=75021
2017-06-13 13:27:03 +00:00
Thomas Faber
d7fe3588b6 [WIN32K:NTUSER]
- Avoid crash on invalid format in UserEnumClipboardFormats. This is covered by user32_winetest but we currently fail that call before it can crash. The next commit will change that.
CORE-13414

svn path=/trunk/; revision=75020
2017-06-13 13:12:55 +00:00
Thomas Faber
1d4a0a6e30 [NTMARTA]
- Add support for CURRENT_USER trustee in AccpGetTrusteeSid. Fixes crash in advapi32_winetest:security
CORE-13420 #resolve

svn path=/trunk/; revision=75019
2017-06-13 10:10:57 +00:00
Thomas Faber
e953073b5f [BOOTDATA]
- Add Print context menu item for .rtf files. Patch by Nikolay Burshtyn.
CORE-13342 #resolve

svn path=/trunk/; revision=75018
2017-06-13 06:45:39 +00:00
Thomas Faber
82284116fa [KMTESTS]
- Add test for hidparse's descriptor parsing
CORE-11538

svn path=/trunk/; revision=75017
2017-06-13 05:48:28 +00:00
James Tabor
4d11c54f65 [GDI32|Metafile]
- Instead of debug breaking, use wine code anyway. Should fix CORE-12911.

svn path=/trunk/; revision=75016
2017-06-12 22:42:45 +00:00
Thomas Faber
07e4b2cd19 [HDAUDBUS]
- Initialize the correct variable in HDA_FDOQueryBusRelations. Should fix random crashes due to uninitialized value use.
CORE-12707 #resolve

svn path=/trunk/; revision=75015
2017-06-12 19:51:29 +00:00
Thomas Faber
c524a09a17 [WIN32K:NTUSER]
- Add a hack to avoid doubly freeing a DCE in IntDestroyClass. Since we don't implement W32PF_OWNDCCLEANUP and always free DCEs unconditionally in DceFreeDCE, it is not safe to access the class DCE here (and probably other places) since it could have been deleted by a dying thread.
CORE-13415 #resolve

svn path=/trunk/; revision=75014
2017-06-12 19:37:58 +00:00
Giannis Adamopoulos
40dcceff12 [SHELL32] -Add Comments as the 2nd column in CDesktopFolder, CDrivesFolder and CRegFolder. Add Type as the 3rd column in CRegFolder. This is not entirely correct. Our columns support is rudimentary, however we now show the comments stuff in the right place and the reg folder items have a type.
svn path=/trunk/; revision=75013
2017-06-12 18:38:26 +00:00
Giannis Adamopoulos
f6131fb8a9 Fix build.
svn path=/trunk/; revision=75012
2017-06-12 10:11:39 +00:00
Giannis Adamopoulos
f8555b75c4 [SHELL32]
- Rename the resource identifiers for column names to make sense. Get rid of one called File. This was renamed to Name but was the same in other languages, now it is replaced by Name for good. We also had two strings for a column called Comments and I think that in some languages one was singular and the other was plural. We only need the plural one. 
Note to translators: Please make sure that everything I changed makes sense. I had to edit all language files and there can be mistakes and typos.

svn path=/trunk/; revision=75011
2017-06-12 10:01:28 +00:00
Pierre Schweitzer
9805c2c7e7 [NTOSKRNL]
Implement SystemExtendedHandleInformation based on SystemHandleInformation.
To be improved...
Passes ntdll_winetest:info.

CORE-13368

svn path=/trunk/; revision=75006
2017-06-11 17:32:56 +00:00
Giannis Adamopoulos
2a0e4e58cf [SHELL32] -CDrivesFolder: Implement returning the appropriate type string in GetDetailsOf. Simplify GetDetailsOf and CDrivesExtractIcon_CreateInstance.
svn path=/trunk/; revision=75005
2017-06-11 14:02:14 +00:00
Mark Jansen
3a302c5330 [APPHELP_APITEST] Addendum to r74986, make the test work on win7. CORE-13284
svn path=/trunk/; revision=75004
2017-06-11 13:09:43 +00:00
Thomas Faber
3d3581bab1 [BUGCODES]
- Add DIRTY_NOWRITE_PAGES_CONGESTION and BUGCODE_USB_DRIVER

svn path=/trunk/; revision=75003
2017-06-11 12:46:15 +00:00
Thomas Faber
b8ed811f40 [PSDK]
- Fix C++ version of BM_REQUEST_TYPE without breaking the C version

svn path=/trunk/; revision=75002
2017-06-11 12:26:48 +00:00
Mark Jansen
b8ea78efa1 [WIN32NT_APITEST] Do not assert on a driver without DirectX support.
svn path=/trunk/; revision=75001
2017-06-11 11:47:41 +00:00
Thomas Faber
3779212db7 [NTOS:EX]
- Return STATUS_SUCCESS from the SystemExtendedHandleInformation stub to make Process Explorer happy. Fixes infinite loop on AHK bot.

svn path=/trunk/; revision=75000
2017-06-11 11:28:00 +00:00
Mark Jansen
27951d117b [WIN32K] Remove an unneeded check at GreGetDIBitsInternal. Patch by Victor Martinez Calvo. CORE-13413 CID 1411972
svn path=/trunk/; revision=74999
2017-06-11 11:18:57 +00:00
Mark Jansen
2366903f94 [COMCTL32_IMAGELIST] Prevent dereferencing a null pointer.
svn path=/trunk/; revision=74998
2017-06-11 11:08:32 +00:00
Mark Jansen
182d125bc0 [SHELL32] Do not fail CFSFolder::GetDisplayNameOf with a NULL pidl, preventing another crash in shell32:CFSFolder
svn path=/trunk/; revision=74997
2017-06-11 10:39:55 +00:00
Mark Jansen
7583b2b298 [WIN32KNT_APITEST] Do not assert on the result of an unimplemented function.
svn path=/trunk/; revision=74996
2017-06-11 08:51:36 +00:00
Mark Jansen
6c7fe2fb5f [SHELL32] Don't try to follow a null pointer inside CFSDropTarget, this fixes a crash in shell32:CFSFolder
svn path=/trunk/; revision=74995
2017-06-11 08:38:16 +00:00
Mark Jansen
178bc77a1f [SHELL32] Expose IID_CDefView in our CDefView implementation, this fixes a crash on shell32:shlview
svn path=/trunk/; revision=74994
2017-06-11 08:37:03 +00:00
Thomas Faber
16370e7605 [WIN32K:NTUSER]
Fix pool use after free during user32📋
- Rename IntIsFormatAvailable to IntGetFormatElement to better reflect what it does
- Introduce a new IntIsFormatAvailable that actually returns BOOL as implied by the name
- In IntAddSynthesizedFormats, call IntGetFormatElement right before its data is actually used, since IntAddFormatedData will invalidate the element pointer.
Thanks to Kamil for the initial investigation on this.
CORE-13408 #resolve

svn path=/trunk/; revision=74993
2017-06-11 08:33:36 +00:00
Pierre Schweitzer
1bde2edfcb [WS2_32]
Don't pass a null ptr at MSAFD to avoid dereference.
Fixes crash in ws2_32:sock

svn path=/trunk/; revision=74992
2017-06-11 07:56:18 +00:00
Thomas Faber
fbfe11f633 [WIN32K:NTUSER]
- Initialize BITMAPINFOHEADER::biSize before calling GreGetDIBitsInternal in IntSynthesizeDib. Fixes use of uninitialized memory and subsequent stack buffer overflow.
CORE-13408

svn path=/trunk/; revision=74991
2017-06-11 06:53:28 +00:00
Thomas Faber
ea1f78da72 [WIN32K:NTUSER]
- Include the CLIPBOARDDATA structure itself when calculating the size passed to UserCreateObject in IntSynthesizeDib. Fixes user heap corruption when running user32_winetest:clipboard.
CORE-13408

svn path=/trunk/; revision=74990
2017-06-11 06:05:42 +00:00
Pierre Schweitzer
f45315d051 [RDBSS]
Cosmetic fix

CID 1411968, 1411969

svn path=/trunk/; revision=74989
2017-06-10 20:58:22 +00:00
Pierre Schweitzer
fc8affc217 [RDBSS]
Fix reading parameters from registry

CID 1411973

svn path=/trunk/; revision=74987
2017-06-10 20:46:28 +00:00
Mark Jansen
be0666cf16 [APPHELP_APITEST] Add tests for ApphelpCheckRunApp[Ex], SdbGetMatchingExe, Sdb[Un]PackAppCompatData. CORE-13284
svn path=/trunk/; revision=74986
2017-06-10 20:31:58 +00:00
Pierre Schweitzer
50f668e4b3 [RXCE]
Misc. fixes.

CID 1411918, 1411929, 1411919

svn path=/trunk/; revision=74985
2017-06-10 20:28:25 +00:00
Mark Jansen
1b27b462ec [SHLWAPI_APITEST] Add PathFindOnPath tests. Patch by Katayama Hirofumi MZ. ROSTESTS-283 #comment Thanks!
svn path=/trunk/; revision=74984
2017-06-10 19:41:31 +00:00
Mark Jansen
d4db41b968 Addendum to r74982, remove some debugging code.
svn path=/trunk/; revision=74983
2017-06-10 17:47:56 +00:00
Mark Jansen
20cbe80c85 [SHELL32_APITEST] Add tests for PathResolve. Patch by Katayama Hirofumi MZ. CORE-12665 #comment Thanks!
svn path=/trunk/; revision=74982
2017-06-10 17:46:11 +00:00
Eric Kohl
d22bf76977 [SCHEDSVC]
Add a loop at the end of SchedServiceMain that will run until a stop event is signaled. This loop will be used to run the schduled jobs.

svn path=/trunk/; revision=74981
2017-06-10 10:51:49 +00:00
Thomas Faber
f5362e927f [NTOS:EX]
- Stub NtQuerySystemInformation:SystemExtendedHandleInformation. Avoids crashes in the upcoming ntdll_winetest sync.
CORE-13368 #resolve

svn path=/trunk/; revision=74980
2017-06-10 07:59:50 +00:00
Pierre Schweitzer
79a42b92f4 [UDFS]
Fix UDFS volume size computation.
Note that side effect of this is that free space computation is broken;
due to larger bitmap walk. To be fixed...

CORE-4375
CORE-13366

svn path=/trunk/; revision=74979
2017-06-10 05:45:26 +00:00
Amine Khaldi
071ff079a6 [PSDK] Add some missing definitions.
svn path=/trunk/; revision=74978
2017-06-09 23:13:23 +00:00
Thomas Faber
3fd5666e63 [WIN32K:NTUSER]
- Fix fmt range check in NtUserGetClipboardFormatName (see Wine commit 4bdcf512). Fixes new test failures (and resulting debug spam) in user32_winetest:clipboard
CORE-13402 #resolve

svn path=/trunk/; revision=74977
2017-06-09 21:36:15 +00:00
Mark Jansen
630bbc5421 [CALC] Explicitly link against comctl32. Patch by Carlo Bramini. CORE-10727
svn path=/trunk/; revision=74976
2017-06-09 18:21:54 +00:00
Thomas Faber
c16f5dc411 [USER32_WINETEST]
- Hackfix crash in user32:clipboard test due to NULL pointer returned from GetClipboardData.

svn path=/trunk/; revision=74974
2017-06-09 14:08:50 +00:00
Thomas Faber
3cbe1ae789 [GDI32]
- Check for lpResults == NULL in GetCharacterPlacementA. Patch by Doug Lyons. Fixes crash in gdi32_winetest:font
CORE-13401 #resolve

svn path=/trunk/; revision=74973
2017-06-09 11:14:11 +00:00
Giannis Adamopoulos
19dd22d422 [EXPLORER] -Use WM_POPUPSYSTEMMENU to open the system menu of a window. CORE-13400
svn path=/trunk/; revision=74972
2017-06-09 09:16:44 +00:00
Giannis Adamopoulos
e340056142 [EXPLORER] -Fix the return value in HandleShellHookMsg. Suggestion by Christoph.
svn path=/trunk/; revision=74971
2017-06-09 08:29:04 +00:00
Mark Jansen
8d15eb4dea [NTOS:MM] Do not queue debugger events after notifying process exit. CORE-13393
Patch suggested by Thomas.

svn path=/trunk/; revision=74969
2017-06-08 20:34:47 +00:00
Giannis Adamopoulos
8ad0eae687 [EXPLORER] -Revert a hack from r63304 that caused CORE-13388. This hid another bug and the correct way to fix this is to return MA_NOACTIVATE to WM_MOUSEACTIVATE.
svn path=/trunk/; revision=74968
2017-06-08 20:31:49 +00:00
Pierre Schweitzer
1ac1c1b261 [KMTESTS:MM]
When testing noncached mapping, use MmAllocateNonCachedMemory() as suggested by Thomas to avoid later potential failures

svn path=/trunk/; revision=74967
2017-06-08 20:16:34 +00:00
Hermès Bélusca-Maïto
7384a6a1d5 [GDI32_APITEST]: Fix the "missing braces around initializer" GCC error that I've introduced in r74962.
svn path=/trunk/; revision=74966
2017-06-08 19:09:01 +00:00
Giannis Adamopoulos
6b8f404594 [EXPLORER] -Open the start menu on mouse down. Patch by Joachim Henze (reactosfanboy). CORE-13375
svn path=/trunk/; revision=74965
2017-06-08 18:57:53 +00:00
Hermès Bélusca-Maïto
349d9f652b [ADVAPI32_WINETEST]: Fix compilation with MSVC 2010 (guarded via __REACTOS__).
svn path=/trunk/; revision=74963
2017-06-08 17:04:24 +00:00
Hermès Bélusca-Maïto
72c5e65e8c [GDI32_APITEST]: Fix compilation under MSVC 2010.
svn path=/trunk/; revision=74962
2017-06-08 17:00:55 +00:00
Giannis Adamopoulos
438d60c401 [UXTHEME] -Implement support for non rectangular caption buttons in WM_NCHITTEST handling. Please note that non rectangular buttons or buttons with no gaps between them are HACKY for XP so hittesting will never work properly (we really mimic windows xp here). Cache the position of caption buttons in the WINDOWINFO. CORE-13171
svn path=/trunk/; revision=74960
2017-06-08 14:27:52 +00:00
Eric Kohl
30ad304570 [NETAPI32]
Add obsolete NetErrorLog and NetService functions.

svn path=/trunk/; revision=74958
2017-06-08 09:34:31 +00:00
Eric Kohl
6d28124a20 [NETAPI32]
Add obsolete NetAudit and NetConfig functions.

svn path=/trunk/; revision=74957
2017-06-08 08:41:28 +00:00
Eric Kohl
658595fb98 [PSDK]
Fix NetAuditRead and NetAuditWrite prototypes (LPTSTR->LPCWSTR).

svn path=/trunk/; revision=74956
2017-06-08 08:37:59 +00:00
Pierre Schweitzer
453fae7f31 [KMTESTS:MM]
Make MmMapLockedPagesSpecifyCache a bit more robust. Based on Thomas' suggestions

svn path=/trunk/; revision=74955
2017-06-08 06:44:48 +00:00
Eric Kohl
eb6360d80f [NETAPI32]
Add obsolete NetAlert and NetMessage functions.

svn path=/trunk/; revision=74950
2017-06-08 00:30:49 +00:00
Eric Kohl
544223fa5a [NETAPI32]
Implement NetServerTransportAdd, NetServerTransportAddEx, NetServerTransportDel and NetServertransportEnum. These functions call their counterparts in the server service.


svn path=/trunk/; revision=74949
2017-06-07 23:35:09 +00:00
Eric Kohl
312c89f38e [NETAPI32]
- Implement NetServerDiskEnum, NetServerGetInfo and NetServerSetInfo. These functions call their counterparts in the server service.
- The new NetServerGetInfo function is disabled because its server side (NetrServerGetInfo) must be implemented before we can replace the Wine implemenation without loss of functionality.


svn path=/trunk/; revision=74948
2017-06-07 22:27:34 +00:00
Mark Jansen
2252393eeb [KERNEL32_WINETEST] Kill process that hangs on an unimplemented feature.
svn path=/trunk/; revision=74947
2017-06-07 20:40:42 +00:00
Thomas Faber
c2486683cc [NTOS:DBGK]
- Add SEH in DbgkpPostFakeModuleMessages. Fixes crash in ntdll_winetest:info when trying to debug another process that was started suspended.
CORE-13369 #resolve

svn path=/trunk/; revision=74946
2017-06-07 20:23:53 +00:00
Pierre Schweitzer
68dca562d7 [UDFS]
Set the volume label with the logical volume ident contained in the file set descriptor.
Microsoft appears to do so, so mimic this behavior to have consistent volumes labels with Windows.

CORE-4375

svn path=/trunk/; revision=74945
2017-06-07 19:33:55 +00:00
Eric Kohl
5ec31693b0 [SCHEDSVC]
Avoid JOBs overrunning in LoadJobs().
- Define JOB_NAME_LENGTH and use it instead of hardcoded values.
Based on a patch by Victor Martinez Calvo.
CORE-13389

svn path=/trunk/; revision=74944
2017-06-07 17:45:05 +00:00
Eric Kohl
3e87295366 [INTL]
- Fix a potential overflow and uninitialized variable in InitNegNumFmtCB().
- Get rid of the now useless string buffer szNewSample.
Based on a patch by Victor Martinez Calvo.
CORE-13384

svn path=/trunk/; revision=74942
2017-06-07 15:55:16 +00:00
Eric Kohl
fd32dd8623 [INTL]
Fix freeing logic in GetSupportedCP().
Patch by Victor Martinez Calvo.
CORE-13385

svn path=/trunk/; revision=74941
2017-06-07 14:10:43 +00:00
Eric Kohl
2c1c8e2f94 [INTL]
Fix GetDateSetting() overruns.
Patch by Victor Martinez Calvo.
CORE-13387

svn path=/trunk/; revision=74940
2017-06-07 13:48:49 +00:00
Eric Kohl
d6f5debb07 [INTL]
Fix overruns in GetTimeSetting().
Patch by Victor Martinez Calvo.
CORE-13386

svn path=/trunk/; revision=74939
2017-06-07 13:43:33 +00:00
Eric Kohl
b3b8277a07 [INTL]
Prevent wcsncopy overflows in GetCurrencySettings().
Patch by Victor Martinez Calvo.
CORE-13379

svn path=/trunk/; revision=74938
2017-06-07 13:37:43 +00:00
Benedikt Freisen
101ccf86e2 [MSPAINT]
- fix incorrect file extension management -- patch by Katayama Hirofumi MZ

CORE-12354 #resolve

svn path=/trunk/; revision=74937
2017-06-07 10:12:05 +00:00
Benedikt Freisen
9a2dd59876 [MSPAINT]
- fix incorrect image resizing -- patch by Katayama Hirofumi MZ

CORE-10719 #resolve

svn path=/trunk/; revision=74936
2017-06-07 10:00:04 +00:00
Giannis Adamopoulos
7ca0d5807c [UXTHEME] -Fix parsing font styles like bold or italic.
svn path=/trunk/; revision=74935
2017-06-07 08:35:35 +00:00
Giannis Adamopoulos
391e68be86 [UXTHEME] -Rename ActiveThemeFile to g_ActiveThemeFile, user32ApiHook to g_user32ApiHook and gbThemeHooksActive to g_bThemeHooksActive.
svn path=/trunk/; revision=74934
2017-06-07 08:28:14 +00:00
Giannis Adamopoulos
27c9570f9d [COMCTL32] -Fix a lot of tests for the v5 toolbar without braking the behavior of the v6 one (that needs to be tested).
svn path=/trunk/; revision=74931
2017-06-06 12:19:17 +00:00
Hermès Bélusca-Maïto
6fda346a25 [EXPLORER]: Fix what appears to be a copy-pasta error: use the correct window class names in the corresponding message maps. Validated by Giannis Adamopoulos.
svn path=/trunk/; revision=74930
2017-06-05 22:01:09 +00:00
Giannis Adamopoulos
759a452d44 [COMCTL32_APITEST] -Make comctl32v5.manifest really point to the v5 library.
svn path=/trunk/; revision=74929
2017-06-05 21:50:21 +00:00
Thomas Faber
605a7dfec9 [NTDLL_VISTA]
- Avoid importing from kernel32. We're supposed to be... ntdll
CORE-13361

svn path=/trunk/; revision=74928
2017-06-05 21:37:13 +00:00
Peter Hater
d70eb21b6b [WINETESTS] Avoid canceling the test when Samba is not installed and NTLM authentication is tested
svn path=/trunk/; revision=74927
2017-06-05 19:27:50 +00:00
Pierre Schweitzer
3a11250596 [UDFS]
Only use unused var warnings. Patch by Thomas.

CORE-4375

svn path=/trunk/; revision=74926
2017-06-05 16:02:47 +00:00
Pierre Schweitzer
c91b3835c5 [UDFS]
Misc fixes by Thomas.

CORE-4375

svn path=/trunk/; revision=74925
2017-06-05 15:54:51 +00:00
Giannis Adamopoulos
3767fcf5cc Fix gcc build.
svn path=/trunk/; revision=74924
2017-06-05 14:40:48 +00:00
Giannis Adamopoulos
0cfb73fce3 [COMCTL32_APITEST] -Add tests for CCM_GETVERSION and CCM_SETVERSION for the v5 and v6 toolbar control.
svn path=/trunk/; revision=74923
2017-06-05 14:25:37 +00:00
Giannis Adamopoulos
f71f869a95 [COMCTL32] -Differentiate between v5 and v6 toolbar and make their CCM_SETVERSION behave correct according to their version.
svn path=/trunk/; revision=74922
2017-06-05 14:23:42 +00:00
Pierre Schweitzer
2130f6ee4b [UDFS]
Misc coverity fixes.
CID 1412011, 1321904, 1322008, 1322151, 1321905

CORE-4375

svn path=/trunk/; revision=74921
2017-06-05 13:00:58 +00:00
Alexander Shaposhnikov
8b189b4be3 [RAPPS]
* Added constants in resource.h for stringtables
* Removed "Installed apps" from the TreeView
* Added intallation status to the RichEdit using existing check
* Changed IsInstalledApplication signature to accept access righta 
  This is needed for the 64 bit systems.

svn path=/branches/GSoC_2017/rapps/; revision=74920
2017-06-04 21:36:14 +00:00
Pierre Schweitzer
d3e907f461 [UDFS]
Complete the implementation of UDFGetNetworkInformation() so that it sets all the fields.
This fixes displaying file size in explorer.

CORE-4375
CORE-13366

svn path=/trunk/; revision=74919
2017-06-04 19:17:10 +00:00
Hermès Bélusca-Maïto
cef084134d [i8042prt]: Yet another hack for Dell trackpad, but this time, we inaugurate the Inspiron series with a Dell Inspiron 6000 hack!! x^( Something's fishy in our driver...
Tested and confirmed working by Jared Smudde.
CORE-6901

svn path=/trunk/; revision=74918
2017-06-04 18:24:05 +00:00
Hermès Bélusca-Maïto
b3e5a3b667 [PSDK]: Remove a couple of redundant #defines that are already defined in this regstr.h file.
svn path=/trunk/; revision=74917
2017-06-04 18:19:55 +00:00
Hermès Bélusca-Maïto
93cfc03633 [SETUPAPI]: Fix a 9-year old bug in the SETUP_CreateClassKey() logic, introduced in r31860, that set a wrong Class name value if the corresponding registry key already existed. The bug was unveiled by my commit r74761.
[SETUPAPI_APITEST]: When selecting another test_class_guid and test_class_name couple via SetupDiClassNameFromGuidA(), check whether this function actually succeeds. Also, improve some error output.

svn path=/trunk/; revision=74916
2017-06-04 18:16:24 +00:00
Pierre Schweitzer
a538181140 [UDFS]
Fix broken implementation of UDFGetFullNameInformation().
Always return full name length so that caller can allocate a big-enough buffer for later call.

CORE-4375

svn path=/trunk/; revision=74914
2017-06-04 16:59:25 +00:00
Eric Kohl
09d56b8cff [NETAPI32]
- Implement NetFileClose, NetFileEnum and NetFileGetInfo. These functions call their counterparts in the server service.
- Get rid of share.c as it is no longer needed.

svn path=/trunk/; revision=74913
2017-06-04 15:46:29 +00:00
Amine Khaldi
61b665bdda [README.WINE] Mark some modules as synced with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74912
2017-06-04 15:19:05 +00:00
Amine Khaldi
8fa7e9eda7 [ADVAPI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74911
2017-06-04 14:57:35 +00:00
Eric Kohl
597e5ae5bd [NETAPI32]
- Implement NetSessionDel, NetSessionEnum and NetSessionGetInfo. These functions call their counterparts in the server service.

svn path=/trunk/; revision=74910
2017-06-04 14:34:27 +00:00
Amine Khaldi
29d9f9eb31 [USER32_WINETEST] Sync with Wine Staging 2.9 except win.c. CORE-13362
svn path=/trunk/; revision=74909
2017-06-04 14:34:15 +00:00
Amine Khaldi
e7bfd19443 [KERNEL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74908
2017-06-04 14:29:15 +00:00
Amine Khaldi
eb1618cb01 [PSDK] Add some missing PROC_THREAD_ATTRIBUTE_* definitions.
svn path=/trunk/; revision=74907
2017-06-04 14:27:51 +00:00
Mark Jansen
d8b7427d6b [WIN32SS] Prevent accessing an unininitialized pointer when loading an invalid font. CORE-13364
svn path=/trunk/; revision=74906
2017-06-04 14:03:25 +00:00
Amine Khaldi
09cb26ed2e [RPCRT4_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74905
2017-06-04 14:02:01 +00:00
Amine Khaldi
0d89ad94cf [RPCRT4] Sync with Wine Staging 2.9. CORE-13362
6b53b79 rpcrt4: Use HEAP_ZERO_MEMORY to alloc RpcServerProtseq objects.
28f865b rpcrt4: Add close_read implementation for TCP connections.
29f0b28 rpcrt4: Add close_read implementation for named pipe connections.
42ba4d7 rpcrt4: Introduce op for closing connection read end and use it when shutting down server.
ef267f1 rpcrt4: Store all active connections in RpcServerProtseq.
dae3065 rpcrt4: Remove connection from list in RPCRT4_ReleaseConnection.
812897c rpcrt4: Use HEAP_ZERO_MEMORY to alloc RpcConnection objects.
13d529a rpcrt4: Renamed connections list to listeners.
c953763 rpcrt4: Remove no longer needed helpers.
b548338 rpcrt4: Implement cancel_call for named pipes.
372c9e0 rpcrt4: Cache event handle in RpcConnection_np object.
6e7a297 rpcrt4: Use non-blocking listening on named pipes.
4f4ac8c rpcrt4: Use named pipe in overlapped mode.
bd6f807 rpcrt4: Simplify rpcrt4_conn_np_read implementation.
f62b9d6 rpcrt4: Simplify rpcrt4_conn_np_write implementation.
2035294 rpcrt4: Use standard Wine list to store connections in RpcServerProtseq.
e621593 rpcrt4: Always use winsock for networking.
d0ed6d1 rpcrt4: Get rid of manual_listen_count and use binary state instead.

svn path=/trunk/; revision=74904
2017-06-04 14:01:54 +00:00
Amine Khaldi
afc72d800f [COMCTL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74903
2017-06-04 12:53:30 +00:00
Amine Khaldi
b44a9ed6f6 [COMCTL32] Sync with Wine Staging 2.9. CORE-13362
9abd3d1 comctl32: fix buttons becoming unthemed when pressed/released
8967e87 comctl32/taskdialog: Display content text label.
65d64e1 comctl32/listview: Simplify a couple of conditions that are using LVFI_PARTIAL.
407a3c0 comctl32/listview: Search through all items in LVFI_NEARESTXY mode.
5fe4493 comctl32/listview: When adding a scrollbar, update the other one.
8ef79b0 comctl32/listview: Convert item text once when looking for insertion point.
791924a comctl32/listview: Remove internal autoarrange flag, it breaks positioning.
b1d46e0 comctl32/taskdialog: Remove superfluous title pointer check (Coverity).
48c4edd comctl32/pager: Prevent excessive PGN_CALCSIZE notifications during PGM_SETCHILD.
d6a6055 comctl32: Improve right-click handling in treeview controls.
6926564 comctl32: Don't touch the new child twice in PGM_SETCHILD.
995b690 comctl32/taskdialog: Initial implementation of a minimal task dialog.
e2245bc comctl32/taskdialog: Move TaskDialogIndirect and its tests into own source files.
429705e comctl32/propsheet: Implement PSPCB_ADDREF/PSPCB_RELEASE notifications.
a3aa217 comctl32/propsheet: Enforce minimal PROPSHEETPAGE structure size when creating a page.
b7cc440 comctl32: Update the tooltip rectangle when a tool button is hidden.
690022c comctl32: Return TRUE from LVM_REDRAWITEMS with bad indices.

svn path=/trunk/; revision=74902
2017-06-04 12:53:17 +00:00
Pierre Schweitzer
3a104c8f20 [UDFS]
Enable the UDFS driver on ReactOS. It will be started "on demand" by the FS_REC driver when an UDF
formatted volume is inserted.
It's not bug free (yet? ;-)). It seems to show issues when trying to start an executable, it locks
and never release DVD (ie, you've to force ejection) and you might face deadlocks.
But, for the basics, you can open an UDF volume, browse it, and display files.

CORE-4375

svn path=/trunk/; revision=74901
2017-06-04 11:47:34 +00:00
Pierre Schweitzer
2989383bb2 [UDFS]
Add UFDS to bootcd, so that it can be installed on disk

CORE-4375

svn path=/trunk/; revision=74900
2017-06-04 10:32:51 +00:00
Pierre Schweitzer
d35d70f2de [UDFS]
Addendum to r74897: use the appropriate keyword (by Thomas)

CORE-4375

svn path=/trunk/; revision=74898
2017-06-04 08:09:29 +00:00
Pierre Schweitzer
0978c888bd [UDFS]
lolfix some deadlocks in UDFS:
- deadlock when enumerating files
- deadlock on shutdown after volume change

I could track it to the fact that for whatever reason, GCC wrongly optimize the
BOOLEAN used to store whether the VCB resource was acquired. The optimization being
to assume it's always FALSE. Thus, the resource is never released and the driver
ends in a deadlock.
To avoid this: marked the BOOLEAN variables as volatile.

I guess there are same kind deadlocks I couldn't see in my limited tests...

CORE-4375

svn path=/trunk/; revision=74897
2017-06-04 08:02:01 +00:00
Amine Khaldi
474be69727 [PSDK] Add missing USER_DEFAULT_SCREEN_DPI and AR_STATE.
svn path=/trunk/; revision=74895
2017-06-04 01:52:55 +00:00
Amine Khaldi
74e602b7f1 [XDK][DDK][PSDK] Update WELL_KNOWN_SID_TYPE and TOKEN_INFORMATION_CLASS.
svn path=/trunk/; revision=74894
2017-06-04 01:52:50 +00:00
Amine Khaldi
ab03499440 [XDK][PSDK] Add missing ACTCTX_REQUESTED_RUN_LEVEL and ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION.
svn path=/trunk/; revision=74893
2017-06-04 01:52:45 +00:00
Amine Khaldi
5fbcf4bdd4 [WIDL] Sync with Wine Staging 2.9. CORE-13362
5a06b6b widl: Add missing width and alignment for VARIANT.
028b2bd widl: Initialize decoded_size.
2ff2792 widl: Accept known type as library name.

svn path=/trunk/; revision=74892
2017-06-04 01:52:35 +00:00
Amine Khaldi
0688aec488 [COMDLG32] Sync with Wine Staging 2.9. CORE-13362
6d3243c comdlg32: Postpone setting ofn->lpstrFileTitle to work around an application bug.
3c33ebd comdlg32: Use existing symbol for Help button id.
5d9ab56 comdlg32: Select the correct font before querying the extents.
e77771c comdlg32: Set the radiobuttons' font if they're part of a visual group.
0099452 comdlg32: Use pixel sizes throughout.
6df0198 comdlg32: Scale the control size limits with dpi.
6891b5a comdlg32: Don't ask for icon information since it's unused.
a44a608 comdlg32: Take nMaxFile into account when converting A->W.
b47de18 comdlg32: Use GetPropW() to get to file dialog data.
c23a91c comdlg32: Consolidate file dialog initialization to avoid duplication.
aef8433 comdlg32: Expand initial directory path for file open dialog.

svn path=/trunk/; revision=74891
2017-06-04 01:52:26 +00:00
Amine Khaldi
92e558732b [UXTHEME_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74890
2017-06-04 01:52:19 +00:00
Amine Khaldi
3145e7c7c1 [SHELL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74889
2017-06-04 01:52:12 +00:00
Amine Khaldi
980868b1f9 [PSDK] Add missing GPFIDL_FLAGS.
svn path=/trunk/; revision=74888
2017-06-04 01:51:57 +00:00
Amine Khaldi
e024f8f37b [PSDK] Add missing IID_CDefView.
svn path=/trunk/; revision=74887
2017-06-04 01:51:51 +00:00
Amine Khaldi
fca7431a53 [SETUPAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74886
2017-06-04 01:51:43 +00:00
Amine Khaldi
6c88bfb14d [SERVICES_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74885
2017-06-04 01:51:25 +00:00
Amine Khaldi
f0f266a71d [SECUR32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74884
2017-06-04 01:51:16 +00:00
Amine Khaldi
f743323efa [PSDK] Update sspi.h. CORE-13362
svn path=/trunk/; revision=74883
2017-06-04 01:51:07 +00:00
Amine Khaldi
4a981826c1 [MSVCRT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74882
2017-06-04 01:50:58 +00:00
Amine Khaldi
05343d6328 [GDI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74881
2017-06-04 01:50:46 +00:00
Amine Khaldi
ed4906ee50 [REG_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74880
2017-06-04 01:50:37 +00:00
Amine Khaldi
7bd43aa322 [WSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74879
2017-06-04 01:50:30 +00:00
Amine Khaldi
8f32e01d63 [WS2_32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74878
2017-06-04 01:50:24 +00:00
Amine Khaldi
0c663413f5 [PSDK] Add missing AI_DISABLE_IDN_ENCODING.
svn path=/trunk/; revision=74877
2017-06-04 01:50:16 +00:00
Amine Khaldi
dd3b6e0e8d [INCLUDE/WINE] Update winternl.h. CORE-13362
svn path=/trunk/; revision=74876
2017-06-04 01:50:07 +00:00
Amine Khaldi
3e7b57d242 [WINSPOOL_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74875
2017-06-04 01:50:00 +00:00
Amine Khaldi
8e8a5efa43 [WINMM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74874
2017-06-04 01:49:55 +00:00
Amine Khaldi
4c2c978917 [XMLLITE_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74873
2017-06-04 01:49:50 +00:00
Amine Khaldi
17e927e7e5 [XMLLITE] Sync with Wine Staging 2.9. CORE-13362
707ab55 xmllite/writer: Fix IID argument handling in CreateXmlWriter().
d1e1457 xmllite/reader: Fix IID argument handling in CreateXmlReader().
a68e51c xmllite/writer: Preserve original encoding name spelling in writer output.
ef023c3 xmllite: Recognize us-ascii encoding.
9506e7d xmllite: Return local name stored in namespace for prefixed namespace attribute values.
1b9b791 xmllite: Allocate value in reader_add_attr.
daf0504 xmllite: Allow reading from allocated strings in ReadValueChunk.
f862222 xmllite: Store allocated copy of local name in attribute struct and use that instead of StringValue_LocalName.
004d615 xmllite: Don't use StringValue_LocalName for element nodes.
6917e2a xmllite: Clear all parser values in SetInput.
291ffdd xmllite: Don't fail in readerinput_detectencoding if input buffer has 3 bytes.
536ed3f xmllite: Return empty value for end element and none nodes.
48fff1b xmllite: Replace crln in input buffer with nl.
2b5203b xmllite: Fixed ReadValueChunk implementation.
a3d7806 xmllite: Fixed buffer handling in reader_parse_reference.
68aeee4 xmllite: Return WC_E_SYNTAX if there is unexpected data in the end of the stream.
253f233 xmllite/reader: Return same string for local and qualified names for attributes when appropriate.
d7057a3 xmllite/reader: For elements without a prefix return same string for both local and qualified names.
1e015f1 xmllite/reader: Always return local name from element structure.
876de4a xmllite/reader: Reset reader nesting depth on error.
ec9e05c xmllite/reader: Enter error state on parsing error.
b115e96 xmllite/reader: Improve returned position for whitespace text nodes.
9685fec xmllite/reader: Improve line number updating when switching to the next line.
79a6567 xmllite/reader: Fix position methods return values in closed reader state.
62a41d0 xmllite/reader: Return correct error for multiple colons in qualified name.
3b83a44 xmllite/reader: Explicitly return empty string as qualified name for some node types.
52f9193 xmllite/reader: Explicitly return empty static string as local name for nodes without names.
1ccc1f2 xmllite/reader: Return static empty string as xml declaration node value.
65e62c3 xmllite/reader: Fix reader position returned for xml declaration node.
6cf9524 xmllite/reader: Improve returned reader position for elements and attributes.
e1c31e1 xmllite/reader: Remove redundant parameter.
d3319f6 xmllite/reader: Return prefixes from namespace stack.
b57589a xmllite/reader: Return qualified element names from the stack, instead of input buffer.
3ae1043 xmllite/reader: Return local element names from the stack, instead of input buffer.
3697bd9 xmllite/reader: Return empty string for namespace uri for some nodes.
63c489f xmllite/reader: Fix GetValue() for comments.
71a0733 xmllite/reader: Enforce maximum element depth limit.
ce84b20 xmllite/reader: Return qualified names for attributes.
3fe5f25 xmllite/reader: Fix prefix returned after moving back to element.
70028b7 xmllite/reader: Return empty value for elements.
7c44c65 xmllite/reader: Return proper name for xml declaration PI.
8f0c235 xmllite/reader: Improve the way nesting level returned by GetDepth() is updated.
073c43a xmllite/reader: Implement IsEOF().
b188079 xmllite/reader: Reset node type to XmlNodeType_None on EOF.
0cbd938 xmllite/reader: Always return node type from Read().
80cf883 xmllite/reader: Improve input stream encoding detection.
5b78cc9 xmllite/writer: Fix Release() trace.
9c988e7 xmllite/writer: Implement WriteString().
107615d xmllite/reader: Fix writing back resolved character reference value.
05956e6 xmllite: Fix CreateXmlReaderInputWithEncodingName spec file entry.
d369857c xmllite: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74872
2017-06-04 01:49:43 +00:00
Amine Khaldi
6f73f34dab [WSHOM.OCX] Sync with Wine Staging 2.9. CORE-13362
2619bdb wshom: Fix IWshShell3::Invoke() call to use correct implementation pointer.

svn path=/trunk/; revision=74871
2017-06-04 01:49:32 +00:00
Amine Khaldi
ac024d1cda [WMIUTILS] Sync with Wine Staging 2.9. CORE-13362
b16f08b wmiutils: Simplify and standardize the heap_xxx() declarations.

svn path=/trunk/; revision=74870
2017-06-04 01:49:25 +00:00
Amine Khaldi
2e2012f926 [WINTRUST] Sync with Wine Staging 2.9. CORE-13362
e420549 wintrust: Verify image hash in WinVerifyTrust. (v2)
f1dfc53 wintrust: Fix CryptCATAdminAcquireContext spec file entry.

svn path=/trunk/; revision=74869
2017-06-04 01:49:20 +00:00
Amine Khaldi
2464924026 [WININET_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74868
2017-06-04 01:49:09 +00:00
Amine Khaldi
8743767965 [PSDK] Update winhttp.h and wininet.h. CORE-13362
svn path=/trunk/; revision=74867
2017-06-04 01:49:03 +00:00
Amine Khaldi
6e2403e911 [WININET] Sync with Wine Staging 2.9. CORE-13362
05c23c9 wininet: Use isspaceW() instead of isspace() for WCHARs.
f9d1b16 wininet: Return failure when handling http redirect without hostname.
4ca5f42 wininet: Allow to set INTERNET_OPTION_HTTP_DECODING on sessions and connections.
7d8cf31 wininet: Don't use returned read size if read failed in gzip_read.
2952c63 wininet: Get rid of no longer needed get_avail_data from data stream implementations.
295291b wininet: Always use non-blocking reads in HTTP_ReceiveRequestData.
fd0ac40 wininet: Get rid of no longer needed blocking_mode_t.
18f9d03 wininet: Get rid of no longer needed BLOCKING_WAITALL.
7eaadab wininet: Merge InternetReadFile and InternetReadFileEx implementations.
a546e8a wininet: Reimplemented InternetQueryDataAvailable on top of async_read.
0880874 wininet: Rewrite InternetReadFileEx for http protocol to make use of non-blocking reads.
98bcd00 wininet: Rewrite asynchronous read to try to fill whole buffer and not buffer additional data unless requested.
c140a70 wininet: Propagate WSAEWOULDBLOCK from read_http_stream.
f42a2cc wininet: Pass blocking mode to HTTPREQ_Read.
67b5677 wininet: Propagate WSAEWOULDBLOCK result from content decoding reads.
36f6387 wininet: Forward InternetGetConnectedState to Ex function.
7b42dc4 wininet: Improved netconn_drain_content.
6caecb6 wininet: Handle query parameters for HTTPS urls in InternetOpenUrlW.
e9be490 wininet: Fix some more spec file entries.

svn path=/trunk/; revision=74866
2017-06-04 01:48:55 +00:00
Amine Khaldi
25cdf28c16 [WINHTTP_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74865
2017-06-04 01:48:43 +00:00
Amine Khaldi
77b7db7a3b [WINHTTP] Sync with Wine Staging 2.9. CORE-13362
2fa86fd winhttp: Always drain content before sending the next request.
6b6ffb3 winhttp: Ignore unknown schemes in WinHttpQueryAuthSchemes.
08603e5 winhttp: Fix a memory leak in insert_header (Valgrind).
be78574 winhttp: Cookie attributes are case-insensitive.
8595cc5 winhttp: Parse cookie attributes.

svn path=/trunk/; revision=74864
2017-06-04 01:48:31 +00:00
Amine Khaldi
036e6ad687 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74863
2017-06-04 01:48:23 +00:00
Amine Khaldi
28942a7e09 [PSDK] Update wincodecsdk.idl. CORE-13362
[WINDOWSCODECS] Sync with Wine Staging 2.9. CORE-13362

00d3b89 windowscodecs: Simplify a bit comparison of two PROPVARIANTs.
5ea8f41 windowscodecs: Implement IWICMetadataQueryReader::GetContainerFormat.
8890f2e windowscodecs: Implement WICMapSchemaToName.
dd7fa09 windowscodecs: Implement WICMapShortNameToGuid.
4cf250c windowscodecs: Implement WICMapGuidToShortName.
bb57e0c windowscodecs: Fix 32bppRGB to 32bppRGBA conversion.
b1037a9 windowscodecs: Add support for 32bppRGB, 32bppRGBA and 32bppPRGBA to format converter.
4e2cdd5 windowscodecs: Tolerate partial reads in the IFD metadata loader.
213b395 windowscodecs: Add support for 16bpp RGBA format to TIFF decoder.
2133dd1 windowscodecs: Add support for 4bpp RGBA format to TIFF decoder.
41827e1 windowscodecs: Add support for 32bppCMYK and 64bppCMYK formats to TIFF decoder.
306b4d3 windowscodecs: Add support for 128bppRGBAFloat format to TIFF decoder.
74f105d windowscodecs: Add support for 12bpp RGB format to TIFF decoder.
76bbf38 windowscodecs: Add support for 3bps RGB format to TIFF decoder.
2103e19 windowscodecs: Add support for 16bppGray and 32bppGrayFloat formats to TIFF decoder.
150fc32 windowscodecs: Avoid redundant checks when reading a TIFF tile.
266e4ec windowscodecs: Fail earlier in TIFF decoder's Initialize method for unsupported pixel formats.
b7306a4 windowscodecs: Fix the SupportsTransparency flag value for various pixel formats.
35483da include: Fix typos in WICPersistOptions enumeration names.
2d5c861 windowscodecs: Fixed loading png from streams.
fdccccb windowscodecs: Fix IWICImagingFactory_CreateDecoderFromFileHandle_Proxy spec file entry.
376b075 windowscodecs: Remove dead assignment (clang).
b0d04e6 wincodecs: Simplify property name allocation.
5107ef7 wincodecs: Implement FilterOption property for PNG encoder.
6283014 wincodecs: Trigger conversion to target format in WriteSource().

svn path=/trunk/; revision=74862
2017-06-04 01:48:14 +00:00
Amine Khaldi
83d3b7e46f [PSDK] Add missing SHCreateMemStream() declaration.
svn path=/trunk/; revision=74861
2017-06-04 01:47:59 +00:00
Amine Khaldi
f4bd80599a [PSDK] Update wincodec.idl. CORE-13362
svn path=/trunk/; revision=74860
2017-06-04 01:47:54 +00:00
Amine Khaldi
6ad85c01c6 [WBEMPROX] Sync with Wine Staging 2.9. CORE-13362
3ca407e wbemprox: Add Vendor field in Win32_ComputerSystemProduct.
b3f98ab wbemprox: Add DriverDate for Win32_VideoController.
65473a8 wbemprox: Add InstalledDisplayDrivers for Win32_VideoController.
b062c6c wbemprox: Add Status for Win32_VideoController.
32707e5 wbemprox: Add ConfigManagerErrorCode for Win32_VideoController.
9f81263 wbemprox: Provide DeviceID, Location and PortName for printers.
66e3c97 wbemprox: Also free data for tables that don't have a fill function (Valgrind).
34f77a6 wbemprox: Simplify and standardize the heap_xxx() declarations.

svn path=/trunk/; revision=74859
2017-06-04 01:47:48 +00:00
Amine Khaldi
4e1fa50310 [WBEMDISP_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74858
2017-06-04 01:47:40 +00:00
Amine Khaldi
50f8a9e9fa [WBEMDISP] Sync with Wine Staging 2.9. CORE-13362
a392e14 wbemdisp: Implement ISWbemProperty::get_Value.
6721725 wbemdisp: Implement ISWbemPropertySet::Item.
cb2660b wbemdisp: Implement ISWbemObject::get_Properties_.
a11aed3 wbemdisp: Invoke the generic methods and properties as well as the dynamic ones.
66edb81 wbemdisp: Search for the generic methods and properties as well as the dynamic ones.
c1242a2 wbemdisp: Add missing methods to the ISWbemObjectVtbl.
64be3a2 wbemdisp: Simplify and standardize the heap_xxx() declarations.

svn path=/trunk/; revision=74857
2017-06-04 01:47:30 +00:00
Amine Khaldi
d8eaddca44 [VERSION_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74856
2017-06-04 01:47:23 +00:00
Amine Khaldi
c0c77a27b3 [VERSION] Sync with Wine Staging 2.9. CORE-13362
7811de1 version: Add support for FILE_VER_GET_LOCALISED flag.

svn path=/trunk/; revision=74855
2017-06-04 01:47:19 +00:00
Amine Khaldi
126ab550af [VBSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74854
2017-06-04 01:47:13 +00:00
Amine Khaldi
43c14906aa [VBSCRIPT] Sync with Wine Staging 2.9. CORE-13362
4ecc00f vbscript: Allow colons at the end of first line of loops.
8ab8a92 vbscript: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74853
2017-06-04 01:47:08 +00:00
Amine Khaldi
0a4d3b5257 [USP10_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74852
2017-06-04 01:47:02 +00:00
Amine Khaldi
100b1d6e92 [USP10] Sync with Wine Staging 2.9. CORE-13362
30e8768 usp10: Validate substition record sequence indices in GSUB_apply_ContextSubst().
ebe75cb usp10: Simplify the "sr_2" assignments in GSUB_apply_ContextSubst().
6c13170 usp10: Range check glyph counts in GSUB_apply_ContextSubst().
c5619be usp10: Validate positioning record sequence indices in GPOS_apply_ContextPos().
82d36ba usp10: Simplify the "pr_2" assignment in GPOS_apply_ContextPos().
1b02c1a usp10: Range check glyph counts in GPOS_apply_ContextPos().
d1ca880 usp10: Validate substition record sequence indices in GSUB_apply_ChainContextSubst().
34a9400 usp10: Validate positioning record sequence indices in GPOS_apply_ChainContextPos().
9694aeb usp10: Avoid special handling if the substitution count is 0 in GSUB_apply_ChainContextSubst().
f7b943e usp10: Range check glyph counts in GSUB_apply_ChainContextSubst().
24943fe usp10: Simplify the chaining context table assignments in GSUB_apply_ChainContextSubst().
02316e6 usp10: Rename the chaining context tables in GSUB_apply_ChainContextSubst() to something more descriptive.
0389768 usp10: Return early if the number of positioning operations is 0 in GPOS_apply_ChainContextPos().
7dfe9b9 usp10: Range check glyph counts in GPOS_apply_ChainContextPos().
f6c0146 usp10: Simplify the chaining context table assignments in GPOS_apply_ChainContextPos().
fb3ea0a usp10: Rename the chaining context tables in GPOS_apply_ChainContextPos() to something more descriptive.
04e5466 usp10: Handle invalid arguments in ScriptIsComplex().
4553871 usp10: Check if corresponding headers are present before accessing their feature lists in _initialize_feature_cache.
63bcfa3 usp10: Get rid of the code duplication between GSUB_initialize_feature_cache() and GPOS_expand_feature_cache().
9b0f3f1 usp10: Get rid of some code duplication in GPOS_expand_feature_cache().
0ffd5b4 usp10: Double the languages array size when growing it in GPOS_expand_language_cache().
218be44 usp10: Double the scripts array size when growing it in GPOS_expand_script_cache().
9a15753 usp10: Introduce a helper function to lookup a language in a LoadedScript structure.
2a0ffc9 usp10: Introduce a helper function to lookup a script in the script cache.
213d358 usp10: Avoid LPVOID.
1403087 usp10: Avoid LPCVOID.
a204e58 usp10: Avoid LPWSTR.
cdd47c3 usp10: Avoid LPCWSTR.
af617aa usp10: Avoid LPBYTE.
34c2f74 usp10: Avoid LPWORD.
ab8ec60 usp10: Avoid LPPOINT.
ba66b62 usp10: Avoid LPOUTLINETEXTMETRICW.
df21247 usp10: Make the script cache parameter to get_opentype_script() const.
c8f87ad usp10: Make the script cache parameter to GPOS_apply_MarkToBase() const.
cd9db34 usp10: Pass const metrics to GPOS_convert_design_units_to_device().
c3dc9ed usp10: Use heap_free() instead of HeapFree().
6a0e5bb usp10: Use heap_alloc() instead of HeapAlloc().
77e5a2f usp10: Use heap_alloc_zero() instead of HeapAlloc() with HEAP_ZERO_MEMORY.
3c704c2 usp10: Use bsearch() to lookup the script range in get_char_script().
a523b46 usp10: Introduce an enumeration for script types.
502d239 usp10: Do not fall back to presentation form B if the contextual feature exists in ContextualShape_Arabic().
f13dea5 usp10: Properly determine the glyph run direction when shaping Script_Arabic.
c94a5fd usp10: Take the script direction into account when applying OpenType features.
1727dd4 usp10: Use USP10_FindGlyphInLogClust() in UpdateClusters().
bab506e usp10: Use memmove() in GSUB_apply_LigatureSubst().
66df220 usp10: Make feature tables const.
b32fb23 usp10: Fix ScriptGetProperties spec file entry.
1a42ee3 usp10: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
892393b usp10: Filter out DeltaFormat == 0 too, valid range is [1, 3].
66dce1e usp10: Introduce an enumeration for GSUB lookup types.
fefd151 usp10: Ignore device tables with invalid delta format.
b6d541c usp10: Iterate in visual order in GPOS_apply_feature().
6fec9b1 usp10: Return the logical offset in GPOS_apply_lookup().
8d15667 usp10: Return the logical offset in GPOS_apply_ChainContextPos().
2210196 usp10: Return the logical offset in GPOS_apply_ContextPos().
6e84358 usp10: Return the logical offset in GPOS_apply_PairAdjustment().
61e8a38 usp10: Introduce an enumeration for GPOS lookup types.
4b22953 usp10: Properly get glyph widths for OpenType fonts in ScriptPlaceOpenType().

svn path=/trunk/; revision=74851
2017-06-04 01:46:51 +00:00
Amine Khaldi
83eaf4cbac [URLMON_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74850
2017-06-04 01:46:38 +00:00
Amine Khaldi
a905c2dc5b [URLMON] Sync with Wine Staging 2.9. CORE-13362
700010f urlmon: Fix some spec file entries.
c1ae3db urlmon: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
9c4ac7f urlmon: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=74849
2017-06-04 01:46:26 +00:00
Amine Khaldi
f41d8818ce [SHLWAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74848
2017-06-03 22:40:14 +00:00
Amine Khaldi
4a2db60d45 [SHLWAPI] Sync with Wine Staging 2.9. CORE-13362
98d0fa9 shlwapi: Use isalnumW() instead of isalnum() for WCHARs.
dfb846c shlwapi: Fixed error handling in StrRetToBufW.

svn path=/trunk/; revision=74847
2017-06-03 22:39:50 +00:00
Amine Khaldi
e80a0f88e0 [SCRRUN_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74846
2017-06-03 22:39:28 +00:00
Amine Khaldi
f3782aaf23 [SCRRUN] Sync with Wine Staging 2.9. CORE-13362
f601660 scrrun: Added DateLastModified property for IFile.

svn path=/trunk/; revision=74845
2017-06-03 22:38:57 +00:00
Amine Khaldi
1866b31f5e [RSAENH_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74844
2017-06-03 22:38:34 +00:00
Amine Khaldi
81bce5b365 [RSAENH] Sync with Wine Staging 2.9. CORE-13362
e705dfc rsaenh: Don't import a public key to a key container.

svn path=/trunk/; revision=74843
2017-06-03 22:38:03 +00:00
Amine Khaldi
3a2d3f54c7 [RICHED20_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74842
2017-06-03 22:37:05 +00:00
Amine Khaldi
5c6a327cb8 [RICHED20] Sync with Wine Staging 2.9. CORE-13362
d4b1938 riched20: Only write out non-default pattern colours.
5f3772a riched20: Don't compare the colours if the old and new states are both auto.
6bcf4d6 riched20: Add linefeeds after the colortbl and generator groups.
8b79854 riched20: Remove a hack that should be longer be needed.
3d291dd riched20: Write the char format for the end-of-paragraph marker.

svn path=/trunk/; revision=74841
2017-06-03 22:36:44 +00:00
Amine Khaldi
35e1e225d6 [REGEDIT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74840
2017-06-03 22:36:19 +00:00
Amine Khaldi
4d8caff209 [QUARTZ_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74839
2017-06-03 22:36:05 +00:00
Amine Khaldi
8454158975 [PSAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74838
2017-06-03 22:35:45 +00:00
Amine Khaldi
16a6deef46 [PROPSYS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74837
2017-06-03 22:35:33 +00:00
Amine Khaldi
c547bb4ae4 [PROPSYS] Sync with Wine Staging 2.9. CORE-13362
090b4f2 propsys: Add support for VT_LPSTR and VT_LPWSTR to PropVariantCompareEx. (v2)
99758d9 propsys: Add support for VT_LPSTR to PropVariantChangeType. (v2)
43fa646 propsys: Make VT_FILETIME handling by PropVariantChangeType more implicit.
55b3752 propsys: Add support for VT_BSTR to PropVariantChangeType.
fc00aec propsys: Add support for VT_LPWSTR and VT_BSTR to PropVariantToStringAlloc.
aa841b3 propsys: Add support for VT_I1 and VT_UI1 to PropVariantChangeType.
8e273c8 propsys: Fix PSGetPropertyDescriptionListFromString spec file entry.
6df21d4 propsys: Use snprintf in PROPVAR_ConvertFILETIME.

svn path=/trunk/; revision=74836
2017-06-03 22:35:14 +00:00
Amine Khaldi
24ff00e99b [PDH] Sync with Wine Staging 2.9. CORE-13362
88c4d33 pdh: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74835
2017-06-03 22:35:01 +00:00
Amine Khaldi
28c0ee0f60 [OPENGL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74834
2017-06-03 22:34:42 +00:00
Amine Khaldi
9b660289c6 [OLEDLG] Sync with Wine Staging 2.9. CORE-13362
0028360 oledlg: Use W-functions to access window property.

svn path=/trunk/; revision=74833
2017-06-03 22:34:33 +00:00
Amine Khaldi
2f788a0264 [OLEAUT32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74832
2017-06-03 22:34:23 +00:00
Amine Khaldi
09236d66df [OLEAUT32] Sync with Wine Staging 2.9. CORE-13362
6e7179e oleaut32: Make OleLoadPicture load DIBs using WIC decoder.
1762f89 oleaut32: Use VariantChangeTypeEx to convert to VT_BOOL.
c260de0 oleaut32: Remove dead code.
efc86ec oleaut32: Fix parse error when converting non-ascii string to VT_DATE.
f506ffc oleaut32: Use VariantInit() rather than open coding it.
c082edb oleaut32: Remove redundant call to VariantClear().
7fb4809 oleaut32: Implement GetAltMonthNames().
d90fcb4 oleaut32: Fix OleLoadPictureEx spec file entry.

svn path=/trunk/; revision=74831
2017-06-03 22:34:09 +00:00
Amine Khaldi
82997f0e3b [OLE32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74830
2017-06-03 22:33:48 +00:00
Amine Khaldi
e1f8933518 [OLE32] Sync with Wine Staging 2.9. CORE-13362
9cc976a ole32: Fix compilation with recent versions of gcc.
2e36326 ole32: Synthesize dibs or bitmaps as appropriate.
e27708f ole32: Create CF_DIB and CF_BITMAP entries when either is cached.
20a8f1a ole32: Implement IOleCache_EnumCache().
f9b0f60 ole32: Check the cache entry's stgmedium for the unloaded state.
8fc1a4c ole32: OleUninitialize() does not release the reference to the clipboard's source dataobject.
1d2860e ole32: Fix up the dib's resolution on loading.
e7bb4ba ole32: Don't cache the BITMAPFILEHEADER.
fc49d98 ole32: Set the advise flags in CreateEntry().
77d1eba ole32: Use the helper function to copy the clipboard's FORMATETC.
9ee30d7 ole32: Use the helper function to copy the datacache's FORMATETC.
11db491 ole32: Add a helper to copy FORMATETC structures.
b399baf ole32: Add CoRegisterSurrogate/Ex stubs.
87dba2b ole32: Zero STGMEDIUM before calling IDataObject::GetData.
c7e6fe6 ole32: Added GlobalOptions object stub implementation.
fd09c37 ole32: Use generic class factory for StdComponentCategoriesMgr object.
076c782 ole32: Use generic class factory for pointer moniker.
961c3dc ole32: Use generic class factory for class moniker.
947c9ba ole32: Use generic class factory for composite moniker.
b05fd46 ole32: Use generic class factory for anti moniker.
dee6463 ole32: Use generic class factory for item moniker.
cf7883f ole32: Added generic class factory implementation and use it for file moniker.

svn path=/trunk/; revision=74829
2017-06-03 22:33:33 +00:00
Amine Khaldi
3152f3df52 [ODBCCP32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74828
2017-06-03 22:33:08 +00:00
Amine Khaldi
20c0e9f71f [ODBCCP32] Sync with Wine Staging 2.9. CORE-13362
c92189c odbccp32: Handle ODBC_CONFIG_DRIVER request in SQLConfigDriver/W.
3b5a870 odbccp32: Look in LOCAL_MACHINE for the driver.
764ee72 odbccp32: Implement SQLConfigDriver/W.
e7afcb9 odbccp32: Implement SQLRemoveTranslator/W.
d687fc8 odbccp32: Implement SQLInstallTranslator.
3136bed odbccp32: Implement SQLRemoveDriver/SQLRemoveDriverW.
27482bc odbccp32: Implement SQLInstallDriverEx.
093d870 odbccp32: Fix some spec file entries.
65b6cf1 odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=74827
2017-06-03 22:32:52 +00:00
Amine Khaldi
37f0182a2b [PSDK] Update sql.h and sqlucode.h. CORE-13362
[ODBC32] Sync with Wine Staging 2.9. CORE-13362

0dd43e9 odbc32: Made ODBC function signatures 64-bit compliant.

svn path=/trunk/; revision=74826
2017-06-03 22:32:33 +00:00
Amine Khaldi
df088c988e [NTPRINT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74825
2017-06-03 22:32:11 +00:00
Amine Khaldi
8890301a84 [NETAPI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74824
2017-06-03 22:31:54 +00:00
Amine Khaldi
fd26e762c0 [MSXML3_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74823
2017-06-03 22:31:39 +00:00
Amine Khaldi
09bc8f6843 [MSXML3] Sync with Wine Staging 2.9. CORE-13362
d7d5d93 msxml3: Improve error handling (Coverity).
cebed39 msxml3: Added support for setting IResponse as xsl processor output.
ea9b797 msxml3: Support IPersistStream* as IXSLProcessor output.
ba018b5 msxml3/saxreader: Handle NULL interface input in parse().
8bc68f3 msxml3: Don't QI for IPersistStream in internal_parse.
135e98a msxml3: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74822
2017-06-03 22:31:11 +00:00
Amine Khaldi
a99ab25ade [MSVFW32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74821
2017-06-03 22:30:54 +00:00
Amine Khaldi
7a5517640f [MSTASK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74820
2017-06-03 22:30:32 +00:00
Amine Khaldi
4988f293f8 [MSI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74819
2017-06-03 22:30:19 +00:00
Amine Khaldi
69571f3303 [MSI] Sync with Wine Staging 2.9. CORE-13362
f6ced24 msi: Avoid using isspace()/isdigit() for WCHARs.
635457b msi: Add MsiGetPatchFileListA/W stubs.
b956b1f msi: Set patch property Uninstallable.
f3adb4a msi: Properly handle DWORD registry values in MsiGetPatchInfoEx.
d94653d msi: Apply feature selection to the whole feature subtree.
d12728a msi: Avoid zero size allocations (Valgrind).
b53957d msi: Use the correct type when calculating feature cost.
64c0625 msi: Implement MsiGetComponentPathExA/W.
5aa2d48 msi: Fix some more spec file entries.

svn path=/trunk/; revision=74818
2017-06-03 22:29:55 +00:00
Amine Khaldi
04488bf33d [MSCTF_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74817
2017-06-03 22:29:38 +00:00
Amine Khaldi
18ce9d2c37 [MSCMS] Sync with Wine Staging 2.9. CORE-13362
cd55d5d mscms: Fix some spec file entries.

svn path=/trunk/; revision=74816
2017-06-03 22:29:30 +00:00
Amine Khaldi
e798892743 [MPR_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74815
2017-06-03 22:29:16 +00:00
Amine Khaldi
9f53283069 [MLANG_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74814
2017-06-03 22:29:06 +00:00
Amine Khaldi
3f34a77f7b [MCIAVI32] Sync with Wine Staging 2.9. CORE-13362
c59dcfa mciavi32: Implement MCI_BREAK.
d3c25df mciavi32: Trace MCIAVI_CreateWindow.
1b57f07 mciavi32: Report version as 1.1.

svn path=/trunk/; revision=74813
2017-06-03 22:28:56 +00:00
Amine Khaldi
dac59d58ed [JSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74812
2017-06-03 22:28:34 +00:00
Amine Khaldi
96d090509e [JSCRIPT] Sync with Wine Staging 2.9. CORE-13362
59c39fa jscript: Added new debug channel printing details and backtrace of unwinded exceptions.
60232cc jscript: Always jump to finally block from OP_pop_exept when available.
685cd43 jscript: Pass finally offset instead of catch ident to OP_push_except.
8bd99c3 jscript: Ensure that OP_pop_except is called with proper stack depth.
622eb72 jscript: Added new opcode to enter catch block and use it to setup the scope.
b7bb166 jscript: Simplify pop_to_stat implementation.
1731629 jscript: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74811
2017-06-03 22:28:19 +00:00
Amine Khaldi
7a8fa2cc0e [IMM32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74810
2017-06-03 22:28:03 +00:00
Amine Khaldi
60751dbf95 [INETCOMM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74809
2017-06-03 22:27:55 +00:00
Amine Khaldi
acfef1de4a [INETCOMM] Sync with Wine Staging 2.9. CORE-13362
dcc545b inetcomm: Fixed buffer leak on error path (Coverity).

svn path=/trunk/; revision=74808
2017-06-03 22:27:45 +00:00
Amine Khaldi
8de656fc77 [IEFRAME] Sync with Wine Staging 2.9. CORE-13362
2bb8458 ieframe: Return DISP_E_UNKNOWNNAME in IShellUIHelper2::GetIDsOfNames.
bd8bd97 ieframe: Fix IEWinMain spec file entry.
f499395 ieframe: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74807
2017-06-03 22:27:36 +00:00
Pierre Schweitzer
fb9fc24487 [UDFS]
Don't use perf prints

svn path=/trunk/; revision=74806
2017-06-03 21:56:32 +00:00
Pierre Schweitzer
52d2b0fff1 [UDFS]
Revert r74780: it indeed works here, but when the problem happens in other places (it does!)
where it cannot be solved that way, we're doomed. It will be required to find an appropriate solution...

CORE-4375

svn path=/trunk/; revision=74805
2017-06-03 21:50:29 +00:00
Pierre Schweitzer
6045d865f8 [UDFS]
Attempt to fix MSVC build

CORE-4375

svn path=/trunk/; revision=74804
2017-06-03 21:47:53 +00:00
Hermès Bélusca-Maïto
d144147237 [NTDLL][USER32]: Stub out two APIs that are called by Win32 dlls:
- ntdll.dll: RtlConvertUiListToApiList(), which is a helper used by netapi32.dll;
- user32.dll: GetWinStationInfo() (that just calls into win32k), which is called by e.g. winmm.dll .

svn path=/trunk/; revision=74803
2017-06-03 20:26:26 +00:00
Pierre Schweitzer
c3265cc215 [UDFS]
Make the driver really less verbose by introducing two macros UDFPrint and UDFPrintErr
So far, because of sed -i, almost all KdPrint became UDFPrint. It would be interesting
to promote some to UDFPrintErr (if someone motivated ;-))

CORE-4375

svn path=/trunk/; revision=74802
2017-06-03 20:09:21 +00:00
Pierre Schweitzer
9b036de80b [UDFS]
Fix broken code when UDF_DBG isn't set

CORE-4375

svn path=/trunk/; revision=74801
2017-06-03 19:56:50 +00:00
Amine Khaldi
6e19246ef7 [HTTPAPI] Sync with Wine Staging 2.9. CORE-13362
ef975ef httpapi: Add stub for HttpCreateServerSession.

svn path=/trunk/; revision=74800
2017-06-03 19:02:20 +00:00
Amine Khaldi
f239be2af0 [PSDK] Update http.h. CORE-13362
svn path=/trunk/; revision=74799
2017-06-03 19:02:15 +00:00
Amine Khaldi
c130169bb8 [HLINK] Sync with Wine Staging 2.9. CORE-13362
d5c3a31 hlink: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.

svn path=/trunk/; revision=74798
2017-06-03 19:02:10 +00:00
Amine Khaldi
3f5b95bb92 [HHCTRL.OCX] Sync with Wine Staging 2.9. CORE-13362
e5a12b7 hhcrtl.ocx: Fix some spec file entries.

svn path=/trunk/; revision=74797
2017-06-03 19:02:05 +00:00
Amine Khaldi
20b08209f8 [GDIPLUS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74796
2017-06-03 19:01:59 +00:00
Amine Khaldi
718178aa88 [GDIPLUS] Sync with Wine Staging 2.9. CORE-13362
11fc5c0 gdiplus: Prefer using pre-multiplied ARGB data in the scaler.
17162a9 gdiplus: Remove ceilf/floorf calls from bilinear scaler. (v2)
6bade0c gdiplus: Change multiplications by additions in the x/y scaler loops.
db49130 gdiplus: Change the order of x/y loops in the scaler.
9247b54 gdiplus: Set correct color space flags for grayscale images.
81ccd6b gdiplus: Force conversion of 8 bpp grayscale PNG images to 32 bpp BGRA.
4fe61f3 gdiplus: Ignore an externally set DC clipping region.
a188922 gdiplus: Ignore an externally set DC origin.
b8a8e1b gdiplus: Check SHADEBLENDCAPS only for printer devices.
c2a4f19 gdiplus: Fix compilation on systems that don't support nameless unions.
29a55bc gdiplus: Use software mode to draw semi-transparent lines when necessary.
c89de1d gdiplus: Use better naming for line alignment format field.
69b41e7 gdiplus: Fix generic string formats behavior.
a3f0a59 gdiplus: Avoid infinite recursion in flatten_bezier().
36c9ac3 gdiplus: Check for null in GdipGetFontHeight.
7f25431 gdiplus: Fix GdipCreateStreamOnFile spec file entry.
43e36d6 gdiplus: Simplify and standardize the heap_xxx() declarations.

svn path=/trunk/; revision=74795
2017-06-03 19:01:50 +00:00
Amine Khaldi
903c7855c9 [DBGHELP] Sync with Wine Staging 2.9. CORE-13362
d47c07d dbghelp: Avoid using isdigit() for WCHARs.
8d6cf80 dbghelp: Add support for char32_t type.
b316ac1 dbghelp: Add support for char16_t type.
74f05b8 dbghelp: Use the main module load address from the PEB.
329b176 dbghelp: Use debugstr_a() to trace a string that can be NULL.
4bbb252 dbghelp: Removed no longer needed psapi import.

svn path=/trunk/; revision=74794
2017-06-03 19:01:43 +00:00
Amine Khaldi
bbee494c2a [INCLUDE/WINE] Update mscvpdb.h. CORE-13362
svn path=/trunk/; revision=74793
2017-06-03 19:01:38 +00:00
Amine Khaldi
140dd73755 [CRYPTNET] Sync with Wine Staging 2.9. CORE-13362
9a47398 cryptnet: Fix CryptGetObjectUrl spec file entry.

svn path=/trunk/; revision=74792
2017-06-03 19:01:33 +00:00
Amine Khaldi
8d1170ce2b [PSDK] Update cvconst.h. CORE-13362
svn path=/trunk/; revision=74791
2017-06-03 18:44:01 +00:00
Amine Khaldi
4f1f6bb03e [CRYPT32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74790
2017-06-03 18:37:38 +00:00
Amine Khaldi
a7d6502350 [CRYPT32] Sync with Wine Staging 2.9. CORE-13362
31943c4 crypt32: Add MS root CA 2010/2011.
148ece3 crypt32: Sort specfile.
71e6152 crypt32: Use isspaceW() instead of isspace() for WCHARs.

svn path=/trunk/; revision=74789
2017-06-03 18:37:28 +00:00
Amine Khaldi
fb184b034d [CABINET_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74788
2017-06-03 18:37:22 +00:00
Amine Khaldi
9260320d5c [CREDUI] Sync with Wine Staging 2.9. CORE-13362
dc0a49f credui: Use SetRectEmpty() instead of memset().

svn path=/trunk/; revision=74787
2017-06-03 18:37:18 +00:00
Amine Khaldi
59ae921bd1 [AMSTREAM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74786
2017-06-03 18:37:13 +00:00
Amine Khaldi
cdafd8b213 [AVIFIL32] Sync with Wine Staging 2.9. CORE-13362
78c49a4 avifil32: Use SetRectEmpty() instead of memset().

svn path=/trunk/; revision=74785
2017-06-03 18:37:08 +00:00
Amine Khaldi
02b8adbe36 [ADVPACK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74784
2017-06-03 18:37:03 +00:00
Amine Khaldi
f91f6781d9 [ADVPACK] Sync with Wine Staging 2.9. CORE-13362
a059696 advpack: Sort specfile.
c0b3703 advpack: Don't trace the contents of an output buffer (Valgrind).
31c1895 advpack: Fix some spec file entries.
2ed059a advpack: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=74783
2017-06-03 18:36:59 +00:00
Amine Khaldi
3e73825c04 [QUARTZ] Sync with Wine Staging 2.9. CORE-13362
1f765fb quartz: Remove an unnecessary if.

svn path=/trunk/; revision=74782
2017-06-03 18:36:47 +00:00
Pierre Schweitzer
53c317d86d [UDFS]
Our current storage stack iteration considers that any CDROM is read-only and forces it.
Reflect that fact in UDFS; we cannot assume that our device won't be readonly.

CORE-4375

svn path=/trunk/; revision=74781
2017-06-03 18:29:44 +00:00
Pierre Schweitzer
bcd5f02d0f [UDFS]
HIde a bug in UDFQueueDelayedClose() by removing the boolean storing the fact
that VCB resource was (or not) acquired.
If you debug it, you see that in finally block, value is set to false on exit
without any reason: it is always acquired!
Given it's always acquired, just drop the boolean, but this doesn't explain the
root cause of this bug....

Here it helps avoiding deadlocks on directory listing on a DVD formatted with UDF

CORE-4375

svn path=/trunk/; revision=74780
2017-06-03 18:12:25 +00:00
Amine Khaldi
61e603ee5a [DPLAYX_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74779
2017-06-03 18:06:05 +00:00
Amine Khaldi
755627e213 [DPLAYX] Sync with Wine Staging 2.9. CORE-13362
2bb3636 dplayx: Skip over unknown DataTypes guids in EnumAddressTypes.

svn path=/trunk/; revision=74778
2017-06-03 18:05:58 +00:00
Amine Khaldi
d52d8cb667 [DMUSIC] Sync with Wine Staging 2.9. CORE-13362
40a4a5c dmusic: Fail in CreatePort() if SetDirectSound() wasn't called.
62bf207 dmusic: Remove the port from the ports list on the port destruction.
3b4909f dmusic: Set the dsound pointer to NULL on an error path.
829ef41 dmusic: Fix compilation on systems that don't support nameless structs or unions.
43b3f84 dmusic: Add dsound handling to the synth port Activate() method.
f968edb dmusic: Partially implement the synth IDirectMusicPort::SetDirectSound().
e8873b7 dmusic: Pass only the needed stuff to the DMPort create functions.
36a88d2 dmusic: Implement IDirectMusic8::SetDirectSound().
b75e8bc dmusic: Use more sensible and consistent field names for IDirectMusic8Impl.
950b8a9 dmusic: Avoid an intermediate copy in PackStructured().
7cd7f14 dmusic: Implement IDirectMusicBuffer::PackUnstructured().
4fbae8e dmusic: Use DMUS_EVENT_SIZE() to calculate the size of the message.

svn path=/trunk/; revision=74777
2017-06-03 18:05:52 +00:00
Amine Khaldi
6ab32d28bf [DINPUT] Sync with Wine Staging 2.9. CORE-13362
e87ccb8 dinput: Assume a 1-to-1 axes map when no axes match.
41b126b dinput: Handle username in EnumDevicesBySemantics.
967399e dinput: Keep username same between device objects.

svn path=/trunk/; revision=74776
2017-06-03 18:05:46 +00:00
Amine Khaldi
e1aaa10312 [DEVENUM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74775
2017-06-03 17:29:09 +00:00
Amine Khaldi
81c8fd62b3 [DEVENUM] Sync with Wine Staging 2.9. CORE-13362
7d07768 devenum: Populate AudioCompressorCategory.
116743c devenum: Implement IMoniker::IsEqual().
ff0a25c devenum: Use RegQueryValueExW instead of RegQueryValueW.
05ed831 devenum: Implement IMoniker::GetClassID().

svn path=/trunk/; revision=74774
2017-06-03 17:29:04 +00:00
Amine Khaldi
15f8d4f061 [IEXPLORE] Sync with Wine Staging 2.9. CORE-13362
79d01be iexplore: Follow translation version info to detect native IE.

svn path=/trunk/; revision=74773
2017-06-03 17:28:59 +00:00
Amine Khaldi
6b4d06cee9 [XCOPY] Sync with Wine Staging 2.9. CORE-13362
373604f xcopy: Avoid using isdigit() for WCHARs.

svn path=/trunk/; revision=74772
2017-06-03 17:28:54 +00:00
Alexander Shaposhnikov
18da595008 [RAPPS]
* Added STRINGTABLE entries for installation status in en-US.rc and ru-RU.rc

svn path=/branches/GSoC_2017/rapps/; revision=74771
2017-06-03 17:20:07 +00:00
Pierre Schweitzer
70740f2a14 [UDFS]
Fix broken KdPrint

svn path=/trunk/; revision=74770
2017-06-03 16:54:18 +00:00
Amine Khaldi
e1cb837969 [PSDK] Update asptlb.idl. CORE-13362
svn path=/trunk/; revision=74765
2017-06-03 15:44:58 +00:00
Mark Jansen
44616bacfb [SHELL32] CMenuDeskBar: Prevent destruction of the start menu when receiving a WM_CLOSE message. CORE-12028
svn path=/trunk/; revision=74764
2017-06-03 15:35:21 +00:00
Hermès Bélusca-Maïto
70cd488931 [HIVESYS]: Add some missing PnP classes... But as it says, "Device classes (this list is incomplete... and should be generated from .inf files during installation)" <-- the INFs in question are the INF hardware files in the media/inf directory.
svn path=/trunk/; revision=74761
2017-06-03 14:25:38 +00:00
Mark Jansen
eb88e1e349 [KERNEL32] Fix IsShimInfrastructureDisabled. CORE-13352
svn path=/trunk/; revision=74760
2017-06-03 13:06:32 +00:00
Pierre Schweitzer
63eb4b623a [KMTESTS:MM]
Test various sizes with MmMapLockedPagesSpecifyCache() to show that behavior is strictly identical.
This was designed/tested under W2K3.

CORE-8204

svn path=/trunk/; revision=74759
2017-06-03 10:29:39 +00:00
Thomas Faber
440e3c69e4 [KERNEL32_APITEST]
- Add tests for IsDBCSLeadByteEx. Patch by Katayama Hirofumi MZ.
ROSTESTS-281 #resolve

svn path=/trunk/; revision=74758
2017-06-03 07:05:31 +00:00
Thomas Faber
e98a0d8a85 [LOCALSPL]
- Fix out-of-bounds access in _LocalGetPrinterLevel5. Patch by Ivan Rodionov.
CORE-13356 #resolve

svn path=/trunk/; revision=74757
2017-06-03 06:46:34 +00:00
Peter Hater
21b16a63ed [MSWSOCK] Revert r74753 and r74755 as it showed regressions
svn path=/trunk/; revision=74756
2017-06-03 00:30:20 +00:00
Peter Hater
a59bc8597f [MSWSOCK] Rearrange the function places to avoid forward declarations and code formatting
svn path=/trunk/; revision=74755
2017-06-02 21:57:37 +00:00
Eric Kohl
95d15ef760 [NETAPI32]
- Implement NetShareEnum, NetShareEnumSticky, NetShareGetInfo and NetShareSetInfo. These functions call their counterparts in the server service.
- NetShareAdd: Fix the level check.

svn path=/trunk/; revision=74754
2017-06-02 21:56:17 +00:00
Peter Hater
d5ae9f5408 [MSWSOCK] Add wine debug messages on mswsock debug channel.
Better cleanup some failure paths.
Fix some error codes.
Add some error checks.
Add some comments.

svn path=/trunk/; revision=74753
2017-06-02 21:01:47 +00:00
Eric Kohl
daff560348 [NETAPI32]
- Implement NetShareAdd, NetShareCheck, NetShareDel and NetShareDelSticky. These functions call their counterparts in the server service.
- Add stubs for NetShareEnum, NetShareEnumSticky, NetShareGetInfo and NetShareSetInfo.
- Get rid of the NetShare wine stubs.

svn path=/trunk/; revision=74752
2017-06-02 20:02:49 +00:00
Pierre Schweitzer
8679f001d9 [KMTESTS:MM]
Add tests for MmMapLockedPagesSpecifyCache() functions, and more specifically for usermode mapping.
This was designed/tested under W2K3.

CORE-8204

svn path=/trunk/; revision=74751
2017-06-02 19:19:32 +00:00
Peter Hater
1611dc4086 [MSWSOCK] Call explicitly DnsQuery_W. Copy host aliases if available as answer from the query
svn path=/trunk/; revision=74750
2017-06-02 17:52:20 +00:00
Hermès Bélusca-Maïto
0f80ead8ec [USETUP]: Creating a registry key with zero access is just plainly invalid. Fix it. It was not caught before because, we never ever booted a 1st-stage setup with a valid mounted existing SYSTEM key (as Windows does).
svn path=/trunk/; revision=74742
2017-06-02 00:44:04 +00:00
Hermès Bélusca-Maïto
cead3c26ac [MKHIVE]: Fix string byte size vs. count in number of characters confusion in append_multi_sz_value(); this was already OK in wine's code. Should fix corrupted multi-string entries in the livecd registry hives, for example...
In addition, always open the hive file to be created in write mode only.
CORE-13347

svn path=/trunk/; revision=74740
2017-06-02 00:05:53 +00:00
Hermès Bélusca-Maïto
b03f8990c0 [MKHIVE]: Formatting changes only + sync back the names of the reg-inf functions with the ones where they are coming from (aka. Wine's setupapi/install.c).
svn path=/trunk/; revision=74739
2017-06-02 00:00:37 +00:00
Hermès Bélusca-Maïto
375355b9a6 [MKHIVE]: Implement CmpFileRead().
svn path=/trunk/; revision=74738
2017-06-01 23:54:08 +00:00
Pierre Schweitzer
b39d02678f [RDBSS]
Fix uninit var usage

CORE-13345
CORE-11327

svn path=/trunk/; revision=74737
2017-06-01 21:37:08 +00:00
Hermès Bélusca-Maïto
fce964935e [BUGCODES]: Move our MORAL_EXCEPTION_ERROR BSOD to where it should really belong (aka BSOD 0x9A) (see https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-0x9a--system-license-violation why). BSOD 0x7C is however legit: BUGCODE_NDIS_DRIVER.
svn path=/trunk/; revision=74736
2017-06-01 20:20:25 +00:00
Hermès Bélusca-Maïto
07a0591894 [NTOS]: Better clean up behind ourselves on failure paths (aka. closing handles). These functions are clearly not written with correct cleanup-on-failure concept in mind...
svn path=/trunk/; revision=74735
2017-06-01 18:37:48 +00:00
Hermès Bélusca-Maïto
7d14e79c4c [NTOS]: Code formatting only.
svn path=/trunk/; revision=74734
2017-06-01 18:35:48 +00:00
Hermès Bélusca-Maïto
e5da5bc0d6 [NTOS]: Minor code formatting + don't leak a handle in case of failure, in CmpInitializeHardwareConfiguration().
svn path=/trunk/; revision=74733
2017-06-01 18:27:41 +00:00
Hermès Bélusca-Maïto
8538be9a1f [HAL]
Update the PCI hardware IDs database. Extracted from the pci.ids database from http://pci-ids.ucw.cz/ from 2017-05-25 03:15:02
Maintained by Albert Pool, Martin Mares, and other volunteers from the PCI ID Project.

svn path=/trunk/; revision=74732
2017-06-01 17:31:23 +00:00
Peter Hater
0c26c6fe3f [MSWSOCK] Unstub AcceptEx and GetAcceptExSockaddrs. Note that real implementation in msafd is not available, so result will still be FALSE
svn path=/trunk/; revision=74731
2017-06-01 15:25:25 +00:00
Peter Hater
cc95312078 [MSWSOCK] Change functions to be able to use control flags with DnsQuery.
Add host aliases to hostent if available and requested.
Only copy servent aliases if available and requested.

svn path=/trunk/; revision=74730
2017-06-01 15:22:06 +00:00
Thomas Faber
50313aa5c8 [ACPICA]
- Update to version 20170531
CORE-13348 #resolve

svn path=/trunk/; revision=74729
2017-06-01 10:54:48 +00:00
Peter Hater
3be9010b96 [MSAFD] Don't try to accept on non listening socket. Return WSAEINVAL
svn path=/trunk/; revision=74728
2017-06-01 09:41:19 +00:00
Peter Hater
d060749ca4 [MSWSOCK] Update network protocols. Patch by Marco Savelli. CORE-13320 #resolve
svn path=/trunk/; revision=74727
2017-06-01 09:00:32 +00:00
Hermès Bélusca-Maïto
c1d754ee9f [FREELDR/WINLDR]: Rework LoadModule() so that we can load custom kernels & hals via the /KERNEL= and /HAL= boot option switches.
svn path=/trunk/; revision=74725
2017-05-31 18:40:29 +00:00
Pierre Schweitzer
c6fc31e430 [RXCE]
Fix broken cast
By Thomas

svn path=/trunk/; revision=74724
2017-05-31 17:10:45 +00:00
Pierre Schweitzer
47a6faa9cd [DDK]
sed -i s/__volatile/volatile/g to fix build with VS2010

CORE-13345

svn path=/trunk/; revision=74723
2017-05-31 17:02:44 +00:00
Hermès Bélusca-Maïto
f51faa4a0f [NTOS]: Underline the fact that CmpGetRegistryPath (especially when being run in 1st-stage text mode) is just a big hack (introduced in r3794 and r3795). I however need to monitor its output for the moment...
svn path=/trunk/; revision=74709
2017-05-31 00:03:33 +00:00
Hermès Bélusca-Maïto
3ef498a4de [NTOS]: Minor fixes:
- Correctly specify the buffer size for RtlInitEmptyUnicodeString calls;
- Prefer using RtlAppendUnicodeStringToString instead of RtlAppendStringToString: both actually do the very same job on counted strings, but the former doesn't need the explicit PSTRING casts, and NULL-terminate the string buffer if possible (aka. if the available remaining length permits it, otherwise it doesn't add any NULL terminator, falling back to the default behaviour of RtlAppendStringToString).
- Remove a deprecated commented-out variable.

svn path=/trunk/; revision=74708
2017-05-31 00:01:31 +00:00
Pierre Schweitzer
7b67bd00c4 [NTDLL_VISTA]
Fix GCC build after r74706.
Patch by Thomas

svn path=/trunk/; revision=74707
2017-05-30 22:01:13 +00:00
Mark Jansen
c588ecb84f Fix the build for MSVC.
svn path=/trunk/; revision=74706
2017-05-30 21:48:04 +00:00
Pierre Schweitzer
038c2e6ca0 [KERNEL32_VISTA]
Add Kernel32 implementation for SRW locks and condition variables.
This is based on Wine implementation.

CORE-7546
CORE-8204

svn path=/trunk/; revision=74705
2017-05-30 21:39:50 +00:00
Pierre Schweitzer
379c7825ec [RTL]
Delete leftover

CORE-7546
CORE-8204

svn path=/trunk/; revision=74704
2017-05-30 21:36:43 +00:00
Pierre Schweitzer
296d09b486 [NTDLL_VISTA]
Create a new NTDLL library that exports some of the NTDLL Vista+ functions.
This new NTDLL includes at the time of commit:
- SRW locks implementation that was originally built in RTL but never used ;
- Condition variables implementation which is a new code in ReactOS trunk.

Condition variables is an implementation of Stephan Röger, with minor formatting
changes by Timo Kreuzer and various changes by myself.

CORE-7546
CORE-8204

svn path=/trunk/; revision=74703
2017-05-30 21:35:05 +00:00
Mark Jansen
29177f71b6 [KERNEL32] Do not use TEB->StaticUnicodeString in CreateProcessInternalA. CORE-10368
svn path=/trunk/; revision=74702
2017-05-30 20:57:45 +00:00
Mark Jansen
9a54d4a3a0 [KERNEL32_APITEST] Add test to show that we should not spoil TEB->StaticUnicodeString in CreateProcessA. CORE-10368
svn path=/trunk/; revision=74701
2017-05-30 20:55:15 +00:00
Thomas Faber
47ef0a440a [NTOS:IO]
- Fix key handle leak in PipCallDriverAddDevice
- Avoid double-close in failure case of IopAttachFilterDrivers
- Simplify closing handles, and use sensible variables names in IopAttachFilterDrivers
CORE-13336

svn path=/trunk/; revision=74700
2017-05-30 18:14:31 +00:00
Thomas Faber
23da2b0594 [NTOS:IO]
- Save an indentation level in IopAttachFilterDrivers
CORE-13336

svn path=/trunk/; revision=74699
2017-05-30 17:22:13 +00:00
Mark Jansen
9e82e9f1d6 [KERNEL32] Actually disable the shim engine while it is not ready yet.... CORE-10368
svn path=/trunk/; revision=74697
2017-05-29 21:14:15 +00:00
Thomas Faber
c4393987a1 [ACPI]
- Remove some dead code in acpi_system_add. CID 502179
- Define deviceName only in debug builds in Bus_AddDevice. CID 502180

svn path=/trunk/; revision=74696
2017-05-29 09:23:33 +00:00
Mark Jansen
8f2963ab01 [KERNEL32] Initial implementation for BaseCheckRunApp, calling into apphelp to check for compatibility fixes CORE-10368
svn path=/trunk/; revision=74693
2017-05-28 19:27:51 +00:00
Giannis Adamopoulos
2fa8800e5e [EXPLORER] -Implement the trick that makes the start button to get clicked when the user clicks on the corner of the screen.
svn path=/trunk/; revision=74692
2017-05-28 18:31:48 +00:00
Mark Jansen
440290e1cb [USER32_APITEST] Add more tests to validate messages sent during window creation / modifying of styles. CORE-12052
svn path=/trunk/; revision=74691
2017-05-28 17:40:48 +00:00
Benedikt Freisen
846f8450db [MSPAINT]
- When setting a file as tiled wallpaper, it will now indeed show up tiled instead of centered.
- All three options (tiled, centered, stretched) are working.  (non-bitmaps only in Vista and above)

CORE-12164 #resolve

svn path=/trunk/; revision=74690
2017-05-28 17:33:15 +00:00
Mark Jansen
9386daa570 [USER32_APITEST] Add tests to validate messages sent during window creation / modifying of styles. CORE-12052
svn path=/trunk/; revision=74689
2017-05-28 13:55:05 +00:00
Pierre Schweitzer
f61c6e1fbd [NTOSKRNL:MM]
Only warn for unimplemented in ExAllocatePoolWithTagPriority() when memory allocation fails. For the rest, the caller has the memory it asked for.
Side note: we could also warn when caller wants to use special pool.

CORE-13334
CORE-11327

svn path=/trunk/; revision=74688
2017-05-28 10:22:30 +00:00
Daniel Reimer
7bb4b752e1 [RAPPS]
Update 7-Zip to 16.04

svn path=/trunk/; revision=74687
2017-05-27 21:08:25 +00:00
Pierre Schweitzer
a6849e9613 [RDBSS]
Properly initialize pRdbssScavenger in RxDeviceObject to avoid NULL-ptr deref

CORE-11327

svn path=/trunk/; revision=74686
2017-05-27 20:20:27 +00:00
Pierre Schweitzer
683eaf0e00 [RXCE]
Make RxpTrackDereference()/RxpTrackReference() when they're noop.

CORE-11327

svn path=/trunk/; revision=74684
2017-05-27 17:41:58 +00:00
Pierre Schweitzer
5d1661ec2d [RDBSS]
[RXCE]
Try to make use of wrapper more 'properly'. Now, we use wrappers for ASSERT and memory management.
This allows us to allocate memory with low priority (which isn't supported by ReactOS yet :-().

Note that we go a bit farther than MS: we also define RxFreePoolWithTag() and make use of it.
This should make Thomas happy :-)

CORE-11327

svn path=/trunk/; revision=74683
2017-05-27 17:29:11 +00:00
Pierre Schweitzer
40f5fb3a68 [RXCE]
Implement FCB refcounting

CORE-11327

svn path=/trunk/; revision=74682
2017-05-27 16:50:29 +00:00
Pierre Schweitzer
e89be79709 [RXCE]
Implement operation verification, this is notably based on FatVerifyOperationIsLegal.

CORE-11327

svn path=/trunk/; revision=74681
2017-05-27 12:34:38 +00:00
Giannis Adamopoulos
d2dcb75417 [EXPLORER] -Make the taskbar grip get its size from the theme. This fixes one of the last theme related problems in explorer itself. Also simplify some theme drawing code.
svn path=/trunk/; revision=74680
2017-05-27 10:44:44 +00:00
Mark Jansen
31391c60b1 [SYSSETUP][UNATTENDED] Allow changing the resolution automatically. CORE-13315
svn path=/trunk/; revision=74679
2017-05-27 09:37:16 +00:00
Pierre Schweitzer
acc9f33775 [RXCE]
- Make RxpUndoScavengerFinalizationMarking() more smart: only warn about unimplemented if there's scavenger mark
- Implement FCB operations (release/acquire) tracker

CORE-11327

svn path=/trunk/; revision=74678
2017-05-27 09:36:42 +00:00
Giannis Adamopoulos
3972478a69 [EXPLORER] -Reload the theme data only when the orientation changes (we ended up reloading it every few seconds).
svn path=/trunk/; revision=74677
2017-05-27 09:09:01 +00:00
Pierre Schweitzer
7e486e2119 [RXCE]
Implement reference tracing

CORE-11327

svn path=/trunk/; revision=74676
2017-05-27 08:39:42 +00:00
Pierre Schweitzer
a89c82316c [RDBSS]
[RXCE]
[DDK]
Add an initial implementation of the RXCE and RDBSS libraries that are used to implement mini-redirectors
The associated headers are also added to DDK

The implementation is partial (really!) and is only working for read-only operations.

It leaks memory as hell (no refcounting implemented) and thus, objects freeing is not implemented.

It was tested with NFS41 driver. With such RDBSS, it's possible for the driver to mount a remote share, to list
files, to query their properties, to query volume properties, and finally to read files (with some corruption under
specific conditions).

Please refrain from committing in this (especially for modifying whitespaces or fixing comments...), this is still WIP
and under development, it would mess with my local changes!

In itself, it doesn't bring anything to ReactOS yet, as no mini redirector is available in ReactOS source tree.
This may come later on with NFS41.

More to follow...

CORE-11327

svn path=/trunk/; revision=74674
2017-05-26 20:52:18 +00:00
Peter Hater
fb1a1ab85e [MSAFD] Don't update shared state on close if we still have active references to the socket. Checked also by ws2_32:close API test CORE-12029
svn path=/trunk/; revision=74673
2017-05-26 15:27:45 +00:00
Peter Hater
1c9d856e91 [WS2_32_APITESTS] Add close tests ROSTESTS-279
svn path=/trunk/; revision=74672
2017-05-26 14:02:25 +00:00
Peter Hater
a6a53b4231 [WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
svn path=/trunk/; revision=74671
2017-05-26 14:00:47 +00:00
Peter Hater
44162f7bd9 [WS2_32] Revert r74669
svn path=/trunk/; revision=74670
2017-05-26 13:44:01 +00:00
Peter Hater
c43028c6ab [WS2_32] Set last error on exit on some functions
svn path=/trunk/; revision=74669
2017-05-26 11:51:33 +00:00
Peter Hater
b2b645b014 [MSAFD] Add some parameters check for WSPBind. Inspired by results of bind test
svn path=/trunk/; revision=74668
2017-05-26 10:32:01 +00:00
Peter Hater
a09e47fe40 [WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
svn path=/trunk/; revision=74667
2017-05-26 10:31:50 +00:00
Peter Hater
92ccd9c174 [WS2_32_APITESTS] Add rebind and bind to broadcast tests ROSTESTS-278
svn path=/trunk/; revision=74666
2017-05-26 09:02:08 +00:00
Pierre Schweitzer
0629afcaa5 [GDIPLUS]
Import Wine commit (by Vincent Povirk):
- b8a8e1bde9382897927945ec0b58b8a2fcfcfe59, Check SHADEBLENDCAPS only for printer devices.

In short, this avoids black boxes in GOG setup. This may help other software having rendering issues due to alpha layer.

svn path=/trunk/; revision=74665
2017-05-26 08:31:10 +00:00
Peter Hater
b2ba90c6b5 [WS2_32_APITESTS] Fix GCC build ROSTESTS-278
svn path=/trunk/; revision=74664
2017-05-26 07:11:13 +00:00
Peter Hater
4214877a10 [WS2_32_APITESTS] Improve bind test output ROSTESTS-278
svn path=/trunk/; revision=74663
2017-05-26 07:08:06 +00:00
Hermès Bélusca-Maïto
049b4bff68 [INCLUDEs:ARC]: Fix some structure members of LOADER_PARAMETER_EXTENSION and SETUP_LOADER_BLOCK. Add some documentation & links regarded these structures to document which members change/disappear starting some NT version.
Also, turn some Win32 LPSTR into NT' PSTR or PCHAR types.

svn path=/trunk/; revision=74662
2017-05-26 02:15:54 +00:00
Thomas Faber
a467407d5f [ACPICA]
- Use the compiler's native 64 bit math support instead of emulating it with 32 bit operations.
CORE-13316

svn path=/trunk/; revision=74658
2017-05-25 19:39:38 +00:00
Hermès Bélusca-Maïto
4ba7bf7dbe [SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the list item being selected. This fixes setting the page file for the actual selected disk.
Caught by "cagey45" contributor on the forums: https://reactos.org/forum/viewtopic.php?f=9&t=16439 ; see also CORE-1151.

svn path=/trunk/; revision=74657
2017-05-25 18:36:45 +00:00
Thomas Faber
9187043762 [ACPICA]
- Fix our broken support for the Windows-GCC configuration (again) by providing proper implementations of ACPI_DIV_64_BY_32 and ACPI_SHIFT_RIGHT_64.
CORE-13316 #resolve

svn path=/trunk/; revision=74656
2017-05-25 18:27:30 +00:00
Peter Hater
27fe85a2cb [WS2_32_APITESTS] Set the size of addr when calling getsockname ROSTESTS-278
svn path=/trunk/; revision=74655
2017-05-25 15:57:38 +00:00
Eric Kohl
8e52193434 [BOOTDATA]
- Sort keyboard layouts and make them translatable.
- Remove quotation marks from service display names and descriptions and fix a typo.
CORE-11885

svn path=/trunk/; revision=74654
2017-05-25 15:53:10 +00:00
Peter Hater
a569e0aa3a [WS2_32_APITESTS] Remove compile warning disable for GCC. Thanks Thomas. ROSTESTS-278
svn path=/trunk/; revision=74653
2017-05-25 15:12:40 +00:00
Peter Hater
fe8ca04a83 [WS2_32] Dereference socket in case of parameter check failure. Thanks Thomas. ROSTEST-278
svn path=/trunk/; revision=74652
2017-05-25 14:51:16 +00:00
Peter Hater
44ac5bf123 [WS2_32_APITESTS] Add some bind API tests
svn path=/trunk/; revision=74651
2017-05-25 14:43:57 +00:00
Peter Hater
f732630141 [WS2_32] Add some parameters check for getsockname. Use value size for size check instead of type in bind. ROSTEST-278
svn path=/trunk/; revision=74650
2017-05-25 14:42:24 +00:00
Peter Hater
0e96026122 [WS2_32] Perform parameters check on bind. ROSTESTS-278
svn path=/trunk/; revision=74649
2017-05-25 12:34:33 +00:00
Hermès Bélusca-Maïto
7ee1b6a5f5 Code styling:
[NDK]: Make a #define value look less "magical".
[ARC]: Write "BaseDllName" using the regular case used in other parts of ReactOS' code.

svn path=/trunk/; revision=74644
2017-05-24 23:52:56 +00:00
Hermès Bélusca-Maïto
d452b9b684 [FSLIB]: Minor fixes:
- Stub and export VfatxChkdsk();
- Sync and fix the file code headers;
- In the libs, use NTAPI instead of WINAPI;
- Use 4-space indentation (instead of tabs).

svn path=/trunk/; revision=74643
2017-05-24 23:32:46 +00:00
Benedikt Freisen
bc7078eaf3 [MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height.  This improves theme support.

svn path=/trunk/; revision=74642
2017-05-24 19:31:43 +00:00
Giannis Adamopoulos
c04750f246 [WIN32l:NTGDI] -Check the return value IntGetOutlineTextMetrics and stop using garbage from the pool in case of error. CORE-13089, CORE-12752
svn path=/trunk/; revision=74633
2017-05-23 09:40:07 +00:00
Giannis Adamopoulos
d7e4f26d1a [WIN32K] -Simplify the parameters passed to GetFontPenalty and FindBestFontFromList. Make SubstituteFontRecurse update a LOGFONT and get rid of some needless allocations.
svn path=/trunk/; revision=74630
2017-05-22 18:17:49 +00:00
Thomas Faber
bb1fb70eb3 [CMLIB]
- Fix an assert that only works by chance

svn path=/trunk/; revision=74628
2017-05-22 13:48:11 +00:00
Thomas Faber
ea547f81f4 [NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and verifiable view of the database

svn path=/trunk/; revision=74627
2017-05-22 13:37:44 +00:00
Thomas Faber
d855861c41 [NTOS:MM]
- Make PFN tracing work... somewhat

svn path=/trunk/; revision=74626
2017-05-22 13:30:44 +00:00
Thomas Faber
b0da8bcfdf [CALC]
- Remove Czech koruna from currency conversions... their exchange rate is not a constant
- While here, add new Euro currencies, and improve the accuracy of some conversion rates

svn path=/trunk/; revision=74625
2017-05-22 13:13:45 +00:00
Thomas Faber
88a76ad2f0 [HHPCOMP]
- Avoid casting pointers to 'unsigned long'

svn path=/trunk/; revision=74624
2017-05-22 12:50:08 +00:00
Thomas Faber
945dd20eae [HAL]
- Correctly prepare the I/O port map for V86 mode by making HalpSavedIoMap actually point to it instead of to the parent structure. Fixes boot with video BIOS code that relies on I/O ports FF00 through FFFF.
CORE-13306 #resolve

svn path=/trunk/; revision=74623
2017-05-22 12:20:31 +00:00
Giannis Adamopoulos
7fe1fd0766 [WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFromList and GetFontPenalty. CORE-13274
svn path=/trunk/; revision=74613
2017-05-21 16:47:07 +00:00
Mark Jansen
275c4e77d8 [WIN32SS] Improve IntGetFontLocalizedName by less strict matching on language id's. Patch by Katayama Hirofumi MZ. CORE-13239 #comment Thanks!
svn path=/trunk/; revision=74612
2017-05-21 12:24:57 +00:00
Mark Jansen
562561d422 [KERNEL32] Format the stack trace generated on an unhandled exception so that log2lines can parse it. CORE-13232 #resolve
svn path=/trunk/; revision=74611
2017-05-21 11:31:56 +00:00
Mark Jansen
9c22d4b0b8 [SHIMS] Add IgnoreDebugOutput shim CORE-10369
svn path=/trunk/; revision=74610
2017-05-20 20:22:25 +00:00
Mark Jansen
817f78086f [BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.
svn path=/trunk/; revision=74609
2017-05-20 20:06:46 +00:00
Mark Jansen
4f86a02439 [SLAYER] Remove the shell extension. CORE-13111 #resolve
svn path=/trunk/; revision=74608
2017-05-20 19:58:04 +00:00
Mark Jansen
153601c7a2 [WIN32SS] Reduce the amount of calls to IntGetFontLocalizedName, since this was identified as a source of recent slower drawing. CORE-13274
Thanks to Thomas, Giannis and Joachim.

svn path=/trunk/; revision=74607
2017-05-20 18:59:00 +00:00
Eric Kohl
019092990f [INF]
Make code page and language group names translatable.
CORE-11885

svn path=/trunk/; revision=74606
2017-05-20 13:46:48 +00:00
Thomas Faber
c1c815b13d [WIN32K:NTGDI]
- Simplify list walk in FindBestFontFromList

svn path=/trunk/; revision=74605
2017-05-20 12:11:08 +00:00
Eric Kohl
a51b9dd514 [INF]
Make language (locale) names translatable.
CORE-11885

svn path=/trunk/; revision=74604
2017-05-20 09:53:15 +00:00
Thomas Faber
c52bb16926 [HAL]
- Fix a broken DPRINT

svn path=/trunk/; revision=74603
2017-05-19 21:37:50 +00:00
Mark Jansen
f64b823282 [GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ. ROSTESTS-269 #resolve #comment Thanks!
svn path=/trunk/; revision=74602
2017-05-19 20:26:49 +00:00
Mark Jansen
bbe72b0163 [APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368
svn path=/trunk/; revision=74601
2017-05-19 20:13:08 +00:00
Thomas Faber
a9757a1ab0 [NTDLL:LDR]
- Fix logic error in LdrpInit that caused us to busy-wait instead of sleep. This makes LibreOffice start up in a few seconds instead of sitting around at 100% CPU for a minute or two.
CORE-13268 #resolve

svn path=/trunk/; revision=74600
2017-05-19 19:11:14 +00:00
Thomas Faber
8a30da51a0 [RTL]
- Do not change RTL_HANDLE_TABLE::CommittedHandles when committing a new page of handle entries. This value must always point to the beginning of the allocation, to correctly track the entire committed range. Fixes LibreOffice Writer (and ntdll_apitest) crash.
CORE-13271 #resolve

svn path=/trunk/; revision=74599
2017-05-19 18:22:46 +00:00
Thomas Faber
10e08033ca [NTDLL_APITEST]
- Add a test for RTL handle tables
CORE-13271

svn path=/trunk/; revision=74598
2017-05-19 18:05:12 +00:00
Hermès Bélusca-Maïto
48d95feba1 [SCSIPORT]: Fixes:
- In SpiScanAdapter(), after an SCSI INQUIRY command has succeeded and we are setting up a LUN extension structure,
  cache in its InquiryData member the inquiry data retrieved from the INQUIRY command (alternatively we might just cache
  a pointer to a valid "LunInfo" since the latter are also cached elsewhere).
- This allows SpiBuildDeviceMap(), which is called just after SpiScanAdapter(), to correctly report in the registry SCSI tree
  the correct Identifier and DeviceType values for the enumerated logical units.
- Use ExFreePoolWithTag in SpiScanAdapter().

svn path=/trunk/; revision=74597
2017-05-19 16:14:10 +00:00
Hermès Bélusca-Maïto
2e3ea31302 [SCSIPORT]: Code formatting only.
svn path=/trunk/; revision=74596
2017-05-19 16:08:40 +00:00
Hermès Bélusca-Maïto
87d9dfae0d [SCSIPORT]: Fixes + documentation:
- In SpiSendInquiry():
  * use ExFreePoolWithTag;
  * if IoBuildDeviceIoControlRequest() fails, exit correctly the loop so that the allocated buffers are cleaned up;
- In SpiBuildDeviceMap():
  * support new peripheral type names, as documented in the links in the comments;
  * fix the "CommunicationsPeripheral" name (communication'S') as documented, and as done in windows' scsiport driver.

svn path=/trunk/; revision=74595
2017-05-19 15:02:02 +00:00
Hermès Bélusca-Maïto
b00727337e [SCSIPORT]: Code formatting in the functions I'm going to touch next (in addition, add few "continue;" inside some loops so that I can reduce the indent level of code blocks).
svn path=/trunk/; revision=74594
2017-05-19 14:49:23 +00:00
Giannis Adamopoulos
5f36105c74 [UXTHEME] -Use and RTL handle table for HTHEME handles. In this way we can ensure that a value we take is valid even if it is non NULL. We can also detect leaks.
svn path=/trunk/; revision=74593
2017-05-19 11:02:44 +00:00
Giannis Adamopoulos
94f9c1a7c1 [UXTHEME] Greatly reduce the number of times we open the theme data for the non client area.
- Implement OTD_NONCLIENT for OpenThemeDataEx and OpenThemeDataFromFile.
- Open the WINDOW or the SCROLLBAR theme classes only when needed. Use OpenThemeDataEx instead of the internal MSSTYLES_OpenThemeClass. Cache the open theme in the WND_DATA for later use.

svn path=/trunk/; revision=74592
2017-05-19 10:01:50 +00:00
Ged Murphy
48014fdd4b Forgot to add the cmake changes
svn path=/trunk/; revision=74591
2017-05-19 09:46:41 +00:00
Ged Murphy
4466aba674 [FLTMGR]
- Add a rather messy header that I've been slowly building as I'm starting to understand the internals.
- Mostly taken from the MS PDBs and info gained from OSR and Alex Carp's blog. (https://fsfilters.blogspot.co.uk)

svn path=/trunk/; revision=74590
2017-05-19 09:42:00 +00:00
Ged Murphy
7a5211283a [FLTMGR]
- Implement FltCreateCommunicationPort, FltCloseCommunicationPort, FltCloseClientPort, and stub FltSendMessage
- Add two new object types for the server port and client ports
- Implement object type callbacks for closing and deleting these new ports
- Create the comms object and create the symbolic link (FltMgrMsg) to allow usermode to open a handle to the comms layer (aka FilterConnectCommunicationPort)
- Although untested, the comms layer objects should be mostly setup, and we should be able to open a connection from usermode.

svn path=/trunk/; revision=74589
2017-05-19 09:37:38 +00:00
Ged Murphy
fb1948e7d4 [FLTMGR}
- Implement FltAcquirePushLockExclusive, FltAcquirePushLockShared and FltReleasePushLock. Lifted from ntos' internal pushlock routines.
- Implement FltpObjectPointerReference and partially implement FltpObjectPointerDerference

svn path=/trunk/; revision=74588
2017-05-19 09:15:35 +00:00
Giannis Adamopoulos
a652c58c19 [UXTHEME] -Rename WND_CONTEXT to WND_DATA to avoid confusion with the DRAW_CONTEXT. The WND_DATA is information valid throughout the life of a window and DRAW_CONTEXT is information throughout a draw operation in the non client area of the window.
svn path=/trunk/; revision=74587
2017-05-19 08:45:49 +00:00
Ged Murphy
68bca6631d [FLTMGR]
- Add the missing IOCTLs that were added to fltlib

svn path=/trunk/; revision=74586
2017-05-19 08:21:41 +00:00
Hermès Bélusca-Maïto
6ab86eb6cc [NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.
svn path=/trunk/; revision=74585
2017-05-18 23:46:44 +00:00
Hermès Bélusca-Maïto
2e25bf12d0 [NTOS]: Close an opened handle after usage.
svn path=/trunk/; revision=74584
2017-05-18 23:32:00 +00:00
Ged Murphy
4baf3f8e4f [FLTLIB]
- Implement FilterConnectCommunicationPort
- Add the remaining IOCTLs fltlib sends to the fltmgr

svn path=/trunk/; revision=74583
2017-05-18 22:06:49 +00:00
Eric Kohl
e53736f6e0 [INTL]
- Add custom draw function for the codepages listview.
- User gray text color for codepages that cannot be uninstalled.
CORE-13242

svn path=/trunk/; revision=74582
2017-05-18 21:56:24 +00:00
Thomas Faber
17c95d5279 [VIDEOPRT]
- Guard Ke386CallBios calls against concurrent execution.
CORE-13214

svn path=/trunk/; revision=74581
2017-05-18 21:29:24 +00:00
Giannis Adamopoulos
7fd7537957 [UXTHEME] -Remove a debug print that was never meant to be committed.
svn path=/trunk/; revision=74580
2017-05-18 17:53:33 +00:00
Giannis Adamopoulos
313744b524 [UXTHEME] -Apply some suggestions by Thomas.
svn path=/trunk/; revision=74579
2017-05-18 17:15:22 +00:00
Peter Hater
a1a782be93 [MSTSC] Addendum to r74577. CORE-13263
svn path=/trunk/; revision=74578
2017-05-18 08:57:26 +00:00
Peter Hater
2796bd5d20 [MSTSC] Fix BSOD when we can't acquire context from CryptoAPI. CORE-13263 #resolve
svn path=/trunk/; revision=74577
2017-05-18 08:47:30 +00:00
Thomas Faber
1338881e3b [BOOTLIB]
- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve

svn path=/trunk/; revision=74571
2017-05-17 16:06:24 +00:00
Peter Hater
be8b65c8a9 [MSTSC] Fix parsing of settings. Patch by Stas'M. Thanks. CORE-13223
svn path=/trunk/; revision=74568
2017-05-17 10:53:54 +00:00
Peter Hater
988b6396aa [MSTSC] Send computer name as client name when available. Patch by Stas'M. Thanks. CORE-13237
svn path=/trunk/; revision=74567
2017-05-17 10:47:39 +00:00
Hermès Bélusca-Maïto
4ed5e28c51 [FORMAT]: Use a better variable type for the media flag.
svn path=/trunk/; revision=74566
2017-05-16 20:17:18 +00:00
Hermès Bélusca-Maïto
dddd4b38f6 [SHELL32]: Fix a FIXME: Recognize the media type for formatting, by calling GetDriveTypeW(). Based on what format.com does too.
svn path=/trunk/; revision=74565
2017-05-16 20:16:43 +00:00
Peter Hater
a31e72a3f9 [MSTSC] Fix unwanted change
svn path=/trunk/; revision=74564
2017-05-16 18:01:31 +00:00
Peter Hater
973f7314b1 [MSTSC] Fix adding module name and IP to logon packet. Patch by Stas'M. Minor modification by me. Thanks. CORE-13234
svn path=/trunk/; revision=74563
2017-05-16 17:56:51 +00:00
Hermès Bélusca-Maïto
819142c996 Addendum to r74559: specify 'void' function aka. doesn't take any parameter. In C, a function whose prototype is () means "take an arbitrary number of args".
svn path=/trunk/; revision=74562
2017-05-16 17:45:52 +00:00
Peter Hater
f5c285da13 [MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:\". Patch by Stas'M. Thanks CORE-13225
svn path=/trunk/; revision=74561
2017-05-16 17:37:48 +00:00
Peter Hater
450b66d358 [MSTSC] Fix image corruption in 24bpp mode CORE-13224
svn path=/trunk/; revision=74560
2017-05-16 17:32:19 +00:00
Peter Hater
44f1cf17c7 [ACPI] Implement creating volatile registry keys for ACPI tables CORE-12942
svn path=/trunk/; revision=74559
2017-05-16 17:26:12 +00:00
Peter Hater
8eede74d89 [MSTSC] Switch most MSTSC from internal "ssl" functions to CryptoAPI and implement/enable certificate functions CORE-13259
svn path=/trunk/; revision=74558
2017-05-16 17:20:56 +00:00
Peter Hater
688f2cec04 [MSTSC] Fix build
svn path=/trunk/; revision=74557
2017-05-16 17:03:20 +00:00
Peter Hater
e4bc2f39da [MSTSC] Bring MSTSC closer to latest rdesktop (1.83) CORE-13258
svn path=/trunk/; revision=74556
2017-05-16 16:37:29 +00:00
Eric Kohl
4021832267 [INTL]
Advanced page: Show code pages again.
- Use SetupFindFirstLine and SetupFindNextLine to enumerate all code pages.
- Use heap memory functions instead of global memory functions.
- Get rid of TCHAR.
- Rename LPCPAGE to PCPAGE.
- Hack: Do not fail if EnumSystemCodePages returns FALSE. 

svn path=/trunk/; revision=74555
2017-05-15 20:02:48 +00:00
Giannis Adamopoulos
6ac34f176c [UXTHEME] -ThemeDrawCaptionText: Try to avoid a heap allocation when getting the window caption.
svn path=/trunk/; revision=74552
2017-05-15 16:05:14 +00:00
Giannis Adamopoulos
98917d7d98 [UXTHEME] -Simplify ThemeDrawCaptionText.
svn path=/trunk/; revision=74551
2017-05-15 15:34:43 +00:00
Alex Ionescu
ba88179c67 BL Library now works 100% in paging, protected mode. A picture is worth a thousand commits: http://i.imgur.com/Zx2nQ6x.jpg
[BOOTLIB]: Add support for protocol open/close/lookup while paging and protected mode is enabled.
[BOOTLIB]: Implement support for dozens of UEFI functions while under protected mode.
[BOOTLIB]: Fix bugs in existing UEFI functions which were switching to _protected_ mode instead of _real mode_ before making the UEFI call.
[BOOTLIB]: Free dynamic descriptor in MmMdFreeDescriptor.
[BOOTLIB]: Implement BlHtDelete.
[BOOTLIB]: Implement re-initialize-all path in DsppInitialize.
[BOOTLIB]: Fix small bug in BlDisplayInvalidateOemBitmap
[BOOTLIB]: Fix bigger bug in BlDisplayGetOemBitmap :)

svn path=/trunk/; revision=74546
2017-05-15 01:38:49 +00:00
Alex Ionescu
fe15b28371 Virtual memory works baby! Virtual Heap at 0x80000000 fully enabled. Next up, EFI Protocols with Paging Enabled.
[BOOTLIB]: Fix dumb bug in BlMmIsTranslationEnabled which would always return FALSE.
[BOOTLIB]: Fix dumber bug in MmDefInitializeTranslation which was freeing the page directories and self-map pages even in the success path. Causing us to zero out paging structures...
[BOOTLIB]: Cleanup and extend MmMdDbgDumpList for internal use, and add MmMdListPointerToName as another debug function.
[BOOTLIB]: Add a few more checkpoints in unimplemented paths.

svn path=/trunk/; revision=74545
2017-05-14 16:07:21 +00:00
Pierre Schweitzer
4875f5476e [MUP]
Split MUP into two parts; MUP on one side, DFS on the second side.
This will allow using headers in other parts

svn path=/trunk/; revision=74544
2017-05-14 10:15:43 +00:00
James Tabor
5e9d1bc628 [NtGDI]
- Implement internal functions for setting and retrieving DC origin. Related to CORE-13110.
- Code fix ups.

svn path=/trunk/; revision=74543
2017-05-14 01:00:27 +00:00
Alex Ionescu
d4534e81e1 [BOOTLIB]: Implement MmMdTruncateDescriptors
[BOOTLIB]: Implement MmPaTruncateMemory and call it during paging initialization to remove > 4GB memory.c
[BOOTLIB]: Implement BlpMmInitializeConstraints if those BCD options are used.

svn path=/trunk/; revision=74542
2017-05-14 00:39:30 +00:00
Alex Ionescu
920b985227 [BOOTLIB]: Complete implementation of MmMdRemoveRegionFromMdlEx
svn path=/trunk/; revision=74541
2017-05-14 00:11:48 +00:00
Thomas Faber
b6e4109ff1 [MKHIVE]
- Fail when something goes wrong instead of pretending everything's peachy.
CORE-13241 #resolve

svn path=/trunk/; revision=74540
2017-05-13 22:47:59 +00:00
Timo Kreuzer
698c2abb16 [NTOSKRNL] Improve S-List-Fault detection in KiTrap0EHandler to handle usermode faults as well.
svn path=/trunk/; revision=74539
2017-05-13 20:07:39 +00:00
Thomas Faber
4185903012 [CMAKE]
- Only call mkhive once, as it always generates all 6 binary hives (and if you don't give it all inf files, some of the hives will end up empty).
- Remove no longer needed dependency of efisys on bcd_hive
CORE-13241

svn path=/trunk/; revision=74537
2017-05-13 19:54:51 +00:00
Alex Ionescu
29d82352a3 [BOOTLIB]: Separate free and zero memory, and code vs data runtime data, as newer bootlibs do.
[BOOTLIB]: Fix bugs in MmMdpHasPrecedence and cleanup.
[BOOTLIB]: Fix bug in MmMdFreeDescriptor.
[BOOTLIB]: Cleanup MmMdpSaveCurrentListPointer.
[BOOTLIB]: Fix bug in MmMdpCoalesceDescriptor.
[BOOTLIB]: Fix multiple bugs in MmMdAddDescriptorToList, and cleanup.

svn path=/trunk/; revision=74536
2017-05-13 19:32:26 +00:00
Mark Jansen
c7afd6f90c [APPHELP][SHIMLIB] Forward some events to loaded shims. CORE-11329
svn path=/trunk/; revision=74535
2017-05-13 18:49:27 +00:00
Mark Jansen
b4e46f9021 [NDK][RTL] Make the Name argument in RtlQueryEnvironmentVariable_U const.
svn path=/trunk/; revision=74534
2017-05-13 17:26:59 +00:00
Giannis Adamopoulos
e4832e1f99 [UXTHEME] -Fix the tab background pattern hack when the background pattern is smaller than the window that we are trying to paint. CORE-13147, CORE-13192.
There is still a bug where the pattern doesn't change after a theme change.

svn path=/trunk/; revision=74522
2017-05-12 12:44:49 +00:00
Mark Jansen
3305b84402 [SHELL32] Add stub for SHEnumerateUnreadMailAccountsW, needed by Thunderbird. Found by Joachim Henze. CORE-13229
svn path=/trunk/; revision=74521
2017-05-11 20:20:47 +00:00
Alex Ionescu
676adf3c06 Fully working x86 paging support!
[BOOTLIB]: Fix a critical bug in BlpArchSwitchContext which was not switching to Firmware mode once paging was enabled.
[BOOTLIB]: Fix a critical bug in OslMain which was incorrectly setting BL_LIBRARY_INITIALIZATION_COMPLETED instead of BL_LIBRARY_FLAG_REINITIALIZE_ALL and causing all sorts of failure paths.
[BOOTLIB]: MmDefInitializeTranslation now turns on paging.
[BOOTLIB]: Implement TrpGenerateMappingTracker and BlpArchEnableTranslation
[BOOTLIB]: BlMmMapPhysicalAddressEx now works with paging enabled, and correctly finds mapped memory to use from the virtual MDLs.
[BOOTLIB]: MmPapAllocateRegionFromMdl now handles virtual allocations from MmMdlMappedUnallocated.
[BOOTLIB]: MmPapAllocatePagesInRange now handles BlMemoryKernelRange (KSEG0) allocations.
[BOOTLIB]: MmMdFindSatisfyingRegion now handles virtual descriptors as well, and handles alignment better.

svn path=/trunk/; revision=74519
2017-05-10 14:38:34 +00:00
Colin Finck
a366e71f50 [PRINTING]
SetDefaultPrinterW needs to fail with ERROR_INVALID_PRINTER_NAME if the input parameter is invalid. Also add a test for that.

svn path=/trunk/; revision=74518
2017-05-10 13:03:08 +00:00
Giannis Adamopoulos
643b7c9da9 [SHELL32_APITEST] -Add tests for Control_RunDLLW.
svn path=/trunk/; revision=74517
2017-05-10 10:06:02 +00:00
Hermès Bélusca-Maïto
3acad0e9e5 [USETUP]: Fix the primary/extended partitions creation checks introduced in r63392 : indeed this is if there are *already* 4 (primary) partitions in the table that we cannot create new primary/extended partitions.
Otherwise with the old (broken) checks, we allowed creating more than 4 partitions, and then we overflowed over memory and corrupted the partition list structures.

svn path=/trunk/; revision=74516
2017-05-09 22:09:06 +00:00
Hermès Bélusca-Maïto
af645ee7a2 [FREELDR]: Report the correct number of BIOS (hard) disk drives detected, that is, without any possible extra boot drive that went enumerated afterwards.
This fixes the list of disks enumerated in HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\MultifunctionAdapter\0\DiskController\0\DiskPeripheral\
and we now behave in this regards similarly to Windows 2003 & co.
I thank Lesan Ilie for reporting & testing, and Serge Gautherie and Peter Hater for reviewing.
This fixes a bug introduced in commit r59079.
CORE-13131

svn path=/trunk/; revision=74515
2017-05-09 19:33:46 +00:00
Mark Jansen
423102807d [SDK] Add enum for PEB.AppCompatFlagsUser
svn path=/trunk/; revision=74514
2017-05-09 18:15:22 +00:00
Colin Finck
5b6e082869 [PRINTING]
- Implement GetDefaultPrinterA/W and SetDefaultPrinterA/W in winspool.drv. Also add tests for these functions.
- Set our "Dummy Printer on LPT1" as the default printer in the user registry.
- Return meaningful values for DeviceNotSelectedTimeout and TransmissionRetryTimeout in PRINTER_INFO_5 in localspl.

The Print dialog now preselects "Dummy Printer on LPT1" in all applications.
One more task done from the list at https://reactos.org/wiki/Printing :)

svn path=/trunk/; revision=74513
2017-05-09 15:44:42 +00:00
Hermès Bélusca-Maïto
f06734e55d [USETUP]: Improve the bootsector validity check performed in IsThereAValidBootSector:
- Check for the first 3 bytes (and not 4) of the bootsector to not be zero (that's our criterium for a "valid instruction"). Therefore, a bootsector starting with "00 00 00 xx" (with xx the first byte of a volume identifier) is detected as invalid (because the BIOS won't be able to run it anyways) and therefore, needs to be overwritten.
- Check that its last 2 bytes are the valid 0xAA55 signature.
These improvements were suggested by Serge Gautherie and Peter Hater.
CORE-4870 CORE-12672 CORE-13188
- Move a DPRINT1 around.

svn path=/trunk/; revision=74512
2017-05-09 15:31:53 +00:00
Giannis Adamopoulos
16e06b89aa [DESK.CPL] -Addendum to 74506 which was a bit rushed. Make it possible to apply a theme that was opened by double click. Also add the active theme in the list of themes if it was not enumerated in the themes directory.
svn path=/trunk/; revision=74511
2017-05-09 08:13:49 +00:00
Thomas Faber
a465b60e7f [SHELL32]
- Fix AddCommasW

svn path=/trunk/; revision=74510
2017-05-09 07:45:30 +00:00
Hermès Bélusca-Maïto
0c9cd421ee [DISK]: Small fixes:
- Check for malformed disk identifier, which must be at least 9 WCHARs long (as done by disk_new);
- Prevent possible memory leaks (missing ExFreePool's) + closing registry key.
Investigated by Lesan Ilie during tests; as part of CORE-13131.
- Make one of our hacks more readable (by me).
(We also note that this driver uses the ExAllocate/FreePool functions in the old-school way).

svn path=/trunk/; revision=74509
2017-05-08 21:34:07 +00:00
Giannis Adamopoulos
4bb2162111 More build fixes.
svn path=/trunk/; revision=74508
2017-05-08 19:08:30 +00:00
Giannis Adamopoulos
8b566eee47 Fix build.
svn path=/trunk/; revision=74507
2017-05-08 19:02:49 +00:00
Giannis Adamopoulos
bd209c59d1 [DESK.CPL] -Implement opening msstyles files.
svn path=/trunk/; revision=74506
2017-05-08 18:45:35 +00:00
Robert Naumann
ac91514ccd [EXPLORER] Some style suggestions by Mark Jansen. Thanks
svn path=/trunk/; revision=74505
2017-05-08 17:46:55 +00:00
Hermès Bélusca-Maïto
a3842a814c [CONSOLE.CPL]: Fix the console window preview:
- turn it into a custom control;
- supports dynamic preview area depending on the actual current monitor screen resolution;
  (note that on ReactOS, the WM_DISPLAYCHANGE is not correctly sent, see CORE-13212, therefore this functionality won't show up yet)
- supports correct rescaling of the console preview drawn in the preview area;
- supports dependence of the console preview with respect to the chosen font character dimensions.
The code is there, it may be a little bit improved in the future.
CORE-13196 #resolve

Other additions:
- Add a few space between the console preview text window border and the text sample;
- PaintText and PaintStaticControls do not need to return anything.

svn path=/trunk/; revision=74504
2017-05-08 17:33:33 +00:00
Hermès Bélusca-Maïto
9e97728d4f [CONSOLE.CPL]: Minor modifications:
- Use "hDlg" (as done in the rest of the code) instead of "hwndDlg";
- Refresh the console window preview whenever a dimension or a position was changed.

svn path=/trunk/; revision=74503
2017-05-08 17:24:57 +00:00
Hermès Bélusca-Maïto
c24fbddd42 [CONSOLE.CPL]: Simplify the color selection code by factorizing common parts.
svn path=/trunk/; revision=74502
2017-05-08 17:19:07 +00:00
Robert Naumann
e8476bec2a [EXPLORER] Addendum to r74500. Those 2 commits belong to CORE-11498
svn path=/trunk/; revision=74501
2017-05-08 15:50:07 +00:00
Robert Naumann
a0360cc9e8 [EXPLORER]
- Load and save "Lock Taskbar", "Hide inactive icons", and "Group similar taskbar buttons". Verified on Win2k3 via "Nirsoft RegFromApp".
- use a loader function for registry values.
- save the "show seconds" setting together with the other explorer settings instead of a ROS specific key.
- Add some documentation comments.

svn path=/trunk/; revision=74500
2017-05-08 15:27:33 +00:00
Mark Jansen
5c8991ddbd [WIN32SS] Fix font names not including style info (Bold etc). Patch by Katayama Hirofumi MZ. CORE-12179 #comment Thanks!
svn path=/trunk/; revision=74499
2017-05-08 14:53:30 +00:00
Thomas Faber
8600730e9c [SHELL32]
- Avoid leaking the list items on destruction of CEnumIDListBase
CORE-13194

svn path=/trunk/; revision=74498
2017-05-08 10:59:27 +00:00
Thomas Faber
0db63068ac [USER32]
- Avoid a memory leak in User32EnumWindows in case the window count is zero.
CORE-13194

svn path=/trunk/; revision=74497
2017-05-08 08:29:17 +00:00
Thomas Faber
ba1fcb6554 [NTOS:IO]
- Use pool tagging

svn path=/trunk/; revision=74496
2017-05-08 06:54:35 +00:00
Hermès Bélusca-Maïto
55bf6ea8ff [NTOS]: Addendums to r74491 and r74493:
- Free the FullServiceName buffer if PnpRootCreateDevice failed (erroneously committed in r74494, see pnpmgr.c line 1080);
- No need to close InstanceHandle if the IopCreateDeviceKeyPath call failed, since in this case the registry handle wasn't opened. CORE-13207
- Don't assert on Buffer allocation but return a proper failure code in case of failure. CORE-13208
These are suggestions from Serge Gautherie + Lesan Ilie.

- Add a forgotten ZwClose call in the success code path of IopCreateDeviceKeyPath in IopQueryDeviceCapabilities (by me).

svn path=/trunk/; revision=74495
2017-05-08 00:58:45 +00:00
Hermès Bélusca-Maïto
32b595761c [NTOS]: Code formatting + free the memory in the reverse order from how it was allocated.
svn path=/trunk/; revision=74494
2017-05-08 00:51:44 +00:00
Hermès Bélusca-Maïto
837c766030 [NTOS]: Capture the counted BaseDllName unicode string into a local NULL-terminated buffer before calling wcsrchr on it (actually I think it would be better to create & use a similar function that takes counted strings in input).
Also use 'L' prefix for wide characters and UNICODE_NULL for string terminator.
Patch by Lesan Ilie.
CORE-13208 #resolve

svn path=/trunk/; revision=74493
2017-05-07 18:15:12 +00:00
Hermès Bélusca-Maïto
2b8120a968 [NTOS]: Code formatting changes only.
svn path=/trunk/; revision=74492
2017-05-07 18:12:18 +00:00
Hermès Bélusca-Maïto
0b299f6798 [NTOS]: Fix a potential memory leak.
- If one of the ZwSetValueKey function fails, 'Node->ServiceName.Buffer' is leaked. 
- Also use 'L' prefix for wide characters.
Patch by Lesan Ilie, thanks!
- Use "P(C)WSTR" instead of win32 "LP(C)WSTR" string pointer types (by me).
CORE-13207 #resolve

svn path=/trunk/; revision=74491
2017-05-07 17:50:18 +00:00
Thomas Faber
cf595e72fa [NTDLL]
- Implement user-mode version of RtlWalkFrameChain (mostly as a copy of the kernel version). Now RtlCaptureStackBackTrace actually, you know, captures stack back-traces.

svn path=/trunk/; revision=74490
2017-05-06 17:51:26 +00:00
Thomas Faber
8550143bab [KMTESTS:RTL]
- Add a test for RtlWalkFrameChain and RtlCaptureStackBackTrace

svn path=/trunk/; revision=74489
2017-05-06 15:29:56 +00:00
Eric Kohl
d4b437e4ee [INTL]
- Get rid of the individual getter funtions. Use GetSelectedComboBoxIndex for all CBS_DROPDOWNLIST comboboxes and GetSelectedComboBoxText for all CBS_DROPDOWN comboboxes.
- Check the relevant settings only!
- Rename SetXxxSettings to GetXxxSettings because it is a getter function.
- Handle the bogus WM_COMMAND/EN_CHANGE message that is sent when the IDC_SECONDYEAR_EDIT edit control is initialized. Controls should NEVER send notifications when they are modified programmatically! :-/

svn path=/trunk/; revision=74488
2017-05-06 14:41:50 +00:00
Eric Kohl
3ac350cfe0 [INTL]
Changed locale options doesn't reload correctly before next reboot.
- Added SetNumberSetting, SetCurrencySetting, SetDateSetting and SetTimeSetting functions to get and check values.
- Don't directly change pGlobalData.
- Post WM_WININICHANGE after all changes have been applied.
Based on a patch by Katayama Hirofumi MZ.
CORE-10170

svn path=/trunk/; revision=74487
2017-05-06 13:43:03 +00:00
Thomas Faber
80aa7fd7f9 [WIN32K:NTGDI]
- Avoid using floating point operations in kernel mode.
CORE-10893

svn path=/trunk/; revision=74486
2017-05-06 12:18:21 +00:00
Thomas Faber
26344e7671 [MMSYS]
- Simplify code by using windowsx.h. Patch by Katayama Hirofumi MZ.
CORE-12903

svn path=/trunk/; revision=74485
2017-05-06 10:14:29 +00:00
Thomas Faber
3dfda10ed9 [MMSYS]
- Make browse dialog title and filter localizable. Based on a patch by Katayama Hirofumi MZ.
CORE-12903

svn path=/trunk/; revision=74484
2017-05-06 09:27:32 +00:00
Thomas Faber
9ef60ad5b0 [MMSYS]
- Pass byte counts to RegQueryValueEx instead of character counts. Based on a patch by Katayama Hirofumi MZ.
CORE-12903

svn path=/trunk/; revision=74483
2017-05-06 08:43:56 +00:00
Thomas Faber
96e7761203 [MMSYS]
Patch by Katayama Hirofumi MZ:
- Use _countof where appropriate
- Prefer sizeof(variable) to sizeof(TYPE)
CORE-12903

svn path=/trunk/; revision=74482
2017-05-06 08:22:50 +00:00
Thomas Faber
ef84fa90a8 [COMCTL32]
- Fix heap memory leak in BUTTON_DrawTextCallback
CORE-13190

svn path=/trunk/; revision=74481
2017-05-05 19:23:04 +00:00
Giannis Adamopoulos
a6f1faa394 [COMCTL32] Toolbar: Use DrawThemeText when themes are enabled. CORE-12789
svn path=/trunk/; revision=74480
2017-05-05 10:55:12 +00:00
Giannis Adamopoulos
16989d664d [SHELL32] -CMenuDeskBar: Handle WM_NCPAINT and paint the border with the correct color when it has the flat style.
svn path=/trunk/; revision=74479
2017-05-05 09:01:15 +00:00
Thomas Faber
5d5f53ae61 [KERNEL32_APITEST]
- Fix a broken test name. APITests can not have names already used by Wine tests!  ... they should be named after APIs, anyway...

svn path=/trunk/; revision=74478
2017-05-04 16:45:42 +00:00
Hermès Bélusca-Maïto
720092b8e7 [NDK]: Guard the Bitmap API prototypes in a NTOS_MODE_USER, so that a driver that includes both wdm.h and ndk/rtlfuncs.h for whatever reason does not include twice the bitmap API.
This in particular fixes compilation under x64 due to the fact that, in x64, one of these API is declared (force)inline and the compiler complained that this function already had a body.

svn path=/trunk/; revision=74477
2017-05-04 16:12:52 +00:00
Hermès Bélusca-Maïto
00c641a9ec [USBD.SYS]: Exports:
- The three C-decorated exports _USBD_CreateConfigurationRequestEx@8, _USBD_ParseConfigurationDescriptorEx@28 and _USBD_ParseDescriptors@16 are only exported in the i386 version of the driver (not present in x64, checked on WinXP x64).
  This fixes warnings in ReactOS x64 compilation.
- Add (commented out) the remaining exports (without their parameters) that need to be implemented and exported.

svn path=/trunk/; revision=74476
2017-05-04 15:46:09 +00:00
Hermès Bélusca-Maïto
3849c29490 [KERNEL32_APITEST]: Internationalization console tests by Katayama Hirofumi MZ.
Passes on Win2k3 (either are skipped because either Russian or Japanese locales or codepages are absent, or are passed OK), but not on ReactOS yet. They are committed as reference for future work.
CORE-12451

svn path=/trunk/; revision=74475
2017-05-04 15:39:50 +00:00
Giannis Adamopoulos
21c885f66d [BROWSEUI_APITEST] -Add tests for SHExplorerParseCmdLine for CORE-12882.
svn path=/trunk/; revision=74474
2017-05-04 15:15:45 +00:00
Giannis Adamopoulos
afa3aa776e [SHELL32_APITEST] -Add some tests for SHParseDisplayName for CORE-12882.
svn path=/trunk/; revision=74473
2017-05-04 15:05:10 +00:00
Hermès Bélusca-Maïto
d1760301d4 [CONSOLE.CPL]: Spanish translation update by Javier Fernandez, thanks!
CORE-13187 #resolve

svn path=/trunk/; revision=74472
2017-05-04 14:21:41 +00:00
Hermès Bélusca-Maïto
982c3c6f8d [CONSOLE.CPL]: Fix the console props color buttons (was broken by r74468). Noted by Katayama Hirofumi MZ, thanks!
CORE-13186 #resolve

svn path=/trunk/; revision=74471
2017-05-04 14:18:14 +00:00
Thomas Faber
8faff50ad8 [RAPPS]
- Display download URL in information panel. Patch by Alexander Shaposhnikov.
CORE-12442 #resolve

svn path=/trunk/; revision=74470
2017-05-04 07:09:18 +00:00
Hermès Bélusca-Maïto
f13d997b76 [CONSOLE.CPL]: Rewrite the way we deal with console font samples in the console properties dialog:
- Remove the font helper functions that were already moved into concfg/font.c in r74462, and use the latter instead.
- Use a double list for listing the available font sizes for a given face:
  * a ListBox for raster fonts;
  * a ComboBox for TrueType fonts, allowing the user to specify a custom size.
  The raster ListBox is wrapped using the LIST_CTL structure so that we can use
  the bisection functions on it.
- Allow the user to specify TrueType font size either in pixels or in points. Raster font sizes however are always in pixels.
- Try to remember the nearest font size across different selected face changes.
- Try to support custom-sized TrueType fonts (using the ComboBox's edit field). May need more improvements!
- Retrieve the correct character cell height & width size in pixels when selecting a font (especially when it's a TrueType one).
- We now support bold console fonts too, see CORE-13122 (thanks Katayama!).
- Remove the commented-out "temporary code for future reference".
- Use a global cached font "hCurrentFont" that gets initialized when the console properties applet is created,
  so that we now can have a correct font in the screen samples when one directly views e.g. the "Color" tab,
  without going first in the "Font" tab. This current font is of course updated whenever one changes the font settings.

Tested with success on Windows 2003, Windows 7 and on ReactOS.

CORE-13122 CORE-13182 #resolve

svn path=/trunk/; revision=74469
2017-05-03 23:56:35 +00:00
Hermès Bélusca-Maïto
2dfccd0635 [CONSOLE.CPL]: Minor code refactoring (cont.):
- Use 'hDlg' for the dialog window handle variable (instead of hwndDlg), as already done in other parts of the code;
- Use our regular formatting for function prototypes;
- Use explicit unicode functions;

In addition:
- Correctly check for the dialog controls notifications (within WM_COMMAND message);
- Update the current code page when the code page combobox selection changes, but only notify the property sheet of the change when the combobox contents is validated (either the user pressed ENTER in some way, or the combobox lost its focus).

svn path=/trunk/; revision=74468
2017-05-03 23:05:25 +00:00
Giannis Adamopoulos
ec320d1e33 [SHELL32] -CMenuBand: Correctly get the setting for flat menus. CORE-8925
svn path=/trunk/; revision=74467
2017-05-03 21:49:38 +00:00
Hermès Bélusca-Maïto
74f6803499 [CONSOLE.CPL]: Minor code refactoring:
- Move the bisection functions into their own source file, and make them a bit more general so that they can be used on other types of list structures than win32 combo-boxes.
- Adjust the code in options.c to reflect those changes.

svn path=/trunk/; revision=74466
2017-05-03 20:35:12 +00:00
Hermès Bélusca-Maïto
bc1e2dbb92 [CONSOLE.CPL]: Harmonize most of the resources (sizes of dialog controls for some dialogs), and add some new controls in the font dialog that will be used soon.
To translators: Please check that I haven't broken any translations! :)
CORE-13182

svn path=/trunk/; revision=74465
2017-05-03 20:23:12 +00:00
Hermès Bélusca-Maïto
259a8515b0 [CONSRV]: Improvements for console font support (part 2):
- Use the font functions from the concfg library (see r74462) to create a new console font & retrieve its metrics, inspired by the suggestions from Katayama Hirofumi MZ in CORE-12451 and CORE-13122;
- Use string-safe functions to copy the font names into the fixed-size buffers;
- Use explicit UNICODE calls to GetObject and CreateFontIndirect.
Related to CORE-13182.

svn path=/trunk/; revision=74464
2017-05-03 20:13:23 +00:00
Hermès Bélusca-Maïto
c1934a3a17 [CONSRV]: Use string-safe functions to copy the font names into the fixed-size buffers.
svn path=/trunk/; revision=74463
2017-05-03 19:57:28 +00:00
Hermès Bélusca-Maïto
8928ef6200 [CONCFG]: Diverse improvements/additions for the console configuration library. CORE-13182
- Use string-safe functions to copy the font names into the fixed-size buffers;
- Modify some default settings;
- Add a set of console font manipulation functions, to be used later by both the console applet console.cpl and by CONSRV.
  Some of these functions come from r74365 with minor improvements (see CORE-12451 too), others are based from a patch
  by Katayama Hirofumi MZ from CORE-13122, and the rest are needed for an upcoming commit for console.cpl.
- Add PCH support in concfg.
- Minor code formatting: Use our regular formatting for function prototypes.

svn path=/trunk/; revision=74462
2017-05-03 19:47:18 +00:00
Colin Finck
02ae08f9cb [ISOHYBRID]
Patch all our ISOs (bootcd, bootcdregtest, livecd, hybridcd) with isohybrid in order to make them bootable from HDDs or any kind of USB drives.
The added MBR at the beginning of each ISO doesn't cause any harm for normal CD booting anymore after my patch in r74460.
There is also no need for the dedicated isohybrid targets anymore.

Our ISOMBR master boot record now successfully loads our ISOBOOT boot sector. ISOBOOT loads FreeLdr and indicates that we're booting from HDD, so that FreeLdr can successfully load the kernel.
We then bugcheck in the kernel with either 0x0000007B (INACCESSIBLE_BOOT_DEVICE) using bootcd or 0x0000006B (PROCESS1_INITIALIZATION_FAILED) using livecd.
Testcase is:
  qemu-system-i386 -m 512 -hda bootcd_or_livecd.iso

Needs more investigation, but these are separate bugs and I consider CORE-12648 fixed.

svn path=/trunk/; revision=74461
2017-05-03 15:32:33 +00:00
Colin Finck
11cbbbb746 [FREELDR]
Set BootPartition (DH) to 0xFF in isoboot.S when booting from CD.
Then check for that 0xFF value in FreeLdr to unambiguously detect CD booting instead of using BIOS functions (which don't work reliably on broken BIOSes) or checking for an MBR (which doesn't work on hybrid ISOs).

CORE-12692

svn path=/trunk/; revision=74460
2017-05-03 14:53:57 +00:00
Giannis Adamopoulos
895f97e0a2 [UXTHEME] -Use GdiDrawStream in UXTHEME_DrawImageGlyph and UXTHEME_DrawImageBackground.
svn path=/trunk/; revision=74457
2017-05-03 11:13:23 +00:00
Giannis Adamopoulos
a5cc32eb36 [GDI32] -Add a public undocgdi.h file to keep the definitions for undocumented exports. For now it only contains GdiDrawStream.
svn path=/trunk/; revision=74452
2017-05-03 10:55:54 +00:00
Pierre Schweitzer
335b3f2e4e [NTOSKNRL]
Misc fixes in NtQueryDirectoryFile():
- Don't leak auxbuffer
- Don't allow two completion routines

svn path=/trunk/; revision=74451
2017-05-02 21:32:20 +00:00
Thomas Faber
e6825b17d8 [FASTFAT]
- Add support for FILE_DELETE_ON_CLOSE
CORE-6931 #resolve

svn path=/trunk/; revision=74450
2017-05-02 19:33:14 +00:00
Thomas Faber
1d1755e8f5 [NTOS:MM]
- Avoid a file object reference leak in MmCreateSection.
CORE-6931

svn path=/trunk/; revision=74449
2017-05-02 17:18:37 +00:00
Giannis Adamopoulos
4c8ca6f0a4 [SHELL32] -CDefView: Hide the drag image at drop.
svn path=/trunk/; revision=74448
2017-05-02 14:01:07 +00:00
Thomas Faber
8403189f6c [NTOS:MM]
- When mapping a view of the physical memory section, don't check for BaseAddress/SectionOffset alignment. Instead, prevent user mode mappings of views beyond the highest physical page. Fixes flakiness in kmtest:MmSection
CORE-13113 #resolve

svn path=/trunk/; revision=74447
2017-05-02 11:11:39 +00:00
Thomas Faber
b89db46b1f [KMTESTS:MM]
Add some more tests for physical memory sections:
- Show that any alignment for SectionOffset/ViewSize is allowed. It will get automatically fixed up to page alignment
- Show that kernel mode can map views beyond the highest physical page, but user mode cannot
CORE-13113

svn path=/trunk/; revision=74446
2017-05-02 09:02:10 +00:00
Thomas Faber
2ec8bd97ab [NTOS:IO]
- Print the error status and message in IoRaiseInformationalHardError
CORE-13174 #resolve

svn path=/trunk/; revision=74445
2017-05-02 08:18:30 +00:00
Pierre Schweitzer
dd512f56a9 [CMD]
Fix and simplify implementation of "IF EXIST":
- Don't make any difference between wildcard search and normal search
- This fixes handling DOS devices search (ie, IF EXIST C:\ReactOS\NUL now works)
- This fixes handling pagefile.sys without requiring specifing rights
- Also fix handling directory search, terminated with a \

CORE-11784

svn path=/trunk/; revision=74444
2017-05-01 21:14:38 +00:00
Giannis Adamopoulos
3e2f6b9d2c [COMCTL32] Fix use of uninitialized variable.
svn path=/trunk/; revision=74443
2017-05-01 18:56:03 +00:00
Eric Kohl
a8f63ddb13 [INTL]
Added initialization of IDC_CURRENCYGRPNUM.
Patch by Katayama Hirofumi MZ.
CORE-10170

svn path=/trunk/; revision=74442
2017-05-01 17:05:31 +00:00
Giannis Adamopoulos
cb488db9b7 [BROWSEUI] Don't leak the image lists created by CAddressBand and CToolsBand.
svn path=/trunk/; revision=74441
2017-05-01 13:43:22 +00:00
Giannis Adamopoulos
4bc905e4fd [COMCTL32] -ImageList: Don't leak the DC returned by saturate_image.
svn path=/trunk/; revision=74440
2017-05-01 13:40:57 +00:00
Eric Kohl
3b40688aba [TRANSLATION]
Japanese NLS info.
Patch by Katayama Hirofumi MZ.
CORE-13164

svn path=/trunk/; revision=74439
2017-05-01 13:09:31 +00:00
Giannis Adamopoulos
35fecb20bc [COMCTL32] -Rebar: Fix a region handle leak when themes are enabled.
svn path=/trunk/; revision=74438
2017-05-01 12:44:24 +00:00
Giannis Adamopoulos
f23a970e84 [EXPLORER] CTrayClockWnd: Fix a leak of font handles. CORE-13155
svn path=/trunk/; revision=74437
2017-05-01 09:35:03 +00:00
Thomas Faber
3dfa093f63 [NTOS:IO]
- Fix some extremely broken casts

svn path=/trunk/; revision=74436
2017-04-30 19:24:53 +00:00
Thomas Faber
adae348b32 [WIN32K]
- Check for null members when cleaning up DCs and brushes. Fixes crashes in some failure cases when running out of GDI handles.
CORE-13155

svn path=/trunk/; revision=74435
2017-04-30 18:41:56 +00:00
Eric Kohl
a526c712b5 [INTL]
- Get rid of alloca, malloc and free.
- Always check the return values of HeapAlloc.
- Rename fUserLocaleChanged to bUserLocaleChanged and fGeoIdChanged to bGeoIdChanged.
- Use WCHAR instead of TCHAR.
- Fix indentation and coding style.
- Remove setupreg.c because it is an unused copy of misc.c.

svn path=/trunk/; revision=74434
2017-04-30 15:39:41 +00:00
Colin Finck
30d5e8f413 [LOCALSPL] [SPOOLSV] [WINSPOOL]
- Refactor the code returning PRINTER_INFO_* yet another time to support both EnumPrinters and GetPrinter calls.
- Implement support for PRINTER_INFO_1 through PRINTER_INFO_9 as well as the mostly unknown PRINTER_INFO_STRESS (level 0) structure and return as much information as we can.
- Implement GetPrinterW / LocalGetPrinter.

The Printers Shell folder in Explorer now shows our "Dummy Printer on LPT1" and we pass all 291 winspool:EnumPrinters API tests :)

svn path=/trunk/; revision=74433
2017-04-30 15:12:53 +00:00
Pierre Schweitzer
f10b1d9976 [KERNEL32_APITEST]
- Refactor a bit tests, to split more logically tests
- Fix a bug in tests
- Add new tests for MountMgr showing our storage stack doesn't behave as expected

svn path=/trunk/; revision=74432
2017-04-30 11:43:04 +00:00
Eric Kohl
f62dd8e937 [BOOTDATA]
Make service display names and descriptions translatable.
CORE-11855

svn path=/trunk/; revision=74431
2017-04-29 17:17:10 +00:00
Pierre Schweitzer
3d271a9794 [CDFS]
Fix returned data handling on directory enumeration.
Patch by Giannis Adamopoulos

CORE-13143

svn path=/trunk/; revision=74430
2017-04-28 19:32:44 +00:00
Giannis Adamopoulos
996f952333 [COMCTL32] -Add v5 and v6 manifests in livecd.
svn path=/trunk/; revision=74429
2017-04-28 17:11:46 +00:00
James Tabor
a1290edbe7 [NtGDI]
- Use internal function for setting brush origin. Related to CORE-13110.

svn path=/trunk/; revision=74422
2017-04-27 19:20:09 +00:00
James Tabor
4535174660 [NtGDI]
- Update DC attributes while internally setting brush origin. Related to CORE-13110.

svn path=/trunk/; revision=74421
2017-04-27 17:53:03 +00:00
Mark Jansen
06850c5772 [WIN32SS] Fix returning an uninitialized variable. Patch by Victor Martinez Calvo. CID 1341417, CORE-11027 #comment Thanks!
svn path=/trunk/; revision=74420
2017-04-27 15:37:08 +00:00
Thomas Faber
b9b174c0fa [GDI32]
- Fix last error value returned from GdiSelectPen for invalid DCs. Fixes the last test failure in gdi32:gdiobj. Patch by Katayama Hirofumi MZ.
CORE-13132 #resolve

svn path=/trunk/; revision=74419
2017-04-27 08:59:29 +00:00
Thomas Faber
27142f2af0 [EVENTVWR]
- Avoid two cases of uninitialized variable use in GetEventUserName. Based on a patch by Víctor Martínez Calvo. CID 1401250
CORE-12798 #resolve

svn path=/trunk/; revision=74418
2017-04-27 00:23:04 +00:00
Thomas Faber
b206e0eb2a [EVENTVWR]
- Make user name caching actually work
CORE-12798

svn path=/trunk/; revision=74417
2017-04-27 00:17:08 +00:00
Hermès Bélusca-Maïto
01a6b1023f [CMD]: Improvements for the CHCP command.
- Display the informative CP-change message on stdout, using the *output* code page (and not the input CP);
- Correctly update the local codepage cache;
- Display the informative CP-change message when the CP change succeeded;
- Add source comments + informative TODO for what remains to be done.

svn path=/trunk/; revision=74416
2017-04-26 22:29:07 +00:00
Eric Kohl
f25d0ce422 [BOOTDATA]
Make the timezone names translatable.
CORE-11855

svn path=/trunk/; revision=74415
2017-04-26 21:21:02 +00:00
Hermès Bélusca-Maïto
053db1af86 [KERNEL32]: Add/update localized codepage display names.
- Slightly update the description of CP 28599;
- Add descriptions for CPs 28600, 28603, 28604 and 28606;
- Add CP 856 "OEM - Hebrew PC" (which differs from OEM Hebrew CP 862).
Note that while we also have codepages 424, 878 and 1006, I don't add their description because:
- CP 424 is actually CP 20424 "IBM EBCDIC - Hebrew" on Windows (documented in the resource files);
- CP 878 is actually CP 20866 "Russian - KOI8" on Windows (documented in the resource files);
- CP 1006 seems to be "IBM Arabic" according to Wine, but I don't know its corresponding number on Windows.

svn path=/trunk/; revision=74414
2017-04-26 20:31:54 +00:00
Hermès Bélusca-Maïto
4f80d030e6 [KERNEL32]: Little improvements/fixes for GetCPInfoExW and GetGeoInfoW:
- Rework GetLocalisedText helper such that it looks more like LoadStringW. Also, if the string is not found (either because there is no associated string table, or because its resource length is zero), then return zero.
  Otherwise we return the correct number of characters copied into the user buffer, not counting the NULL terminator.
  This fixes the blank strings showing in the list of codepage user-friendly names in the console properties dialog.
- Simplify the code of NLS_GetGeoFriendlyName: we can directly use the user-provided buffer to retrieve the string.
Addendum to r65157.
CORE-13130 #resolve

svn path=/trunk/; revision=74413
2017-04-26 17:38:57 +00:00
Hermès Bélusca-Maïto
46f402da90 [KERNEL32]: Add the Brunei in the list of localized countries.
Translators, please localize the name!

svn path=/trunk/; revision=74412
2017-04-26 17:10:51 +00:00
Giannis Adamopoulos
79aeba8939 [UXTHEME] -Fix some resource leaks.
svn path=/trunk/; revision=74411
2017-04-26 13:55:19 +00:00
Hermès Bélusca-Maïto
403ef47169 [COMMAND]: Disable COMMAND.COM debugging messages by default.
Disable again this #define if you want to get the dbg messages back.
CORE-10710

svn path=/trunk/; revision=74410
2017-04-26 13:41:43 +00:00
Thomas Faber
701f62c3ac [USBOHCI]
- Not building before committing is also a hack
CORE-9224

svn path=/trunk/; revision=74409
2017-04-26 10:54:34 +00:00
Thomas Faber
1bb6977402 [USBEHCI][USBOHCI]
- Touch the virtual address of DMA buffers before calling MmGetPhysicalAddress on them. This ensures page directories are correctly set up for the current process context, and fixes random DMA operation failures ("MM:MmGetPhysicalAddressFailed"). This is not a hack -- using MmGetPhysicalAddress for DMA in the first place is.
CORE-9224 #resolve

svn path=/trunk/; revision=74408
2017-04-26 10:53:32 +00:00
Giannis Adamopoulos
43e13595cf [UXTHEME] -Implement the tab background texture. NOTE: A hack was used to go around the problem that SetBrushOrgEx doesn't really work. CORE-12978
svn path=/trunk/; revision=74407
2017-04-26 09:28:35 +00:00
Giannis Adamopoulos
e9846d6f9c [COMCTL32]
- Button, Trakbar: Send WM_CTLCOLORBTN or WM_CTLCOLORSTATIC and use their return value to paint the control despite the fact that DrawThemeParentBackground was called as well.
Part of the fix for CORE-12978

svn path=/trunk/; revision=74406
2017-04-25 11:19:22 +00:00
Hermès Bélusca-Maïto
83e0dd0595 [CONSOLE.CPL]: Simplify some parts of font.c code.
- Use a helper function "AddFontToList" to add font names into the font list;
- Use string-safe functions where needed.

svn path=/trunk/; revision=74405
2017-04-24 17:01:07 +00:00
Thomas Faber
384affe098 [WIN32K:ENG]
- In PDEVOBJ_vRefreshModeList, restore the current mode pointer, ppdev->pdmwDev, to a valid value.
CORE-13097 #resolve

svn path=/trunk/; revision=74404
2017-04-24 16:28:04 +00:00
Thomas Faber
e395d953b3 [USER32]
Fix heap corruption in EnumDisplaySettingsExA/W:
- Do not overwrite the user-provided buffer size in dmDriverExtra
- Fix broken pointer arithmetic
CORE-13097

svn path=/trunk/; revision=74403
2017-04-24 15:04:00 +00:00
Hermès Bélusca-Maïto
b5171111fb [ACCESS]: Fix french el-typo, noticed by Kyle Katarn. Thanks!
CORE-12482

svn path=/trunk/; revision=74402
2017-04-24 11:17:10 +00:00
Thomas Faber
9b4e4d42ed [WININET]
- Silence Firefox/Safari debug spam
CORE-12853 CORE-12128 CORE-11135

svn path=/trunk/; revision=74401
2017-04-24 10:07:39 +00:00
Thomas Faber
6eec01d1f5 [NTOS:MM]
- In MiFlushTbAndCapture, only print a fixme if we actually need to do something.
CORE-12074 #resolve

svn path=/trunk/; revision=74400
2017-04-24 09:45:03 +00:00
Thomas Faber
8fde80eacd [CONSOLE]
- Fix build
CORE-12451

svn path=/trunk/; revision=74399
2017-04-24 07:19:41 +00:00
Hermès Bélusca-Maïto
b6f13160b2 [CONSOLE.CPL]: Addendum to r74397: Fix a cast.
svn path=/trunk/; revision=74398
2017-04-24 00:32:10 +00:00
Hermès Bélusca-Maïto
34a71f27fc [CONSOLE.CPL]: Add a list of available code pages in the console properties dialog.
Display a list of available code pages, as done on Windows (NT/2k/2k3/Vista/7/8, when a CJK language is selected, and as always done on Windows 10 for all languages).
But contrary to Windows, do not limit this list to only CJK + CP-437 codepages, but list *all* the available CPs, retrieved from the registry. These CPs are also those available when using the "chcp" or "mode con cp" commands.
And contrary to Windows (where this is done only for the general console properties), always allow the user to view or change the code page even from the console properties dialog.

[CONSRV]: Support changing the current code page from the console properties dialog.

CORE-12451

svn path=/trunk/; revision=74397
2017-04-24 00:24:34 +00:00
Eric Kohl
d1ad859a6e [SYSETUP]
Update the shown date and time on the Date and Time page until the user changes the date or time.
CORE-11896

svn path=/trunk/; revision=74396
2017-04-23 21:56:36 +00:00
Thomas Faber
20689dba23 [CRYPTNET]
- Fix ROS-Diff. Spotted by CRLF.
CORE-13117 #resolve

svn path=/trunk/; revision=74395
2017-04-23 17:59:25 +00:00
Eric Kohl
f83d61cce0 [SERVMAN]
- Make a copy of the service list where service and display name strings are separately allocated. We need this to update the service names rather than reload the list when the display name is changed.
- Write the display name, description or binary path to the registry when the user changed them.
- Disable the Edit button after it has been clicked.
- Do not add the service name to the argument vector in the call to StartServiceW. Services.exe already add the service name to the vector.
CORE-12743

svn path=/trunk/; revision=74394
2017-04-23 17:39:26 +00:00
Colin Finck
ceaed9f1ec [LOCALSPL]
Implement all corner cases of handling the Name parameter in EnumPrinters. This can be done in a common way for all levels.
Fixes more tests.

svn path=/trunk/; revision=74393
2017-04-23 15:00:26 +00:00
Giannis Adamopoulos
4414132a97 [NTOSKRNL] CcPurgeCacheSection: Check if SharedCacheMap is NULL. Change suggested by ThFabba. CORE-13115
svn path=/trunk/; revision=74392
2017-04-23 11:12:48 +00:00
Thomas Faber
1f03a83d50 [NTOS:MM]
- In NtMapViewOfSection, check for address alignment after validating the handles. This fixes the tests from the previous commit, but is also necessary because information about the section object is necessary to avoid the alignment checks for physical memory sections.
CORE-13113

svn path=/trunk/; revision=74391
2017-04-23 09:38:45 +00:00
Thomas Faber
6e74416198 [KMTESTS:MM]
- Show that NtMapViewOfSection validates section and process handles before checking base address alignment
CORE-13113

svn path=/trunk/; revision=74390
2017-04-23 08:10:46 +00:00
Thomas Faber
e570b43842 [NTOS:MM]
- Check for ROS section object before accessing the AllocationAttributes member in NtMapViewOfSection, since ARM3 sections use a different structure.
CORE-13113

svn path=/trunk/; revision=74389
2017-04-23 07:24:44 +00:00
Mark Jansen
20756892b7 [ACPPAGE] Implement custom compatibility mode selection + Expand paths CORE-10375
svn path=/trunk/; revision=74388
2017-04-22 17:11:52 +00:00
Mark Jansen
7edfd6a3a9 [ACPPAGE] Update translations based on slayer. CORE-10375
Translators, please check your language, some text was changed!

svn path=/trunk/; revision=74387
2017-04-22 15:20:25 +00:00
Thomas Faber
a8b7dd40e2 [KMTESTS:MM]
- Enable MEM_RESERVED test in SimpleErrorChecks() since it no longer asserts. Patch by Serge Gautherie.
ROSTESTS-109 #resolve

svn path=/trunk/; revision=74386
2017-04-21 08:08:57 +00:00
Hermès Bélusca-Maïto
e21e3e4e03 [INPUT.CPL]
- Remove an unneeded header inclusion;
- Fix a sizeof invocation;
- RegEnumKeyExW and RegEnumValueW take their fourth parameter (size of key / value name, resp.) as a size in number of *characters* (and not in number of bytes);
- Add a missing RegCloseKey call in LocaleList_Create.

svn path=/trunk/; revision=74385
2017-04-21 00:22:39 +00:00
Thomas Faber
1836858f0a [NTOS:KE]
- Reset DebugDpcTime before calling timer DPC routines. Avoids spurious "DPC routine > 1 sec" break-ins.

svn path=/trunk/; revision=74384
2017-04-20 17:36:40 +00:00
Thomas Faber
ec2dddf4cb [NTOS:MM]
- Avoid reference leaks in failure cases of MmCreateCacheSection
CORE-6931

svn path=/trunk/; revision=74383
2017-04-20 08:58:45 +00:00
Thomas Faber
599c80f8f2 [VGADDI]
- Fix buffer overflow in DIB_BltFromVGA. A byte fits two pixels.

svn path=/trunk/; revision=74382
2017-04-20 07:30:01 +00:00
Eric Kohl
e9940a928b [TRANSLATION]
Romanian resources maintenance
Patch by Ștefan Fulea.
CORE-13099

svn path=/trunk/; revision=74381
2017-04-19 22:10:00 +00:00
Mark Jansen
fd91fe3337 [SHELL32] Fix for BuildPathsList, this solves some problems showing while copying folders. Patch by 'Gleb'. CORE-8434
svn path=/trunk/; revision=74380
2017-04-19 18:45:33 +00:00
Giannis Adamopoulos
5db681f766 [SHELL32] -CDesktopBrowser: Clone the pidl passed to SHOpenNewFrame as it will later free it itself. This was masked by a hacky cast.
svn path=/trunk/; revision=74379
2017-04-19 16:24:59 +00:00
Thomas Faber
ef27450876 [NTOS:MM]
- Never use special pool for prototype PTEs. Avoids "(PointerPte >= (PMMPTE)MmPagedPoolStart) && (PointerPte <= (PMMPTE)MmPagedPoolEnd)" assertion failure in MiDecrementShareCount.
CORE-11474

svn path=/trunk/; revision=74378
2017-04-19 14:40:53 +00:00
Thomas Faber
a909a0807a [KERNEL32_WINETEST]
- Improve the test_GetVolumePathNamesForVolumeNameW hack to avoid a stack buffer underrun.
CORE-11474

svn path=/trunk/; revision=74377
2017-04-19 14:08:51 +00:00
Thomas Faber
85f31b899e [OPENGL32]
- Fix uninitialized variable use in IntGetIcdData
CORE-11474

svn path=/trunk/; revision=74376
2017-04-19 13:16:30 +00:00
Thomas Faber
424bbf064b [KMTESTS:OB]
- After ObCreateObject+ObInsertObject a handle close is enough to destroy the object, so do not dereference it in addition. Fixes use after free.
CORE-11474

svn path=/trunk/; revision=74375
2017-04-19 12:21:57 +00:00
Thomas Faber
eff26a3a92 [KMTESTS:NPFS]
- Remove tests that cause pool buffer overflows. NtQueryVolumeInformationFile does not validate buffer length for kernel mode callers, so passing an invalid length is not a good test.
CORE-11474

svn path=/trunk/; revision=74374
2017-04-19 11:46:34 +00:00
Thomas Faber
497a20b8a0 [WS2_32][DNSAPI]
- Avoid stack buffer overflow in ParseV4Address
CORE-11474

svn path=/trunk/; revision=74373
2017-04-19 11:14:18 +00:00
Thomas Faber
77ec221feb [GDI32]
- Use the number of WCHARs, not the number of ANSI chars in GetCharABCWidthsA. Fixes stack corruption when running gdi32_winetest:font
CORE-11474

svn path=/trunk/; revision=74372
2017-04-19 10:33:58 +00:00
Eric Kohl
ae3886b65f [VARIOUS]
Updating Turkish Translation
Patch by Erdem Ersoy.
CORE-12362

svn path=/trunk/; revision=74371
2017-04-18 17:47:08 +00:00
Thomas Faber
202ae322fb [USER32]
- In RealSystemParametersInfoA/SPI_GETDESKWALLPAPER, write the ansi wallpaper path directly into the user's buffer instead of using an allocation (and overrunning it). Fixes crash when running user32_winetest:sysparams with DPH.
Tangential to CORE-13097

svn path=/trunk/; revision=74370
2017-04-18 14:31:33 +00:00
Giannis Adamopoulos
fc00a030f4 [USER32] -CallWindowProc: Call PreWndProc and PostWndProc hooks for dialog messages if the message is not hooked for PreDefDlgProc and PostDefDlgProc.
svn path=/trunk/; revision=74369
2017-04-18 12:35:57 +00:00
Hermès Bélusca-Maïto
3d8292ede6 [CONCFG]: Addendum for r74366: Initialize the console settings information codepage with the current OEM codepage, and read the optional console "CodePage" DWORD registry setting.
CORE-12451

svn path=/trunk/; revision=74368
2017-04-17 23:31:48 +00:00
Hermès Bélusca-Maïto
aac777cc7f [CONCFG]: Use 'Success' boolean variable instead of an obscure 'RetVal'.
svn path=/trunk/; revision=74367
2017-04-17 23:28:41 +00:00
Hermès Bélusca-Maïto
417e293fac [CONSOLE.CPL]: Paint the text samples using the correct character set (derived from the current code page).
This e.g. fixes display for the backslash symbol in CJK languages (that should appear as the Chinese "yuan" / Japanese "yen" currency symbol ¥, or the Korean "won" currency symbol ₩).
CORE-12451

svn path=/trunk/; revision=74366
2017-04-17 23:26:07 +00:00
Hermès Bélusca-Maïto
35fae98753 [CONSOLE.CPL]: Add support for Asian fonts & CJK codepage in the console properties dialog.
Based on a patch by Katayama Hirofumi MZ.
CORE-12451

svn path=/trunk/; revision=74365
2017-04-17 23:21:13 +00:00
Eric Kohl
de6836080a [AT]
Applied hotfix for russian translation.
Patch by Sergey Stopkin.
CORE-12961

svn path=/trunk/; revision=74364
2017-04-17 22:28:42 +00:00
Eric Kohl
ad372d31e3 [NEWDEV]
When the driver installation fails, set the CONFIGFLAG_FAILEDINSTALL flag only if the user checked the 'Do not show this dialog anymore' checkbox.
CORE-13095

svn path=/trunk/; revision=74363
2017-04-17 22:20:44 +00:00
Eric Kohl
f7928467e7 [NETID]
Load, display and store the computer description.
Patch by Grzegorz Araminowicz.
- Moved most of the code into separate functions and got rid of its deeply nested structure.
- Added some notification code, so that the Apply button gets enabled when the user changes the description.
CORE-12337

svn path=/trunk/; revision=74362
2017-04-17 21:05:02 +00:00
Thomas Faber
97a27e2c87 [KMTESTS:MM]
- Add some missing newlines and skip()s

svn path=/trunk/; revision=74361
2017-04-17 20:37:26 +00:00
Thomas Faber
602f37c6ae [WIN32K]
Fix automatic resolution change when resizing the VirtualBox window. Based on a patch by Ismael Ferreras Morezuelas.
- Provide a function, PDEVOBJ_vRefreshModeList, to reload the list of display modes
- Call PDEVOBJ_vRefreshModeList from UserEnumDisplaySettings to get an updated list of modes each time
CORE-6742 #resolve

svn path=/trunk/; revision=74360
2017-04-17 20:25:55 +00:00
Thomas Faber
670ebb242c [WIN32K:ENG]
- Split populating the display mode list out from EngpRegisterGraphicsDevice, into its own function, EngpPopulateDeviceModeList. Based on a patch by Ismael Ferreras Morezuelas.
CORE-6742

svn path=/trunk/; revision=74359
2017-04-17 19:44:32 +00:00
Thomas Faber
4677d6bfe0 [NTOS:CC]
- Respect the TruncateSize parameter in CcUninitializeCacheMap. Avoids "freeing dirty VACB" messages for cache views beyond the end of the file.
CORE-12893 #resolve

svn path=/trunk/; revision=74358
2017-04-17 18:37:12 +00:00
Thomas Faber
25db42d246 [NTOS:CC]
- Simplify CcSetFileSizes by using CcPurgeCacheSection
CORE-12893

svn path=/trunk/; revision=74357
2017-04-17 18:13:17 +00:00
Hermès Bélusca-Maïto
ef88fe7a1a [CONSOLE.CPL]: Code formatting only (in preparation of a subsequent commit).
svn path=/trunk/; revision=74356
2017-04-17 17:45:18 +00:00
Thomas Faber
73e2aff9c5 [NTOS:CC]
- Implement CcPurgeCacheSection
CORE-12893

svn path=/trunk/; revision=74355
2017-04-17 17:29:10 +00:00
Thomas Faber
880f06c728 [FASTFAT]
- On rename/move, flush parent directory data from cache instead of purging it.
CORE-12893

svn path=/trunk/; revision=74354
2017-04-17 16:54:28 +00:00
Mark Jansen
4923220ed0 [WIN32SS] Add full name support in FontFamilyFillInfo. Patch by Katayama Hirofumi MZ. CORE-10876
svn path=/trunk/; revision=74353
2017-04-17 16:08:38 +00:00
Mark Jansen
7a5cfecf02 [WIN32SS] Add extra logging to failed SURFACE_AllocSurface calls. CORE-13036
svn path=/trunk/; revision=74352
2017-04-17 15:48:56 +00:00
Colin Finck
8c0a8b2873 [ISOHYBRID]
Don't include inttypes.h, which isn't available on MSVC < 2013. Add the 4 needed typedefs to reactos_support_code.h instead.
Fixes CORE-13031

svn path=/trunk/; revision=74351
2017-04-17 13:49:46 +00:00
Colin Finck
daf94f98b0 [WINSPOOL]
Added tests for some more basic and newly discovered corner cases of EnumPrintersW.

svn path=/trunk/; revision=74350
2017-04-17 13:40:51 +00:00
Eric Kohl
60f3172c4f [SERVMAN]
Track changes to the general and and recovery pages.
CORE-12743

svn path=/trunk/; revision=74349
2017-04-17 12:48:51 +00:00
Eric Kohl
dd0e23b691 Avoid attempts to reinstall a driver on reboot when a previous attempt has already failed.
[NEWDEV]
Set the CONFIGFLAG_FAILEDINSTALL flag in the new hardware wizards welcome page and remove it only when the driver was successfully installed.

[UMPNPMGR]
Do not invoke the device installer if the devices CONFIGFLAG_FAILEDINSTALL flag is set.

svn path=/trunk/; revision=74348
2017-04-17 11:34:08 +00:00
Mark Jansen
1313fd5c76 [BROWSEUI] Port some IAutoComplete changes from wine + fix a memory leak. This allows the dropdown to show with ACO_AUTOSUGGEST and an empty input.
svn path=/trunk/; revision=74347
2017-04-17 09:35:08 +00:00
Giannis Adamopoulos
43527efc13 [BROWSEUI] -Remove a couple of lines that shouldn't have been committed.
svn path=/trunk/; revision=74346
2017-04-17 09:15:45 +00:00
Giannis Adamopoulos
f24e5deac9 [BROWSEUI] -CBandSiteMenu: Add preliminary support for adding and removing bands in the taskbar. If a class was registered in the CATID_DeskBand category it will be shown in the menu and selecting it can add it or remove it from the taskbar. Showing the two built in ones (quick launch and desktop) is not implemented yet.
svn path=/trunk/; revision=74345
2017-04-17 09:02:49 +00:00
Eric Kohl
789449896d [WINMINE]
Fix vertical aligment of the digits in mines.bmp.
Patch by Andre Semaki.
CORE-12777

svn path=/trunk/; revision=74344
2017-04-16 22:42:38 +00:00
Eric Kohl
77d8a7f5ee [SHELL]
Update russian translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74343
2017-04-16 22:00:46 +00:00
Eric Kohl
bb2c79c089 [MEDIA/RAPPS]
Update russian translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74342
2017-04-16 21:57:41 +00:00
Eric Kohl
5830fef205 [OPENGLCFG]
Add russain translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74341
2017-04-16 21:53:37 +00:00
Eric Kohl
49455e979d [NET]
Update russian translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74340
2017-04-16 21:48:43 +00:00
Eric Kohl
21862af108 [LSASRV]
Update the russian translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74339
2017-04-16 21:45:43 +00:00
Eric Kohl
d8187f248b [AT]
Fix outdated russian translation.

svn path=/trunk/; revision=74338
2017-04-16 21:42:09 +00:00
Eric Kohl
e70a305963 [HIVECLS]
Update russian translation.
Patch by amber.
CORE-12525

svn path=/trunk/; revision=74337
2017-04-16 21:33:56 +00:00
Eric Kohl
c2e52c6046 [FONTVIEW]
Update the russain translation.
CORE-12525

svn path=/trunk/; revision=74336
2017-04-16 21:30:29 +00:00
Eric Kohl
28877f472f [SHELL32]
Translate folder options.
CORE-12525

svn path=/trunk/; revision=74335
2017-04-16 21:26:05 +00:00
Eric Kohl
b026b17386 [NEWDEV]
Fix control sizes in russian dialogs.
CORE-12525

svn path=/trunk/; revision=74334
2017-04-16 21:21:36 +00:00
Eric Kohl
cc01ed0b73 [AT]
Added RU translation to the AT command.

[BLACKSHADE]
Added RU translation to the blackshade theme.
CORE-12961

svn path=/trunk/; revision=74333
2017-04-16 20:57:30 +00:00
Eric Kohl
54083aff00 [DESK]
Added en-GB to desk.cpl.
CORE-13014

svn path=/trunk/; revision=74332
2017-04-16 20:39:37 +00:00
Eric Kohl
40b6e1c065 [USETUP]
base/setup/usetup/it-IT translation patch.
CORE-12999 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74331
2017-04-16 20:22:03 +00:00
Giannis Adamopoulos
fa68145452 [SHLWAPI_UNDOC.H] -Fix definition of IUnknown_SetOwner.
svn path=/trunk/; revision=74330
2017-04-16 19:35:19 +00:00
Giannis Adamopoulos
f3a4314827 [EXPLORER] -If rshell is present and CBandSiteMenu_CreateInstance or CBandSite_CreateInstance are exported, use them instead of using the one provided by the system. Now we can start developing CBandSite and CBandSiteMenu on windows to implement support for taskbar toolbars.
svn path=/trunk/; revision=74329
2017-04-16 19:29:27 +00:00
Colin Finck
12e208e27a Fix GCC build, part 4/X (losing my optimism)
svn path=/trunk/; revision=74328
2017-04-16 15:51:44 +00:00
Colin Finck
82c97261bf Fix GCC build (3/3) :)
svn path=/trunk/; revision=74327
2017-04-16 15:44:22 +00:00
Colin Finck
1cfc77902c Fix GCC build (2/2)
svn path=/trunk/; revision=74326
2017-04-16 15:37:31 +00:00
Colin Finck
b0864955dd Fix GCC build
svn path=/trunk/; revision=74325
2017-04-16 14:30:07 +00:00
Colin Finck
cb609f0b17 [LOCALSPL]
- Refactor LocalEnumPrinters to make it ready for supporting additional levels.
- Correctly handle all passed flags for Level 1 queries to the Local Print Provider.
- Introduce strsafe functions to LocalEnumPrinters in a way that actually makes the code smaller. To be done in other parts too.
- Use PackStrings in LocalEnumPrinters to simplify the code.
- Return the correct 3 strings in the Description field of Level 1 queries. That also introduces the "Location" field.
- Remove debug spam in _OpenEnvironment.

[SPOOLSV]
- Make use of the newly implemented AlignRpcPtr/UndoAlignRpcPtr. Fixes a test.

[WINSPOOL]
- Dismiss invalid levels already in EnumPrintersW and zero the input buffer here (but not in localspl). Verified by a test.

EnumPrintersW for Level 1 should be fully supported now.

svn path=/trunk/; revision=74324
2017-04-16 14:12:01 +00:00
Colin Finck
c860e2b80d [SPOOLSS]
Add ASSERTs, improve documentation and the variety of tests for AlignRpcPtr/UndoAlignRpcPtr.
Based on comments by Serge Gautherie.

svn path=/trunk/; revision=74323
2017-04-16 10:36:16 +00:00
Thomas Faber
c447bed85d [NTOS:CC]
- Rename ROS_SHARED_CACHE_MAP::RefCount to OpenCount. One step closer to the real SHARED_CACHE_MAP.
CORE-8065

svn path=/trunk/; revision=74322
2017-04-16 08:50:20 +00:00
Mark Jansen
c873907550 Fix copypasta error, spotted by Thomas.
svn path=/trunk/; revision=74320
2017-04-15 22:18:29 +00:00
Thomas Faber
3f79f9922f [UNIATA]
- Update to version 0.46e3 (and fix up the version numbers)
- Un-"fix" insignificant typo corrections that only serve to make syncing harder
CORE-13032 #resolve
CORE-11894 CORE-11277 CORE-12909

svn path=/trunk/; revision=74319
2017-04-15 20:24:43 +00:00
Thomas Faber
21cb633c9e [RTL]
- In Wait_thread_proc, prioritize the cancel event over the wait object. This avoids executing the callback again after RtlDeregisterWait has been called.
Fixes ThemeStartCallback being called twice, causing a double free.
CORE-13074 #resolve

svn path=/trunk/; revision=74318
2017-04-15 17:39:49 +00:00
Eric Kohl
6de65ddcea [SCHEDSVC]
Insert a job into the start list when it is loaded or added. Remove it from the start list when it gets deleted. The start list is sorted by start time.

svn path=/trunk/; revision=74317
2017-04-15 10:33:29 +00:00
Mark Jansen
5657d83d0e [WIN32SS] Addendum to r74312 and r74309, fix some bad memory leaks. CORE-10876
Thanks Giannis and Thomas :)

svn path=/trunk/; revision=74316
2017-04-14 21:22:18 +00:00
Eric Kohl
645f25c4dd [SCHEDSVC]
Calculate the next start time of a job and store it in the job object. DaysOfMonth and DaysOfWeek are not taken into account yet.

svn path=/trunk/; revision=74315
2017-04-14 21:16:37 +00:00
Giannis Adamopoulos
2769768c33 [SHELLUTILS.H]
- Remove the ShellObjectCreator templates that allowed the caller to pass an arbitrary interface pointer. Leaving only the templates that take an void ** ppv parameter means that the callers are forced to use IID_PPV_ARG. This makes it less likely to have a pointer to an wrong interface. 
- Fix the callers to always use IID_PPV_ARG.
- Rewrite the ShellObjectCreator templates to create the objects using the ATL CreateInstance thus allowing internal ATL methods to be called.

[BROWSEUI]
-Let CBandSite_CreateInstance take an additional parameter for the outer object since CBandSite is aggregatable. Create the object using the ATL creator class.

svn path=/trunk/; revision=74314
2017-04-14 20:03:46 +00:00
Mark Jansen
569891558f [WIN32SS] Fix charset in font enumeration. Patch by Katayama Hirofumi MZ. CORE-10876
svn path=/trunk/; revision=74313
2017-04-14 18:32:07 +00:00
Mark Jansen
8b3bb3c44c [WIN32SS] Initial fixes for localized font enumeration. Patch by Katayama Hirofumi MZ. CORE-10876
svn path=/trunk/; revision=74312
2017-04-14 18:30:57 +00:00
Robert Naumann
05ad12aa18 [EXPLORER] Addendum to r74307: Fix copypasta CORE-11498
svn path=/trunk/; revision=74311
2017-04-14 18:25:05 +00:00
Mark Jansen
8e001f542a [WIN32SS] Count number of faces added instead of fonts in IntGdiLoadFontsFromMemory.
This fixes displaying embedded fonts in firefox.
CORE-13046 CORE-13056

svn path=/trunk/; revision=74310
2017-04-14 18:24:44 +00:00
Mark Jansen
246f24bd7f [WIN32SS] Cleanup fonts at process destruction + implement font memory reference counting.
Thanks to everyone involved in reviewing this code! (See CR-112)
CORE-13056

svn path=/trunk/; revision=74309
2017-04-14 18:22:57 +00:00
Mark Jansen
9bb6d0de5b [WIN32SS] Add missing \n to DPRINT1 Spotted by Thomas Schneider.
svn path=/trunk/; revision=74308
2017-04-14 18:20:13 +00:00
Robert Naumann
8bf97b3a3d [EXPLORER] start reworking some code for loading/saving settings implementation CORE-11498
- Rename the settings structure to something more meaningful for using it for all taskbar related settings
- define some default settings 
- check checkboxes with settings values in the properties window
- move saving the settings to an own function which will be implemented later

svn path=/trunk/; revision=74307
2017-04-14 18:08:34 +00:00
Eric Kohl
71817abc60 [AT]
Improve the time parser to handle 12-hour and 24-hour formats correctly.

svn path=/trunk/; revision=74306
2017-04-14 15:54:08 +00:00
Thomas Faber
389bdb30ca [NTOS:KE]
- Gracefully handle page faults during V86 code execution. This is a bit of a hack because with our limited use of V86 code it is unclear how a page fault can even occur.
CORE-12993 #resolve

svn path=/trunk/; revision=74305
2017-04-14 11:18:22 +00:00
Thomas Faber
8c82e4261d [NTOS:KE]
- Make decoding of the error code more obvious in KiTrap0EHandler
- Avoid or make explicit some signed/unsigned conversions

svn path=/trunk/; revision=74304
2017-04-14 10:39:07 +00:00
Thomas Faber
21b119daec [USBSTOR]
- Avoid MDL leak in USBSTOR_SendIrp. Patch by Lesan Ilie.
CORE-13061 #resolve

svn path=/trunk/; revision=74303
2017-04-14 10:24:41 +00:00
Thomas Faber
cb78e64537 [HIDCLASS]
Patch by Lesan Ilie:
- Avoid over-allocating the DEVICE_RELATIONS structure in HidClassPDO_CreatePDO
- Allocate device relations from paged pool
CORE-13052 #resolve

svn path=/trunk/; revision=74302
2017-04-14 09:55:17 +00:00
Thomas Faber
c022c746c8 [CABMAN]
- Fix leaks in ExtractFile and avoid double frees from failure cases of AddFile. Patch by Serge Gautherie.
CORE-7307 #resolve

svn path=/trunk/; revision=74301
2017-04-14 09:50:37 +00:00
Thomas Faber
0431372bc4 [ACPI]
- Ensure null termination of the method name passed to AcpiEvaluateObject in Bus_PDO_EvalMethod. Spotted by ReactCoder.
CORE-13068 #resolve

svn path=/trunk/; revision=74300
2017-04-14 09:32:47 +00:00
Robert Naumann
8acb3b7995 [CRT] remove a self assignment. CORE-8215 #resolve
svn path=/trunk/; revision=74299
2017-04-13 19:09:31 +00:00
Robert Naumann
84ae261e52 [UXTHEME] DrawNCPreview(): Fix copypasta
svn path=/trunk/; revision=74298
2017-04-13 17:41:27 +00:00
Colin Finck
a737c007e8 [SPOOLSS]
Implement the undocumented AlignRpcPtr and UndoAlignRpcPtr functions used by many Rpc* functions in spoolsv according to traced callchains.
I could reverse engineer them entirely using rohitab.com's API Monitor and black-box testing.
I also add documented tests covering all cases I found out. We now pass 17/17 tests on Windows Server 2003 and ReactOS.

Also const-ify a parameter in PackStrings.

svn path=/trunk/; revision=74297
2017-04-13 16:48:40 +00:00
Eric Kohl
6790e320bd [NTOS:OB]
- Move device map code into a separate file.
- Create and inherit device maps instead of using a single global device map.

svn path=/trunk/; revision=74296
2017-04-11 19:58:05 +00:00
Eric Kohl
6ca2243552 [SETUPAPI]
Implement CMP_GetServerSideDeviceInstallFlags().

svn path=/trunk/; revision=74295
2017-04-10 19:17:17 +00:00
Eric Kohl
46a9b5557e [UMPNPMGR]
Implement most of PNP_GetServerSideDeviceInstallFlags().

svn path=/trunk/; revision=74294
2017-04-10 19:12:17 +00:00
Giannis Adamopoulos
59cc29bd8e [RSHELL] -Link to shellbars and export CBandSite_CreateInstance and CBandSiteMenu_CreateInstance.
[SHELLMENU] -Remove second copy of CBandSite. It was originally added here to be tested in windows but now it is hosted in a proper static link.

svn path=/trunk/; revision=74293
2017-04-09 15:10:08 +00:00
Giannis Adamopoulos
026c7235f9 [BROWSEUI] -Move the following classes to a new static lib called shellbars: CBandSite, CBandSiteMenu, CBaseBar, CSHEnumClassesOfCategories.
- This will be linked to rshell in order to implement support for additional toolbars in the taskbar as well as floating toolbars.
- In the future more classes will be added in this static lib including: CISFBand (which implements a dockable toolbar that shows the contents of a shell folder), CQuickLinks (a special CISFBand), CDeskBarApp (a special CBaseBar that implements the floating host for toolbars) and perhaps more.

svn path=/trunk/; revision=74292
2017-04-09 13:51:39 +00:00
Sylvain Petreolle
35eb4001b2 [NTOS:MM]
Addendum to r74263:
- Really only warn once in MmLockPageableDataSection/MmUnlockPageableImageSection, not on every 256th call

svn path=/trunk/; revision=74291
2017-04-09 12:26:16 +00:00
Eric Kohl
d1fa8b8908 [SCHEDSVC]
Add missing file. Sorry!

svn path=/trunk/; revision=74290
2017-04-09 10:03:20 +00:00
Eric Kohl
7d242dfe4c [UMPNPMGR]
Use SendMessageW() to broadcast WM_DEVICECHANGE messages because BroadcastSystemMessageW() does not seem to work.

svn path=/trunk/; revision=74289
2017-04-09 08:51:03 +00:00
Eric Kohl
a1b2032688 [SCHEDSVC]
Implement storing and loading of jobs in the registry.

svn path=/trunk/; revision=74288
2017-04-09 08:47:10 +00:00
Mark Jansen
4e56b66072 [GDI32_APITEST] Add test for AddFontMemResourceEx. Uses PanosePitchTest.ttf from Katayama Hirofumi MZ. CORE-13046 CORE-13038 CORE-13053
svn path=/trunk/; revision=74287
2017-04-08 22:25:54 +00:00
Mark Jansen
ebbf3e1aa6 [WIN32SS] Addendum to r74285, actually leak the pointer used by Freetype, so that when it is accessed later, we have not freed it.
svn path=/trunk/; revision=74286
2017-04-08 19:06:46 +00:00
Mark Jansen
ba121aaf83 [WIN32SS] Implement NtGdiAddFontMemResourceEx and NtGdiRemoveFontMemResourceEx. CORE-13046
svn path=/trunk/; revision=74285
2017-04-08 17:32:45 +00:00
Thomas Faber
bc6b7e2b35 [LIBUSB]
- Silence some debug prints

svn path=/trunk/; revision=74284
2017-04-08 15:55:00 +00:00
Thomas Faber
97053d19c0 [NTOS:IO]
- Make debug prints about IopOpenRegistryKeyEx failure consistent

svn path=/trunk/; revision=74283
2017-04-08 09:26:42 +00:00
Mark Jansen
bbc430fc8c [WIN32SS] Use Panose info from freetype. Patch by Katayama Hirofumi MZ. CORE-13038
svn path=/trunk/; revision=74282
2017-04-07 22:30:20 +00:00
Mark Jansen
00e7f308a4 [USETUP] Improve CJK Font Substitutes settings. Patch by Katayama Hirofumi MZ. CORE-12956
svn path=/trunk/; revision=74281
2017-04-07 21:54:43 +00:00
Giannis Adamopoulos
0588697d7a [GDI32] -Implement GdiDrawStream.
- This is based on the prototype I found in a sample app on codeproject. I don't really know what the unknown parameters are for but I haven't found anything yet passing different values. Almost all of the code is from the drawing code from uxtheme with the only difference that in uxtheme UXTHEME_DrawImageBackground reads several values from the theme but his takes them as parameters. I don't see any reason to spend time understanding what these are for. I found what the draw flags are for by passing different values in the test application and trying to replicate the parameters that UXTHEME_DrawImageBackground need. I decided to keep the naming like that since it is almost verbatim wine code. At some point it should be moved to win32k however.
CORE-4420

svn path=/trunk/; revision=74280
2017-04-07 14:09:24 +00:00
Giannis Adamopoulos
afd47c09cf [SHSVCS] -Add the module that should host the theme service. Implement ThemeWaitForServiceReady and ThemeWatchForStart. These are already called by our msgina and are responsible for starting themes in the session.
svn path=/trunk/; revision=74279
2017-04-07 13:01:42 +00:00
Giannis Adamopoulos
3fb8c7bc13 [WIN32K] -Implement NtUserCalcMenuBar.
svn path=/trunk/; revision=74278
2017-04-05 21:07:44 +00:00
Thomas Faber
925499d1b6 [NTOS:IO]
- Remove broken casts

svn path=/trunk/; revision=74277
2017-04-05 14:00:03 +00:00
Giannis Adamopoulos
3419e8ae60 [WIN32K] -MENU_TrackMouseMenuBar: Use IntGetSystemMenu instead of get_win_sys_menu because the system menu have not been initialized yet (it is delay initialized). CORE-12801
svn path=/trunk/; revision=74276
2017-04-05 09:09:50 +00:00
Giannis Adamopoulos
e826abc369 [WIN32K] -NtGdiGetRegionData: prgn->rdh.nRgnSize is the size of kernel mode buffer for the region. After copying it to the caller we should set lpRgnData->rdh.nRgnSize to cjRects.
svn path=/trunk/; revision=74275
2017-04-04 10:07:07 +00:00
Robert Naumann
17ecb5786e [EXPLORER] Add modern start menu bitmap by Jared Smudde
svn path=/trunk/; revision=74274
2017-04-03 18:39:52 +00:00
Thomas Faber
ee47b6c3f0 [NTOS]
- Silence some more debug prints

svn path=/trunk/; revision=74273
2017-04-02 21:33:25 +00:00
Eric Kohl
048ad653f4 [SCHEDSVC]
Implement NetsJobEnum.

svn path=/trunk/; revision=74272
2017-04-02 20:47:48 +00:00
Eric Kohl
6900e149e5 [IDL]
atsvc.idl: Add missing 'string' attribute which fixes NetrJobEnum.

svn path=/trunk/; revision=74271
2017-04-02 20:32:07 +00:00
Daniel Reimer
4545bf4999 [RAPPS]
As long as we use the current "db" format, keep these ones alive.

svn path=/trunk/; revision=74270
2017-04-02 17:52:14 +00:00
Mark Jansen
702511c91e [RAPPS][RAPPS_NEW] Finally replace rapps with rapps_new.
CORE-13017 #resolve

svn path=/trunk/; revision=74269
2017-04-02 14:46:54 +00:00
Giannis Adamopoulos
fbfd0e502f [SHELL32] -CShellDispatch: Properly register Shell.Application. Implement CShellDispatch::ShutdownWindows. CORE-13010
svn path=/trunk/; revision=74268
2017-04-02 14:45:10 +00:00
Thomas Faber
29d8855a84 [NTOS:PNP]
- Silence debug prints about unhandled IRP_MN_QUERY_PNP_DEVICE_STATE

svn path=/trunk/; revision=74267
2017-04-02 14:41:17 +00:00
Thomas Faber
f80095f154 [I8042PRT][PCIIDEX]
- Silence debug prints about IRP_MN_QUERY_CAPABILITIES

svn path=/trunk/; revision=74266
2017-04-02 14:35:33 +00:00
Thomas Faber
ff51b80ac6 [HAL][NTOS:PNP]
- Silence some debug prints about unhandled PNP minor functions

svn path=/trunk/; revision=74265
2017-04-02 14:24:11 +00:00
David Quintana
a2c9b85f80 [blackshade.msstyle]
Replaced the mockup image with a more up-to-date version, and added the "source" .PSD file it was created from. Someday I'll get around to to turning this into the actual theme. Someday.

svn path=/trunk/; revision=74264
2017-04-02 11:32:31 +00:00
Thomas Faber
db2abeca16 [NTOS:MM]
- Really only warn once in MmSecureVirtualMemory/MmUnsecureVirtualMemory, not on every 256th call

svn path=/trunk/; revision=74263
2017-04-02 08:37:39 +00:00
Eric Kohl
0309c0644e [SCEDSVC]
- Implement a simple job list.
- Implement NetrJobAdd, NetrJobDel and NetrJobGetInfo.

svn path=/trunk/; revision=74262
2017-04-01 22:54:30 +00:00
Giannis Adamopoulos
77e85485aa [UXTHEME] -Implement painting the corner of the scrollbars.
svn path=/trunk/; revision=74261
2017-04-01 12:17:15 +00:00
Giannis Adamopoulos
837f2ae4cb [WIN32K] -Correct one parameter in NtUserPaintMenuBar and make it return the height of the menu bar.
[UXTHEME] -Pass the correct parameter to PaintMenuBar. Draw the edge of WS_EX_CLIENTEDGE even if the window has a themed frame.

svn path=/trunk/; revision=74260
2017-04-01 10:18:40 +00:00
Eric Kohl
15a480bb44 [UMPNPMGR]
Broadcast a WM_DEVICECHANGE message on device arrrival and removal.
CORE-12977

svn path=/trunk/; revision=74259
2017-04-01 08:07:39 +00:00
James Tabor
667ce623d5 [Win32SS]
- Patch by Alex Henrie : Translate WM_(NC)XBUTTONUP to WM_APPCOMMAND in DefWindowProc.
- Modified for ReactOS.

svn path=/trunk/; revision=74258
2017-04-01 02:01:59 +00:00
James Tabor
755636e921 [NtUser]
- Again, add more information from CORE-9667 thememenu.patch so it does not get lost.

svn path=/trunk/; revision=74257
2017-03-31 23:48:48 +00:00
Giannis Adamopoulos
bf3b8cd273 [WIN32K] -Store the flat menus setting and the drop shadow setting in the UserPreferencesMask registry value.
svn path=/trunk/; revision=74256
2017-03-31 22:27:13 +00:00
James Tabor
0258ba9082 [NtUser]
- Add additional information from CORE-9667 thememenu.patch so it does not get lost.

svn path=/trunk/; revision=74255
2017-03-31 21:57:20 +00:00
Giannis Adamopoulos
1b2b13846d [UXTHEME] -Get rid of the hack that partly draws the menu bar in uxtheme. This was added to hack around the fact that we didn't set the flat menus setting. Use PaintMenuBar instead.
svn path=/trunk/; revision=74254
2017-03-31 19:24:00 +00:00
Giannis Adamopoulos
c788005b8c [WIN32K] -Get the new value of SPI_SETFLATMENU from pvParam.
svn path=/trunk/; revision=74253
2017-03-31 19:04:31 +00:00
Giannis Adamopoulos
5e8714cdca [DESK.CPL] -Load the TMT_FLATMENUS property from the theme and use SPI_SETFLATMENU to set it.
svn path=/trunk/; revision=74252
2017-03-31 18:18:19 +00:00
Giannis Adamopoulos
4daf6ffcbc [WIN32K] -Stub NtUserPaintMenuBar. I'm still not sure about the last parameter and its return value.
svn path=/trunk/; revision=74251
2017-03-31 18:05:27 +00:00
Giannis Adamopoulos
2a507824c6 [WIN32K] -Update the prototype of NtUserPaintMenuBar here as well.
svn path=/trunk/; revision=74250
2017-03-31 17:17:35 +00:00
Giannis Adamopoulos
cf6d69d369 [SDK] -Add the prototype of PaintMenuBar and update the prototype of NtUserPaintMenuBar.
svn path=/trunk/; revision=74249
2017-03-31 16:55:20 +00:00
Giannis Adamopoulos
b1b089e5fe Fix gcc build.
svn path=/trunk/; revision=74248
2017-03-31 11:33:53 +00:00
Giannis Adamopoulos
55bba159b9 [UXTHEME] -Implement painting windows with WS_MINIMIZE. Such windows are minimized mdi windows.
svn path=/trunk/; revision=74247
2017-03-31 11:26:20 +00:00
Thomas Faber
9cac6ddd71 [USBEHCI][USBOHCI][USBUHCI]
- Avoid leaking CUSBRequest::m_CompletionEvent. Based on a patch by ReactCoder.
CORE-12984 #resolve

svn path=/trunk/; revision=74246
2017-03-31 09:16:45 +00:00
Thomas Faber
34de8c3bdb [USBSTOR]
- Addendum to r73892: Don't free the output buffer on success in USBSTOR_SendIrp. Spotted (again) by curiousone
CORE-12970 #resolve

svn path=/trunk/; revision=74245
2017-03-31 09:02:43 +00:00
Giannis Adamopoulos
463dc9b8bd [UXTHEME} -Fix usage of uninitialized variable. CORE-11204
svn path=/trunk/; revision=74244
2017-03-29 20:50:56 +00:00
Robert Naumann
b295df005d [EXPLORER] -implement showing the start menu preview
svn path=/trunk/; revision=74243
2017-03-29 18:37:06 +00:00
Hermès Bélusca-Maïto
73dff0f128 [NDK][XDK]: Add some forgotten RTL bitmap functions.
svn path=/trunk/; revision=74242
2017-03-29 16:36:13 +00:00
Giannis Adamopoulos
7fc8752aed [UXTHEME] -Draw the background glyph inside the content margins. CORE-6000
svn path=/trunk/; revision=74241
2017-03-29 10:01:00 +00:00
Giannis Adamopoulos
f1421e61ad [UXTHEME] -Slightly improve the width of the caption buttons by scaling it based on the height of the caption buttons. CORE-6000
svn path=/trunk/; revision=74240
2017-03-28 21:31:16 +00:00
Eric Kohl
f754176cb8 [TRANSLATIONS]
Minor corrections in Uzbek.
Patch by Kudratov Olimjon.
CORE-12907 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74239
2017-03-28 18:28:05 +00:00
Giannis Adamopoulos
878152ec5b [EXPLORER] -Remove a debug print that wasn't supposed to be committed.
svn path=/trunk/; revision=74238
2017-03-28 10:22:54 +00:00
Giannis Adamopoulos
9ca6144945 [EXPLORER] -Try to fix a crash in explorer. CORE-12991
svn path=/trunk/; revision=74237
2017-03-28 09:28:06 +00:00
Thomas Faber
0c6d37d9fa [NTOS:KE]
- Addendum to r74235.
CORE-12985

svn path=/trunk/; revision=74236
2017-03-27 20:23:37 +00:00
Thomas Faber
10236225d3 [NTOS:KE]
- Make sure to disable interrupts each iteration of the idle loop, since IdleFunction can leave them enabled.
CORE-12985 #resolve

svn path=/trunk/; revision=74235
2017-03-27 20:16:59 +00:00
Giannis Adamopoulos
73696326a3 [UXTHEME] -Fix drawing the themed scrollbar. CORE-12933
svn path=/trunk/; revision=74234
2017-03-27 19:56:36 +00:00
Hermès Bélusca-Maïto
81d33af127 [SETUPAPI]: Partly sync parser.c with Wine Staging 2.2. CORE-9397 CORE-12823
Fixes all but 2 tests in setupapi_winetest:parser.

e8aa851 setupapi: Fix parsing of inf files containing garbage at the beginning of the file.

svn path=/trunk/; revision=74233
2017-03-27 16:29:50 +00:00
Eric Kohl
e52d910948 [LSASRV]
Implement LsarpLookupPrivilegeDisplayName. Reading the resource strings is still buggy.
CORE-12976 #comment Please retest!

svn path=/trunk/; revision=74232
2017-03-26 20:45:48 +00:00
Giannis Adamopoulos
3092ec5137 [EXPLORER]: Fix most problems with the size of the taskbar. (Most problems when run in windows. Running on ros still isn't perfect.)
- CTaskSwitchWnd: Use the height of the start button as minimum height in horizontal mode.
- CTrayClockWnd: Actually process WM_THEMECHANGED message.
- CTaskSwitchWnd: Use SM_CYSIZE as the height of the buttons of the toolbar.
- CStartButton: Simplify calculating the minimum size of the button.
- CTrayWindow: Don't use IsThemeActive. Checking if OpenThemeData returned non null is enough.

svn path=/trunk/; revision=74231
2017-03-26 16:46:55 +00:00
Eric Kohl
fec280223d [LSASRV]
Add privilege display name resource strings.
CORE-12976

svn path=/trunk/; revision=74230
2017-03-26 14:02:39 +00:00
Eric Kohl
8ec42ffc99 [STOBJECT]
Fix a typo (wrong resource id).

svn path=/trunk/; revision=74229
2017-03-25 14:33:18 +00:00
Eric Kohl
587b5a7dcc [STOBJECT]
Implement the power schemes popup menu.

svn path=/trunk/; revision=74228
2017-03-25 13:35:41 +00:00
Eric Kohl
2a258f8902 [MMSYS]
Show and hide the volume systray icon.

svn path=/trunk/; revision=74227
2017-03-23 20:07:29 +00:00
Eric Kohl
3bce3e3e48 [POWERCFG]
Show and hide the power systray icon.

svn path=/trunk/; revision=74226
2017-03-23 20:00:54 +00:00
Eric Kohl
a9265410de [STOBJECT]
Implement code to show and hide the power and volume icons in the notification area aka systray.
Control panel applications send WM_USR+220 messages to the systray window in order to show or hide an icon in the systray. The wParam parameter identifies the icon: 1=power, 4=volume. The lParam parameter indicates the new icon status: 0:show, 1:hide.
Control panel applications also send WM_USER+221 messages to the systray window in order to retrieve the current status of a systray icon. The wParam parameter identifies the icon, just like in the WM_SUER+220 messages. The lParam parameter is ignored. The return value indicates the status of the icon: 1:visible, 0:hidden.

svn path=/trunk/; revision=74225
2017-03-23 19:51:53 +00:00
Giannis Adamopoulos
b8b7eedce2 [EXPLORER]: Simplify the creation of the tray band site and the tasks band.
- CTrayBandSite: Rename its constructor to CTrayBandSite_CreateInstance. Let the CTrayWindow create the CTasksBand and pass it to the constructor. Use a standard com interface to see if the tasks band was added while loading and don't use an explorer specific interface for it. Make CTrayBandSite::_Init a bit clearer.
- CTrayWindow: Implement the IOleWindow interface and create the CTaskBand before creating the CTrayBandSite. Then use standard com interfaces to get their respective HRND.
- CTaskBand: Rename its constructor to CTaskBand_CreateInstance. Remove a hack that was using its IOleWindow to act like the IOleWindow of the CTrayWindow during the creation of the CTrayBandSite. This is possible since the IOleWindow of the CTrayWindow is passed to the SetDeskBarSite method of CTrayBandSite.

svn path=/trunk/; revision=74224
2017-03-23 15:39:34 +00:00
Thomas Faber
0cd03197e2 [AT]
- Fix MSVC build

svn path=/trunk/; revision=74223
2017-03-22 23:35:50 +00:00
Eric Kohl
7b87ca6c5e [AT]
- Confirm deleting all jobs.
- Fix typos in resources and add missing usage text.

svn path=/trunk/; revision=74222
2017-03-22 21:59:06 +00:00
Giannis Adamopoulos
fafcbebc79 [EXPLORER]
- Simplify the mess with the font handling in explorer. Make it respond to changes in the system metrics and use the correct fonts.
- Make CheckTrayWndPosition resize the taskbar based on the optimal size that the rebar returns.
- Without losing my sanity (yet), I managed to make it have exactly the same size as windows explorer when I run it in windows with the classic theme.
- Themes still aren't sized perfectly. Running on ros shows lots of bugs in our common controls.

svn path=/trunk/; revision=74221
2017-03-22 01:09:45 +00:00
Eric Kohl
8f792acdab [AT]
- Retrieve the users short day names instead of hardcoded day names.
- Fix resources.

svn path=/trunk/; revision=74220
2017-03-21 20:32:54 +00:00
Daniel Reimer
1b82948d08 [FONTSUB]
Added German Translation
DIALOG -> DIALOGEX
Windows -> system (not yet done in japanese translation...)

svn path=/trunk/; revision=74219
2017-03-21 16:00:05 +00:00
Eric Kohl
4603f5333e [AT]
- Implement the DaysOfWeek parser and display code.
- ParseDaysOfMonth: Handle a failure case.
- Fix display bugs.

svn path=/trunk/; revision=74218
2017-03-20 22:55:08 +00:00
Sebastian Gasiorek
340d80290d [NTGDI] Add missing LPtoDP in GreExtTextOutW (TA_UPDATECP). Fixes CORE-12218 without breaking CORE-11415
svn path=/trunk/; revision=74217
2017-03-20 22:40:52 +00:00
Kamil Hornicek
e06db72a02 [TRANSLATIONS]
- Shorten some strings to make MSVC happy.

svn path=/trunk/; revision=74216
2017-03-20 22:23:33 +00:00
Daniel Reimer
e0d0a0da5e Maybe fix MSVC build
svn path=/trunk/; revision=74215
2017-03-20 20:36:49 +00:00
Daniel Reimer
ed8ab11d0f [Root CA]
Updated Root certificates
+ "LuxTrust Global Root 2" (1479 bytes)
+ "Amazon Root CA 4" (502 bytes)
+ "Amazon Root CA 3" (442 bytes)
+ "Amazon Root CA 2" (1349 bytes)
+ "Amazon Root CA 1" (837 bytes)
+ "AC RAIZ FNMT-RCM" (1415 bytes)
- "Root CA Generalitat Valenciana" (1679 bytes)
- "Buypass Class 2 CA 1" (855 bytes)
- "RSA Security 2048 v3" (869 bytes)

svn path=/trunk/; revision=74214
2017-03-20 20:12:57 +00:00
Daniel Reimer
cf1f4ee72a [OPENGLCFG]
Add German translation

svn path=/trunk/; revision=74213
2017-03-20 20:05:11 +00:00
Kamil Hornicek
3230cffd7b Somehow this wasn't committed. Sorry.
svn path=/trunk/; revision=74212
2017-03-20 12:16:45 +00:00
Kamil Hornicek
f3b4ed1f59 [RAPPS]
- Move Mesa 3D to "Libraries"
- Clarify what this library is for and how to use it.
- Add Czech translation.

[OPENGLCFG]
- Add Czech translation.

svn path=/trunk/; revision=74211
2017-03-20 12:02:10 +00:00
Kamil Hornicek
0457d0515e [NTOS:KD64]
- Fix a copy-pasta.
- Spotted by Sumanai. Thanks!
CORE-12952

svn path=/trunk/; revision=74210
2017-03-20 10:21:11 +00:00
Kamil Hornicek
249a485fb2 [RAPPS]
- Add a custom build of the Mesa 3D Graphics Library. This build contains mesa, gallium and llvmpipe. It provides an enormous performance boost over the software implementation present in opengl32.
- This is meant for platforms with missing, outdated or broken HW OpenGl acceleration.
- Thanks Daniel for helping with the Rapps stuff!

svn path=/trunk/; revision=74209
2017-03-19 22:27:59 +00:00
Kamil Hornicek
3ac876a570 [OPENGLCFG]
- Add a simple applet to set a custom OGL ICD or force the use of the built in software implementation.
- It can be used to set the DEBUGCHANNEL to +opengl,+wgl to make obtaining debug info more user friendly.

svn path=/trunk/; revision=74208
2017-03-19 22:20:51 +00:00
Kamil Hornicek
ad61fd2df2 [OPENGL32]
Disclaimer: This code is ReactOS specific and is the complete opposite of what Windows does (tm):
- Add the option to override the default OpenGL driver by a custom driver or to force the use of the built-in software implementation.
- This will allow some more flexibility when running games / apps that depend on OGL.
- This code needs a special entry in the registry so opengl32 behaves as usual by default.

svn path=/trunk/; revision=74207
2017-03-19 22:15:58 +00:00
Amine Khaldi
2d7b980fca [FREETYPE] Update to v2.7.1. Patch by Katayama Hirofumi MZ, verified by me. CORE-12949
svn path=/trunk/; revision=74206
2017-03-19 17:53:42 +00:00
Amine Khaldi
f7de731248 [VERSION_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74205
2017-03-19 17:23:26 +00:00
Amine Khaldi
651bfe32bc [PSDK] Import verrsrc.h and update winver.h accordingly. CORE-12823
svn path=/trunk/; revision=74204
2017-03-19 17:22:09 +00:00
Amine Khaldi
fea16f685a [VERSION] Sync with Wine Staging 2.2. CORE-12823
8e1335b version: Ignore flag values in Ex functions.

svn path=/trunk/; revision=74203
2017-03-19 17:16:33 +00:00
Eric Kohl
bf9276fb38 [AT]
- Replace ARRAYSIZE() by _countof().
- Implement parsing of days per month schedule information for the /every and /next options.
- Print days per month schedule information.

svn path=/trunk/; revision=74202
2017-03-19 17:15:59 +00:00
Amine Khaldi
5dc0efe009 [WINTRUST_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74201
2017-03-19 17:12:49 +00:00
Amine Khaldi
9a66f98d08 [PSDK] Update wintrust.h. CORE-12823
svn path=/trunk/; revision=74200
2017-03-19 17:11:45 +00:00
Amine Khaldi
cc68e066fd [WINTRUST] Sync with Wine Staging 2.2. CORE-12823
e141d4a wintrust: Use return value of sprintf() instead of calling strlen().

svn path=/trunk/; revision=74199
2017-03-19 17:09:31 +00:00
Amine Khaldi
9883b9f952 [WINHTTP_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74198
2017-03-19 17:05:35 +00:00
Amine Khaldi
1d323c7f36 [WINHTTP] Sync with Wine Staging 2.2. CORE-12823
6053db9 winhttp: Fix handling of Accept headers.
c43dd19 winhttp: Add __WINE_ALLOC_SIZE attributes to heap_xxx() functions.
5b9beca winhttp: Fix some spec file entries.
542998e winhttp: Accept NULL buffer for size queries in WinHttpCreateUrl.
ec35394 winhttp: Handle EINTR from connect and poll.
613e239 winhttp: Use return value of sprintf() instead of calling strlen() and simplify code.

svn path=/trunk/; revision=74197
2017-03-19 17:04:32 +00:00
Amine Khaldi
557197382e [URLMON_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74196
2017-03-19 16:58:47 +00:00
Amine Khaldi
8b55390e8d [URLMON] Sync with Wine Staging 2.2. CORE-12823
1b04cf1 urlmon: Remove 'stub' from implemented functions trace message.
8f23a89 urlmon: Fix FindMimeFromData spec file entry.
32671b1 urlmon: Added Seek implementations for streams using cache file.
aa2ed73 urlmon: Correctly handle INTERNET_STATUS_REQUEST_COMPLETE notification with no data available.
22b4599 urlmon: Fix buffer overflow in parse_canonicalize.

svn path=/trunk/; revision=74195
2017-03-19 16:57:50 +00:00
Amine Khaldi
4fba105205 [USP10_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74194
2017-03-19 16:54:04 +00:00
Amine Khaldi
e210d0be7d [USP10] Sync with Wine Staging 2.2. CORE-12823
d00f731 usp10: Itemise ZWSP like ZWNJ and ZWJ.
721fbf6 usp10: Explicitly check for zero-width control characters in ScriptShapeOpenType().
7e6a4b2 usp10: Fix LB27 rule that should check for prefix, not suffix.
c4626bb usp10: Fixed LB30 condition, breaking after CP class.
0c14195 usp10: Apply 'ccmp' before Arabic contextual shaping.
e2d4cf9 usp10: Fix next index for RTL MultipleSubst.
0401bdf usp10: Change GSUB_E_NOGLYPH value.
10e9adf usp10: Fix Contextual Shaping for Languages with RTL write order.
961e1e6 usp10: Fix ScriptRecordDigitSubstitution spec file entry.
aae5a83 usp10: Implement Chaining Context Substitution Format 2: Class-based Chaining Context Glyph Substitution.
b98a70a usp10: Implement Contextual Positioning Subtable: Format 2.
5e6b2c0 usp10: Implement GSUB Context Substitution types 1 and 2.
c705eca usp10: A spelling fix in a comment.

svn path=/trunk/; revision=74193
2017-03-19 16:53:04 +00:00
Eric Kohl
29e234b3a2 [AT]
Fix duplicate resource string.

svn path=/trunk/; revision=74192
2017-03-19 00:43:26 +00:00
Sebastian Gasiorek
0c9274d5bf import EGA palette fix from Wine
svn path=/trunk/; revision=74191
2017-03-19 00:35:48 +00:00
Eric Kohl
a9d1e30a2a [AT]
Implement the AT command:
- The /every and /next options are not supported yet.
- The 12 hour time format cannot be parsed yet.

svn path=/trunk/; revision=74190
2017-03-19 00:11:31 +00:00
Pierre Schweitzer
e49ac92a99 [MUP]
Properly define magic values for CCB and DFS

svn path=/trunk/; revision=74189
2017-03-18 14:03:45 +00:00
Mark Jansen
6261af5945 [USETUP] Split font substitution settings for CJK languages. Patch by Katayama Hirofumi MZ. CORE-9615
svn path=/trunk/; revision=74188
2017-03-18 13:28:57 +00:00
Mark Jansen
fd3b70fc42 [APPLICATIONS/SYSUTILS] Add a font substitutes editor. Patch by Katayama Hirofumi MZ. CORE-12749 #resolve #comment Thanks!
svn path=/trunk/; revision=74187
2017-03-18 13:01:18 +00:00
Mark Jansen
5d11d1699c [REGEDIT] Fix regedit not showing it's main window when loading view settings fail. CORE-12749
svn path=/trunk/; revision=74186
2017-03-18 12:54:43 +00:00
Mark Jansen
7c59b923ac [SDK] Add WM_CONTEXTMENU handler to WindowsX.h CORE-12749
svn path=/trunk/; revision=74185
2017-03-18 12:24:16 +00:00
Thomas Faber
648f8eb5ff [BOOTLIB]
- Avoid an uninitialized variable in BlpDisplayReinitialize. Patch by Victor Martinez Calvo. CID 1363648.
CORE-11692 #resolve

svn path=/trunk/; revision=74184
2017-03-17 14:11:03 +00:00
Eric Kohl
e17745ee73 [FONTVIEW]
Implement fontview /p parameter support.
Patch by amber. Patch was slightly modified by me in order to open the print dialog automatically.
CORE-12944 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74183
2017-03-16 23:36:08 +00:00
Sebastian Gasiorek
c3297be6ce [DXG] Implement DxDdCanCreateSurface and DxDdCanCreateD3DBuffer. Reorganisation of code - put functions in the same filenames as in ntddraw CORE-4490
svn path=/trunk/; revision=74181
2017-03-16 14:37:27 +00:00
Sebastian Gasiorek
8d823dd58d [DXG] implement DxDdGetDriverInfo, DxDdQueryDirectDrawObject, DxDdReenableDirectDrawObject, fix DirectDrawLocal assignment in intDdCreateDirectDrawLocal CORE-4490
svn path=/trunk/; revision=74180
2017-03-16 12:20:36 +00:00
Sebastian Gasiorek
c04d8c58e7 [DXG] DdHmgLock - use PLONG instead of PBYTE.
svn path=/trunk/; revision=74179
2017-03-16 09:59:15 +00:00
Mark Jansen
0ad21ab1b8 [WIN32SS] Improve font substitutes by adding support for charset + loading the substitutes at boot. Patch by Katayama Hirofumi MZ. CORE-12902 #resolve #comment Thanks!
svn path=/trunk/; revision=74178
2017-03-15 20:38:45 +00:00
Mark Jansen
447c0daf7d [ATL][ATL_APITEST] Allow CString to be initialized with a resource ID + add tests for this. Patch by Katayama Hirofumi MZ. CORE-12917 #resolve #comment Thanks!
svn path=/trunk/; revision=74177
2017-03-15 19:17:44 +00:00
Ged Murphy
14e5cfe8eb [IoCsq]
- Clean up the DriverContext that was dirtied by the CSQ
The do while(0) thing feels a bit weird. I can only assume it was done so a 'break' will unlock before returning.

svn path=/trunk/; revision=74176
2017-03-15 18:01:54 +00:00
Robert Naumann
aaa7adc518 [EXPLORER] Show the notification settings dialog from it's context menu entry
svn path=/trunk/; revision=74175
2017-03-15 15:08:39 +00:00
Sebastian Gasiorek
8dbe68b77a [DXG] replace EngDeleteSemaphore with EngReleaseSemaphore in DdHmgLock! CORE-4490
svn path=/trunk/; revision=74174
2017-03-15 14:16:00 +00:00
Daniel Reimer
1882e8f1b8 [ROSBE]
Update RosBE in RAPPS too.

svn path=/trunk/; revision=74173
2017-03-15 07:55:11 +00:00
Hermès Bélusca-Maïto
5c9adf775d [NDK]: No, the NDK applications do not have to use UNICODE.
Indeed the RTL/NDK/whatever always explicitely uses ANSI and/or UNICODE string types where needed (and do not depend on tchar.h stuff).
It is up to the given application to explicitely specify (in its CMakeLists.txt or elsewhere) whether it wants to define UNICODE or not.
--> Fix the problem of having the UNICODE define magically being defined after including some NDK header.

[DNSAPI][USER32_APITEST]: Explicitely use UNICODE functions where needed (and as was already done in other parts of the code).

svn path=/trunk/; revision=74172
2017-03-15 00:06:42 +00:00
Sebastian Gasiorek
856b02d967 [DXG] Implement DxDdCreateDirectDrawObject and update DdHmgAlloc CORE-4490
svn path=/trunk/; revision=74171
2017-03-14 23:05:49 +00:00
Sebastian Gasiorek
47e72b3d01 [DXG] Implement DxDdEnableDirectDraw CORE-4490
[NTDDRAW] Enable DxEGShDevData_hSpooler and DxEGShDevData_ldev in DxEngGetHdevData CORE-7733

svn path=/trunk/; revision=74170
2017-03-14 19:45:23 +00:00
Sebastian Gasiorek
7797dd6fcc [GDI] Windows puts DeviceObject to hSpooler field when it is graphics device. CORE-7733 CORE-4490
svn path=/trunk/; revision=74169
2017-03-14 19:13:19 +00:00
Robert Naumann
6231da678b [EXPLORER] Now that CORE-10575 is correctly fixed, delete the old and obsolete start icon. Final part of CORE-10030
svn path=/trunk/; revision=74168
2017-03-14 15:08:11 +00:00
Eric Kohl
494233b2a4 [NTOS:IO]
IopGetDeviceRelations:
- Use captured parameters to probe for write.
- Do not check IopInitiatePnpIrp for STATUS_PENDING.

svn path=/trunk/; revision=74167
2017-03-13 21:23:15 +00:00
Giannis Adamopoulos
f57506f679 [EXPLORER} -Cleanup some code that I forgot in the previous commit.
svn path=/trunk/; revision=74166
2017-03-13 21:21:50 +00:00
Giannis Adamopoulos
62a543313a [EXPLORER] - CTrayWindow: Implement handling WM_NCCALCSIZE to get rid of the three unneeded borders when themes are enabled and the taskbar is not locked. Use GetWindowDC to draw the grip properly. Misc size fixes. Patch by Sylvain Deverre with fixes by me. CORE-9668
svn path=/trunk/; revision=74165
2017-03-13 21:14:15 +00:00
Giannis Adamopoulos
832d0fddb9 [SHELL32] -Fix redrawing the desktop when its size changes. This was broken in 72834.
svn path=/trunk/; revision=74164
2017-03-13 21:04:35 +00:00
Daniel Reimer
59a44b785e [RAPPS]
Last one... slow like hell, but here it is... Foxit Reader

svn path=/trunk/; revision=74163
2017-03-13 19:28:09 +00:00
Daniel Reimer
7a81d8995f [RAPPS]
... welcome back WinXP support.

svn path=/trunk/; revision=74162
2017-03-13 19:09:07 +00:00
Daniel Reimer
f71facb90a [RAPPS]
Add "TortoiseSVN" in "ReactOS App Manager"
CORE-11748 #resolve #comment Added, thx ^^
Add NET framework 4.0 to RAPPS
CORE-11523 #resolve #comment Added, thx ^^
[RAPPS-DB] UltraVNC 1.2.1.0 link is dead
CORE-11642 #resolve #comment Added, thx ^^
And Fixed LibreOffce d/l again...

svn path=/trunk/; revision=74161
2017-03-13 18:38:09 +00:00
Giannis Adamopoulos
c6b55bf950 {EXPLORER] -Fix gcc build.
svn path=/trunk/; revision=74160
2017-03-13 13:19:12 +00:00
Giannis Adamopoulos
9c8343f170 [EXPLORER] -Remove the old way that the start button was painted. Keep some very simple fallback code in case the text couldn't be loaded or when the optimal size can't be determined.
svn path=/trunk/; revision=74159
2017-03-13 13:07:55 +00:00
Robert Naumann
7eee4d8436 [EXPLORER] use a checkmark instead of a radio button for the "Lock the taskbar" option. CORE-12760 #resolve
svn path=/trunk/; revision=74158
2017-03-13 10:36:46 +00:00
Eric Kohl
7fee8ebabe [NTOS:OB]
- Allocate all of the kernel objects security descriptor and the dos devices security descriptor from the paged pool, instead of just the ACLs.
- Replace special security descriptor free routines by calls to ExFreePoolWithTag.
- Replace the TAG_OB_DIR_SD by TAG_SD.

svn path=/trunk/; revision=74157
2017-03-13 00:10:23 +00:00
Hermès Bélusca-Maïto
89e9101a9b [FASTFAT]: Fix an "error C4700: uninitialized local variable 'Entry' used" that is caught by MSVC 2010 (that pointed out a genuine bug), but mysteriously unseen by MSVC 2012+, who knows why...
svn path=/trunk/; revision=74156
2017-03-12 18:25:21 +00:00
Hermès Bélusca-Maïto
82ed3d127f [FASTFAT]: Fix compilation under MSVC 2010 (1/2).
svn path=/trunk/; revision=74155
2017-03-12 18:11:00 +00:00
Hermès Bélusca-Maïto
ed384844a1 [HOST-TOOLS]: Add isohybrid to the list of host-tools (for NEW-BUILD scenario).
[BOOT]: Add experimental "isohybrid_bootcd(regtest)/livecd/hybridcd" targets to build patched "ISO-Hybrid" (i.e. USB-flashable) ISOs using the isohybrid tool.
CORE-12648

svn path=/trunk/; revision=74154
2017-03-12 17:43:12 +00:00
Eric Kohl
00ce056206 [POWERCFG]
Replace 'CONTROL ... "Button", BS_AUTOCHECKBOX ...' by 'AUTOCHECKBOX'.

svn path=/trunk/; revision=74153
2017-03-12 14:55:54 +00:00
Eric Kohl
87b1008e63 [MMSYS]
Convert all CHECKBOXes to AUTOCHECKBOXes.

svn path=/trunk/; revision=74152
2017-03-12 14:06:28 +00:00
Giannis Adamopoulos
59aefe6216 [BROWSEUI] -CExplorerBand: Stub QueryService method and set the site of the context menu so as to let the context menu find the SID_IShellBrowser when the open menu item is clicked. CORE-11783
svn path=/trunk/; revision=74151
2017-03-12 09:48:25 +00:00
Giannis Adamopoulos
2ae045e8a1 [COMCTL32] -Implement sending the BCN_HOTITEMCHANGE notification.
svn path=/trunk/; revision=74150
2017-03-12 00:00:40 +00:00
Giannis Adamopoulos
301c476074 [COMCTL32] -Fix some tests regarding how the v6 buttons gets repainted.
svn path=/trunk/; revision=74149
2017-03-11 13:42:29 +00:00
Giannis Adamopoulos
395c541573 [COMCTL32_APITEST] -Add one more test.
svn path=/trunk/; revision=74148
2017-03-11 13:41:03 +00:00
Giannis Adamopoulos
971c0bc040 [COMCTL32_APITEST] -Add a couple more tests.
svn path=/trunk/; revision=74147
2017-03-11 13:23:49 +00:00
Giannis Adamopoulos
ec2450447a [COMCTL32_APITEST] -Add tests for the BST_HOT state.
svn path=/trunk/; revision=74146
2017-03-10 22:46:35 +00:00
Giannis Adamopoulos
7e6dc5a06d [COMCTL32_APITEST] -Get rid of some hardcoded values.
svn path=/trunk/; revision=74145
2017-03-10 22:17:26 +00:00
Giannis Adamopoulos
0feb059c77 [UXTHEME] -Add tests for SetWindowTheme to test the behavior that was changed in r74038.
svn path=/trunk/; revision=74144
2017-03-10 17:56:18 +00:00
Sebastian Gasiorek
0b0e9bd364 [DXG] Implement DdAllocateObject, DdFreeObject, DdGetFreeHandle, DdHmgAlloc, DdHmgFree CORE-4490
svn path=/trunk/; revision=74143
2017-03-10 17:51:20 +00:00
Sebastian Gasiorek
c6af963e8d [NTUSER] Lock before getting DesktopDC. Fixes crash during loading DirectX CORE-7733
svn path=/trunk/; revision=74142
2017-03-10 16:33:45 +00:00
Giannis Adamopoulos
29bf877001 [COMCTL32] -Add lots of tests for the messages that are sent when the button is painted due to the mouse entering and leaving the button.
svn path=/trunk/; revision=74141
2017-03-10 15:32:32 +00:00
Hermès Bélusca-Maïto
baa9ecf7e8 [SYSSETUP]: Translations update.
svn path=/trunk/; revision=74140
2017-03-09 23:08:39 +00:00
Hermès Bélusca-Maïto
4f6e241a71 [NETSHELL]: Fix the height of some dialog boxes.
svn path=/trunk/; revision=74139
2017-03-09 22:42:29 +00:00
Hermès Bélusca-Maïto
6073c0f854 [NETSHELL][SYSSETUP]: Revert r74134 as it's not the correct fix for what I wanted to improve.
svn path=/trunk/; revision=74138
2017-03-09 22:39:26 +00:00
Sebastian Gasiorek
5f624ba435 [WIN32SS] Allocate memory for EDD_DIRECTDRAW_GLOBAL while creating PDEV (partially fixes CORE-7733)
[SDK] Update EDD_DIRECTDRAW_GLOBAL structure

svn path=/trunk/; revision=74137
2017-03-09 21:03:47 +00:00
Hermès Bélusca-Maïto
b1b42795a9 [COMCTL32]: comctl32/propsheet: Diverse UI fixes:
- Draw static text elements with a transparent background, so that they acquire the correct background color of the wizard window.
- Modify the check for the header bitmap, as the header's hbmHeader is initialized also if the flag PSH_HEADER but not PSH_USEHBMHEADER is set (see function PROPSHEET_LoadWizardBitmaps).
- Add a check for header's hbmWatermark so that the watermark is drawn only when a valid bitmap handle is present.
- Fix a copy-pasta error when drawing the header's subtitle.

CORE-12912 #comment Patch for the wizard visual problem sent upstream.
CORE-12823

svn path=/trunk/; revision=74136
2017-03-09 20:30:16 +00:00
Hermès Bélusca-Maïto
5ea4ffbcaf [i8042prt]: Add yet another Dell Latitude hack, (for D810 this time). These Dell laptops undeniably have a peculiar init way that our driver doesn't support naturally.
CORE-12899

svn path=/trunk/; revision=74135
2017-03-09 16:43:25 +00:00
Hermès Bélusca-Maïto
94a9d5ba0b [NETSHELL][SYSSETUP]: Enlarge a bit the height of the setup wizard pages, to not have the bottom text cropped. Fixes the appearance of them when being run from Windows.
svn path=/trunk/; revision=74134
2017-03-09 16:39:43 +00:00
Eric Kohl
4358ac07a7 [NTOS:OB]
Replace calls to ExFreePool by calls to ExFreePoolWithTag.

svn path=/trunk/; revision=74132
2017-03-08 22:27:06 +00:00
Eric Kohl
5383e90959 [SHUTDOWN]
shutdown -t causes crash
Patch by Michael Fritscher.
CORE-12886 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74131
2017-03-08 22:22:21 +00:00
Giannis Adamopoulos
48c9363c36 [UXTHEME_APITEST] -Add a test to show that CloseThemeData doesn't use exception handling.
svn path=/trunk/; revision=74128
2017-03-08 15:15:19 +00:00
Giannis Adamopoulos
5855a53b74 [UXTHEME] -Fix most new tests for DrawThemeParentBackground. Hackfix CloseThemeData.
svn path=/trunk/; revision=74127
2017-03-08 15:08:56 +00:00
Giannis Adamopoulos
761c932726 [UXTHEME_APITEST] -Add one more test for DrawThemeParentBackground.
svn path=/trunk/; revision=74126
2017-03-08 14:54:02 +00:00
Giannis Adamopoulos
eb86e8afd5 [UXTHEME_APITEST] -Add more tests for DrawThemeParentBackground.
svn path=/trunk/; revision=74125
2017-03-08 14:46:36 +00:00
Giannis Adamopoulos
93bbc9d548 [USER32_APITEST] -Move the helper functions in the common include directory
[UXTHEME_APITEST] -Use the helper functions to test the messages sent by DrawThemeParentBackground

svn path=/trunk/; revision=74123
2017-03-07 22:29:48 +00:00
Giannis Adamopoulos
f7b5561d60 [COMCTL32] -Buttons with the BS_PUSHLIKE style are drawn as if they were BS_PUSHBUTTON. Fixes the appearance of buttons in the advanced appearance dialog.
svn path=/trunk/; revision=74120
2017-03-06 21:57:10 +00:00
Hermès Bélusca-Maïto
f606ee89dd [KERNEL32]: Check for NULL pointer specified to lstrlenA/W and return null length, as specified in the MSDN doc and checked by the tests of r74118.
This should remove the unwanted 1st-chance exceptions caught when debugging Office 2010 installation, that calls from time to time lstrlen with NULL pointers.

svn path=/trunk/; revision=74119
2017-03-06 19:17:53 +00:00
Hermès Bélusca-Maïto
c5dde308bf [KERNEL32_APITEST]: Add basic tests for lstrlenA/W, focusing on its special handling of the NULL pointer.
We detect that the NULL pointer is handled separately because no exception is generated, contrary to when the function is called with truly invalid pointers.
I thank Mark for having mentioned the vectored exception handling to me, needed to catch first-chance exceptions.

svn path=/trunk/; revision=74118
2017-03-06 19:14:27 +00:00
Hermès Bélusca-Maïto
80db48ee6f [PSDK][NDK]: Add AddVectoredContinueHandler, RemoveVectoredContinueHandler, and RtlRemoveVectoredExceptionHandler, RtlAddVectoredContinueHandler and RtlRemoveVectoredContinueHandler to our headers.
svn path=/trunk/; revision=74117
2017-03-06 19:04:17 +00:00
James Tabor
e0eab0e64c [NtUser]
- Remove scroll bar search that sends another WM_NCCALCSIZE message. Use wine as an example. See CORE-12827.

svn path=/trunk/; revision=74116
2017-03-06 18:28:03 +00:00
Colin Finck
8e993c1a64 [MKISOFS]
Update mkisofs to schily-2017-02-16, which comes with the following fixes:
- Fix null termination in libschily's Win32 implementation of opendir (submitted upstream by me).
  The bug was triggered when building an ISO from a directory instead of a graft-points (.lst) file.
- Prevent -duplicates-once from being used together with -cache-inodes. These options exclude each other.

svn path=/trunk/; revision=74112
2017-03-05 22:54:33 +00:00
Amine Khaldi
bb24e3a5e4 [OLEAUT32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74111
2017-03-05 21:51:44 +00:00
Amine Khaldi
8a80051169 [OLEAUT32] Sync with Wine Staging 2.2. CORE-12823
43c59f0 oleaut32: Accept DISP_E_PARAMNOTFOUND for missing optional parameters in ITypeInfo::Invoke implementation. (v3)
a4f9840 oleaut32: Fix calling function with instance and VARIANT return type. (v2)
78ee7f5 oleaut32: Standardize the heap_xxx() functions.
9e54ae7 oleaut32: Return proper interface pointers.
655af6d oleaut32: Fix OleTranslateColor spec file entry.

svn path=/trunk/; revision=74110
2017-03-05 21:50:37 +00:00
Amine Khaldi
b400ac7ae6 [RICHED20_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74109
2017-03-05 21:44:19 +00:00
Amine Khaldi
a142fcc929 [RICHED20] Sync with Wine Staging 2.2. CORE-12823
440b921 riched20: Return proper interface pointers.
e63cea5 riched20: A spelling fix in a comment.
9f37f6a riched20: Check for NULL in fnTextSrv_TxSetText and add test.

svn path=/trunk/; revision=74108
2017-03-05 21:43:39 +00:00
Amine Khaldi
e007edf028 [INETCOMM_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74107
2017-03-05 21:37:58 +00:00
Amine Khaldi
54297235d4 [INETCOMM] I guess I asked too much from svn when I renamed the existing file and then added a new one with the same name as the old.
svn path=/trunk/; revision=74106
2017-03-05 21:36:38 +00:00
Amine Khaldi
8e07a66b68 [INETCOMM] Sync with Wine Staging 2.2. CORE-12823
51e1a08 inetcomm: Return S_FALSE if no data is returned in IInternetProtocol::Read.
0672bfa inetcomm: Added support for decoding quoted-printable data.
07af9d0 inetcomm: Added mhtml binding tests.
cf8e259 inetcomm: Added support for binding mhtml protocol handler.
3f644cb inetcomm: Added IInternetProtocolInfo::CombineUrl implementation.
37792a2 inetcomm: Added MimeOleObjectFromMoniker semi-stub implementation.
242cbb1 inetcomm: Added tests reading MHTML page as MIME message.
eb0bd22 inetcomm: Removed unneeded type check in init_content_type.
56dc246 inetcomm: Read content encoding from MIME header.
dec243f inetcomm: Don't include headers in data stream in create_sub_body.
3ccba10 inetcomm: Properly handle boundary in the beginning of body stream in create_body_offset_list.
9c01a94 inetcomm: Use relative seek in copy_headers_to_buf.
915acd6 inetcomm: Added support for decoding base64 in IMimeBody::GetData.
0b80666 inetcomm: Return a new instance of stream in IMimeBody::GetData.
393512d inetcomm: Don't restore base stream position in sub stream Read.
bb5056e inetcomm: Moved sub_stream_t implementation before MimeBody implementation.
a1d0c6d inetcomm: Added COM aggregation support to MimeHtmlProtocol object.
fe3e5b9 inetcomm: Added IInternetProtocolInfo stub implementation.
6832273 inetcomm: Added MimeHtmlProtocol stub implementation.
d5d9aa3 inetcomm: Register mhtml protocol handler.

svn path=/trunk/; revision=74105
2017-03-05 21:33:13 +00:00
Amine Khaldi
48277d058b [PSDK] Update mimeole.idl. CORE-12823
svn path=/trunk/; revision=74104
2017-03-05 21:29:40 +00:00
Eric Kohl
c4b8caf365 [NTOS:OB]
- Define and use a pool tag for directory security descriptors.
- Use a custom security descriptor to create the KernelObjects directory.

svn path=/trunk/; revision=74103
2017-03-05 21:28:10 +00:00
Amine Khaldi
a1488a0f38 [CRYPT32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74102
2017-03-05 21:22:31 +00:00
Amine Khaldi
9b06dff0d9 [CRYPT32] Sync with Wine Staging 2.2. CORE-12823
a7d1d77 crypt32: Recognize sha256/384/512 KEY OIDs.
e376123 crypt32: Remove unused parameter and dead code.
254eb21 crypt32: Fix wrong Base64 trailer WCHAR constants.
a2f2de1 crypt32: CryptStringToBinary accepts any header.
552820a crypt32: Fix Base64 issues in CryptStringToBinary.
e353ab6 crypt32: Base64 header requires a space.

svn path=/trunk/; revision=74101
2017-03-05 21:21:36 +00:00
Amine Khaldi
36c77a1616 [PSDK] Update wincrypt.h. CORE-12823
svn path=/trunk/; revision=74100
2017-03-05 21:19:15 +00:00
Amine Khaldi
3606086387 [GDIPLUS_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74099
2017-03-05 21:16:17 +00:00
Amine Khaldi
687ee5ded5 [GDIPLUS] Sync with Wine Staging 2.2. CORE-12823
818b141 gdiplus: Add support for more image color formats.
f8f0a35 gdiplus: Implement GdipInitializePalette. (v2)
973bba9 gdiplus: Ignore an externally set DC clipping region.
650b8d0 gdiplus: Ignore an externally set DC origin.
e100661 gdiplus: Add GdipCreateHBITMAPFromBitmap tests when bitmap bits are locked.
b58276a gdiplus: Reimplement GdipCreateHBITMAPFromBitmap so it can work on locked bitmaps.
5673d82 gdiplus: GpBitmap can be only locked once, get rid of numlocks field.
0eaaa15 gdiplus: Make GpBitmap->bitmapbits access thread safe.
4e685eb gdiplus: Added GdipGetCustomLineCapType().
36bb9d9 gdiplus: Fix some spec file entries.
f870708 gdiplus: Make some GdipDraw*Path() functions static.
046fc19 gdiplus: Fix memory leak in format_string_callback error path.
5018594 gdiplus: Create the FontFamily before checking for duplicates.
0d6a4b0 gdiplus: Don't include rotated fonts in the installed font collection.

svn path=/trunk/; revision=74098
2017-03-05 21:15:16 +00:00
Amine Khaldi
814dd8031a [PSDK] Update wincodec.idl. CORE-12823
svn path=/trunk/; revision=74097
2017-03-05 21:08:10 +00:00
Amine Khaldi
9d0f4183f7 [PSDK] Update gdiplusenums.h and gdiplusflat.h. CORE-12823
svn path=/trunk/; revision=74096
2017-03-05 21:06:16 +00:00
Amine Khaldi
85353f2fba [OLE32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74095
2017-03-05 21:03:59 +00:00
Amine Khaldi
41772c8273 [OLE32] Sync with Wine Staging 2.2. CORE-12823
23607d0 ole32: Implement returning a name in IEnumSTATPROPSTG.
5cf1db5 ole32: Support reading VT_BOOL, VT_R8 and VT_I8 into propery storage.
591c9c8 ole32: Correctly parse unicode property storage dictionaries.
93a8ede ole32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
182fad8 ole32: Call GetClipboardFormatName with the correct parameters.
e31dd0f ole32: Use a HWND_MESSAGE window for the clipboard.
c85eaae ole32: Only trace a clipboard format name if it has one.
77e566a ole32: Don't set zero-size clipboard data, this no longer works.

svn path=/trunk/; revision=74094
2017-03-05 21:03:00 +00:00
Amine Khaldi
74568a6e4d [COMDLG32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74093
2017-03-05 20:57:57 +00:00
Amine Khaldi
6993f86ef3 [COMDLG32] Sync with Wine Staging 2.2. CORE-12823
e07d20f comdlg32: Don't crash if an IShellFolder could not be created.
bd1b3c1 comdlg32: Use localized "Path does not exist" string.
1707df3 comdlg32: Delay OleInitialize() until after file dialog window is created.
6c4aaf7 comdlg32: Always use original Open File dialog template.
eff2ecc comdlg32: Avoid some superfluous pointer casts.

svn path=/trunk/; revision=74092
2017-03-05 20:57:05 +00:00
Amine Khaldi
12b5c1dd77 [COMCTL32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74091
2017-03-05 20:53:49 +00:00
Amine Khaldi
9ce65ea71e [COMCTL32] Sync with Wine Staging 2.2. CORE-12823
cc055c4 comctl32: Add support for PSPCB_ADDREF/PSPCB_RELEASE callback notifications. (v2)
83cde06 comctl32/propsheet: Implement PSM_SETHEADERSUBTITLE.
ce9c06b comctl32/propsheet: Implement PSM_SETHEADERTITLE.
1a750f7 comctl32/propsheet: Add helpers to do string duplication.
14a6c98 comctl32/pager: Don't block window size changes.
a6661ba comctl32/propsheet: Added PSM_INSERTPAGE implementation.
34dd326 comctl32/propsheet: Only use header bitmap when asked for it.
6eafebe comctl32/propsheet: Force wizard header if any of pages has title/subtitle.
70c9a96 comctl32: Fix some more spec file entries.
2dd0fb8 comctl32: Correctly set the colour table for ILC_COLOR4 and ILC_COLOR8 imagelists.
a0e73a1 comctl32/syslink: Don't use exported StrCmpNIW().
970029b comctl32/toolbar: Fix TB_SETDRAWTEXTFLAGS handler.
99913e8 comctl32: Fix some spec file entries.
9d404dd comctl32/propsheet: Double size of a template buffer passed to PSCB_PRECREATE.
bb1d68e comctl32/trackbar: Fix TBM_SETRANGEMAX handling when new limit is less than current min boundary.
26067cc comctl32/toolbar: Protect from NULL pointer access in TB_GETBUTTONINFOW handler.
a6aabe0 comctl32/trackbar: Update thumb unconditionally on TBM_SETTICFREQ.
c7c8994 comctl32: Recompute the text width if necessary.
3ed6ba5 comctl32: Set the text and bkgnd colours to the default before the item pre-paint notification.
8915404 comctl32: Use wine_dbgstr_point in TRACES.

svn path=/trunk/; revision=74090
2017-03-05 20:52:24 +00:00
Amine Khaldi
07ecda8b60 [PSDK] Add missing PSPCB_ADDREF. CORE-12823
svn path=/trunk/; revision=74089
2017-03-05 20:49:12 +00:00
Amine Khaldi
2d709a011a [MSI_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74088
2017-03-05 20:45:43 +00:00
Amine Khaldi
4630534773 [MSI] Sync with Wine Staging 2.2. CORE-12823
fe50dbf msi: Do not sign extend after multiplying.
c659222 msi: Fix some spec file entries.
167de42 msi: Make reg_get_{multi}sz() static.
f5e4dad msi: Fix handling of NULL buffer in MsiGetProductPropertyW() (Coverity).
3b5b3ef msi: Fix MSIREG_OpenUserComponentsKey and MSIREG_DeleteUpgradeCodesKey for Wow64.
5ac0242 msi: Correctly size packagecode as it's an unsquashed guid.

svn path=/trunk/; revision=74087
2017-03-05 20:45:25 +00:00
Amine Khaldi
00d5ff1307 [RPCRT4_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74086
2017-03-05 20:43:17 +00:00
Amine Khaldi
f2ad28ea2d [RPCRT4] Sync with Wine Staging 2.2. CORE-12823
b85c2f7 rpcrt4: Fix some spec file entries.
042b41d rpcrt4: Avoid potential overflow in rpcrt4_protseq_ncacn_np_open_endpoint.
c32cd11 rpcrt4: Acquire new credential handle for each connection.
da05dfd rpcrt4: Store security package name in rpc_server_registered_auth_info.
f8450fa rpcrt4: Handle NULL binding in RpcBindingInqAuthClient{,Ex}.

svn path=/trunk/; revision=74085
2017-03-05 20:42:41 +00:00
Giannis Adamopoulos
8832faa915 [UXTHME] Implement drawing themed text with shadows.
svn path=/trunk/; revision=74083
2017-03-05 19:34:01 +00:00
Thomas Faber
f59a44447a [FREELDR]
- "ReactOS Medium" isn't a trademark or anything, no need to capitalize it

svn path=/trunk/; revision=74077
2017-03-05 11:24:31 +00:00
Giannis Adamopoulos
504b19f120 [COMCTL32] -Slightly improve the hack.
svn path=/trunk/; revision=74076
2017-03-05 10:26:57 +00:00
Giannis Adamopoulos
cd690901ea [COMCTL32] -Remove a debug print that is no longer needed.
svn path=/trunk/; revision=74075
2017-03-05 09:42:29 +00:00
Giannis Adamopoulos
f3a00c2f57 [COMCTL32] - A button with the style BS_DEFPUSHBUTTON is drawn as defaulted instead of normal.
svn path=/trunk/; revision=74074
2017-03-05 09:35:12 +00:00
Giannis Adamopoulos
c27717bac7 [COMCTL32] -Make the lautus hack a bit more strict.
svn path=/trunk/; revision=74073
2017-03-05 09:14:12 +00:00
Giannis Adamopoulos
2e5058f3bf [COMCTL32] Ha^^Fix the size of the start button for lautus so as it gets the same size with our shell in ros and windows.
svn path=/trunk/; revision=74072
2017-03-05 09:09:30 +00:00
Hermès Bélusca-Maïto
71c5ed5c2f [USER32]: Use RtlInitEmptyUnicodeString where needed. Fix CID 1401230 and CID 701428 in the process.
svn path=/trunk/; revision=74071
2017-03-05 01:20:40 +00:00
Hermès Bélusca-Maïto
254b1fbb03 [USER32]: Trim trailing whitespace + few code style changes only.
svn path=/trunk/; revision=74070
2017-03-05 01:19:07 +00:00
Thomas Faber
a8d5478895 [NTOS:LPC]
- Implement the early exit case (e.g. on connection refused) in NtAcceptConnectPort
CORE-12145

svn path=/trunk/; revision=74069
2017-03-05 00:55:50 +00:00
Hermès Bélusca-Maïto
cc3b08af40 [WS2_32]
- Fix pointers verification in WSALookupServiceNextW and WSALookupServiceNextA;
- In WSALookupServiceNextA: Perform extra checks to see whether we failed the first local buffer allocation, and if so, retrieve the needed size by calling a first time WSALookupServiceNextW, then reallocate the temp buffer and redo a WSALookupServiceNextW call (if it still fails, then we bail out).
  CID 513448.

svn path=/trunk/; revision=74068
2017-03-05 00:40:22 +00:00
Hermès Bélusca-Maïto
abc2d4d228 [WS2_32]: Fix the crash in ws2_32 reported in CORE-12852, that happens when opening e.g. Word 2010 for the first time (when it asks for registration):
- Check whether WsNcLoadProvider really succeeded in loading a provider in WsNcGetCatalogFromProviderId, and return appropriate error code.
- In WsNqLookupServiceBegin, initialize CatalogEntry to NULL prior to calling WsNcGetCatalogFromProviderId, and check for success or failure of WsNqAddProvider (and fail in accordance).

svn path=/trunk/; revision=74067
2017-03-05 00:24:08 +00:00
Hermès Bélusca-Maïto
0989caed38 [WS2_32]
- Let require explicit semicolons when using the Ws***(Un)Lock macros (and thus remove the semicolon from their definition).

svn path=/trunk/; revision=74066
2017-03-04 23:55:30 +00:00
Giannis Adamopoulos
6e64a5904a [UXTHEME]: Handle WM_NCACTIVATE only when the window has a themed caption (it's not like windows with classic borders and no caption need to be redrawn to reflect that they get or lose the active state). Fixes the classic border drawn on deactivation in the taskbar. Found by Sylvain Deverre. CORE-12887
svn path=/trunk/; revision=74065
2017-03-04 22:33:21 +00:00
Mark Jansen
80c4567edf [NTDLL] Implement some basic shim engine integration. CORE-10368
svn path=/trunk/; revision=74064
2017-03-04 20:34:36 +00:00
Mark Jansen
ba1534d005 [NTDLL] Fix RtlDecodeSystemPointer for usage inside ntdll. CORE-10368
svn path=/trunk/; revision=74063
2017-03-04 20:32:12 +00:00
Mark Jansen
0adcb4d02a [APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia.
svn path=/trunk/; revision=74062
2017-03-04 20:29:46 +00:00
Mark Jansen
985555c58f [APPHELP_APITEST] Check which parts of apphelp accept NT paths
svn path=/trunk/; revision=74061
2017-03-04 20:27:39 +00:00
Eric Kohl
6c5070eb34 [NTOS:CM]
CmpSecurityMethod:
- Lock and unlock the Hive and the KCB.
- Fail, if we try to access a key that has been marked for deletion.

svn path=/trunk/; revision=74060
2017-03-04 19:48:27 +00:00
Thomas Faber
fd343d21dd [USER32]
- Fix overflow check in SetScrollRange. CID 731535
CORE-12763 #resolve

svn path=/trunk/; revision=74059
2017-03-04 19:02:30 +00:00
Thomas Faber
3df8b3ccc8 [USER32_APITEST]
- Add a test for SetScrollRange
CORE-12763

svn path=/trunk/; revision=74058
2017-03-04 18:34:35 +00:00
Robert Naumann
5641391fa5 [DESK] Fix Font Smoothing Dropdown Field. Patch by Katayama Hirofumi MZ CORE-12568
svn path=/trunk/; revision=74057
2017-03-04 18:12:42 +00:00
Thomas Faber
2c49ea705c [ACPICA]
- Update to version 20170303
CORE-12885

svn path=/trunk/; revision=74056
2017-03-04 16:54:26 +00:00
Thomas Faber
95cf9fc991 [BOOTDATA]
- Support integrating Intel's DC21x4 network card driver (for Hyper-V/VirtualPC) into our ISOs until we have our own.
CORE-8724

svn path=/trunk/; revision=74055
2017-03-04 16:29:51 +00:00
Eric Kohl
3625064e10 [NTOS:OB]
Create a custom security descriptor for the global DosDevices directory.

svn path=/trunk/; revision=74054
2017-03-04 16:02:06 +00:00
Thomas Faber
16b4b0a874 [NTOS:PNP]
- Make device instance paths unique if necessary (by adding the parent ID prefix), regardless of the return status from IRP_MN_QUERY_ID/BusQueryInstanceID. Support for this IRP is optional in most cases, and a failure status just indicates no instance id information is needed by the driver stack.
Major thanks to Vadim Galyant for debugging this and identifying the root cause.
CORE-12732 CORE-12818 CORE-12745 CORE-12733 CORE-12717 CORE-12735

svn path=/trunk/; revision=74053
2017-03-04 16:01:59 +00:00
Thomas Faber
ab14ba211c [NTOS:PNP]
- Use UNICODE_STRINGs in IopCreateDeviceInstancePath instead of messing around with unsafe string functions and stack buffers

svn path=/trunk/; revision=74052
2017-03-04 15:17:30 +00:00
Thomas Faber
bf594249dd [FASTFAT]
- Avoid use after free in vfatDestroyFCB

svn path=/trunk/; revision=74051
2017-03-04 14:48:05 +00:00
Eric Kohl
81b072cc64 [NTOS:SE]
Add a missing ACE(SeAliasAdminsSid / GENERIC_ALL) to the SePublicDefaultDacl ACL. This fixes a kmtest:ObSecurity failure. 

svn path=/trunk/; revision=74050
2017-03-04 14:38:13 +00:00
Thomas Faber
4c03c1a55a [NTOS:PNP]
Fix IopGetParentIdPrefix:
- Do not include null terminator in UNICODE_STRING::Length
- Use pool tagging
- Use strsafe printf
- Avoid a magic number

svn path=/trunk/; revision=74049
2017-03-04 13:50:55 +00:00
Thomas Faber
54688094ac [NTOS:PNP]
- Improve use of local variables in IopCreateDeviceInstancePath and IopActionInterrogateDeviceStack
- Improve debug prints in IopCreateDeviceInstancePath. By Vadim Galyant
- Fix formatting in IopGetParentIdPrefix

svn path=/trunk/; revision=74048
2017-03-04 13:20:25 +00:00
Pierre Schweitzer
3676af8656 [FASTFAT]
When un/locking a volume, also handle VPB state

svn path=/trunk/; revision=74047
2017-03-04 11:34:13 +00:00
Kamil Hornicek
a2bf0e2023 [WIN32K]
- GreGetDIBitsInternal:
- Prevent an access violation in DIB_FreeConvertedBitmapInfo by initializing the bit count before calling DIB_ConvertBitmapInfo and setting clrUsed.
- Validate input parameters and return correct values - only return number of scan lines if bits are not null and bpp is not zero. Otherwise return 1 on success.
- We now pass more gdi32:GetDIBits and gdi32:bitmap tests.
CORE-9270

svn path=/trunk/; revision=74046
2017-03-04 10:37:00 +00:00
Hermès Bélusca-Maïto
f752d4ffda [WS2_32]
- Turn the "!memcmp(ptr1, ptr2, sizeof(GUID))" into IsEqualGUID(ptr1, ptr2) macro calls (aka. make code readable);
  this also allowed me to discover a logical bug in the GUID comparison in WsNcUpdateNamespaceList.
- Fix few comments, and rename some goto labels to make their meaning clearer (they are not only taken for error code paths,
  but also on regular path, for cleanup before returning from the function).
CORE-12880

svn path=/trunk/; revision=74045
2017-03-04 01:09:28 +00:00
Hermès Bélusca-Maïto
99e8525cb3 [WS2_32]: More fixes:
- Perform success checks in WsAsyncCheckAndInitThread, in particular, check whether Context is correctly allocated,
  and check whether the WsAsyncThread was correctly started up. In case of failure, perform the necessary cleanup,
  including calling WSACleanup().
- Check also the returned error code of WSAStartup. Fixes CID 1101934.
- Fix logic mess-up in WsNqLookupServiceNext when updating NsQuery->ActiveProvider;
- Fix copy-pasta errors (using 'lpafpProtocols' instead of 'lpcsaBuffer') in CopyQuerySetIndirectA and CopyQuerySetIndirectW,
  that triggered CID 513446 + CID 513447 (CopyQuerySetIndirectA), and CID 513444 + CID 513445 (CopyQuerySetIndirectW).
- Check for 'lpdwBufferLength' pointer validity in WSALookupServiceNextW;
- Check for 'lpdwBufferLength' and 'lpqsResults' pointers validity in WSALookupServiceNextA, and dereference lpdwBufferLength only afterwards.
- Check for return value of RegCreateKeyEx in WsOpenRegistryRoot(), fixes CID 715923.

svn path=/trunk/; revision=74044
2017-03-04 00:35:02 +00:00
Hermès Bélusca-Maïto
ba1cd55e86 [WS2_32]
- Check for NULL pointers after HeapAlloc calls, in the constructor functions, before initializing members of created objects;
- Add a bunch of missing HeapFree in the corresponding destructor functions.
  In particular, fix the root cause of CID 1401152 in WsTpDelete: missing HeapFree call.
CORE-12880

svn path=/trunk/; revision=74043
2017-03-03 23:47:26 +00:00
Hermès Bélusca-Maïto
0386475fc9 [WS2_32]: Addendum to r74041: Forgot these changes too. CORE-12880
svn path=/trunk/; revision=74042
2017-03-03 23:34:47 +00:00
Hermès Bélusca-Maïto
019a8d2be6 [WS2_32]: Cosmetic changes first, before real fixes - CORE-12880 :
- Use IsListEmpty where needed;
- Initialize NextEntry using Catalog->ProtocolList after the lock on the catalog has been acquired;
- Rearrange WsNqLookupServiceNext to reduce the code indent level; also, convert the construct "if (var) { do { ... } while (var); }" into a mere "while (var) { ... }";
- WsNqPreviousProvider: the "next" provider is the previous one...;
- WsNqAddProvider: Use a more standard name for the boolean return value;
- Fix the annotation of MapUnicodeQuerySetToAnsi;
- Factor out setting the SetLastError WSALookupServiceBeginA.

svn path=/trunk/; revision=74041
2017-03-03 23:31:32 +00:00
Robert Naumann
800e1d3803 [FONTS] Add Libre Franklin Font v4.0.15
[USETUP] Add Font Substitutions for Franklin Gothic and MS Trebuchet CORE-12878 CORE-12877

Now Luna uses better fonts but the font styles are still not used.

svn path=/trunk/; revision=74040
2017-03-03 22:07:00 +00:00
Kamil Hornicek
ee917ebd77 [SHELL32]
- Always set the default value in SetDefaultHandler, otherwise it's impossible to create a default association if the key for some reason already exists. This is consistent with what Windows does.

svn path=/trunk/; revision=74039
2017-03-03 16:20:03 +00:00
Giannis Adamopoulos
c1bfc56213 [UXTHEME]: Use SendMessage to notify windows that the theme has changed. This needs a proper test. Makes it possible for SetWindowTheme with empty parameters to have effect immediately in the same way the tests for BCM_GETIDEALSIZE use it. Fixes the BCM_GETIDEALSIZE tests when run with an active theme.
svn path=/trunk/; revision=74038
2017-03-03 14:35:19 +00:00
Giannis Adamopoulos
bf0e8e0bcb [COMCTL32]: Fix all tests for BCM_GETIDEALSIZE that we have so far. (It still returns a wrong result for the start button with lautus).
svn path=/trunk/; revision=74037
2017-03-03 13:56:49 +00:00
Giannis Adamopoulos
b3ba96d405 [COMCTL32_APITEST]: Simplify tests to not depend on internals of CreateWindow (creating buttons as top level windows and testing their sizes complicates stuff without reason).
svn path=/trunk/; revision=74036
2017-03-03 13:54:56 +00:00
Giannis Adamopoulos
ae5c6647eb [COMCTL32_APITEST]: Add a few more tests.
svn path=/trunk/; revision=74035
2017-03-03 11:30:06 +00:00
Giannis Adamopoulos
23cfe6bc43 [COMCTL32_APITEST]: Make some tests more strict and add tests for all button types.
svn path=/trunk/; revision=74034
2017-03-03 11:22:20 +00:00
Hermès Bélusca-Maïto
948cba0848 [WS2_32]: Remove trailing whitespace.
svn path=/trunk/; revision=74033
2017-03-03 00:13:40 +00:00
Mark Jansen
ad0bb95ddd [NTDLL] Some style changes for RtlNtPathNameToDosPathName as suggested by Thomas and Hermes. CORE-12847
svn path=/trunk/; revision=74032
2017-03-02 21:51:22 +00:00
Mark Jansen
5a98df6476 [NTDLL] Add implementation for RtlNtPathNameToDosPathName. CORE-12847 #resolve
svn path=/trunk/; revision=74031
2017-03-02 21:29:38 +00:00
Mark Jansen
fc32eb9533 [NTDLL_APITEST] Add tests for RtlNtPathNameToDosPathName. CORE-12847
svn path=/trunk/; revision=74030
2017-03-02 20:43:09 +00:00
Mark Jansen
2cb19e0bc8 [NTDLL] Implement RtlpEnsureBufferSize. Patch by Hermes Belusca-Maito. CORE-11990
Some small changes by me.

svn path=/trunk/; revision=74029
2017-03-02 20:40:21 +00:00
Mark Jansen
4617ea0c82 [NTDLL_APITEST] Add tests for RtlpEnsureBufferSize. CORE-11990
svn path=/trunk/; revision=74028
2017-03-02 20:38:58 +00:00
Pierre Schweitzer
021ab6e000 [DISK]
Fix size checking for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, and only copy what's possible to fit in the buffer.
Also, make the code a bit more readable.

CORE-12858

svn path=/trunk/; revision=74027
2017-03-02 20:03:55 +00:00
Pierre Schweitzer
2eb3e5db44 [DISK]
Fix return code when buffer is too small, as exposed in r74025.

CORE-12858

svn path=/trunk/; revision=74026
2017-03-02 19:39:07 +00:00
Pierre Schweitzer
04d0e17fdf [KERNEL32_APITEST]
Add tests for DeviceIoControl. These are mainly used to test our storage stack

CORE-12858

svn path=/trunk/; revision=74025
2017-03-02 19:33:25 +00:00
Thomas Faber
240072132d [NTOS:PNP]
- Move generation of the device instance path into its own function

svn path=/trunk/; revision=74024
2017-03-02 13:42:04 +00:00
Thomas Faber
ebc3d8bfbc [NTOS:PNP]
- Avoid memory leaks in IopActionInterrogateDeviceStack. Noticed by Vadim Galyant.
CORE-12732

svn path=/trunk/; revision=74023
2017-03-02 09:39:40 +00:00
Giannis Adamopoulos
b5fd932bef [UXTHEME] -Fix parsing negative integers. Improves the situation of the start button with Lautus.
svn path=/trunk/; revision=74022
2017-03-02 08:24:20 +00:00
Eric Kohl
0448b0da4e [UMPNPMGR]
Fix a property id for a call to NtPlugPlayControl().

svn path=/trunk/; revision=74021
2017-03-01 21:52:20 +00:00
Eric Kohl
fcd6f24ca0 [SCHEDSVC]
Set service status to SERVICE_STOP_PENDING before setting it to SERVICE_STOPPED.

svn path=/trunk/; revision=74020
2017-03-01 21:48:15 +00:00
Eric Kohl
91d6a8f428 [USETUP]
Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74019
2017-03-01 20:46:24 +00:00
Hermès Bélusca-Maïto
41733bc328 [USER32]: Now for the real fix: Initialize lpLibFileName and pCtx in User32CreateWindowEx prior to calling ClassNameToVersion.
This avoid passing invalid parameters to VersionRegisterClass (and subsequent functions) afterwards.
Fix suggested by Mark Jansen, thanks!
CORE-12855

svn path=/trunk/; revision=74018
2017-03-01 19:36:51 +00:00
Hermès Bélusca-Maïto
0366c75f60 [USER32]: Fix formatting in User32CreateWindowEx, no code changes.
svn path=/trunk/; revision=74017
2017-03-01 19:23:27 +00:00
Thomas Faber
b6a16efc88 [NTOS:FORMATTING]
- Fix spacing in IopActionInterrogateDeviceStack. No code changes.

svn path=/trunk/; revision=74016
2017-03-01 19:07:13 +00:00
James Tabor
3238412b08 [NtUser]
- Move functions around.

svn path=/trunk/; revision=74015
2017-03-01 16:51:13 +00:00
Thomas Faber
d25e21c753 [USBSTOR]
- Fix error check in USBSTOR_SelectConfigurationAndInterface. CID 515249

svn path=/trunk/; revision=74014
2017-03-01 13:51:18 +00:00
Thomas Faber
156cf60be5 [NTOS:IO]
- Avoid event leak in NtQueryInformationFile. CID 716584

svn path=/trunk/; revision=74013
2017-03-01 13:10:52 +00:00
Giannis Adamopoulos
29446ab9a9 [COMCTL32] -Add initial implementation for BCM_GETIDEALSIZE and support to draw buttons with image lists. This is still WIP and needs tons of new tests. Crappy themes will be displayed like crap for now.
svn path=/trunk/; revision=74012
2017-03-01 11:49:59 +00:00
Thomas Faber
4e159110ff [ACPICA]
- Update to version 20170119, since the February version needs more work.
CORE-12833 #resolve

svn path=/trunk/; revision=74011
2017-03-01 11:36:19 +00:00
Thomas Faber
0fa558e2b5 [MSACM32]
- Free session driver instance using the correct heap. Fixes crash in msacm32_winetest.
- Remove obsolete diff file

svn path=/trunk/; revision=74010
2017-03-01 10:54:59 +00:00
Thomas Faber
9955015ce3 [MBEDTLS]
- Avoid building unneeded source files
- Style fixes in the CMake file
CORE-12834

svn path=/trunk/; revision=74009
2017-03-01 10:01:14 +00:00
Giannis Adamopoulos
c3fed1277e [COMCTL32_APITEST} -Add some more tests and fix build.
svn path=/trunk/; revision=74008
2017-03-01 09:35:44 +00:00
Giannis Adamopoulos
9aa31f7cb4 [COMCTL32] -These "border sizes" are as good as hardcoded.
svn path=/trunk/; revision=74007
2017-03-01 08:57:25 +00:00
Eric Kohl
f671800441 [FONTVIEW]
Implementation of the install button.
Patch by Baruch Rutman.
Fixes by Eric Kohl.
CORE-7355 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74006
2017-02-28 23:00:19 +00:00
Hermès Bélusca-Maïto
d2f5096281 [NTUSER]: NtUserGetObjectInformation, nIndex == UOI_FLAGS case:
- Capture the ObjectFlags to be set in a local variable,
- Then copy its contents in the mem area pointed by pvInformation *under the SEH block*! This allows:
  * protection if pvInformation is an invalid pointer;
  * avoid to run the "RtlCopyMemory(pvInformation, pvData, nDataSize);" afterwards with pvData == NULL.

svn path=/trunk/; revision=74005
2017-02-28 20:49:37 +00:00
Eric Kohl
eeb2923366 [Fontview]
Unicodify it.
CORE-7355

svn path=/trunk/; revision=74004
2017-02-28 19:33:28 +00:00
James Tabor
69dba98f6b [NtUser]
- Patch to level up scroll bar code, based on mudhead patch. See CORE-12827.

svn path=/trunk/; revision=74003
2017-02-28 17:11:08 +00:00
Amine Khaldi
ca2eacaa6a [WININET_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74001
2017-02-28 15:52:04 +00:00
Amine Khaldi
a44126539b [WININET] Sync with Wine Staging 2.2. CORE-12823
07e3181 wininet: Fix some spec file entries.
725b55d wininet: Get rid of no longer needed INTERNET_INVALID_PORT_NUMBER in get_server.
0d22e43 wininet: Handle INTERNET_INVALID_PORT_NUMBER in HttpOpenRequest.
8c39694 wininet: Changed usage of UrlEscapeW to fit winapi behavior.
b3d12a1 wininet: Canonicalize URL in HttpOpenRequest.
47ff954 wininet: Use return value of sprintf() instead of calling strlen() and simplify code.

svn path=/trunk/; revision=74000
2017-02-28 15:51:01 +00:00
Mark Jansen
6a3bffaeba [APPCOMPAT] Fix a memory leak in a failure case (CID 1401161), a 0-length memset that is detected 3 times (CID 1401069, 1401064, 1401062)
svn path=/trunk/; revision=73999
2017-02-27 18:54:57 +00:00
Eric Kohl
c7991b4c1d [REACTOS]
Fix LoadSetupData() failure paths (properly).
CORE-11691 #resolve

svn path=/trunk/; revision=73998
2017-02-27 15:55:21 +00:00
Eric Kohl
bee3e24b5e [USETUP]
Scroll in partitions list doesn't work.
Patch by thc.
CORE-11895 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73997
2017-02-27 14:32:09 +00:00
Eric Kohl
74dcd7dc34 [USETUP]
Define the language specific keyboard layout first. The US keyboard layout should always be the  last one (aka fallback). Other languages will probably need the same fix!
CORE-10064 #resolve

svn path=/trunk/; revision=73996
2017-02-27 12:57:05 +00:00
Giannis Adamopoulos
d054fcda2b [COMCTL32_APITEST]: Add one more test for BCM_GETIDEALSIZE, it is as if it completely ignores BS_BITMAP.
svn path=/trunk/; revision=73995
2017-02-27 11:06:45 +00:00
Giannis Adamopoulos
f7120fd6aa [COMCTL32_APITEST]: -Add tests for BCM_GETIDEALSIZE for non themed v6 buttons.
svn path=/trunk/; revision=73994
2017-02-27 10:53:59 +00:00
Eric Kohl
58e33a8638 [RAPPS_NEW][USRMGR]
Missing italian translations in ReactOS.
CORE-9725 #resolve #comment Thanks a lot for making this mess! Please don't ever reopen this task again! Create a new one instead!

svn path=/trunk/; revision=73993
2017-02-27 09:45:24 +00:00
Amine Khaldi
005df62c31 [UXTHEME_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73992
2017-02-26 20:49:49 +00:00
Amine Khaldi
4d205b64e0 [CMD_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73991
2017-02-26 20:47:12 +00:00
Amine Khaldi
8897aab532 [XMLLITE] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73990
2017-02-26 20:41:49 +00:00
Amine Khaldi
68995425ec [XMLLITE] Sync with Wine Staging 2.2. CORE-12823
455f5f2 xmllite: Handle char references within text nodes.
33d8a32 xmllite/reader: Handle NULL node type argument in Read().
1ed0631 xmllite/reader: Handle NULL argument in GetNodeType().
dcf1469 xmllite: A spelling fix in a comment.
f900879 xmllite: Hr was uninitialized in error path (Coverity).
831c202 xmllite: Add maintainer entry.
682d4f1 xmllite: Allow prefixed element names.
9b98d69 xmllite: Fix setting local name when parsing QName.
20c575e xmllite: Improve GetValue() for namespace definition nodes.
13afa65 xmllite: Implement GetNamespaceUri().
249b7a9 xmllite: Free prefix and local name too when clearing element list.
585735a xmllite: Update prefix when moving to first attribute.
0575a4b xmllite: Use a helper to move to first attribute to avoid extra traces.
65ee2b7 xmllite: Keep namespace list updated when going through document tree.
18d6def xmllite: Keep a list of namespace definitions.
635c409 xmllite: Store prefix for elements.
f185dd5 xmllite: Store empty element fields separately.
a39251b xmllite: Improve writer methods tracing.
65cbc12 xmllite: Parse URLs in `DOCTYPE PUBLIC` DTDs.

svn path=/trunk/; revision=73989
2017-02-26 20:41:20 +00:00
Amine Khaldi
2aff90f702 [XINPUT1_3_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73988
2017-02-26 20:37:54 +00:00
Amine Khaldi
f730ef2eb5 [XINPUT1_3] Sync with Wine Staging 2.2. CORE-12823
8936a84 xinput1_3: Avoid spamming FIXME for XInputGetKeystroke.
1640c9c xinput1_3: Add DECLSPEC_HOTPATCH to XInputEnable() definition.

svn path=/trunk/; revision=73987
2017-02-26 20:37:15 +00:00
Amine Khaldi
0ddc7f0226 [WSHOM_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73986
2017-02-26 20:35:07 +00:00
Amine Khaldi
bb881d4570 [WSHOM.OCX] Sync with Wine Staging 2.2. CORE-12823
722c28c wshom: Added IProvideClassInfo support for implemented interfaces.

svn path=/trunk/; revision=73985
2017-02-26 20:33:41 +00:00
Amine Khaldi
70855a91fa [WMVCORE] Sync with Wine Staging 2.2. CORE-12823
c4f829c wmvcore: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
7b70eba wmvcore: Implement WMCreateReaderPriv.

svn path=/trunk/; revision=73984
2017-02-26 20:30:36 +00:00
Amine Khaldi
c718e06314 [WLDAP32] Sync with Wine Staging 2.2. CORE-12823
9743328 wldap32: Add an error message and an explanation for the lack of error constants.
c7e46b7 wldap32: Use return value of sprintf() instead of hardcoding the number of written characters.

svn path=/trunk/; revision=73983
2017-02-26 20:28:08 +00:00
Amine Khaldi
a15a07cd73 [WINSCARD] Sync with Wine Staging 2.2. CORE-12823
4df855d winscard: Fix some spec file entries.

svn path=/trunk/; revision=73982
2017-02-26 20:20:19 +00:00
Amine Khaldi
8c03c7ba9b [WINEMP3.ACM] Sync with Wine Staging 2.2. CORE-12823
ac2b824 winemp3.acm: Fixes compilation for older mpg123 library versions (try 2)
2253d1a winemp3.acm: Ignore XING headers when parsing MP3 files.

svn path=/trunk/; revision=73981
2017-02-26 20:18:16 +00:00
Amine Khaldi
a8d18eaa06 [WBEMPROX_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73980
2017-02-26 20:14:44 +00:00
Amine Khaldi
83b4b492a6 [WBEMPROX] Sync with Wine Staging 2.2. CORE-12823
5e23535 wbemprox: Add DriverDate for Win32_VideoController.
f9321fa wbemprox: Add InstalledDisplayDrivers for Win32_VideoController.
df6e20e wbemprox: Add Status for Win32_VideoController.
9a2a366 wbemprox: Add ConfigManagerErrorCode for Win32_VideoController.
af7e5f7 wbemprox: Provide DeviceID, Location and PortName for printers.
92168c4 wbemprox: Add a partial implementation of Win32_IP4RouteTable.
d11a07e wbemprox: Don't define USE_WS_PREFIX on MinGW.
f2c0054 wbemprox: Only include matching rows in the table row count.
a254572 wbemprox: Return the machine ID for Win32_ComputerSystemProduct.UUID on Linux.
9842bf3 wbemprox: Return a non-null UUID for Win32_ComputerSystemProduct.UUID if nothing better is available.
b05928a wbemprox: Implement Win32_PhysicalMemory.MemoryType.
710abd6 wbemprox: Implement Win32_OperatingSystem.TotalVirtualMemorySize.

svn path=/trunk/; revision=73979
2017-02-26 20:13:53 +00:00
Amine Khaldi
1d4a6469bb [WBEMDISP] Sync with Wine Staging 2.2. CORE-12823
11ebda0 wbemdisp: Add ISWbemSecurity stub interface.
61f0bda wbemdisp: Implement ISWbemObjectSet::ItemIndex.
b47462d wbemdisp: Return interface pointers from QI, not object pointers.

svn path=/trunk/; revision=73978
2017-02-26 20:10:35 +00:00
Amine Khaldi
8230cf186e [SHLWAPI_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73977
2017-02-26 19:41:53 +00:00
Amine Khaldi
7b6b59705a [SHLWAPI] Sync with Wine Staging 2.2. CORE-12823
36b45a3 shlwapi: Fix the return value of SHAddDataBlock
437123b shlwapi: Avoid 'else if' for IStream_fnQueryInterface.
101edb1 shlwapi: Changed UrlEscapeW error paths and add tests.
4eac6e8 shlwapi: Remove dot segments for URLs starting with /.
6cbcc76 shlwapi: Make ParseURL case-insensitive.

svn path=/trunk/; revision=73976
2017-02-26 19:40:16 +00:00
Amine Khaldi
12d266bcf7 [SHDOCVW] Sync with Wine Staging 2.2. CORE-12823
f3d33f5 shdocvw: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=73975
2017-02-26 19:27:59 +00:00
Amine Khaldi
7445284933 [SCRRUN_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73974
2017-02-26 19:25:18 +00:00
Amine Khaldi
358d46f7c9 [SCRRUN] Sync with Wine Staging 2.2. CORE-12823
0d8d0b9 scrrun: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
d806a47 scrrun: Remove unreachable code (Coverity).
eda5d61 scrrun: Added IProvideClassInfo support for filesystem objects.
ba2e6fb scrrun: Added IProvideClassInfo support for dictionary.
62cb1f8 scrrun: Improved tracing of IDictionary methods.

svn path=/trunk/; revision=73973
2017-02-26 19:24:21 +00:00
Amine Khaldi
808452e8b7 [PSTOREC] Sync with Wine Staging 2.2. CORE-12823
8d3af56 pstorec: Fix QueryInterface() of IPStore.

svn path=/trunk/; revision=73972
2017-02-26 19:20:43 +00:00
Amine Khaldi
f04ae39730 [ODBC32] Sync with Wine Staging 2.2. CORE-12823
25e495f odbc32: Improve some tracing.
0c785e5 odbc32: Fix some spec file entries.

svn path=/trunk/; revision=73971
2017-02-26 19:18:31 +00:00
Amine Khaldi
4b61850cfd [MSXML3_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73970
2017-02-26 19:09:04 +00:00
Amine Khaldi
4d858698cd [MSXML3] Sync with Wine Staging 2.2. CORE-12823
45dd9d1 msxml3: Accept AllowXsltScript and AllowDocumentFunction properties.
2191d97 msxml3: Duplicate stylesheet document before passing it to libxslt.
1242648 msxml3: Remove dead initialization (clang).

svn path=/trunk/; revision=73969
2017-02-26 19:07:55 +00:00
Amine Khaldi
ee4765946d [MSVFW32] Sync with Wine Staging 2.2. CORE-12823
8b566b5 msvfw32: Fix some spec file entries.
15840d9 msvfw32: Remove duplicated debug.
ca2420c msvfw32: Allow ICInfo to enumerate codecs when fccType is zero.

svn path=/trunk/; revision=73968
2017-02-26 19:03:35 +00:00
Eric Kohl
77b88b38af [PROCESSR]
Add a generic processor driver that does nothing but provide a proper CPU device name (FriendlyName) to the registry.
CORE-5960 #resolve

svn path=/trunk/; revision=73967
2017-02-26 18:57:28 +00:00
Pierre Schweitzer
b097d7ad0e [FASTFAT]
Finally fix a commented out check regarding directory type while opening a FAT volume

svn path=/trunk/; revision=73966
2017-02-26 18:46:30 +00:00
Amine Khaldi
22f7d5504b [MSG711.ACM] Sync with Wine Staging 2.2. CORE-12823
d132488 msg711.acm: Remove an empty fixme.
5bdc868 msg711.acm: Remove dead code in G711_FormatSuggest.

svn path=/trunk/; revision=73965
2017-02-26 18:36:43 +00:00
Amine Khaldi
06be6aac8a [MSCTF_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73964
2017-02-26 18:34:24 +00:00
Amine Khaldi
d8d0d107a4 [MSCTF] Sync with Wine Staging 2.2. CORE-12823
7bcca92 msctf: Return proper pointer to interface.
04b97c2 msctf: Allow unadvising ITfThreadFocusSink.
7ebe59b msctf: Use correct sink for ITfThreadFocusSink.
d766288 msctf: Remove incorrect dereference of double pointer.
137166f msctf: Use interface pointer instead of object pointer.

svn path=/trunk/; revision=73963
2017-02-26 18:33:14 +00:00
Amine Khaldi
c8c9ff4987 [MSCMS] Sync with Wine Staging 2.2. CORE-12823
321b34d mscms: Fix some spec file entries.

svn path=/trunk/; revision=73962
2017-02-26 18:26:43 +00:00
Amine Khaldi
830abcecb9 [MSACM32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73961
2017-02-26 18:23:11 +00:00
Amine Khaldi
2b5269e1b5 [MSACM32] Sync with Wine Staging 2.2. CORE-12823
0afcefd msacm32: Reduce block align condition scope to test covered drivers.
55fdb03 msacm32: Fix copy-paste error.
6cc6734 msacm32: Support conversion from 24-bit PCM.

svn path=/trunk/; revision=73960
2017-02-26 18:19:34 +00:00
Amine Khaldi
296f1e6c50 [MPR] Sync with Wine Staging 2.2. CORE-12823
3540a3d mpr: Fix some spec file entries.

svn path=/trunk/; revision=73959
2017-02-26 18:07:39 +00:00
Amine Khaldi
14d7d9764c [MCIQTZ32] Sync with Wine Staging 2.2. CORE-12823
71fbaba mciqtz32: Implement MCI_DGV_PLAY_REPEAT.

svn path=/trunk/; revision=73958
2017-02-26 17:53:31 +00:00
Amine Khaldi
41875f2f17 [LZ32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73957
2017-02-26 17:48:33 +00:00
Amine Khaldi
63dec8bdb5 [MAPI32] Sync with Wine Staging 2.2. CORE-12823
d618c0f mapi32: Properly return interface pointer.
6e8553c mapi32: Fix some spec file entries.
454bccd mapi32: Add a stub implementation of HrDispatchNotifications.

svn path=/trunk/; revision=73956
2017-02-26 17:47:40 +00:00
Amine Khaldi
eb94e9a2a5 [LOADPERF] Sync with Wine Staging 2.2. CORE-12823
d6e1600 loadperf: Fix some spec file entries.

svn path=/trunk/; revision=73955
2017-02-26 17:43:19 +00:00
Amine Khaldi
90a505efb3 [JSPROXY] Sync with Wine Staging 2.2. CORE-12823
2b094f9 jsproxy: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
aee5267 jsproxy: Use debugstr_a on URL.

svn path=/trunk/; revision=73954
2017-02-26 17:41:19 +00:00
Amine Khaldi
7643fdc6bb [JSCRIPT] Sync with Wine Staging 2.2. CORE-12823
493659e jscript: Make scope_push() static.

svn path=/trunk/; revision=73953
2017-02-26 17:39:01 +00:00
Amine Khaldi
508223165a [ITSS] Sync with Wine Staging 2.2. CORE-12823
4fdcc03 itss: Properly return interface pointers.

svn path=/trunk/; revision=73952
2017-02-26 17:36:06 +00:00
Amine Khaldi
13d03d3364 [INSENG] Sync with Wine Staging 2.2. CORE-12823
dabb589 inseng: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=73951
2017-02-26 17:34:21 +00:00
Amine Khaldi
3f8b42f823 [IMAADP32.ACM] Sync with Wine Staging 2.2. CORE-12823
1a6d3c1 imaadpcm32: Fix source offsets when converting stereo PCM to IMAADPCM.

svn path=/trunk/; revision=73950
2017-02-26 17:32:01 +00:00
Amine Khaldi
bb98fff5c2 [IEFRAME] Sync with Wine Staging 2.2. CORE-12823
477e7fd ieframe: Fix moniker leak on error path.

svn path=/trunk/; revision=73949
2017-02-26 17:28:46 +00:00
Amine Khaldi
1f5449e7c5 [ICCVID] Sync with Wine Staging 2.2. CORE-12823
4dcdbf3 iccvid: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().

svn path=/trunk/; revision=73948
2017-02-26 17:25:49 +00:00
Amine Khaldi
3dcc353592 [HLINK_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73947
2017-02-26 17:21:30 +00:00
Amine Khaldi
4634a076c4 [HLINK] Sync with Wine Staging 2.2. CORE-12823
f6b1e12 hlink: Properly return interface pointers.
4709902 hlink: Add missing parameter to TRACE() message.

svn path=/trunk/; revision=73946
2017-02-26 17:20:48 +00:00
Amine Khaldi
2721d9f046 [HHCTRL.OCX] Sync with Wine Staging 2.2. CORE-12823
89ca96d hhctrl.ocx: Don't skip a tag in next_node.
a16344c hhctrl.ocx: Also take basename of folders when searching.

svn path=/trunk/; revision=73945
2017-02-26 17:18:23 +00:00
Amine Khaldi
1e842f0e63 [CREDUI] Sync with Wine Staging 2.2. CORE-12823
848f478 credui: Split domain from username in SspiPromptForCredentialsW.

svn path=/trunk/; revision=73944
2017-02-26 17:09:21 +00:00
Amine Khaldi
69dc549fdb [COMPSTUI] Sync with Wine Staging 2.2. CORE-12823
1791b7d compstui: Fix SetCPSUIUserData spec file entry.

svn path=/trunk/; revision=73943
2017-02-26 17:07:09 +00:00
Amine Khaldi
576756c8f8 [AVIFIL32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73942
2017-02-26 17:03:08 +00:00
Amine Khaldi
04fa10095f [AVIFIL32] Sync with Wine Staging 2.2. CORE-12823
349a80e avifil32: Fix AVIStreamReadFormat spec file entry.

svn path=/trunk/; revision=73941
2017-02-26 17:02:24 +00:00
Amine Khaldi
f03e637c36 [ATL] Sync with Wine Staging 2.2. CORE-12823
de24275 atl: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
26e8873 atl: Fix AtlModuleInit spec file entry.

svn path=/trunk/; revision=73940
2017-02-26 16:56:41 +00:00
Amine Khaldi
ffa916c3c7 [QUARTZ_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73939
2017-02-26 16:53:38 +00:00
Amine Khaldi
fe9810f5a4 [QUARTZ] Sync with Wine Staging 2.2. CORE-12823
e2a4974 quartz: Downgrade FIXME->WARN.
c6a4811 quartz: Clean up another trace for consistency.
ff36b5c quartz: A couple of spelling fixes in comments.
ac59a68 quartz: Don't write past end of d3d9 buffer.
478feea quartz: Keep This/iface order in TRACEs for consistency.
97405fc quartz: Add tests for IBasicVideo.
5cdb0b5 quartz: Use wine_dbgstr_longlong() to trace REFERENCE_TIME.
89d4e14 quartz: Take MP3 padding bit into account when calculating the block size.

svn path=/trunk/; revision=73938
2017-02-26 16:52:09 +00:00
Amine Khaldi
caa685ac17 [DPLAYX_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73937
2017-02-26 16:43:10 +00:00
Amine Khaldi
f059b95530 [DPLAYX] Sync with Wine Staging 2.2. CORE-12823
7603e85 dplayx: Don't print an error when no Lobby Providers are found.
7ae50b2 dplayx: Fix multiple assigments to the same lvalue (coccinellery).

svn path=/trunk/; revision=73936
2017-02-26 16:41:39 +00:00
Amine Khaldi
1f3623d2ae [DINPUT_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73935
2017-02-26 16:37:17 +00:00
Amine Khaldi
b2b175013f [DINPUT] Sync with Wine Staging 2.2. CORE-12823
f921b63 dinput: Do not wait for hook thread startup in IDirectInput8::Initialize.
f9b4be5 dinput: Allocate correct amount of memory in IDirectInput8AImpl_EnumDevicesBySemantics.
04bddb6 dinput: Give correct count of devices still to be enumerated.
8339de0 dinput: Simplify JoystickWImpl_Unacquire for Linux.
27f4568 dinput: DISFFC_RESET will not release the effects.
2d2d833 dinput: Downgrade a FIXME to WARN in JoystickWImpl_SendForceFeedbackCommand.
cc37322 dinput: Fix GetEffectStatus for Linux when effect was not downloaded.
6bb2c4c dinput: Skip events that are not useful currently.
49d4261 dinput: Spelling and case fixes in comments.

svn path=/trunk/; revision=73934
2017-02-26 16:36:28 +00:00
Amine Khaldi
ab65241c66 [WMIC] Sync with Wine Staging 2.2. Dedicated to Hermès. CORE-12823
b21f4d0 wmic: Improve cmd line parser and add support for path command.

svn path=/trunk/; revision=73933
2017-02-26 16:29:54 +00:00
Amine Khaldi
9b5b4a4c28 [REG_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73932
2017-02-26 16:17:32 +00:00
Amine Khaldi
37073ed5e2 [REG] Sync with Wine Staging 2.2. CORE-12823
68c1765 reg: Simplify help handling by removing an if-else if-else block.
8a8a753 reg: Fix dword conversion on 64-bit operating systems.

svn path=/trunk/; revision=73931
2017-02-26 16:16:31 +00:00
Amine Khaldi
95668db524 [CABINET_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=73930
2017-02-26 16:03:33 +00:00
Amine Khaldi
42057b458d [CABINET] Sync with Wine Staging 2.2. CORE-12823
a663fe94 cabinet: Set index of folder in FDICopy callback.
1f7d144 cabinet: Make Extract fail on read-only files.
af86bdc cabinet: Make Extract overwrite existing files.
3273dff cabinet: Properly initialize internal fci structure (Valgrind).

svn path=/trunk/; revision=73929
2017-02-26 16:00:58 +00:00
Thomas Faber
520918a849 [MBEDTLS]
- Update to version 2.4.0
CORE-12834 #resolve

svn path=/trunk/; revision=73928
2017-02-26 15:53:13 +00:00
Pierre Schweitzer
1ed7ebc368 [FASTFAT]
Remove an useless check

svn path=/trunk/; revision=73927
2017-02-26 14:43:01 +00:00
Pierre Schweitzer
3e49feb4e7 [CABINET]
Fix handling of trailing backslash.
Patch by Thomas Faber.

ROSTESTS-135

svn path=/trunk/; revision=73926
2017-02-26 14:31:01 +00:00
Pierre Schweitzer
298e2fb71c [KERNEL32]
Fix handling of trailing backslash.
Patch by Thomas Faber.

ROSTESTS-135

svn path=/trunk/; revision=73925
2017-02-26 14:06:50 +00:00
Pierre Schweitzer
84b6e377ec [FASTFAT]
Addendum to r73923: merge with Thomas' patch regarding that topic.

ROSTESTS-135

svn path=/trunk/; revision=73924
2017-02-26 13:57:17 +00:00
Pierre Schweitzer
68b4b8905e [FASTFAT]
Reject more broken file names on open/create.
Fixes a few kmtests:IoFilesystem tests

svn path=/trunk/; revision=73923
2017-02-26 13:32:55 +00:00
Thomas Faber
12a5c1fb9a [MBEDTLS]
- We're a mostly-GPLv2 project, so use the GPLv2 version of the library.
CORE-12834

svn path=/trunk/; revision=73922
2017-02-26 11:55:27 +00:00
Thomas Faber
425f097968 [KMTESTS:IO]
- Avoid a crash in IoFilesystem on Windows when using a free kernel with ntfs. Querying FileAllInformation with any size below sizeof(FILE_ALL_INFORMATION) is considered illegal, so only do it on checked builds (which have a size check).

svn path=/trunk/; revision=73921
2017-02-26 11:31:51 +00:00
Pierre Schweitzer
ece00ea85f [NTOSKRNL]
Spotted with kmtest:IoFilesystem: these checks are not performed in free builds for kernel callers and are delegated to the FSD.

svn path=/trunk/; revision=73920
2017-02-26 11:27:24 +00:00
Thomas Faber
75a22bb16a [ACPI]
- We do support sleep states (namely, S5), so don't force aborting sleep transitions. Fixes ACPI shutdown broken by r73918.
CORE-12833

svn path=/trunk/; revision=73919
2017-02-26 09:51:59 +00:00
Thomas Faber
5799101b4c [ACPICA]
- Update to version 20161222
CORE-12833

svn path=/trunk/; revision=73918
2017-02-26 00:26:24 +00:00
Giannis Adamopoulos
3830a078fb [COMCTL32_APITEST] -Call this test the buttonv6 test.
svn path=/trunk/; revision=73917
2017-02-26 00:02:34 +00:00
Daniel Reimer
c6bb3308f1 [RAPPS]
Add Gecko Engine which can only be installed once during 1st stage, because someone thought this was a good idea. Now you can get it later, too.

svn path=/trunk/; revision=73916
2017-02-25 23:02:36 +00:00
Giannis Adamopoulos
f005129274 [EXPLORER] -Use the hacky way to paint the start button until BCM_GETIDEALSIZE is also implemented.
svn path=/trunk/; revision=73915
2017-02-25 22:54:42 +00:00
Giannis Adamopoulos
e7f1aefdb9 [COMCTL32] -Implement BCM_GETTEXTMARGIN, BCM_SETTEXTMARGIN, BCM_SETIMAGELIST and BCM_GETIMAGELIST.
svn path=/trunk/; revision=73914
2017-02-25 22:39:45 +00:00
Giannis Adamopoulos
32d3e05769 [COMCTL32_APITEST] -Add one more test.
svn path=/trunk/; revision=73913
2017-02-25 22:28:47 +00:00
Giannis Adamopoulos
7483cbb904 [COMCTL32] -Test BCM_SETTEXTMARGIN, BCM_SETIMAGELIST, BCM_GETIMAGELIST and BCM_GETTEXTMARGIN for the v6 button.
svn path=/trunk/; revision=73912
2017-02-25 22:12:08 +00:00
Daniel Reimer
0368cd40fa [RAPPS]
Check for dead links/changes in RAPPS DB

svn path=/trunk/; revision=73911
2017-02-25 20:46:26 +00:00
Thomas Faber
c9953bd506 [ACPICA]
- Update to version 20160729
CORE-12833

svn path=/trunk/; revision=73910
2017-02-25 20:45:15 +00:00
Thomas Faber
b71b5767ea [ACPICA]
- Update to version 20160527
CORE-12833

svn path=/trunk/; revision=73909
2017-02-25 20:06:05 +00:00
Daniel Reimer
f2ad06776a [RAPPS]
Add Samba to RAPPS
CORE-12601 #comment Added to RAPPS as asked for.

svn path=/trunk/; revision=73908
2017-02-25 15:14:54 +00:00
Giannis Adamopoulos
4227981b8b [COMCTL32] -Reduce diff with user32 and move all data of the button in a single struct.
svn path=/trunk/; revision=73907
2017-02-25 14:56:44 +00:00
Mark Jansen
3774050bf3 [OLE32] Fix a crash when executing zz_winrar_3.80_test.exe 4.drag_and_drop CORE-12590 #resolve
svn path=/trunk/; revision=73906
2017-02-25 14:52:16 +00:00
Thomas Faber
d48a928307 [KERNEL32]
- Avoid leaving lpRootPath initialized in GetDriveTypeW. Powered by /RTC1

svn path=/trunk/; revision=73905
2017-02-25 13:06:25 +00:00
Eric Kohl
e53f1ac932 [SETUPAPI]
- Implement CM_Get_Class_Registry_PropertyA().
- Move mapping of poperty type to registry value type into a separate function and use it in CM_Get_Class_Registry_PropertyA(), CM_Set_DevNode_Registry_Property_ExA() and CM_Set_DevNode_Registry_Property_ExW().

svn path=/trunk/; revision=73904
2017-02-25 12:45:05 +00:00
Benedikt Freisen
16a3b0d967 [MSPAINT]
- fix error in dynamic menu: most recently used files were showing up in zoom menu, too
CORE-12829 #resolve

svn path=/trunk/; revision=73903
2017-02-25 11:24:15 +00:00
Giannis Adamopoulos
6579ca96ea [COMCTL32] -Add helper functions for setting and retrieving the button bitmap.
svn path=/trunk/; revision=73902
2017-02-25 11:05:19 +00:00
Pierre Schweitzer
6868358a85 [REISERFS]
When compiling the driver with GCC, define __GCC__.
Fix defines accordingly.

CORE-12826 

svn path=/trunk/; revision=73901
2017-02-25 10:16:33 +00:00
Mark Jansen
d5f4f99b0e [WIN32SS] Rewrite font selection code. Patch by Katayama Hirofumi MZ. CORE-6621
- Adding support for multiple font formats (including collections)
- Choosing a font based on weights as documented
- Adding support for loading fonts from memory
- Share font faces
- Emulation of Italic and Bold
- Support for Underline and Strike-out
- Localized font names
- Fix GetFontResourceInfoW
- Fix Registry settings
- Fix multiple font properties

svn path=/trunk/; revision=73900
2017-02-25 10:10:25 +00:00
Giannis Adamopoulos
8b594efa21 [COMCTL32] -Redraw the button when we get a WM_THEMECHANGED.
svn path=/trunk/; revision=73899
2017-02-25 09:24:40 +00:00
Giannis Adamopoulos
a7d4b8d04f [UXTHEME] - When we set the desired app name and class name in SetWindowTheme we need to support empty strings meaning no themes for this window. Sort of support empty strings by replacing them with a string containing a single "0". This works since there is no app name or class name with this name. Also add some error messages.
svn path=/trunk/; revision=73898
2017-02-25 09:23:37 +00:00
Giannis Adamopoulos
777a9ec12a [COMCTL32] -Draw button with classic style if BM_SETIMAGE was used.
svn path=/trunk/; revision=73897
2017-02-24 22:47:59 +00:00
Hermès Bélusca-Maïto
f3aa1616ef [GDI32]: Don't break/crash (if no debugger attached) each time an unimplemented GDI function is called. This is hit a lot by Word 2010 (e.g. when using drawing features), PowerPoint, etc... i.e. all applications that perform "serious" GDI manipulations.
A nice addition would be to know exactly which unimplemented function was called.

svn path=/trunk/; revision=73896
2017-02-24 02:17:45 +00:00
Hermès Bélusca-Maïto
2a81b18aee [NTGDI]: Few fixes & hacks for NtGdiGetGlyphIndicesW, see CORE-12825:
- (Fix) Check for integer count overflow (per Thomas suggestion),
- (Hack#1) Signal the particular calling case (where pwc == NULL == pgi and cwc == 0), as discovered by the testcase of r73894,
- (Hack#2) Return error when cwc == 0 alone (triggered by e.g. Word 2010).

svn path=/trunk/; revision=73895
2017-02-24 01:52:25 +00:00
Hermès Bélusca-Maïto
1f67849a7e [GDI32_APITEST]: GetGlyphIndices: Have fun & make ReactOS BSoD from user-mode! More seriously, test extra cases of this API, and show that our current implementation certainly is incomplete & prone to bugs.
The particular case "GetGlyphIndicesW(hdc, NULL, 0, NULL, 0)" is used by Word 2010 (and other apps) when opening the font combolist, and seems to be undocumented.
CORE-12825
CORE-6621 CORE-12279

svn path=/trunk/; revision=73894
2017-02-24 01:02:26 +00:00
Amine Khaldi
f981e06368 * Addendum to r73870.
svn path=/trunk/; revision=73893
2017-02-23 19:09:35 +00:00
Thomas Faber
7148ac52fc [USBSTOR]
- Fix error paths around SCSI_REQUEST_BLOCK::DataBuffer. Spotted by curiousone.
CORE-12816 #resolve

svn path=/trunk/; revision=73892
2017-02-23 09:28:20 +00:00
Thomas Faber
83ae839957 [USBSTOR]
- Use pool tagging

svn path=/trunk/; revision=73891
2017-02-23 09:20:09 +00:00
Kamil Hornicek
f36d39ae3a [WIN32K]
- Clean up after myself. Thanks, Giannis and Thomas.

svn path=/trunk/; revision=73890
2017-02-22 21:18:18 +00:00
Hermès Bélusca-Maïto
08315aa914 [WIN32K]: Replace some checks against UserGetDesktopWindow() and UserGetMessageWindow() by checks against FNID_xxx flags.
Fixes some FIXMEs in the code encountered while investigating the origin of "err: NtUserSetWindowPos bad window handle!" messages.
Reviewed by James Tabor.
CORE-12819

svn path=/trunk/; revision=73889
2017-02-22 20:19:50 +00:00
James Tabor
81652fd827 [Win32SS]
- Implement Exclude Update Region, for testing. See CORE-12649.

svn path=/trunk/; revision=73888
2017-02-22 17:50:38 +00:00
James Tabor
482d43b875 [Win32SS]
- Implement Fill Window, for testing.

svn path=/trunk/; revision=73887
2017-02-22 17:45:19 +00:00
James Tabor
2c28e0e6fa [NtGDI]
- Add function for NtUser.

svn path=/trunk/; revision=73886
2017-02-22 17:20:43 +00:00
Giannis Adamopoulos
2f277c0810 [COMCTL32] -Fix several tests for the v6 button when themes are enabled.
svn path=/trunk/; revision=73885
2017-02-22 13:58:49 +00:00
Giannis Adamopoulos
5104d39515 [COMCTL32] -Fix a couple more button tests.
svn path=/trunk/; revision=73884
2017-02-22 13:24:17 +00:00
Giannis Adamopoulos
99a6d1dd88 [COMCTL32_WINETEST] -Do not take into account the wine todos for the button tests.
svn path=/trunk/; revision=73883
2017-02-22 12:31:40 +00:00
Giannis Adamopoulos
ae875ccc88 [WIN32k] -Remove overzealous assertion that prevents boot.
svn path=/trunk/; revision=73882
2017-02-22 11:59:42 +00:00
Kamil Hornicek
f368db7eeb [NTGDI]
- Check for zero rectangles in REGION_bXformRgn.
CORE-12204

svn path=/trunk/; revision=73881
2017-02-22 10:48:41 +00:00
Giannis Adamopoulos
1d7676d1e0 [COMCTL32]: Fix a few button tests.
svn path=/trunk/; revision=73880
2017-02-22 10:46:26 +00:00
Kamil Hornicek
4f72307675 [NTUSER]
- Prevent a null to be passed to UserDereferenceObject in UserSetCursorIconData. CID 1321971
- Make the status check in co_IntCallSentMessageCallback less useless. CID 1322014
- Prevent a null pointer dereference in a trace in IntCreateClass. CID 514617

svn path=/trunk/; revision=73879
2017-02-22 10:29:03 +00:00
Kamil Hornicek
53fdca886e [NTGDI]
- Consider the return value from IntFillArc in IntArc. CID 1237076
- Remove an useless check in ENTRY_ReferenceEntryByHandle CID 731587
- Prevent an unlikely memory leak in PATH_WidenPath. CID 716634
- Minor cleanup.

svn path=/trunk/; revision=73878
2017-02-22 10:26:40 +00:00
Kamil Hornicek
9b3b1801ed [GDI32]
- Fix a possible null pointer dereference in GetGlyphOutlineA. CID 513747
- SetDIBits should not accept null bitmap info at all. CID 513425
- Don't set the pdwResult pointer itself to null in TADC_GetAndSetDCDWord. CID 1321970

svn path=/trunk/; revision=73877
2017-02-22 10:22:28 +00:00
James Tabor
c87e532dcb [NtUser]
- If an appication hangs other than suspended use Hung test to prevent locking the whole system. Quick fix for CORE-10078.

svn path=/trunk/; revision=73876
2017-02-22 00:25:13 +00:00
James Tabor
9accb03ac7 [NtUser]
- Fix : Allow controls to receive non-client messages. See CORE-12771.
- See also https://bugs.winehq.org/show_bug.cgi?id=42503 .

svn path=/trunk/; revision=73875
2017-02-22 00:01:13 +00:00
Giannis Adamopoulos
4bc269e94e Fix build.
svn path=/trunk/; revision=73874
2017-02-21 21:53:34 +00:00
Giannis Adamopoulos
2ed266de0c [COMCTL32] -Rename BUTTON_Paint to BUTTON_PaintWithTheme and use it in the newly added code for the v6 button.
svn path=/trunk/; revision=73873
2017-02-21 21:47:41 +00:00
Giannis Adamopoulos
5c77ae15e6 [COMCTL32] -Add a comment to clarify that there is no need to backport the #ifdef _USER32_ defines back to user32 (although they will work fine in user32).
svn path=/trunk/; revision=73872
2017-02-21 21:07:06 +00:00
Giannis Adamopoulos
0f1de17bcc [COMCTL32]: Copy button.c from user32, make the needed changes to make it compile and register it. This is the beginning of the v6 button. Remove the subclassing of the builtin button.
svn path=/trunk/; revision=73871
2017-02-21 21:03:04 +00:00
Amine Khaldi
79111c35e6 * Revert r73869 because wmi was mentioned nowhere in CORE-9111, nor in our tree restructure wiki, nor any developers discussions. This is the ReactOS trunk, not a branch.
svn path=/trunk/; revision=73870
2017-02-21 09:04:05 +00:00
Hermès Bélusca-Maïto
9f59e28a23 [WMI]: Gather all the user-mode components of WMI inside base/wmi/, as part of the ReactOS source code tree restructure. This gives an idea how this can be done for other ReactOS components.
CORE-9111

svn path=/trunk/; revision=73869
2017-02-20 23:28:09 +00:00
Hermès Bélusca-Maïto
5ccb049790 [SECUR32]: As an interim step towards a proper NTLM implementation that is done by Samuel Serapion, I temporarily commit Wine's NTLM code layer around Samba's "ntlm_auth" utility. In addition I add the kerberos & negotiate stubs too.
This is not a problem on Wine, because they run on Linux distributions, most of which have Samba available. But this is not the case on Windows / ReactOS, so few adaptations were needed: in the dispatcher.c code, the fork_helper function was partially rewritten around CreateProcess to start the ntlm_auth utility (I try to use maximally the CRT to not have to rewrite other functions). This works great.
But then, to make this NTLM layer working on ReactOS, one has to find a Windows build of Samba. Here is one: http://smithii.com/samba . This is a Samba 3.0.23c build. You need to follow *exactly* the manual installation steps to make it work (actually, everything up to "Step 6" included, i.e. running smbsetup.cmd). This means in particular to copy Samba into C:\Program Files\samba, as this path is also hardcoded into the executables.
As the Wine's NTLM layer expects Samba 3.0.25+, I manually downgraded the expected version, which appears to still work nice for the needs of Office 2010 installation.

You can now play with it and try to install Office 2010.

CORE-12601 #comment Wine's NTLM layer committed in r73868 as an interim step towards a proper implementation.
CORE-12279

svn path=/trunk/; revision=73868
2017-02-20 22:28:07 +00:00
Hermès Bélusca-Maïto
08a509daee [MOFCOMP]: Add the MOF compiler stub from Wine, which allows fixing the very last step in the installation of Office 2010.
CORE-12811 #resolve
CORE-12279

svn path=/trunk/; revision=73867
2017-02-20 20:47:42 +00:00
Giannis Adamopoulos
f4c6543a49 [SHLWAPI]: Stub SHPropertyBag_WriteLONG and SHPropertyBag_WriteStr. Patch by Jared Smudde. CORE-12805
svn path=/trunk/; revision=73866
2017-02-20 20:18:10 +00:00
Giannis Adamopoulos
9abeb0d9b0 [SHELL32] -Cleanup CFSFolder::_LoadDynamicDropTargetHandlerForKey. Inspired by patch by Victor Martinez Calvo. CORE-12799. CID 1401249
svn path=/trunk/; revision=73865
2017-02-20 20:13:22 +00:00
Giannis Adamopoulos
7b0de0e982 [MSGINA] -Make ShellIsFriendlyUIActive export a non fatal stub. CORE-12805
svn path=/trunk/; revision=73864
2017-02-20 19:51:12 +00:00
Thomas Faber
837d7e9292 [MSWSOCK]
- Eliminate dead code in NSP_LookupServiceNextW. Patch by Víctor Martínez Calvo. CID 1400942
CORE-12806 #resolve

svn path=/trunk/; revision=73863
2017-02-20 19:32:12 +00:00
Thomas Faber
ea43e3d3dc [USER32][UXTHEME]
- Make API hooks type-safe. Fixes stack pointer corruption when calling ThemeGetScrollInfo. Powered by /RTC1

svn path=/trunk/; revision=73862
2017-02-20 17:31:50 +00:00
Thomas Faber
2475975c7d [WS2_32]
- Re-apply null termination fix in GetProtoGetNextEnt, which was lost in ws2_32_new work. CID 716700
CORE-11218

svn path=/trunk/; revision=73861
2017-02-20 16:33:44 +00:00
Thomas Faber
e2e12caf2a [BROWSEUI]
- Correctly pass the buffer size to RegQueryValueW in CAutoComplete::Init. Patch by Víctor Martínez Calvo. CID 1401255
CORE-12795 #resolve

svn path=/trunk/; revision=73860
2017-02-20 16:07:05 +00:00
Hermès Bélusca-Maïto
5da9304c6d [FREELDR]: Update the FreeLdr's startup notes.
svn path=/trunk/; revision=73859
2017-02-20 15:45:01 +00:00
Kamil Hornicek
dba6b1c35c [EVENTLOG]
- Silence some debug prints. This commit bears the "Hermès' seal of approval".

svn path=/trunk/; revision=73858
2017-02-20 14:45:03 +00:00
Thomas Faber
6cea30d6fe [WINPRINT]
- Avoid uninitialized hPrintMonitor in PrintRawJob failure case. Patch by Víctor Martínez Calvo
CORE-12792 #resolve

svn path=/trunk/; revision=73857
2017-02-20 12:00:13 +00:00
Thomas Faber
d920d6c30a [KS]
- Avoid leaking AllocatorFraming in KsCreateDefaultAllocatorEx. Patch by Sebastian Gasiorek
CORE-12797 #resolve

svn path=/trunk/; revision=73856
2017-02-20 11:35:24 +00:00
Kamil Hornicek
ca4c2640e7 [WIN32K]
- Don't try to delete the pattern bitmap in UserInitialize.
- Set the correct owner before deleting the update region in co_UserFreeWindow.
- Fixes some "Trying to delete global object" debug prints.

svn path=/trunk/; revision=73855
2017-02-20 10:10:37 +00:00
Giannis Adamopoulos
ef483f95f7 [blackshade.msstyles] -Add a skeleton for a theme based on a mockup by David Quintana
svn path=/trunk/; revision=73854
2017-02-19 20:40:45 +00:00
Eric Kohl
b96144bbbd [COMCTL32]
Update a tool buttons tooltip rectangle when the button gets hidden.
Patch will be sent upstream!
CORE-12667 #resolve

svn path=/trunk/; revision=73853
2017-02-19 20:39:11 +00:00
Eric Kohl
5b17f6949b [DEVMGR]
- NEVER EVER use single line if statements!!!!
- Fix indentation and coding style.

svn path=/trunk/; revision=73852
2017-02-19 19:40:04 +00:00
Eric Kohl
bb85fef52f [DEVMGR]
Hide "HTREE\ROOT\0" from the device tree.
CORE-12670 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73851
2017-02-19 19:13:41 +00:00
Eric Kohl
dd588d8bb2 [DEVMGR]
Select a treeview item on a right click.

svn path=/trunk/; revision=73850
2017-02-19 18:31:52 +00:00
Thomas Faber
f78f7b3f31 [MSAFD][WS2_32]
- Properly return error codes from WSPConnect
CORE-12787 #resolve

svn path=/trunk/; revision=73849
2017-02-19 17:50:34 +00:00
Pierre Schweitzer
3499311e18 [EVENTVWR]
Don't attempt to free random address

CID 1401231

svn path=/trunk/; revision=73848
2017-02-19 17:24:13 +00:00
Giannis Adamopoulos
3df13bc41a [UXTHEME] Fix the conversion from color id to theme metric and don't pass the metric id to GetSysColor. CORE-11086
svn path=/trunk/; revision=73847
2017-02-19 16:32:44 +00:00
Eric Kohl
27c1e20f13 [ACPI]
Generate a proper device id string for processor devices.

svn path=/trunk/; revision=73846
2017-02-19 15:13:49 +00:00
Pierre Schweitzer
7fb841c839 [SHELL32]
For the input string, WideCharToMultiByte takes a char count and not a buffer size.

CID 1401096, 1401088

svn path=/trunk/; revision=73845
2017-02-19 13:22:02 +00:00
Pierre Schweitzer
e78b6c5179 [SHELL32]
Don't attempt to dereference a pointer after having freed it

CID 1401297

svn path=/trunk/; revision=73844
2017-02-19 13:00:12 +00:00
Pierre Schweitzer
23733b7867 [WS2_32]
Remove duplicated if

CID 1400935

svn path=/trunk/; revision=73843
2017-02-19 12:52:14 +00:00
Pierre Schweitzer
f772b72e3e [DNSAPI]
Properly check for domain name being set

CID 1401070

svn path=/trunk/; revision=73842
2017-02-19 12:42:08 +00:00
Thomas Faber
e4bf71987b [WSHTCPIP]
- Fix incorrect sizeof in SHIoctl_GetInterfaceList. CID 1401188

svn path=/trunk/; revision=73841
2017-02-19 12:21:06 +00:00
Thomas Faber
8b8c1c7e5a [WS2_32]
- Fix ridiculous over-casting

svn path=/trunk/; revision=73840
2017-02-19 12:05:48 +00:00
Thomas Faber
c60757b725 [WS2_32]
- Fix wrong ServLength in getnameinfo, again, since it got lost in the ws2_32_new work. CID 716150
CORE-11214

svn path=/trunk/; revision=73839
2017-02-19 11:44:18 +00:00
Giannis Adamopoulos
64c9bc0eba [UXTHEME] -Set cbSize field of WINDOWINFO before calling GetWindowInfo. CORE-12776
svn path=/trunk/; revision=73838
2017-02-19 11:41:23 +00:00
Pierre Schweitzer
c7a2132d63 [DNSAPI]
Properly check for domain name being set

CID 1401080

svn path=/trunk/; revision=73837
2017-02-19 11:34:00 +00:00
Pierre Schweitzer
3a8d6379b1 [FASTFAT]
Avoid uninit variable usage.

CID 1401257, 1401259

svn path=/trunk/; revision=73836
2017-02-19 11:22:21 +00:00
Thomas Faber
0ba77df60d [LOCALMON]
- Avoid a potential double free in InitializePrintMonitor2. CID 1401299
- Avoid a use after free in LocalmonClosePort. CID 1401298

svn path=/trunk/; revision=73835
2017-02-19 10:31:37 +00:00
Giannis Adamopoulos
cf3310e4e9 [UXTHEME] -The code to draw the classic style borders was copied from win32k, so imitate what it does and restore two bits that got removed in the copy. CORE-9667
svn path=/trunk/; revision=73834
2017-02-19 10:23:26 +00:00
Giannis Adamopoulos
8e371f8e7f [SHELL32] -Try to fix themes when opening the control panel applet from the control panel.
svn path=/trunk/; revision=73833
2017-02-19 09:10:03 +00:00
Mark Jansen
099a790594 [KS] Cleanup in the failure path of KsCreateDefaultClock. Patch by Sebastian Gasiorek. CID 1322124 CORE-12784 #resolve #comment Thanks!
svn path=/trunk/; revision=73832
2017-02-18 22:54:31 +00:00
Pierre Schweitzer
590c4dcc8c [FASTFAT]
Get rid of the ENTRY_DELETED2, ENTRY_VOLUME2 and ENTRY_END2 macros.

svn path=/trunk/; revision=73831
2017-02-18 21:37:56 +00:00
Pierre Schweitzer
1dc27a26be [FASTFAT]
Modify ReadVolumeLabel() so that it is able to read the volume label, even without using the VCB, the root FCB, Cc, the universe.
This is important, because in case of device verifying, you cannot rely on these elements anylonger, but you need to read the label.
A readme has been attached to the function, to indicate how to call it (I wish I could have put more asserts!). It's ugly, I know.

This allows fixing a FIXME in VfatVerify(): we can also check the volume label for FATX volumes.
The FIXME comment was misleading: MS FastFAT doesn't make any checksum or whatever of FAT root. Let's not do it.

svn path=/trunk/; revision=73830
2017-02-18 21:24:31 +00:00
Pierre Schweitzer
9c5c0b479a [FASTFAT]
Move ReadVolumeLabel() to fsctl.c close to functions that need it

svn path=/trunk/; revision=73829
2017-02-18 18:35:48 +00:00
Giannis Adamopoulos
9a213745ca [DESK.CPL] -Apparently the second parameter of ApplyTheme is not a string. One case is that it is not a pointer and another case that it is a pointer to a struct. What I'm sure of is that as it is now the position of the string in the binary affects the behavior of ApplyTheme. Thankfully 0 works great on windows.
svn path=/trunk/; revision=73828
2017-02-18 18:14:32 +00:00
Thomas Faber
e4b71d31f9 [KMTESTS:MM]
- Add some stricter checks and improved error handling in NtCreateSection_user

svn path=/trunk/; revision=73827
2017-02-18 14:22:44 +00:00
Thomas Faber
8056edf828 [USBSTOR]
- Fix a broken assert (yes, calling NTOHL is wrong, ContiguousLogicBlocksByte0 is the MSB). CID 701077

svn path=/trunk/; revision=73826
2017-02-18 11:47:40 +00:00
Mark Jansen
29631b02e2 [GDI32_APITEST] Add tests for GetFontResourceInfoW. Patch by Katayama Hirofumi MZ. CORE-6621
svn path=/trunk/; revision=73825
2017-02-18 11:25:31 +00:00
Thomas Faber
5d76039958 [PSDK]
- Fix KsFilterFactoryGetDevice
CORE-11794

svn path=/trunk/; revision=73824
2017-02-18 09:30:59 +00:00
Kamil Hornicek
67e4aa500e [SHELL32]
- Make the "Open with" dialog start in Program Files as is done in Windows (doesn't really changes anything because comdlg32 doesn't expand environment variables).

svn path=/trunk/; revision=73823
2017-02-17 23:39:39 +00:00
Pierre Schweitzer
1f58ae3a5d [FASTFAT]
Generalize the usage of functions pointers for FatX vs Fat specific code (direntry).
This should also help speeding up FastFAT.

svn path=/trunk/; revision=73822
2017-02-17 22:25:03 +00:00
Pierre Schweitzer
41f23cace3 [FASTFAT]
In the FCB, get rid of the FCB_IS_FATX_ENTRY flag. It makes no sense to have it on each and every file as the VCB already has such flag

svn path=/trunk/; revision=73821
2017-02-17 21:24:12 +00:00
Pierre Schweitzer
36bd380f3a [FASTFAT]
Fix a typo brought in r73819

svn path=/trunk/; revision=73820
2017-02-17 18:06:38 +00:00
Pierre Schweitzer
92922765ac [FASTFAT]
More FastFAT cleanup.
Except a light performances boost due to useless checks removal in read/write and to some functions inlining

More to follow...

svn path=/trunk/; revision=73819
2017-02-17 17:58:18 +00:00
Giannis Adamopoulos
2667ff688f [SHELL32] -Expand the name of the cpl file because CreateActCtx needs a full path.
svn path=/trunk/; revision=73818
2017-02-17 17:23:17 +00:00
Mark Jansen
b742e89b01 [DBGHELP] Add experimental rsym support. CORE-12773
svn path=/trunk/; revision=73817
2017-02-17 16:18:15 +00:00
Mark Jansen
e2c97e602f [DBGHELP_APITEST] Add tests for pdb and rsym parsing. CORE-12773
svn path=/trunk/; revision=73816
2017-02-17 16:15:49 +00:00
Mark Jansen
17a622f506 [SDK][KERNEL32] Add defines for PEB.AppCompatFlags CORE-12768 #resolve
svn path=/trunk/; revision=73815
2017-02-17 16:12:19 +00:00
Thomas Faber
eb5ff5ce18 [LIBTIFF]
- Fix GCC non-PCH build
CORE-12775

svn path=/trunk/; revision=73814
2017-02-17 13:58:26 +00:00
Thomas Faber
34d6ad7853 [LIBTIFF]
- Update to version 4.0.7
CORE-12775 #resolve

svn path=/trunk/; revision=73813
2017-02-17 13:43:05 +00:00
Kamil Hornicek
7db2f3af0f [WIN32K]
- The pattern bitmap can get deleted during the GDI cleanup for process before the brush itself.
- Gets rid of some of those pesky "GreDeleteObject: Trying to delete invalid object" debug prints.

svn path=/trunk/; revision=73812
2017-02-17 13:13:36 +00:00
Thomas Faber
61d91cd9e8 [LIBTIFF]
- Use the official libtiff 4.0.3 def file to determine exported functions (instead of exporting everything in GCC builds, nothing in MSVC builds)
- Remove unused ROS-diffs
CORE-6898 CORE-12275

svn path=/trunk/; revision=73811
2017-02-17 13:05:50 +00:00
Kamil Hornicek
238c9ac8e2 [PING]
- Addendum to r73626. Convert the print specifiers too so that ping doesn't only output the old specifiers themselves.

svn path=/trunk/; revision=73810
2017-02-17 12:30:14 +00:00
Thomas Faber
ea55caa53a [WINDOWSCODECS]
- Fix some MSVC-specific definitions

svn path=/trunk/; revision=73809
2017-02-17 12:17:20 +00:00
Pierre Schweitzer
990af47b16 [FASTFAT]
Thomas->happiness++;

svn path=/trunk/; revision=73808
2017-02-17 11:38:05 +00:00
Pierre Schweitzer
57ec8a7319 [FASTFAT]
Fix a few ugly things.
Both Thomas & cppcheck should be happier now!

svn path=/trunk/; revision=73807
2017-02-17 11:08:38 +00:00
Giannis Adamopoulos
c607de714c [WIN32k]
-Fix a couple of cases where we use the versioned class atom instead of the non versioned one.

[USER32]
- Add support for versioned classes in RegisterClassExWOWW, GetClassInfoExW, GetClassInfoExA, UnregisterClassA, UnregisterClassW, and User32CreateWindowEx
- Make ClassNameToVersion return the name of the versioned class and the library name that implements it while preserving a hack that lets user32 know which classes are registered by comctl32 (this is needed because the default activation context doesn't contain the non versioned classes yet).
- Make VersionRegisterClass to load the specified library and make it register its classes which is used when the class is not registered yet but its manifest is active.

svn path=/trunk/; revision=73806
2017-02-17 11:07:14 +00:00
Thomas Faber
ebf8247723 [LIBJPEG]
- Update to version 9b
CORE-12775

svn path=/trunk/; revision=73805
2017-02-17 11:05:50 +00:00
Thomas Faber
d92f2f5ea1 [LIBPNG]
- Update to version 1.6.28
CORE-12775

svn path=/trunk/; revision=73804
2017-02-17 10:42:03 +00:00
Giannis Adamopoulos
bb9f71835f [COMCTL32]
- Add and install a manifest for comctl32 version 5.82. 
- Since our comctl32 tries to imitate both version 5 and version 6, register its classes twice, once while having the version 6 manifest active and once when having the version 5 active. 
- Register the themed versions of the built in controls while having the version 6 manifest active (and register them as global classes). This breaks theming of built in controls until versioned classes get implemented.
- Do not try to subclass the dialog class. This is incorrect and can lead to problems like in CORE-8534, CORE-12727, CORE-8387. This removes the background texture of the themed tabs which will be implemented in the future in uxtheme using api hooks.
This breaks a great deal of theming but keep in mind that it is in the middle of a transition to have them implemented correctly without the terrible side effects (broken ansi conversion, not always  using themes for built in controls. However comctl32 is now ready for versioned classes to be enabled.
CORE-12285

svn path=/trunk/; revision=73803
2017-02-17 10:04:24 +00:00
Kamil Hornicek
e83d1d9365 [SPIDER]
- Make the formatting a bit more consistent.

[EVENTVWR]
- Remove an useless cast.

svn path=/trunk/; revision=73802
2017-02-15 10:53:41 +00:00
Alex Ionescu
126cfbc810 [BOOTLIB]: Fix assembly file containing Archx86TransferTo32BitApplicationAsm to use assume:nothing, otherwise we end up with SS segment overrides everywhere.
[BOOTLIB]: Correctly bias access to GDT/IDT registers by 2 bytes since this is a 48-bit instruction. The loaded GDT/IDT was previously invalid and causing random GPFs.
[BOOTLIB]: Fix EfiStall in protected mode. It was previously not stalling.
[BOOTLIB]: Fix calculation in MmMapPhysicalAddress 
[BOOTLIB]: Fix missing goto in MmSelectMappingAddress which broke the function in real mode.
[BOOTLIB]: Fix incorrect ranges in MmSelectMappingAddress.
[BOOTLIB]: Fix incorrect offset calculation in MmSelectMappingAddress.
Now hitting (as expected), unimplemented virtual code path in BlMmMapPhysicalAddressEx.

svn path=/trunk/; revision=73801
2017-02-15 00:53:15 +00:00
Giannis Adamopoulos
18d52d4336 [RUNDLL32] -Load and activate the manifest of the hosted dll before loading the library.
svn path=/trunk/; revision=73799
2017-02-14 09:47:13 +00:00
Giannis Adamopoulos
c2c30fe940 [NEWDEV] -Use manifest_hosted.rc.
svn path=/trunk/; revision=73798
2017-02-14 09:41:38 +00:00
Alex Ionescu
c80fda1b0a [BOOTLIB]: Clarify some attributes now that their meaning is clearer.
[BOOTLIB]: Implement MmSelectMappingAddress and fix its prototype.
[BOOTLIB]: Implement MmPapPageAllocatorExtend and fix MmPapAllocatePagesInRange to use it.
We are trying to choose VA 0 for PA 0x8000 and currently fail due to conflicts. TBD.

svn path=/trunk/; revision=73797
2017-02-13 23:47:06 +00:00
Eric Kohl
8c77497afc [UMPNPMGR]
PNP_GetDeviceList and PNP_GetDeviceListSize:
- Do not return CR_CALL_NOT_IMPLEMENTED by default.
- pulLength is counted in characters, not in bytes!
- Use the correct Relations value for PowerRelations.

[NDK]
Add the PowerRelations value to a comment.

[DEVMGR]
CM_Get_Device_ID_List_Size_ExW and CM_Get_Device_ID_List_ExW count the buffer length in characters, not in bytes!

svn path=/trunk/; revision=73796
2017-02-13 22:59:40 +00:00
Eric Kohl
afde7ef918 [NTOSKRNL]
Implement IopGetDeviceRelations().

svn path=/trunk/; revision=73795
2017-02-13 22:38:11 +00:00
Giannis Adamopoulos
6f4d361e2f [SHELL32] -Call CPlApplet export of control panel applets with the correct activation context.
svn path=/trunk/; revision=73794
2017-02-13 22:09:14 +00:00
Pierre Schweitzer
78544a017e [FASTFAT]
In order to make VfatVerify() work on something else than floppies, ask for change count when issuing IOCTL_DISK_CHECK_VERIFY

svn path=/trunk/; revision=73793
2017-02-13 21:17:26 +00:00
Giannis Adamopoulos
25f693843f [UXTHEME] -Move the global variables for the scrollbars into the WND_CONTEXT. Hook ThemeGetScrollInfo to set the correct tracking position as tracking is handled completely in uxtheme. Fixes scrolling while dragging the scrollbar thumb in the listview control.
svn path=/trunk/; revision=73792
2017-02-13 18:45:18 +00:00
Giannis Adamopoulos
ffcce8faae [UXTHEME] -Remove an overzealous check that prevented the scrollbar from being repainted when the cursor was moving in it.
svn path=/trunk/; revision=73791
2017-02-13 17:31:14 +00:00
Giannis Adamopoulos
8e63468492 [UXTHEME] -Fix the size of the thump in the themed scrollbar. CORE-7988
svn path=/trunk/; revision=73790
2017-02-13 17:27:13 +00:00
Giannis Adamopoulos
aae34d2409 [COMCTL32] -Fix drawing the borders of themed controls. Patch by Sylvain Deverre. CORE-10761
svn path=/trunk/; revision=73789
2017-02-13 15:08:47 +00:00
Giannis Adamopoulos
a5ad497158 [BROWSEUI] -Fix a couple of cases where the tree view can cause a crash.
svn path=/trunk/; revision=73788
2017-02-13 15:04:03 +00:00
Giannis Adamopoulos
126bbfdb97 [USER32_APITEST]: Add a couple more tests for GetClassInfoExW.
svn path=/trunk/; revision=73787
2017-02-13 09:58:06 +00:00
Giannis Adamopoulos
6f9bc0e872 [WIN32KNT_APITEST]: Make a test for NtUserGetClassInfo more strict to test its exact return value.
svn path=/trunk/; revision=73786
2017-02-13 09:56:35 +00:00
Thomas Faber
25d242883a [WIN32K:NTUSER]
- Kill a noisy debug print

svn path=/trunk/; revision=73785
2017-02-12 23:09:35 +00:00
Pierre Schweitzer
5b66f1e47b [FASTFAT]
Don't attempt to verify volume if it was already verified in between

svn path=/trunk/; revision=73784
2017-02-12 19:31:31 +00:00
Giannis Adamopoulos
935904f4a0 [WIN32KNT_APITEST]: -Make sure that NtUserUnregisterClass works when it gets the versioned class name. Show that NtUserFindWindowEx needs the non versioned class name.
svn path=/trunk/; revision=73783
2017-02-12 12:11:18 +00:00
Pierre Schweitzer
a03264afb2 [SMSS]
Remove useless nullptr check

svn path=/trunk/; revision=73782
2017-02-12 08:49:53 +00:00
Pierre Schweitzer
6ec8989b85 [SERVMAN]
Remove duplicated condition

svn path=/trunk/; revision=73781
2017-02-12 08:42:03 +00:00
Pierre Schweitzer
d81bed0847 [FASTFAT]
Remove useless assignement

svn path=/trunk/; revision=73780
2017-02-12 08:25:42 +00:00
Thomas Faber
532649d4b1 [IP]
- Handle chained pbuf structures in TCPSendDataCallback
CORE-10715

svn path=/trunk/; revision=73779
2017-02-11 23:13:45 +00:00
Pierre Schweitzer
0d480e9966 [FASTFAT]
In case of an error while trying to verify the volume, only return STATUS_WRONG_VOLUME is raw mounts are allowed

svn path=/trunk/; revision=73778
2017-02-11 20:26:33 +00:00
Pierre Schweitzer
90905aac47 [FASTFAT]
Remove useless assignement

svn path=/trunk/; revision=73777
2017-02-11 18:33:47 +00:00
Kamil Hornicek
390a07e59a [REGEDIT]
- Fix a possible null pointer dereference. CID 731448
- Check string length before copying into a fixed size buffer. CID 515207
- Bail out of _CmdWndProc if keyPath is null. CID 1102164
- Use strsafe functions. CID 1102477

svn path=/trunk/; revision=73776
2017-02-11 16:02:49 +00:00
Thomas Faber
f3fbc9263c [CRT]
- Add missing _sgdt declaration in intrin.h

svn path=/trunk/; revision=73775
2017-02-11 15:55:56 +00:00
Thomas Faber
3024860a8b [IP]
- Apparently MIN_TRACE isn't enough to get printed...
CORE-10715

svn path=/trunk/; revision=73774
2017-02-11 13:36:05 +00:00
Giannis Adamopoulos
f349496e1d [USER32] -class.c: Try to use 4 space indentation. Convert tabs to spaces.
svn path=/trunk/; revision=73773
2017-02-11 12:18:06 +00:00
Thomas Faber
6660eb455a [IP]
- Print some debugging information when hitting 'p->tot_len == p->len' assertion in TCPSendDataCallback.
CORE-10715

svn path=/trunk/; revision=73772
2017-02-11 11:46:38 +00:00
Thomas Faber
d4ede62fde [IPHLPAPI][NETCFGX]
- Don't check arrays against NULL. CID 513720, 513721, 1322048, 1322049

svn path=/trunk/; revision=73771
2017-02-11 10:54:09 +00:00
Kamil Hornicek
ac044acb7d [UMPNPMGR]
- Fix a possible null pointer dereference. CID 515158

svn path=/trunk/; revision=73770
2017-02-11 10:34:35 +00:00
Giannis Adamopoulos
a5ab07e889 [USER32_APITEST] -Add more tests for versioned classes.
svn path=/trunk/; revision=73769
2017-02-11 10:01:13 +00:00
James Tabor
ebc1f941e0 [User32]
- Patch by Dmitry Timoshkov : Fix groupbox rectangle calculation in the button's WM_SETTEXT handler. BUTTON_CalcLabelRect should use the button font. Otherwise WM_SETTEXT handler gets wrong rectangle to erase an old text.
- Fixes CORE-12464.

svn path=/trunk/; revision=73768
2017-02-10 16:05:15 +00:00
Giannis Adamopoulos
dd6803f824 [KERNEL32_APITESTS]: Add more tests for FindActCtxSectionStringW.
svn path=/trunk/; revision=73767
2017-02-10 00:00:28 +00:00
Giannis Adamopoulos
e43a13448e [WINLOGON][MSGINA] -Remove resource manifests. These two components need some special handling regarding manifests.
svn path=/trunk/; revision=73766
2017-02-09 13:27:36 +00:00
Mark Jansen
4e9706e794 [NTOSKRNL] Fix some possible overruns in FsRtlIsNameInExpressionPrivate + add a test from Thomas. CORE-12121
svn path=/trunk/; revision=73765
2017-02-09 00:12:36 +00:00
Hermès Bélusca-Maïto
9e0186b983 [HIVECLS]: Fix /file switch in the open command for MSThemes files.
svn path=/trunk/; revision=73764
2017-02-08 23:34:08 +00:00
Hermès Bélusca-Maïto
9c1e8ef08d [FONTVIEW][HIVECLS]: Addendum to r73755 and r73759: .otc is an OpenType Font Collection file .
svn path=/trunk/; revision=73763
2017-02-08 23:30:05 +00:00
Hermès Bélusca-Maïto
876ddcbeed Je parle la france.
svn path=/trunk/; revision=73762
2017-02-08 23:00:43 +00:00
Hermès Bélusca-Maïto
da88b8a4af [HIVECLS]: Fix few command paths.
svn path=/trunk/; revision=73761
2017-02-08 22:53:28 +00:00
Kamil Hornicek
42f43a36a5 [TASKMGR]
- ellipsis is a pointer not an array. CID 1321855

svn path=/trunk/; revision=73760
2017-02-08 22:52:46 +00:00
Mark Jansen
ba8f65ba67 [HIVECLS|FONTVIEW] Fix fontview registration and add additional extensions. Patch by Katayama Hirofumi MZ. CORE-6621
svn path=/trunk/; revision=73759
2017-02-08 22:41:10 +00:00
Mark Jansen
9ff4f04538 [SHELL32] CDefaultContextMenu: Fix starting applications with just one 'static' menu item.
svn path=/trunk/; revision=73758
2017-02-08 22:24:47 +00:00
Mark Jansen
3f81e26f34 [FONTVIEW] Add support for font collections + show some extra font properties. Patch by Katayama Hirofumi MZ. CORE-6621
Some minor changes by me

svn path=/trunk/; revision=73755
2017-02-08 17:56:22 +00:00
Kamil Hornicek
ca7ae9bbef [EVENTVWR]
- Attempt to speed up loading and displaying logs in EnumEventsThread:
- Rewriting the code fix an infinite loop that could happen under low memory conditions (this potentially speeds things up quite a lot).
- Remove ListView subclassing - sorry Hermès but not only it keeps constantly redrawing under Windows but also adds too much overhead.
- Don't read the event log records one by one but in chunks of roughly 0x7ffff bytes (maximum size allowed).
- Use poor man's "caching" of the event user name (optimizing/caching rest of the stuff in the loop didn't yield any significant speed up).

Result: Loading ~40000 records under Win7 went from 4.5 minutes to 65 seconds.

svn path=/trunk/; revision=73749
2017-02-07 22:33:02 +00:00
Mark Jansen
ab5f5755fc [KERNEL32] Silence some noise during process creation.
svn path=/trunk/; revision=73748
2017-02-07 16:45:50 +00:00
Giannis Adamopoulos
47ee20b4ab [USER32_APITEST]: Add more tests for RegisterClassEx.
svn path=/trunk/; revision=73747
2017-02-07 12:11:26 +00:00
Mark Jansen
21dd348b8e [GDI32_APITEST] Add tests for font creation. Patch by Katayama Hirofumi MZ. CORE-6621
svn path=/trunk/; revision=73746
2017-02-07 11:37:36 +00:00
Mark Jansen
f605f83671 [CRT_APITEST] Add additional test for __getmainargs
svn path=/trunk/; revision=73745
2017-02-07 10:35:35 +00:00
Mark Jansen
b926d3c9a4 [WIN32SS] Mute a major spammer in AHK tests.
svn path=/trunk/; revision=73744
2017-02-07 10:33:42 +00:00
Mark Jansen
9607bedb48 [BOOTLIB] Additional EfiPrintf conversion like r73736 for MSVC 2013
svn path=/trunk/; revision=73743
2017-02-07 10:32:20 +00:00
Alex Ionescu
49216293a4 [BOOTLIB]: Implement MmFwGetMemoryMap when virtual memory is being enabled.
[BOOTLIB]: Implement MmPapAllocatePagesInRange when virtual memory is being enabled.
What's left now is implementing extension for the PA allocator when VM is enabled.

svn path=/trunk/; revision=73742
2017-02-07 04:26:21 +00:00
Alex Ionescu
3c9397513f [BOOTLIB]: Finish implementing Mmx86pMapMemoryRegions.
svn path=/trunk/; revision=73741
2017-02-07 03:34:49 +00:00
Alex Ionescu
6e9b30c86a [BOOTLIB]: Implement most of Mmx86pMapMemoryRegions. Just missing the UEFI mappings now.
svn path=/trunk/; revision=73740
2017-02-07 01:52:57 +00:00
Alex Ionescu
58f2a22a11 [BOOTLIB]: Don't use PTE_BASE/PDE_BASE in bootlib. Use MmPteBase and MmPdeBase instead.
[BOOTLIB]: Implement MmDefpMapPhysicalAddress, MmDefpTranslateVirtualAddress. Fix definition of Mmx86MapPhysicalAddress.

svn path=/trunk/; revision=73739
2017-02-07 01:35:11 +00:00
Alex Ionescu
036af3b730 [BOOTLIB]: Implement BlMmIsTranslationEnabled and MmMapPhysicalAddress. MmDefpMapPhysicalAddress is missing at this point.
svn path=/trunk/; revision=73738
2017-02-06 23:13:47 +00:00
Hermès Bélusca-Maïto
6050891f74 [USERENV]
- Fix some DPRINTs;
- Add parameter validation in CreateUserProfileExW;
- Return the directory path of the created profile in CreateUserProfileExW, if the user wants it;
- Add value type validation for RegQueryValueExW calls;
- Use ARRAYSIZE where needed;
- Add parameter validation in GetAllUsersProfileDirectoryA, GetDefaultUserProfileDirectoryA;
- Correctly return error code in GetAllUsersProfileDirectoryW, GetDefaultUserProfileDirectoryW, GetProfilesDirectoryW and GetUserProfileDirectoryW. Should fix the userenv_apitest:GetProfileDirs tests.

svn path=/trunk/; revision=73737
2017-02-06 22:58:20 +00:00
Hermès Bélusca-Maïto
e324a62898 [BOOTLIB]: Make the EfiPrintf with __FUNCTION__ work also on GCC. Also, on MSVC (2010 at least), concatenating without converting __FUNCTION__ to unicode and adding 'L' for the "\r\n" returned error C2308.
svn path=/trunk/; revision=73736
2017-02-06 22:46:57 +00:00
Hermès Bélusca-Maïto
3f2554487e [USERENV_APITEST]: Add some simple tests for Get[AllUsers|DefaultUser|User]Profile[s]Directory APIs (checking return values & last errors).
svn path=/trunk/; revision=73735
2017-02-06 22:14:50 +00:00
Alex Ionescu
4578326e06 [BOOTLIB]: Finish implementation of MmMdRemoveRegionFromMdlEx for other straddling scenarios.
[BOOTLIB]: Implement Mmx86MapInitStructure and most of Mmx86InitializeMemoryMap.
[BOOTLIB]: Continue implementation of MmDefInitializeTranslation.
[BOOTLIB]: More explicitly mark paths which are not yet implemented for paging mode yet (but only on compilers that don't give compiler errors when trying to use __FUNCTION__.

svn path=/trunk/; revision=73734
2017-02-06 22:11:21 +00:00
Pierre Schweitzer
6e89272bef [FASTFAT]
Take the volume label into account when comparing the FAT volumes in case of a verify.
This helps avoiding remounting every removable device on verify. Current hack is only kept for FATX volumes for now.

svn path=/trunk/; revision=73733
2017-02-06 19:43:48 +00:00
Alex Ionescu
1566f90e46 [BOOTLIB]: Don't use __getcallerseflags() in Archx86IsCpuidSupported -- __readeflags should be good enough.
svn path=/trunk/; revision=73732
2017-02-06 19:34:15 +00:00
Eric Kohl
61c4b92f67 [ACCESS]
Get rid of the calculated control positions and sizes.

svn path=/trunk/; revision=73731
2017-02-06 19:22:48 +00:00
Alex Ionescu
d934f98c23 Cleanly compiles with both VS/GCC on my system even though bcd.h is not included. I have no idea how. Evidence in IRC channel.
svn path=/trunk/; revision=73730
2017-02-06 19:21:01 +00:00
Alex Ionescu
8cee5635e7 [BOOTLIB]: Implement MmPaReserveSelfMapPages, MmPaReleaseSelfMapPages
[BOOTLIB]: Stub MmDefMoveVirtualAddressRange, MmDefZeroVirtualAddressRange, MmDefRelocateSelfMap, MmDefpDestroySelfMap, MmDefpUnmapVirtualAddress, MmDefpRemapVirtualAddress, MmDefpMapPhysicalAddress, MmDefpTranslateVirtualAddress, 
[BOOTLIB]: Implement MmDefpFlushTlbEntry, MmDefpFlushTlb
[BOOTLIB]: Implement MmPaReleaseSelfMapPages, MmPaReserveSelfMapPages.
[BOOTLIB]: Implement Archx86IsCpuidSupported, BlArchIsCpuIdFunctionSupported, BlArchCpuId, BlArchGetPerformanceCounter.
[BOOTLIB]: Implement MmArchInitialize.
[BOOTLIB]: Implement most of MmDefInitializeTranslation. Almost ready to turn on paging.

svn path=/trunk/; revision=73729
2017-02-06 19:07:17 +00:00
Hermès Bélusca-Maïto
5267b02c28 [USERENV]
- Remove old file comment header (the code license is already present in COPYING in the main directory);
- Fix DPRINT;
- Use new-style annotations for exported APIs.

svn path=/trunk/; revision=73728
2017-02-06 18:57:57 +00:00
Pierre Schweitzer
9869fa33f8 [FASTFAT]
Optimize the FAT mount process: there is no need to recognize the FS twice on mounting.

svn path=/trunk/; revision=73727
2017-02-06 18:14:01 +00:00
Hermès Bélusca-Maïto
826536350c [RPCSS][THMSVC]: Perform the internal cleanup tasks before calling SetServiceStatus with 'dwCurrentState = SERVICE_STOPPED', because otherwise (if internal cleanup is done after calling SetServiceStatus) the SCM could kill the service in the middle of its cleanup tasks.
[SVCHOST][WINLOGON][LSASRV][SAMSRV]: Use the SDK-defined constant RPC_C_PROTSEQ_MAX_REQS_DEFAULT instead of hardcoding its value in the RpcServerUseProtseqEpW calls.

svn path=/trunk/; revision=73726
2017-02-06 16:56:32 +00:00
Giannis Adamopoulos
0b7e31082f [USER32_APITEST] -Add tests for global classes and versioned classes for RegisterClassEx.
svn path=/trunk/; revision=73725
2017-02-06 16:33:25 +00:00
Hermès Bélusca-Maïto
772d8095c2 The 'UNIMPLEMENTED' macro call should be followed explicitely by a semicolon.
svn path=/trunk/; revision=73724
2017-02-06 15:49:23 +00:00
Hermès Bélusca-Maïto
e96ee73cba [EXPLORER]: One indentation and one return value fix.
svn path=/trunk/; revision=73723
2017-02-06 15:18:33 +00:00
Alex Ionescu
27f761d0a3 [BOOTLIB]: Clarify that BlMemoryReserved == BlMemoryBelow1MB
[BOOTLIB]: Implement EfiAllocatePages, EfiFreePages for Protected Mode.
[BOOTLIB]: Fix a "Todo" in MmFwGetMemoryMap: We now free the EFI buffer used for the memory map itself, and unmap it from the memory map (which would show it as 'in-use' while we're dumping it).

svn path=/trunk/; revision=73722
2017-02-06 03:14:14 +00:00
Alex Ionescu
88dcf31856 [BOOTLIB]: Implement MmArchTranslateVirtualAddress for non-paging mode. Stub Mmx86TranslateVirtualAddress.
[BOOTLIB]: Support EfiPrintf in Protected mode.
[BOOTLIB]: Support EfiGetMemoryMap in Protected Mode.

svn path=/trunk/; revision=73721
2017-02-05 22:34:47 +00:00
Alex Ionescu
0348b64178 [BOOTMGR]: Fix more gcc warnings. Maybe we should stop building GCC with /Wall but MSVC with /Wnothing?
[BOOTLIB]: Hack EfiPrintf temporarily so we can get print outs even in "Protected mode".
[ROSLOAD]: Begin implementation. First, many bootlib fixes needed.

svn path=/trunk/; revision=73720
2017-02-05 22:17:07 +00:00
Alex Ionescu
968d02e55c [BOOTLIB]: Fix bug in MmPapFreePhysicalPages.
svn path=/trunk/; revision=73719
2017-02-05 22:03:27 +00:00
Alex Ionescu
481f7c440a [BOOTMGR]: Finish alloc/free test. It shows that it seems? to be working ok? :-)
[BOOTLIB]: Wrap-up implementation of MmPapFreePhysicalPages. We no longer leak RAM.

svn path=/trunk/; revision=73718
2017-02-05 22:02:24 +00:00
Eric Kohl
bcb2480c3c [VARIOUS]
- Complete and updated translation for: runonce, winlogon, deskadp, deskmon, slayer, user32 and winsrv.
- Added right-to-left extended style for all dialogs.
Patch by Baruch Rutman.
CORE-6904 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73717
2017-02-05 21:52:49 +00:00
Alex Ionescu
16fa7d18c5 [BOOTMGR]: Fix bug in test.
[BOOTLIB]: Fix bug in MmMdFindDescriptorFromMdl.
[BOOTLIB]: Implement MmFwFreePages.
[BOOTLIB]: Implement most of MmPapFreePhysicalPages. The rest is coming next.
[BOOTMGR]: Add test for alloc/free.

svn path=/trunk/; revision=73716
2017-02-05 21:50:14 +00:00
Eric Kohl
b5f0b7d584 [APPWIZ]
Replace resource metrics by fixed sizes.

svn path=/trunk/; revision=73715
2017-02-05 21:46:51 +00:00
Eric Kohl
12a284e9eb [CPL]
Remove unused resource metrics.

svn path=/trunk/; revision=73714
2017-02-05 21:15:25 +00:00
Alex Ionescu
0cf270e3ca [BOOTLIB]: Fix GCC build. Maybe I should stop using MSVC.
svn path=/trunk/; revision=73713
2017-02-05 20:52:00 +00:00
Alex Ionescu
6eb6728488 [BOOTMGR]: Add the basics of some memory allocator/descriptor tests.
[BOOTLIB]: Implement MmMdFindDescriptorFromMdl (broken?)
[BOOTLIB]: Implement MmMdFindDescriptor.
[BOOTLIB]: Implement BlMmFreePhysicalPages.
[BOOTLIB]: Implement MmPapFreePages for physical memory translation scenario only.

svn path=/trunk/; revision=73712
2017-02-05 19:55:49 +00:00
Kamil Hornicek
b4bf1a0c92 [SPIDER]
- Add a null pointer check. CID 500248
- Check for a memory allocation failure.
- Improve Czech resources.

svn path=/trunk/; revision=73711
2017-02-05 18:17:27 +00:00
Pierre Schweitzer
95415c2f28 [FASTFAT]
Addendum to r73709:
- Also apply the override to FATX partitions

CORE-9988

svn path=/trunk/; revision=73710
2017-02-05 17:14:42 +00:00
Pierre Schweitzer
8987f5fa46 [FASTFAT]
- Modify the VfatHasFileSystem() so that it allows a DO_VERIFY_VOLUME override, when required
- Fix the implementation of VfatVerify() so that it actually really does the job it's supposed to do:
  - it will now use the appropriate DO for verification (lower DO and not volume DO)
  - it will properly clear the DO_VERIFY_VOLUME flag
- Introduce a hack in VfatVerify() so that in case of removal media, if FATInfo is the same, it forces a dismount

Effects of this commit:
- It properly fixes CORE-9988. That means if a FAT media changes, now FastFAT properly handles it, and does not go to a code path producing (expected!) BSODs
- The hack introduces a hacky way to make ReactOS remount FAT floppies when changed

In short, changing FAT floppy in ReactOS doesn't make it BSOD any longer.

CORE-9988

svn path=/trunk/; revision=73709
2017-02-05 17:07:31 +00:00
Kamil Hornicek
73bb103c3c [KBSWITCH]
- Don't fall through to the default label. CID 515166

[NTUSER]
- Fix a copypasta.

[USER32]
- Fix computing of HKL for layouts with Layout id.
- Don't call NtUserLoadKeyboardLayoutEx with bogus keyboard layout id.
- Ideally LoadKeyboardLayout should return the default system layout on failure - to be continued.

svn path=/trunk/; revision=73708
2017-02-05 15:42:23 +00:00
Alex Ionescu
66a30f987b [BOOTLIB]: Stub MmPapFreePages
[BOOTLIB]: Implement BlImgUnallocateImageBuffer
[BOOTLIB]: Stub BlMmTranslateVirtualAddress

svn path=/trunk/; revision=73707
2017-02-05 15:14:44 +00:00
Giannis Adamopoulos
1b634b38ec [BROWSEUI]
-CExplorerBand: Commit the last part of the work submitted by Sylvain Deverre. Sorry for not committing all this time. Unfortunately some parts were changed and some parts don't work well and we need to debug it a bit.
CORE-10838

svn path=/trunk/; revision=73706
2017-02-05 13:41:45 +00:00
Giannis Adamopoulos
2ee2be0a07 [SHELL32] -CDesktopBrowser: Implement handling FCIDM_DESKBROWSER_REFRESH.
svn path=/trunk/; revision=73705
2017-02-05 12:35:47 +00:00
Giannis Adamopoulos
5e63cb55f0 [SHELL32] -The only change I did in the previous patch was buggy.
svn path=/trunk/; revision=73704
2017-02-05 12:27:53 +00:00
Giannis Adamopoulos
029cc4a9a1 [SHELL32]
- Implement View tab in Folder options dialog.
CORE-12540
Patch by Katayama Hirofumi MZ with a tiny improvement by me to refresh explorer in a better way.

svn path=/trunk/; revision=73703
2017-02-05 12:15:59 +00:00
Giannis Adamopoulos
af6491bc87 [BROWSEUI] - CShellBrowser: Implement Refresh menu item in the View menu.
svn path=/trunk/; revision=73702
2017-02-05 11:01:24 +00:00
Thomas Faber
25382c0600 [FATTEN][KBDTOOL][RSYM]
- Fix clang warnings

svn path=/trunk/; revision=73701
2017-02-05 10:46:29 +00:00
Thomas Faber
3f11bbbaf1 [BOOTLIB]
- Add missing asm dependency

svn path=/trunk/; revision=73700
2017-02-05 10:45:50 +00:00
Kamil Hornicek
4b762458f9 [CONTROL]
- Use strsafe functions. CID 515200

svn path=/trunk/; revision=73699
2017-02-05 10:28:42 +00:00
Thomas Faber
82fdf83109 [ZLIB]
- Update to 1.2.11
CORE-12753 #resolve

svn path=/trunk/; revision=73698
2017-02-05 10:28:40 +00:00
Thomas Faber
b6295d12e2 [HHPCOMP]
- Avoid implicit function declarations

svn path=/trunk/; revision=73697
2017-02-05 09:58:22 +00:00
Thomas Faber
41c7ba2971 [TOOLS]
- Add /EHsc for all C++ sources under MSVC instead of doing it per-file

svn path=/trunk/; revision=73696
2017-02-05 09:51:33 +00:00
Thomas Faber
719936a2f1 [ZLIBHOST]
- We only need the minimal Z_SOLO functionality. Avoids some compiler warnings.

svn path=/trunk/; revision=73695
2017-02-05 09:42:43 +00:00
Thomas Faber
dc0fc72451 [BOOTLIB]
- Remove an unused variable aka fix GCC build

svn path=/trunk/; revision=73694
2017-02-05 08:50:40 +00:00
Alex Ionescu
d48996392c [ROSLOAD]: Implement most of OslMain, which will try to initialize BootLib in Virtual Protected Mode (mostly unimplemented).
[BOOTLIB]: Fix GCC build.
Bootmgr now correctly switches execution into rosload, which must now be implemented.

svn path=/trunk/; revision=73693
2017-02-05 06:02:11 +00:00
Alex Ionescu
7800da4db6 [BOOTLIB]: Implement BlFwGetParameters.
[BOOTLIB]: Implement ImgpCopyApplicationBootDevice except for partition devices;
[BOOTLIB]: Implement ImgpInitializeBootApplicationParameters.
[BOOTLIB]: Fix bug in BlMmGetMemoryMap.
[BOOTLIB]: Simplify MmMdCopyList.

svn path=/trunk/; revision=73692
2017-02-05 05:35:44 +00:00
Alex Ionescu
e3dca9d237 [BOOTLIB]: Implement BlMmGetMemoryMap.
[BOOTLIB]: Implement MmMdCountList, MmMdInitializeList, MmMdCopyList
[BOOTLIB]: Bugfixes.

svn path=/trunk/; revision=73691
2017-02-05 01:54:52 +00:00
Sylvain Petreolle
3cd888817c fix reactos_support_code MSVC build.
svn path=/trunk/; revision=73690
2017-02-05 01:03:45 +00:00
Alex Ionescu
996dfea0be [BOOTLIB]: Fix from hermes for BlReplaceBootOptions
[BOOTLIB]: More WIP transfer code.

svn path=/trunk/; revision=73689
2017-02-05 00:05:19 +00:00
Thomas Faber
0e90ca425c [BOOTLIB][CRT]
- Fix GCC build

svn path=/trunk/; revision=73688
2017-02-04 23:50:32 +00:00
Alex Ionescu
28dad177a0 [BOOTLIB]: Begin adding support for transferring to newly loaded i386 image.
svn path=/trunk/; revision=73687
2017-02-04 21:59:52 +00:00
Mark Jansen
6ee138b21a [HIVECLS|MSPAINT] Add Edit menu item for bitmaps. CORE-12679 #resolve
svn path=/trunk/; revision=73686
2017-02-04 21:26:59 +00:00
Alex Ionescu
836e49cf3b [BOOTLIB]: Super cool that y'all went and fixed typos in the codebase, but fixing UEFI Official Specification Headers in our source tree is a bit much. Please submit a pull request to EDK-II if you'd like.
svn path=/trunk/; revision=73685
2017-02-04 20:45:02 +00:00
Alex Ionescu
81ddcd09c3 [BOOTMGR]: ThFabba making me jealous. Fix a logic bug that Coverity *didn't* find. Ha. I'm better.
[BOOTLIB]: Apply the "Fuck You Binutils" hack only for ld-generated files, to unbreak MSVC UEFI boot.

svn path=/trunk/; revision=73684
2017-02-04 19:45:38 +00:00
Pierre Schweitzer
bdabc81718 [FASTFAT]
vfatMakeFCBFromDirEntry(), use appropriate tag on free.
Dedicated to Thomas :-)

svn path=/trunk/; revision=73683
2017-02-04 19:37:40 +00:00
Alex Ionescu
9ae2e91963 [CONFIGURE]: Better fix thanks to gigaherz.
svn path=/trunk/; revision=73682
2017-02-04 18:55:47 +00:00
Thomas Faber
4e8b6ffda0 [LIBUSB]
- Avoid pointless assignment in CDMAMemoryManager::Initialize. CID 515285

svn path=/trunk/; revision=73681
2017-02-04 18:36:13 +00:00
Alex Ionescu
9feb079172 [CONFIGURE]: Hack-support VS15 (VS 2017)
svn path=/trunk/; revision=73680
2017-02-04 17:59:32 +00:00
Pierre Schweitzer
39b324e543 [FASTFAT]
In vfatMakeFCBFromDirEntry(), handle vfatFCBInitializeCacheFromVolume() failure

svn path=/trunk/; revision=73679
2017-02-04 17:54:38 +00:00
Pierre Schweitzer
e85e97caeb [FASTFAT]
Drop a hack that seems no longer needed

svn path=/trunk/; revision=73678
2017-02-04 17:52:39 +00:00
Thomas Faber
e2e4314c68 [BOOTLIB]
- Zero the correct structure in EtfsOpen. CID 1341378

svn path=/trunk/; revision=73677
2017-02-04 17:41:14 +00:00
Thomas Faber
b001a719b7 [SYSDM]
- Fix wrong sizeof expression in DeleteHardwareProfile. CID 1322188

svn path=/trunk/; revision=73676
2017-02-04 17:27:49 +00:00
Thomas Faber
b1de4fb737 [BOOTLIB]
- Fix operator precedence in call to MmMdAddDescriptorToList. CID 1341191.

svn path=/trunk/; revision=73675
2017-02-04 17:00:26 +00:00
Sylvain Petreolle
cfe19bdf5f [STOBJECT]
Add a partial French translation.
Remove hardcoded string.
CORE-12490 #resolve

svn path=/trunk/; revision=73674
2017-02-04 16:12:15 +00:00
Sylvain Petreolle
243d613886 [STOBJECT]
Fix syntax of power resources.
CORE-12490

svn path=/trunk/; revision=73673
2017-02-04 15:35:16 +00:00
Giannis Adamopoulos
1cd6fc67b1 [SHELL32] -Remove two annoying prints. A FIXME comment is more than enough.
svn path=/trunk/; revision=73672
2017-02-04 15:12:25 +00:00
Giannis Adamopoulos
9594cc6ea9 [BROWSEUI] - Remove useless print.
svn path=/trunk/; revision=73671
2017-02-03 22:15:13 +00:00
Kamil Hornicek
747a21c72e [SETUPAPI]
- fix a mix up, caught by Mark

svn path=/trunk/; revision=73670
2017-02-02 19:48:38 +00:00
Kamil Hornicek
49f2678311 [SETUPAPI]
- remove logically dead code in SetupDiGetClassImageIndex, CID 500046
- prevent null pointer dereference in SetupDiGetClassDevPropertySheetsA, CID 500676
- use strsafe functions in SETUP_CreateDevicesListFromEnumerator, CID 514263
- fix a check and adjust the logic in SetupDiLoadClassIcon to remove dead code and possible null pointer dereference CID 1250279, CID 1250287

svn path=/trunk/; revision=73669
2017-02-02 19:41:19 +00:00
Kamil Hornicek
1014d132dc [CALC]
- Fix a(n) (im)possible buffer overrun. Just a defensive measure in case some future work on calc would trigger this. CID 716050

svn path=/trunk/; revision=73668
2017-02-02 11:07:01 +00:00
Thomas Faber
f2ca31bf0f [NTOS]
- Remove a useless declaration.
CORE-12729 #resolve

svn path=/trunk/; revision=73666
2017-02-01 23:01:00 +00:00
Mark Jansen
1ec199bac3 [TRANSLATIONS] Addendum to r73662, fix the build.
svn path=/trunk/; revision=73665
2017-02-01 22:45:04 +00:00
Giannis Adamopoulos
cf28e96ee8 [SHELL32] -CDefView: Calculate correctly the position of the cursor over the icon. Call ImageList_DragEnter only after we are sure that DragEnter will succeed.
svn path=/trunk/; revision=73664
2017-02-01 21:43:20 +00:00
Kamil Hornicek
b12e316394 [MSPORTS]
- Check for failure when calling SetupDiGetActualSectionToInstallW so we don't pass garbage to SetupInstallFromInfSectionW. CID 715920

svn path=/trunk/; revision=73663
2017-02-01 18:36:40 +00:00
Kamil Hornicek
5fd3611831 [TRANSLATIONS]
- fix, update and add some czech translations + two tiny "improvements" in english ones

In case anyone wants to continue - these modules lack czech resources completely:
(and I suggest doing getuname first)
clip comp doskey eventcreate mode taskkill tree whoami wmic xcopy ipconfig net clb diskpart acppage fontext browseui getuname iernonce lsasrv modemui msports rasdlg samsrv tapiui localmon

svn path=/trunk/; revision=73662
2017-02-01 14:45:59 +00:00
Giannis Adamopoulos
9d21751b1b [SHELL32] - CDefView: Implement rudimentary support for drag icons. For now we only show the icon of the first item (no caption or other icons yet).
svn path=/trunk/; revision=73661
2017-02-01 14:22:45 +00:00
Giannis Adamopoulos
926c3cfb05 [SHELL32] Implement support for IID_IDropTarget in CDesktopFolder::GetUIObjectOf and CDrivesFolder::GetUIObjectOf. Fixes dragging items to the icons of My documents, Recycle bin or drive.
svn path=/trunk/; revision=73660
2017-02-01 13:31:55 +00:00
Hermès Bélusca-Maïto
ccf03e4ba8 [WELCOME]: Addendum to r73656: The application title is also customizable!
Change also the name of some helper functions.

svn path=/trunk/; revision=73658
2017-02-01 03:51:40 +00:00
Hermès Bélusca-Maïto
9ffcd6f25a [WELCOME]: Follow-up to r73590: Load a "welcome.ini" configuration file inside the path of the welcome.exe application, if present, that specifies few default values to use for the interface, as well as the path (possibly relative) to a subdirectory containing ini files specifying localized resources for the interface.
[BOOTDATA]: Add a default "welcome.ini" file to the build, only for hybrid-cds. The ini files containing the localized resources are automatically converted to UTF-16 prior to inclusion in the hybridcd.

svn path=/trunk/; revision=73656
2017-02-01 03:12:56 +00:00
Hermès Bélusca-Maïto
229958ea1d [CMAKE]: Fix the dependencies for the hybridcd.
svn path=/trunk/; revision=73654
2017-02-01 02:18:30 +00:00
Hermès Bélusca-Maïto
103ff5a0b0 [ISOMBR]: Pad isombr.S to the size expected by the 'isohybrid' tool.
svn path=/trunk/; revision=73651
2017-01-31 22:08:19 +00:00
Thomas Faber
7eb46b4d50 [BOOTLIB]
- Correctly check for floppy devices in BlockIoEfiGetDeviceInformation. CID 1341189.

svn path=/trunk/; revision=73643
2017-01-31 13:15:29 +00:00
Thomas Faber
ea461699aa [MSPAINT]
- Add missing break in CMainWindow::OnCommand/IDM_FORMATICONBAR. CID 1322024.

svn path=/trunk/; revision=73642
2017-01-31 12:53:39 +00:00
Thomas Faber
ed174701c8 [LIBWINE]
- Fix broken indentation (-Wmisleading-indentation)

svn path=/trunk/; revision=73641
2017-01-31 12:46:37 +00:00
Thomas Faber
5eebde25c0 [ACPI]
- Fix some broken indentation (and GCC6 -Wmisleading-indentation warnings with it)

svn path=/trunk/; revision=73637
2017-01-30 19:20:54 +00:00
Thomas Faber
ceeeea30e1 [FREELDR]
- Correctly check for vertical retrace in PcVideoSync. CID 513066.

svn path=/trunk/; revision=73636
2017-01-30 13:50:10 +00:00
Thomas Faber
d41a3f0e64 [DHCPCSVC]
- Addendum to r69652: Avoid some more "Operands don't affect result" warnings. CID 515151, 515152, 515153

svn path=/trunk/; revision=73635
2017-01-30 13:43:21 +00:00
Thomas Faber
2a53c5f4b0 [PSDK]
- Remove incorrect bit masking from IsRecognizedPartition & IsContainerPartition. CID 1341188.

svn path=/trunk/; revision=73634
2017-01-30 13:33:46 +00:00
Thomas Faber
c8ec5e1a66 [FRAMEDYN]
- Fix integer overflow checks. CID 1101981, 1248380, 1248381

svn path=/trunk/; revision=73633
2017-01-30 13:15:41 +00:00
Thomas Faber
dacd843616 [NDK]
- Add missing lpctypes.h include in lpcfuncs.h
- Fix some file header comments

svn path=/trunk/; revision=73632
2017-01-30 11:45:51 +00:00
Hermès Bélusca-Maïto
96fc9a41f8 [PING]: Convert ping to use ConStreams. Also fix file redirection.
CORE-12122 #resolve

svn path=/trunk/; revision=73626
2017-01-29 20:29:28 +00:00
Hermès Bélusca-Maïto
0ad9e5d154 [CMD]: The 'type' command can open & display files opened with write access.
svn path=/trunk/; revision=73623
2017-01-29 17:45:34 +00:00
Hermès Bélusca-Maïto
c8a8975faf [TREE]: Rework the utility (use explicit UNICODE, use WIN32 types, remove useless dependency to user32...), and add support for console ConUtils streams.
CORE-12677 #resolve

svn path=/trunk/; revision=73622
2017-01-29 16:51:23 +00:00
Hermès Bélusca-Maïto
ff5f825f59 [FREELDR]
- Simplify the implementation of the 'DiskGetBootPath' function;
- Cache the retrived freeldr boot path (corresponding to a given 'FrldrBootDrive' number);
- Introduce a 'DiskIsCdRomDrive' function to attempt to fix CORE-12692 .

svn path=/trunk/; revision=73621
2017-01-29 15:43:12 +00:00
Thomas Faber
841f48d8f2 [CALC]
- Do not push memory stores onto the operation stack since they can't be acted upon. Based on a patch by Katayama Hirofumi MZ.
CORE-12325 #resolve

svn path=/trunk/; revision=73620
2017-01-29 14:25:28 +00:00
Hermès Bélusca-Maïto
a5fd03e6e1 [SHELL32]: Fix build on *sane* compilers (wth, is that an assignment without the equal sign, or a called constructor, missing its parentheses?!).
svn path=/trunk/; revision=73619
2017-01-29 13:48:39 +00:00
Hermès Bélusca-Maïto
9a649094dc [FREELDR]: Part 3 of my local changes merging:
- Remove the DiskVtbl functions (machxbox.c) of the XBOX and share them instead with those of the PC, since they are basically the same.
  They just however differ by which 'DiskGetPartitionEntry' function they use. To cope with this, 'DiskGetPartitionEntry' becomes a pointer
  to either the default function 'DiskGetMbrPartitionEntry' (which indeed assumes a MBR-layout, see partition.c), or the special function
  'XboxDiskGetPartitionEntry' in the case of partitionless XBOX disks.
  Note that, by the way, partition.c should in the future support GPT-layout disks as well...
- The boot devices pre-initialization code can also be shared as well, thus getting rid of 'XboxInitializeBootDevices', because we note that
  this is exactly what the (old) XBOX version of 'DetectBiosDisks' did at its beginning.
- But then, we can also share 'DetectBiosDisks' XBOX code with its PC version, and also *fix* the PC code version as well!
  'DetectSystem' and 'DetectBiosDisks' are therefore merged *as they should be*. Thanks to the boot devices pre-initialization code that has
  run before the hardware detection, 'DetectBiosDisks' can just use the cached information.
- Now we correctly initialize the PC root HW system configuration key: we first create it, then, after the bios disks (floppies + HDDs) are enumerated
  we set the BIOS INT13h disk data to the system key's configuration data.

svn path=/trunk/; revision=73618
2017-01-29 02:35:28 +00:00
Thomas Faber
17990b28a2 [FREELDR]
- Correctly check for buffer overflow in DetectPnpBios. Patch by Serge Gautherie.
CORE-12623 #resolve

svn path=/trunk/; revision=73617
2017-01-29 00:00:22 +00:00
Hermès Bélusca-Maïto
dde1f97a02 [FREELDR]: More local changes merging, part 2/x:
- Move the HW detection code specific to the PC architecture from hardware.c to machpc.c, keeping in hardware.c the code that is shared between PC and XBOX.
- Move what remained of i386disk.c into pcdisk.c (specific to PC architecture) + code formatting.
- Move what remained of xboxhw.c into machxbox.c (specific to XBOX architecture); we discover that some code related to disk management is actually shared with PC architecture (in hwdisk.c): hwdisk.c therefore contains disk-management routines common to both PC & XBOX.
- xboxdisk.c: Code formatting only.
- Cleanup in disk.c/disk.h

svn path=/trunk/; revision=73616
2017-01-28 23:47:35 +00:00
Mark Jansen
8c8c4f495c [EXPLORER] Re-save the start menu banner so that we can display it again (and touch the .rc so it will be used).
svn path=/trunk/; revision=73615
2017-01-28 23:05:04 +00:00
Giannis Adamopoulos
36f927df20 [SHELL32] - CDefView: When dragging an item it shouldn't interact with itself. So you can move a folder in itself. Highlight the item that we are dragging over if it can accept the item that is being dragged.
svn path=/trunk/; revision=73614
2017-01-28 21:43:53 +00:00
Thomas Faber
334e885321 [CMAKE]
- Add missing target-level dependency when passing a target to add_rostests_file

svn path=/trunk/; revision=73613
2017-01-28 21:41:12 +00:00
David Quintana
87b6094ea0 [EXPLORER]
* Recreated the start menu banner as a SVG file in Inkscape.
* Deleted old PSD (Photoshop) files.
* Replaced the explorer banner BMP with one exported by Inkscape from the SVG file.
The end result is slightly sharper text, but otherwise identical.

svn path=/trunk/; revision=73612
2017-01-28 21:11:39 +00:00
Hermès Bélusca-Maïto
fd61c08de6 Fix build.
svn path=/trunk/; revision=73611
2017-01-28 20:11:38 +00:00
Hermès Bélusca-Maïto
ca27ff05fc [FREELDR]: Gently merge my local changes, part 1/x:
- Adjust the prototype of DiskGetBootPath;
- Add back 1 HW helper function.

svn path=/trunk/; revision=73610
2017-01-28 20:06:03 +00:00
Thomas Faber
2c8cb9c285 [FREELDR]
- Add missing checks for allocation failure in DetectSerialPointerPeripheral and DetectPS2Mouse. Patch by Serge Gautherie.
CORE-12623

svn path=/trunk/; revision=73608
2017-01-28 13:55:50 +00:00
Thomas Faber
7d54bdf9cc [NTOS:MM]
- Support MmSpecialPoolTag == '*' to mean all tags. By Serge Gautherie.
CORE-12711 #resolve

svn path=/trunk/; revision=73607
2017-01-28 13:08:19 +00:00
Hermès Bélusca-Maïto
081ba36892 [FREELDR]
- Use 'DiskReadBufferSize' instead of hardcoded values in hwdisk.c
- Transform reactos_arc_disk_info into a ARC_DISK_SIGNATURE_EX structure, so that its conversion into a ARC list in winldr.c becomes a bit simpler.
- In winldr.c:
  * In case we fail to either open the SYSTEM hive or scan it, bail out with an error message, instead of trying to continue loading ROS.
  * Fix an old comment related to ACPI;
- In memory.c/h: Do some cleanup (in particular, just use the MachXXX macros instead of also defining functions with the same names as the macros, and which just redirect into the virtual table).

svn path=/trunk/; revision=73606
2017-01-27 14:43:41 +00:00
Amine Khaldi
9bbe22afa8 [HIDPARSE][HIDPARSER][LIBUSB][USBHUB] Merge USB stack improvements by Vardan Mikayelyan in GSoC.
svn path=/trunk/; revision=73605
2017-01-27 11:09:36 +00:00
Amine Khaldi
92d1110c00 [STORAHCI] Merge Storport Miniport driver by Aman Priyadarshi in GSoC.
svn path=/trunk/; revision=73604
2017-01-27 10:11:30 +00:00
Hermès Bélusca-Maïto
8d91d51710 [SHELL32]: Replace some animations with RLE-8 compressed ones; courtesy Jared Smudde. Thanks!
CORE-11643

svn path=/trunk/; revision=73601
2017-01-27 01:07:47 +00:00
Giannis Adamopoulos
3dc773f430 [SDK] -rosctrls.h: Add GetItemPosition and SetItemPosition methods in CListView.
svn path=/trunk/; revision=73600
2017-01-26 17:03:35 +00:00
Giannis Adamopoulos
3938ea389a [SHELL32] -CDefView: Implement moving icons around. Note that the positions are never stored so a refresh returns them to their initial position.
svn path=/trunk/; revision=73599
2017-01-26 16:48:52 +00:00
Hermès Bélusca-Maïto
40768427f8 [FREELDR]: Fix GCCLin compilation (#if'd 0 an unused static function; I keep it there still in case it can become useful later).
svn path=/trunk/; revision=73597
2017-01-25 22:50:46 +00:00
Hermès Bélusca-Maïto
bf571b10a0 [XDK]: Do not always redefine the ASSERT(MSG) macros with the NT_xxx ones, especially for the FreeLdr/... bootloader (where we don't use WinDbg for debugging, yet), because in this case the int 0x2c is hardly informative. We fall back to the good old RtlAssert which displays an assertion failure string in the default debug output port (e.g. serial), and then does an int 0x03.
[FREELDR]
- "static"-ify some printing helper functions;
- hide the textmode cursor before blue-screening;
- disable interrupts before hanging forever.

svn path=/trunk/; revision=73596
2017-01-25 22:43:04 +00:00
Colin Finck
9ec5efa4f7 [ISOHYBRID]
Import the isohybrid tool from http://repo.or.cz/syslinux.git/tree/138e850fab106b5235178848b3e0d33e25f4d3a2:/utils

I had to add a lot of glue code (getopt, err/errx/warn/warnx) to get it to compile under all our build platforms Windows, Linux and macOS.
GPT/Mac partition support is disabled at the moment (look for REACTOS_ISOHYBRID_EFI_MAC_SUPPORT), that would need a portable libuuid.
A fix for correctly opening ISOs as binary and not text-mode has been implemented and already sent upstream.

ISOs are not being patched automatically yet due to CORE-12692

CORE-12648

svn path=/trunk/; revision=73595
2017-01-24 22:53:20 +00:00
Colin Finck
29bebdf5b3 [BOOTSECT]
Overhaul our ISO boot sector:
- Add another entry point for hybrid booting (called by isombr) and the hybrid signature needed for isohybrid.
- Import latest isolinux.asm "API" from http://repo.or.cz/syslinux.git/blob/8bbb10b70905339b7ca6b58d6833b6a95ab03dae:/core/isolinux.asm (latest version to date) and http://repo.or.cz/syslinux.git/blob/9141c603930ef23da1e08e487a0c26750fbb4fbe:/core/isolinux.asm (latest version that came with all functions in ASM).
  Among other things, this brings us getlinsec_ebios (for reading setupldr.sys in hybrid/MBR mode) and BrokenAwardHack (for working around broken Award BIOSes)
- Fix upstream getlinsec_ebios to load files >64K.
- Load the HDD boot sector directly to 0x7C00 instead of trackbuf. This way, we don't have to load it again when the user decides to boot from HDD.
- Check for the 0xAA55 signature to decide if the HDD contains a valid MBR. This was done differently and inconsistently for isoboot and isobtrt.
- Adapt the file and comment style to ReactOS guidelines. Add meaningful comments to our main code. Remove stuff that was just taken from isolinux.asm, but makes no sense for our version.
- Remove DEBUG_MESSAGES ifdef. There is no chance they can ever fit into the 2K sector with all the added features. Debugging can still happen using Bochs or adding specific messages.

Tested with Bochs, QEMU, VMware, VirtualBox and four real computers.
Many thanks to Hermès for all the helpful suggestions and additional investigations! :)

CORE-12648

svn path=/trunk/; revision=73594
2017-01-24 22:45:37 +00:00
Robert Naumann
b2c245865a [SUBST] improve/fix German translation. Patch by "Joefish". CORE-12654 #resolve
svn path=/trunk/; revision=73593
2017-01-24 22:22:58 +00:00
Robert Naumann
07392e555e [HELP] Small grammar correction. Based on parch by Doug Lyons. CORE-12669 #resolve
svn path=/trunk/; revision=73592
2017-01-24 22:18:24 +00:00
Giannis Adamopoulos
2e07736507 [SHELL32]
- CDefaultContextMenu: Fix the implementation of the QueryContextMenu to respect how IContextMenu should function. Don't ignore idCmdFirst and idCmdLast parameters. Return a correct HRESULT. For now I'm not sure how 0 cmd ids should be handled and if the standard menu items should also be affected by these parameters.

svn path=/trunk/; revision=73591
2017-01-24 16:35:36 +00:00
Hermès Bélusca-Maïto
b40958162a [WELCOME]
- Start implementing the possibility of customizing the Welcome.exe utility using configuration INI files (e.g. what we would do for FOSDEM, CLT, etc...)
- Resources cleanup.

svn path=/trunk/; revision=73590
2017-01-24 14:42:07 +00:00
Hermès Bélusca-Maïto
9e499d4fb4 [i8042prt]: Yet another hack for Dell Latitude E4310 for touchpad.
CORE-12434

svn path=/trunk/; revision=73589
2017-01-24 00:58:52 +00:00
Eric Kohl
44f312e477 [FREELDR]
Add VESA DDC detection and EDID read code. Work in progress.

svn path=/trunk/; revision=73587
2017-01-22 15:03:11 +00:00
Jérôme Gardou
b63e5725ae [CDFS]
- Reduce stack usage by manipulating UNICODE_STRINGS we are given instead of copying it a gazillion times
 - Do not assume said strings are null-terminated

svn path=/trunk/; revision=73586
2017-01-22 11:55:29 +00:00
Eric Kohl
b9b510dbc1 [ADVAPI32]
Add I_ScIsSecurityProcess() stub.

svn path=/trunk/; revision=73585
2017-01-21 11:57:43 +00:00
Hermès Bélusca-Maïto
a7253195cd [PSDK]: Add the declarations for IsNetDrive, DriveType and RealDriveType functions (from shell32).
svn path=/trunk/; revision=73584
2017-01-19 19:39:53 +00:00
Hermès Bélusca-Maïto
7b725d5d8f [SHELL32]: Follow-ups to r73579 and r73580: use PathYetAnotherMakeUniqueName.
CORE-12684

svn path=/trunk/; revision=73583
2017-01-18 23:47:38 +00:00
Hermès Bélusca-Maïto
47df3c243f [SHELL32]: Code formatting only.
svn path=/trunk/; revision=73582
2017-01-18 23:44:46 +00:00
Hermès Bélusca-Maïto
1f1f5a4c49 [SHELL32]: Remove trailing whitespace.
svn path=/trunk/; revision=73581
2017-01-18 21:03:46 +00:00
Hermès Bélusca-Maïto
a770bf5f98 Fix a bug introduced in r73579.
CORE-12684

svn path=/trunk/; revision=73580
2017-01-18 12:59:35 +00:00
Hermès Bélusca-Maïto
99b6de6618 [SHELL32]: Fix the "CNewMenu.cpp:432: Unexpected failure 80070002." debug line that appears when one tries to create a new file using the explorer (note: did not happen for new directories).
CORE-12684 #resolve #comment Fixed in r73579.

svn path=/trunk/; revision=73579
2017-01-18 12:48:50 +00:00
Hermès Bélusca-Maïto
a3aa3fb107 [SHELL32]
- Now that we correctly handle the shell link data block list with APIs, no need to hack an extra zeroed DWORD at the end of shortcut files!
- Fix the display of the shortcut target location: this typically displays the (last) directory where the target resides. Addendum for r53624, r54957 and CORE-5730 CORE-6104

svn path=/trunk/; revision=73578
2017-01-18 11:51:42 +00:00
Hermès Bélusca-Maïto
ef268d1301 [SYSSETUP][SHORTCUTS.INF]: Follow-up of r71049 and CORE-11020 :
- Make more shortcuts start from the user directory;
- The desktop shortcut of the ReadMe file should not use an icon location, so that the shell correctly retrieves the icon to display from the type of the file (in our case, .txt).
- Make the necessary adjustments in syssetup/install.c :
  * opt-out setting the icon location;
  * in addition, since we now support shell link targets containing environment variables, don't always expand the target path before setting up the shortcut, but do it just in the case we have to compute a suitable working directory.

svn path=/trunk/; revision=73577
2017-01-18 00:19:12 +00:00
Hermès Bélusca-Maïto
766a0d27df [SHELL32]: CShellLink fixups Part 2:
- Add COM inheritance for interfaces IExtractIconA/W, and add in comment the missing other ones, the ordering of which is given by the apitests/com/shell32.
- Add proper support for the extra data block list (which is added at the end of the .lnk files), by using the API from shlwapi.dll: SH[Read|Write|Free]DataBlockList, SH[Add|Find|Remove]DataBlock.
- Using this support, getting/setting the MSI data block becomes as simple as child's play, and opens the possibility for implementing support for the other types of blocks.
- This in particular enables support for paths with environment variables for the link's target and icon: CORE-9236 #resolve
- Fix all the "shell32_winetest shelllink" tests: CORE-7158 #resolve
  Some of the fixes are inspired from a patch by Katayama Hirofumi MZ.
- Fix all the "shell32_apitest CShellLink" tests *but* those calling IExtractIcon::GetIconLocation().
- Implement a hackish substitute to the shell32!PathResolve API until someone writes a correct one (see the code & the FIXMEs for some ideas), possibly using the SHELL_xxx helpers in Wine's shellpath.c.
- In CFSExtractIcon_CreateInstance: Because IShellLink::GetIconLocation can return no icon location, in case none is specified in the .lnk (proved by apitests), we have to call the shell link's IExtractIcon::GetIconLocation in order to retrieve the icon of its target (yes, some shortcuts are made like that, e.g. Notepad++ 6.9 one...).

- More fixes...
- ... and a lot of documentation added in the code for you!

CORE-12682

svn path=/trunk/; revision=73576
2017-01-17 23:53:55 +00:00
Giannis Adamopoulos
ef0d1d640c [KERNEL32_APITEST] -Make FindActCtxSectionStringW test less strict.
svn path=/trunk/; revision=73575
2017-01-17 23:11:11 +00:00
Giannis Adamopoulos
8896e6a8c4 [KERNEL32_APITEST] -Try to avoid crashes in DefaultActCtx test.
svn path=/trunk/; revision=73574
2017-01-17 22:40:36 +00:00
Hermès Bélusca-Maïto
0aeb3f07b1 [SHELL32]: CShellLink fixups Part 1:
- Use STDMETHODCALLTYPE for the interface methods calling convention;
- Use the naming convention "m_Member" for the class members (note that I haven't applied the convention for some members: because they will go away in the next commits);
- Use _countof() where needed;
- Make the ANSI CShellLink::GetIconLocation call the UNICODE version;
- Move some functions around to put them closer to the functions that call them;
- Very minor code formatting.
CORE-12682

svn path=/trunk/; revision=73573
2017-01-17 21:32:18 +00:00
Giannis Adamopoulos
749f780aef [KERNEL32_APITEST] -Add redir2dep.manifest to the testdata.
svn path=/trunk/; revision=73572
2017-01-17 19:41:26 +00:00
Giannis Adamopoulos
74365d512d [KERNEL32_APITEST] -Fix gcc build
svn path=/trunk/; revision=73571
2017-01-17 19:24:29 +00:00
Hermès Bélusca-Maïto
57ba1bd2d4 [SHELL32]
- Use explicit unicode SHFILEINFOW structure (where needed);
- In CFSExtractIcon_CreateInstance, use _countof instead of hardcoding the MAX_PATHs; add some FIXMEs about the 'flags' parameter;
- Code formatting in CExtractIcon.cpp.

svn path=/trunk/; revision=73570
2017-01-17 19:16:50 +00:00
Giannis Adamopoulos
c799fd3e4f [regtest.cmd] -RENAME parameter in add_rostests_file doesn't have any effect on the name of the installed file so rename sine files manually before starting tests.
svn path=/trunk/; revision=73569
2017-01-17 19:13:12 +00:00
Giannis Adamopoulos
1dc1c3f7ef [KERNEL32_APITEST]
- Fix and enable tests for redirection support in LoadLibraryExW.
- Add tests for the default activation context that is active for every process.

svn path=/trunk/; revision=73568
2017-01-17 19:11:05 +00:00
Hermès Bélusca-Maïto
c31e1f67a6 [PSDK]: Update shlobj.h:
- Define Logo3-related symbols only when NTDDI_VERSION < NTDDI_LONGHORN (Vista);
- In the SHELL_LINK_DATA_FLAGS enumeration, some symbols are defined for Vista+ only;
- Update the comment for EXP_LOGO3_ID_SIG;
- The PRF_TRYPROGRAMEXTENSIONS define is actually the combination of PRF_EXECUTABLE and PRF_VERIFYEXISTS;
- Add PRF_REQUIREABSOLUTE and fix PRF_DONTFINDLNK typo.

svn path=/trunk/; revision=73567
2017-01-17 15:30:57 +00:00
Hermès Bélusca-Maïto
9dda28415f [INCLUDES]: Add in shlwapi_undoc.h the exported-by-ordinal-only shlwapi functions SH[Add|Remove|Find]DataBlock, SH[Write|Read|Free]DataBlockList, and SHExpandEnvironmentStrings[ForUser]A/W . Will be used later.
CORE-12682

svn path=/trunk/; revision=73566
2017-01-17 15:16:06 +00:00
Hermès Bélusca-Maïto
a05881c135 [SHLWAPI]
- Fix SHAddDataBlock function signature & return value.
- Back this up by updating the corresponding wine test.
Send upstream, I will remove the __REACTOS__ markups once this is merged in Wine.

svn path=/trunk/; revision=73565
2017-01-17 15:09:18 +00:00
Hermès Bélusca-Maïto
855bcceefc [SHLWAPI]: Follow-up on r73527 and r73529: Use WINVER conditional to separate old-Win2k3 and new-Vista+ behaviours of PathIsUNCA/W.
CORE-12653

svn path=/trunk/; revision=73564
2017-01-16 22:34:22 +00:00
Hermès Bélusca-Maïto
e525ccdb5f [SHELL32_APITEST]
- Use smart COM pointers (thanks Mark ;)
- Add other tests for testing non-existing files in existing directories.

svn path=/trunk/; revision=73563
2017-01-16 18:02:43 +00:00
Hermès Bélusca-Maïto
a471a57006 [SHELL32_APITEST]: Add more tests to see how IShellLink::Get/SetIconLocation interacts with IExtractIcon::GetIconLocation.
svn path=/trunk/; revision=73562
2017-01-16 17:27:44 +00:00
Hermès Bélusca-Maïto
5db91c84a0 Comply to GCCLin rules.
svn path=/trunk/; revision=73561
2017-01-16 16:35:01 +00:00
Hermès Bélusca-Maïto
5ccf3c01a4 [SHELL32_APITEST]: Add some tests for GetIconLocation. Show also that CShellLink inherits from IExtractIcon(A/W).
svn path=/trunk/; revision=73560
2017-01-16 16:22:40 +00:00
Hermès Bélusca-Maïto
a6b1351921 [SHELL32_APITEST]
- Fix the names of some expected return values get from the APIs;
- Move a bit the TestShellLink() function.
- When displaying hexadecimal, prepend the "0x" string (otherwise, when you see: "hr = 10", is it 10 in decimal or in hex??)
- Call CoUninitialize() at the end of the tests.

svn path=/trunk/; revision=73559
2017-01-16 16:17:59 +00:00
Pierre Schweitzer
8a75088c41 [SHELL32]
Fix truncated French text in File Properties dialog.
Patch by Katayama Hirofumi MZ.

CORE-12554

svn path=/trunk/; revision=73558
2017-01-15 17:20:17 +00:00
Pierre Schweitzer
efce805bfc [INTL]
Fix truncated French text in Languages dialog.
Patch by Katayama Hirofumi MZ.

CORE-12366

svn path=/trunk/; revision=73557
2017-01-15 14:24:11 +00:00
Pierre Schweitzer
404456b319 [SHELL32]
Fix truncated French text in Open With dialog.
Patch by Katayama Hirofumi MZ.

CORE-12556

svn path=/trunk/; revision=73556
2017-01-15 14:15:55 +00:00
Colin Finck
709dfc61a2 [BOOTSECT]
Add a simple MBR boot sector that chainloads the El Torito BIOS Boot Sector of the ReactOS ISO.
This is our equivalent to syslinux's isohdpfx.S and will be used as input for the soon to be imported "isohybrid" patching tool.

Largely untested Work In Progress towards CORE-12648

svn path=/trunk/; revision=73555
2017-01-15 12:31:47 +00:00
Giannis Adamopoulos
e4ffdbb8a7 [NTDLL_APITEST] -Create a copy of the test in testdata and add along three empty files: ntdll_apitest.exe.local, shell32.dll and test.dll. Make the test start the subprocess from testdata to avoid any kind of interference of the .local to all the other tests. The empty dlls are needed there because there is no way to rename the files while adding them to the cab file like we do with NAME_ON_CD and creating them at runtime is not reliable as caching can cause random failures.
svn path=/trunk/; revision=73554
2017-01-15 11:51:06 +00:00
Pierre Schweitzer
8fc83b30af [UBTRFS]
[BTRFSLIB]
As suggested by Peter, bring back the btrfslib and make use of it in ubtrfs.
This will allow code reuse especially for people having plans with btrfs and usetup ;-)

CORE-12617

svn path=/trunk/; revision=73553
2017-01-15 10:58:38 +00:00
Giannis Adamopoulos
f2d49d7a05 Fix a line that I forgot to finish editing.
svn path=/trunk/; revision=73552
2017-01-15 00:49:47 +00:00
Giannis Adamopoulos
1442edd291 [NTDLL_APITEST]
- Add more tests for RtlDosApplyFileIsolationRedirection_Ustr. Unfortunately creating .local files and making it have instant effect seems to be impossible. So I added tests for .local than can be enabled to show that this is indeed the behaviour but I have disabled them to avoid random failed tests.

svn path=/trunk/; revision=73551
2017-01-15 00:42:10 +00:00
Mark Jansen
90999f0373 [PRINTUI] Properly stub bPrinterSetup. Patch by Jared Smudde. CORE-12600 #resolve #comment Thanks!
svn path=/trunk/; revision=73550
2017-01-15 00:15:22 +00:00
Mark Jansen
523a1a5589 SHLWAPI_APITEST: Add tests for StrFormatByteSizeW. Patch by Doug Lyons. CORE-12661 #resolve
svn path=/trunk/; revision=73549
2017-01-15 00:04:16 +00:00
Eric Kohl
50a627eb56 [ADVAPI32]
Implement LsaQueryInfoTrustedDomain() and LsaQueryTrustedDomainInfo().

svn path=/trunk/; revision=73548
2017-01-14 18:10:42 +00:00
Eric Kohl
eb31df80a7 [ADVAPI32]
Implement I_ScPnPGetServiceName().

svn path=/trunk/; revision=73547
2017-01-14 15:17:29 +00:00
Hermès Bélusca-Maïto
48f148bba8 [KERNEL32]: Fix (old-style) annotations.
svn path=/trunk/; revision=73546
2017-01-14 01:59:10 +00:00
Hermès Bélusca-Maïto
736b7b86f6 [SHLWAPI_APITEST]: Use the 'add_rostests_file' command from Colin ;)
svn path=/trunk/; revision=73545
2017-01-13 22:12:22 +00:00
Hermès Bélusca-Maïto
cd7c1882ed [SHLWAPI_APITEST]
- Add tests for PathIsUNCServer and PathIsUNCServerShare, by Jared Smudde. Thanks! ROSTESTS-258 #resolve
- Simplify the code: Since those functions (as well as PathIsUNC) are public and exported by name, we can directly load the apitest with shlwapi and call the APIs directly (no need for explicit LoadLibrary & GetProcAddress).

svn path=/trunk/; revision=73544
2017-01-13 21:55:25 +00:00
James Tabor
bfd112dafa - Fix leak.
svn path=/trunk/; revision=73543
2017-01-13 19:35:36 +00:00
Hermès Bélusca-Maïto
a11a51af76 FTSU GCCLin.
svn path=/trunk/; revision=73542
2017-01-13 19:09:11 +00:00
Hermès Bélusca-Maïto
7f0502d36e [SHELL32_APITEST]: Improve a bit the output of the CShellLink test.
svn path=/trunk/; revision=73541
2017-01-13 19:00:33 +00:00
Colin Finck
e1a81c6804 [CMAKE]
Call the NAME_ON_CD parameter RENAME (because it's not tied to a CD/ISO) and simplify the implementation.

svn path=/trunk/; revision=73540
2017-01-13 16:39:33 +00:00
Colin Finck
4536560a1d [LOCALSPL_APITEST]
Disable fpGetPrintProcessorDirectory tests that use PSEH.
For some reason, they can only be run once and corrupt something inside spoolsv, so that spoolsv needs to be restarted afterwards.

svn path=/trunk/; revision=73539
2017-01-13 16:15:13 +00:00
Giannis Adamopoulos
12796f8786 [KERNEL32_APITEST] - Add tests for LoadLibraryExW to test its ability to load a redirected dll. Do not include it in the build until a way is found for it to be compiled properly.
svn path=/trunk/; revision=73538
2017-01-13 15:33:38 +00:00
Giannis Adamopoulos
192c5b7ac3 [CMakeMacros.cmake] - Add NAME_ON_CD parameter to add_rostests_file to make it possible to select a different name for a file.
svn path=/trunk/; revision=73537
2017-01-13 15:15:55 +00:00
Hermès Bélusca-Maïto
a20fc53659 [SHLWAPI_APITEST]: Commit few tests for PathUnExpandEnvStrings.
svn path=/trunk/; revision=73536
2017-01-13 14:51:25 +00:00
Colin Finck
d5122b7e7b [KMTESTS]
Temporarily disable kmtests for "rostests_install" (and subsequently the WHS-Testbot) as long as kmtest:ExPools crashes the machine and I have to reboot it manually.

svn path=/trunk/; revision=73535
2017-01-13 11:20:52 +00:00
Colin Finck
0a08074364 Only generate installation rules for rostests if the ROSTESTS_INSTALL environment variable is defined.
svn path=/trunk/; revision=73534
2017-01-13 09:43:12 +00:00
Colin Finck
da200b3a2c [ROSTESTS]
- Add a function "add_rostests_file" that calls both add_cd_file() and install() accordingly for regression tests.
  Use this function everywhere in rostests where add_cd_file() was used previously. This puts tests always in the right place on CD and also generates proper installation rules for them.
- Add a custom target "rostests_install" that performs an "install" on all rostests components.

This finally gives us a convenient and reliable way to copy all regression tests and their dependencies into a single directory (specified by the ROSTESTS_INSTALL environment variable).
Will be used on the WHS-Testbot to let it finally run each and every test.

CORE-12401
ONLINE-441

svn path=/trunk/; revision=73533
2017-01-13 09:24:15 +00:00
James Tabor
6d7fcc4bab [NtUser]
- Fix menu surfing while using MS Office 2003. See CORE-12085 and CORE-12071.

svn path=/trunk/; revision=73532
2017-01-13 04:06:24 +00:00
Hermès Bélusca-Maïto
633f34d7c4 Use wine_dbgstr_w as Jared did originally (I hate this macro because it displays strings in 'C'-language form instead of in natural way).
svn path=/trunk/; revision=73531
2017-01-13 00:33:46 +00:00
Hermès Bélusca-Maïto
ee9c290085 /me slaps GCCLin.
svn path=/trunk/; revision=73530
2017-01-13 00:20:50 +00:00
Hermès Bélusca-Maïto
aea802c64c [SHLWAPI]: On Windows 2003, tests show that strings starting with "\\?" are considered UNC, while on Windows Vista+ this is not the case anymore.
Select Win2k3 behaviour: revert r54542 (and add a note).
CORE-12653 #resolve

svn path=/trunk/; revision=73529
2017-01-13 00:18:51 +00:00
Hermès Bélusca-Maïto
58c3357ad1 Make GCC happy.
svn path=/trunk/; revision=73528
2017-01-13 00:13:38 +00:00
Hermès Bélusca-Maïto
c785b8f077 [SHLWAPI_APITEST]: New test for PathIsUNC function, by Jared Smudde. Thanks!
ROSTESTS-256 #resolve

svn path=/trunk/; revision=73527
2017-01-13 00:06:12 +00:00
Giannis Adamopoulos
6fc550ad47 [NTDLL] -Add preliminary tests for RtlDosApplyFileIsolationRedirection_Ustr.
svn path=/trunk/; revision=73526
2017-01-12 11:21:04 +00:00
Hermès Bélusca-Maïto
1a345aab0c Fix build.
svn path=/trunk/; revision=73525
2017-01-11 20:06:47 +00:00
Hermès Bélusca-Maïto
a000763117 [SHELL32]: Partly restore code (AddCommasW function) that was implemented in r33953 but removed in the next revision r33954.
svn path=/trunk/; revision=73524
2017-01-11 20:02:14 +00:00
Hermès Bélusca-Maïto
22726a1e1c [SHELL32]: Replay commit r41711 (was lost during shell32 C++ translation).
svn path=/trunk/; revision=73523
2017-01-11 19:28:48 +00:00
Colin Finck
4485b549ba Remove the USE_MKISOFS switch and make mkisofs our one and only ISO creation tool.
CDMake is moved to rosapps as per Hermès' wish, but not added to the build.

svn path=/trunk/; revision=73521
2017-01-11 12:16:25 +00:00
Colin Finck
04c65f7051 [MKISOFS]
Update mkisofs to schily-2016-12-14 giving us the following features:
- Support for -duplicates-once to store duplicate files in the tree only once in the filesystem (see also CORE-9266)
  I've enabled this for the hybridcd target where it actually saves us 25 MB.
- Proper System-ID "Win32/MinGW" and "Win32/MSVC" under Windows hosts depending on the compiler

CORE-12578

svn path=/trunk/; revision=73520
2017-01-11 11:56:36 +00:00
Hermès Bélusca-Maïto
e8127690bb [SETUP][SYSSETUP]: Export a 'InstallWindowsNt' function from syssetup.dll (with Windows-compatible signature) instead of our private 'InstallReactOS' and 'InstallLiveCD', and call it from setup.exe. This allows using our setup.exe on Windows & vice-versa for testing purposes. In syssetup.dll, the choice of installing ReactOS or starting the LiveCD interface is done by checking the command-line given to 'InstallWindowsNt' (using the existing switches).
Inspired from Jared's patch in CORE-12615.

svn path=/trunk/; revision=73519
2017-01-10 16:55:15 +00:00
Hermès Bélusca-Maïto
c24dcb3ff2 [USERENV]
- Split the huge "InitializeProfiles" function into itself and a helper "CreateStandardProfile", the latter is called to set up the "Default User" and "All Users" profile directories & registry settings.
- Use StringSafe functions where needed.
- Some of the shell registry values (the multimedia ones in particular) and the Fonts folder path, are not set by userenv.dll but are set by shell32.dll when it is registered during 2nd stage setup.

[SHELL32]: The above-mentioned shell reg vals are already there, but few have different translations than the ones that were in userenv. Translators, please review & fix if needed!

[SYSSETUP]: It is syssetup.dll which sets up the 'Program Files' & 'Common Files' directories & registry values at 2nd stage setup, as done on Windows' setup. Move the code that did this from our userenv to syssetup.

svn path=/trunk/; revision=73518
2017-01-10 15:28:49 +00:00
Mark Jansen
e8801e23b6 [WIN32SS] Don't trigger ProbeForWrite when retrieving caret size from co_IntDrawCaret, fix unlocking in failure path. CORE-10308
svn path=/trunk/; revision=73517
2017-01-09 21:12:00 +00:00
Pierre Schweitzer
657d78a387 [SHELL32]
Stub support for BtrFS helper.

CORE-12617

svn path=/trunk/; revision=73516
2017-01-09 21:01:22 +00:00
Pierre Schweitzer
1a74d78001 [FMIFS]
Register the BtrFS helper

CORE-12617

svn path=/trunk/; revision=73515
2017-01-09 20:59:22 +00:00
Pierre Schweitzer
21f976c9ff [BTRFSLIB]
Drop that lib. It's been superseeded by r73513

CORE-12617

svn path=/trunk/; revision=73514
2017-01-09 20:56:55 +00:00
Pierre Schweitzer
568b75b342 [UBTRFS]
Import the ubtrfs DLL from the BtrFS project.

CORE-12617

svn path=/trunk/; revision=73513
2017-01-09 20:52:44 +00:00
Pierre Schweitzer
5ebe380166 [SHELL32]
When selecting any FAT filesystem on format dialog, uncheck & disable compression control. It's not supported by this FS.

svn path=/trunk/; revision=73512
2017-01-08 17:26:14 +00:00
Pierre Schweitzer
7a29e16fbd [PSDK]
Define Button_SetElevationRequiredState() and BCM_SETSHIELD.
Reviewed by Giannis.

CORE-12617

svn path=/trunk/; revision=73511
2017-01-07 20:23:50 +00:00
Pierre Schweitzer
d3e43b0f5f [DDK]
Define IDE_COMMAND_IDENTIFY

CORE-12617

svn path=/trunk/; revision=73510
2017-01-07 20:20:21 +00:00
Giannis Adamopoulos
6d0f733ac7 [KERNEL32_APITEST] - Use the full path to the manifest files when testing FindActCtxSectionStringW. This is needed because in most cases they are not in the current directory.
svn path=/trunk/; revision=73509
2017-01-06 22:06:53 +00:00
Giannis Adamopoulos
9624a5e18b [KERNEL32_APITEST] -Keep improving the skip checks.
svn path=/trunk/; revision=73508
2017-01-06 21:25:53 +00:00
Giannis Adamopoulos
7475839d64 [KERNEL32_APITEST] - Skip more stuff hoping to fix a crash that I can't reproduce locally.
svn path=/trunk/; revision=73507
2017-01-06 21:13:46 +00:00
Giannis Adamopoulos
c2c4d46671 [KERNEL32_APITEST] -Add some more checks to avoid a crash (the ones I originally added were not enough).
svn path=/trunk/; revision=73506
2017-01-06 20:43:58 +00:00
Giannis Adamopoulos
2bebddf5ee [KERNEL32_APITEST] -Add tests for FindActCtxSectionStringW.
svn path=/trunk/; revision=73505
2017-01-06 18:48:15 +00:00
Daniel Reimer
ca45c6e795 [RAPPS]
Fix broken links and checksums by new mirrors/new version update.

svn path=/trunk/; revision=73503
2017-01-05 00:16:22 +00:00
Hermès Bélusca-Maïto
096143cb2f Happy New Year 2017 to ReactOS people!
svn path=/trunk/; revision=73502
2017-01-03 15:35:31 +00:00
Eric Kohl
ade0d2cda5 [SERVICES]
- Add loading (not used yet) and unloading of user profiles.
- Create the service password secret name and pass it to LogonUserW.
Patch by Hermès BÉLUSCA - MAÏTO.

svn path=/trunk/; revision=73501
2017-01-02 20:45:36 +00:00
Pierre Schweitzer
d915c39751 [MPR]
Import Wine commit:
- 96a93ee608b2919d1a8f583002e8262ef54a6743, Enumerate connections capability before looking for functions entry points.

svn path=/trunk/; revision=73500
2017-01-02 20:16:14 +00:00
Sylvain Petreolle
83f928948d [INF]
Correctly install the ACPI AC Adapter driver.

Happy new year.

svn path=/trunk/; revision=73499
2017-01-01 17:35:22 +00:00
Pierre Schweitzer
3049f1a5b4 [BTRFS]
Sync btrfs to 0.8.

CORE-12617

svn path=/trunk/; revision=73498
2017-01-01 17:12:12 +00:00
Pierre Schweitzer
3175ed2860 [XDK]
Add the PsGetThreadProcess() prototype

CORE-12617

svn path=/trunk/; revision=73497
2017-01-01 16:58:15 +00:00
Pierre Schweitzer
47b3314130 [SDK]
Implement the rtlver library with RtlIsNtDdiVersionAvailable(). Will be used later on by BtrFS driver.
Reference: https://msdn.microsoft.com/en-us/library/windows/hardware/ff561954(v=vs.85).aspx

CORE-12617

svn path=/trunk/; revision=73496
2017-01-01 16:44:40 +00:00
Eric Kohl
754b0a7362 [LSASRV]
Return proper status codes, indicating no available AD, for most trusted domain functions. 

svn path=/trunk/; revision=73495
2017-01-01 14:10:02 +00:00
Eric Kohl
7cec4c47db [ADVAPI32]
- Implement LsaEnumerateTrustedDomains and LsaEnumerateTrustedDomainsEx.
- Mark LsaGetRemoteUserName and LsaLookupPrivilegeDisplayName as implemented.

svn path=/trunk/; revision=73494
2017-01-01 13:12:03 +00:00
Eric Kohl
2c10751e87 [USERENV]
- Move functionality from CreateUserProfileW to CreateUserProfileExW.
- Implement CreateUserProfileExA and fix CreateUserProfileA.

svn path=/trunk/; revision=73493
2016-12-31 15:20:50 +00:00
Mark Jansen
e01de74720 [APPHELP] Simplify SdbTagToString.
svn path=/trunk/; revision=73492
2016-12-30 21:31:14 +00:00
Mark Jansen
2549b1ebe7 [KERNEL32] Fix a typo in IsShimInfrastructureDisabled.
svn path=/trunk/; revision=73491
2016-12-30 20:54:47 +00:00
Pierre Schweitzer
3f0da1835a [SHELL32]
Revert r72888 (aka, remove a hack :-)).
This is no longer required thanks to r73489.

ROSAPPS-303
CORE-11757

svn path=/trunk/; revision=73490
2016-12-30 20:33:40 +00:00
Pierre Schweitzer
68bcda65e2 [MPR]
Enumerate connections capability before looking for functions entry points.
This is a major fix, because it allows VBoxSF to work without a hack, and without necessarily make a connection from the NP to the VBoxSF driver.

Already sent upstream.

ROSAPPS-303
CORE-11757

svn path=/trunk/; revision=73489
2016-12-30 20:30:28 +00:00
Mark Jansen
3fb8dc2d64 [SERVICES] Addendum to r73487: Fix the build.
svn path=/trunk/; revision=73488
2016-12-27 18:10:52 +00:00
Hermès Bélusca-Maïto
0ce031f74d [SERVICES]: Addendum to r73486: Start all services within LocalSystem account as a temporary measure in trunk until we completely support per-service account logging.
CORE-12541, CORE-12279

svn path=/trunk/; revision=73487
2016-12-27 15:26:01 +00:00
Hermès Bélusca-Maïto
a35a785b11 [SERVICES]: Add a *temporary* hack, as part of CORE-12541 and CORE-12279, that manually creates and loads the "LocalService" and "NetworkService" accounts and user profiles (and their registry hives), inspired from code from userenv.dll . This is done here until services can be correctly logged into the "LocalService" or "NetworkService" accounts (Eric is working on that), and their user profiles automatically properly created. When this is OK the hack will be removed and a proper call to "LoadUserProfile" in the code will be done where needed.
svn path=/trunk/; revision=73486
2016-12-27 15:06:23 +00:00
Hermès Bélusca-Maïto
1de5731e1e [ADVAPI32][LSA][IDL]: Fix the parameter type of some functions + fix associated LSA IDL file (ref: https://msdn.microsoft.com/en-us/library/cc234411.aspx )
svn path=/trunk/; revision=73484
2016-12-25 15:47:51 +00:00
Hermès Bélusca-Maïto
2a8a023851 [XDK][RTL]: Fix parameter of RtlUnicodeStringToCountedOemString (see r51875); add RtlUpcaseUnicodeStringToAnsiString into XDK.
svn path=/trunk/; revision=73483
2016-12-25 15:06:31 +00:00
James Tabor
c7dd36d8e1 [NtGDI]
- Turn off debug DC Bounds spam.

svn path=/trunk/; revision=73482
2016-12-23 18:42:47 +00:00
James Tabor
7f0fc1252d [NtGDI]
- Turn off debug DC Bounds spam.

svn path=/trunk/; revision=73481
2016-12-23 17:40:09 +00:00
Hermès Bélusca-Maïto
35f9007fc4 [KERNEL32]: Addendum to r73479: display the file that failed to be opened before releasing SxsWin32RelativePath as PathName might be equal to SxsWin32RelativePath.RelativeName. Spotted by Mark Jansen (actually he got it right at the beginning :) )
svn path=/trunk/; revision=73480
2016-12-23 11:43:21 +00:00
Hermès Bélusca-Maïto
a01ab28f62 [KERNEL32]: Improve SxS DPRINT info, based on Mark Jansen's suggestion. CORE-10524
svn path=/trunk/; revision=73479
2016-12-22 22:37:26 +00:00
Mark Jansen
21a0d64aa3 [CMD] Show the executed command in the title, do not restore the old title when it is modified. CORE-12586
svn path=/trunk/; revision=73478
2016-12-22 21:25:37 +00:00
Mark Jansen
11e9d57a30 [BOOTDATA] Update AHKAppTests.cmd to check all drives for the AHK-Tests. CORE-12597 #resolve
svn path=/trunk/; revision=73477
2016-12-22 20:51:38 +00:00
James Tabor
bb5564609a [Win32SS]
- Implement DC Bounds support. It's close to what wine does and passes thousands of tests. Still WIP. See CORE-11582.

svn path=/trunk/; revision=73476
2016-12-22 17:34:58 +00:00
James Tabor
527c11cf4d [Win32SS|RTL]
- Fix clipping for Draw Text. Inspired by Katayama Hirofumi MZ patch and ComCtl32/RichEd20/UxThmems. See CORE-2201.

svn path=/trunk/; revision=73475
2016-12-22 16:39:33 +00:00
James Tabor
7761bf28ba [User32|RTL]
- Move TEXT_TabbedTextOut back into User32.

svn path=/trunk/; revision=73474
2016-12-22 06:51:32 +00:00
Mark Jansen
bd37cb261c [KERNEL32] Re-enable Safer and AppCompat checks in CreateProcessInternalW. CORE-12585
svn path=/trunk/; revision=73473
2016-12-20 19:51:44 +00:00
James Tabor
974a6b6921 [NtGDI]
- Quick Hax to fix gray font anti-aliasing rendering, see CORE-7721.

svn path=/trunk/; revision=73472
2016-12-19 20:13:17 +00:00
James Tabor
8f83c019d3 [User32]
- Patch by Katayama Hirofumi MZ : DrawFrameControl draws bad, correct centering while drawing radio buttons. See CORE-12573.

svn path=/trunk/; revision=73471
2016-12-19 16:41:32 +00:00
James Tabor
30ff1f1032 [User32]
- Patch by Roman Pi?l : Fix buffer overflow in EDIT_EM_ReplaceSel().

svn path=/trunk/; revision=73470
2016-12-19 16:37:44 +00:00
James Tabor
1140838644 [User32]
- Patch by Andrey Gusev : Add support for WS_EX_RIGHT style.

svn path=/trunk/; revision=73469
2016-12-19 16:36:12 +00:00
James Tabor
833738127d [User32_API]
- Patch by Katayama Hirofumi MZ : Add a test for Next Dialog Item for radio buttons.

svn path=/trunk/; revision=73468
2016-12-19 16:28:42 +00:00
Amine Khaldi
ed41960b74 [RPCRT4] Properly stub RpcMgmtInqServerPrincName{A,W}. Tested by Jared Smudde. CORE-12465
svn path=/trunk/; revision=73467
2016-12-18 20:04:19 +00:00
Amine Khaldi
0d96052ca1 [INCLUDE] Fix a WIN32_WINNT => _WIN32_WINNT typo in some comments. Spotted by Serge Gautherie. CORE-12580
svn path=/trunk/; revision=73466
2016-12-18 17:57:51 +00:00
Mark Jansen
f1167250a0 [ATL][ATL_APITEST] Add GetEnvironmentVariable to CString. CORE-12581
svn path=/trunk/; revision=73465
2016-12-17 19:38:08 +00:00
Mark Jansen
71d5b09683 [SDK] Add Resolution/Bitdepth shims + layers to the appcompat database. CORE-11927 #resolve
svn path=/trunk/; revision=73464
2016-12-16 22:13:01 +00:00
Mark Jansen
f3f43843fe [ACGENRAL] Implement the DisableThemes shim. CORE-11927
svn path=/trunk/; revision=73463
2016-12-16 22:05:58 +00:00
Mark Jansen
b7add401e9 [ACLAYERS] Implement Force8BitColor and Force640x480 shims. CORE-11927
svn path=/trunk/; revision=73462
2016-12-16 21:54:06 +00:00
Mark Jansen
3da415c457 [SHIMLIB] Shim helper functions keep a list of used shims, so that events can be forwarded. CORE-11329
svn path=/trunk/; revision=73461
2016-12-16 19:18:26 +00:00
Giannis Adamopoulos
fa047badd1 [PSDK] -Add some definitions needed by the previous commit.
svn path=/trunk/; revision=73460
2016-12-16 10:39:16 +00:00
Giannis Adamopoulos
668ef9aa19 [SHELL32] - CNetFolder: Fix opening items which was broken after having a callback for the default context menu became mandatory.
svn path=/trunk/; revision=73459
2016-12-16 10:31:13 +00:00
Hermès Bélusca-Maïto
a54d1167e4 [APITESTS]: Add a test for userenv.dll API Load/UnloadUserProfile.
CORE-12541

svn path=/trunk/; revision=73458
2016-12-15 18:44:47 +00:00
Hermès Bélusca-Maïto
17b4930a9d [NETAPI32]: Fix misusage of a pointer, that caused a crash when using the command "net localgroup". Address one of the problems described in CORE-11081.
Note that those ((ULONG_PTR)the_pointer + sizeof(type_pointed_by_the_pointer)) could be somewhat short cut into: (the_pointer + 1) (with the_pointer being of type *type_pointed_by_the_pointer). But anyway...

svn path=/trunk/; revision=73457
2016-12-15 14:45:58 +00:00
Hermès Bélusca-Maïto
ea3f263fca [NET]: Correct one entry in the help list of commands.
svn path=/trunk/; revision=73456
2016-12-15 13:00:06 +00:00
Robert Naumann
399406609d [MSTSC] Decrease the size of the header font as it was cropped in some languages.
svn path=/trunk/; revision=73455
2016-12-14 21:10:35 +00:00
Mark Jansen
f62aa585d6 [USRMGR] Load 32bit icons for groups tab. Patch by Jared Smudde. CORE-12547 #resolve #comment Thanks!
svn path=/trunk/; revision=73454
2016-12-14 20:33:39 +00:00
Mark Jansen
3180d93edf [APPSHIM_APITEST] Update display mode shim tests to show some difference in versions + add extra tests. CORE-11927
svn path=/trunk/; revision=73453
2016-12-14 19:19:57 +00:00
Mark Jansen
80d548b608 [REGEDIT] Make the UpdateStatusBar function actually update the statusbar, instead of sending garbage to the treeview. CORE-10803
svn path=/trunk/; revision=73452
2016-12-13 21:47:22 +00:00
James Tabor
c88489858d [User32]
- Patch by Katayama Hirofumi MZ : DrawFrameControl draws bad. See CORE-12573.

svn path=/trunk/; revision=73451
2016-12-13 17:49:34 +00:00
James Tabor
d41da9f33b [User32]
- Sync/Port wine UI code for drawing.

svn path=/trunk/; revision=73450
2016-12-13 17:27:37 +00:00
Pierre Schweitzer
0afae481fa [NET/USE]
On enumeration, don't print raw status

svn path=/trunk/; revision=73449
2016-12-11 10:23:02 +00:00
Pierre Schweitzer
332071647d [NET/USE]
Get rid of COUNT_OF

svn path=/trunk/; revision=73448
2016-12-11 09:15:16 +00:00
Pierre Schweitzer
fb4e02aa90 [NET/USE]
Allow some strings to be translated

svn path=/trunk/; revision=73447
2016-12-11 09:01:22 +00:00
Pierre Schweitzer
270d0ba79a [NET/USE]
In case of an error, display the error message.

svn path=/trunk/; revision=73446
2016-12-10 22:12:53 +00:00
Thomas Faber
762bec692a [KMTESTS]
- Add a missing newline

svn path=/trunk/; revision=73445
2016-12-10 11:59:41 +00:00
Giannis Adamopoulos
744f1fb179 [SHELL32]
- Add a separate string for the unknown file types and rename the first column to Name from File.
- Note to translators: Please update translations based on the changes in the English strings.
Patch by Amber.
CORE-12530

svn path=/trunk/; revision=73444
2016-12-09 21:31:23 +00:00
Giannis Adamopoulos
14a6ac2ce8 [BOOT] LiveCD: Create all profile subdirectories that Shell wants. Patch by Serge Gautherie. CORE-12527
svn path=/trunk/; revision=73443
2016-12-09 20:40:52 +00:00
Giannis Adamopoulos
7e9b3d61c0 [SETUPAPI] - Add missing error checks in do_file_copyW. Patch by Carlo Bramini. CORE-12471
svn path=/trunk/; revision=73442
2016-12-09 18:39:11 +00:00
Giannis Adamopoulos
3bee65b985 [USETUP] -Fix setting the language id when compiling for a single language. CORE-10958
svn path=/trunk/; revision=73441
2016-12-09 18:30:50 +00:00
Hermès Bélusca-Maïto
74b479fa67 [USERENV]
- Use a better variable type for the 'Environment' parameter of SetUserEnvironmentVariable, AppendUserEnvironmentVariable, SetUserEnvironment, SetSystemEnvironment, so as to avoid useless casts.
- Add old-style parameter annotations for exported functions (at least);
- Add an implementation comment about setting HOMEDRIVE/HOMEPATH;
- Use ARRAYSIZE() instead of hardcoded buffer sizes;
- Don't say that GetShortPathNameW() failed when it succeeds;
- Use standard capitalization for hardcoded environment variables.

svn path=/trunk/; revision=73440
2016-12-08 16:12:59 +00:00
Hermès Bélusca-Maïto
b0107a6173 [USERENV]: Code formatting
svn path=/trunk/; revision=73439
2016-12-08 16:08:59 +00:00
Giannis Adamopoulos
d6e721c82f [SHELL32] - CDefView: Remove some todo comments that are done.
svn path=/trunk/; revision=73438
2016-12-07 15:43:17 +00:00
Giannis Adamopoulos
af810e862f [SHELL32] - Initialize the shell icon cache only when needed or when FileIconInit is called (and not in the DllMain of shell32)
svn path=/trunk/; revision=73436
2016-12-07 00:10:43 +00:00
Hermès Bélusca-Maïto
0b5c61d493 [SERVICES]: Addendum to r73433 for ScmStartUserModeService:
- Use the correct capitalization for the desktop name (to be consistent with all the rest of our code);
- Fix DPRINT1 order of arguments;
- Reorganize a bit the code to avoid the memory leak if ImpersonateLoggedOnUser fails and the environment block was already allocated (caught by Ged Murphy).
CORE-12414

svn path=/trunk/; revision=73435
2016-12-06 23:01:27 +00:00
Mark Jansen
54e99fcd1b [SHELL32] Don't call CoInitialize in DllMain, bad things happen when calling into dll's that are being loaded! CORE-12443 #comment Please retest!
svn path=/trunk/; revision=73434
2016-12-06 21:18:17 +00:00
Eric Kohl
cce01fa95c [SERVICES]
Create a new environment block when a service process is started.
Patch by Hermès BÉLUSCA - MAÏTO.
CORE-12414

svn path=/trunk/; revision=73433
2016-12-06 17:29:30 +00:00
Hermès Bélusca-Maïto
c5e734fdd8 Fix for source code file header, sorry for commit noise.
svn path=/trunk/; revision=73432
2016-12-05 16:38:11 +00:00
Hermès Bélusca-Maïto
aadba539ce [ADVAPI32_APITEST]: Test for a (correctly initialized) service process environment block, that should contain both ALLUSERSPROFILE and USERPROFILE environment variables.
CORE-12414

svn path=/trunk/; revision=73431
2016-12-05 16:36:06 +00:00
Hermès Bélusca-Maïto
8e18f1fbd9 [ADVAPI32_APITEST]: Add a small helper lib 'svchlp' for common routines for test-services embedded in api tests. Taken & heavily adapted from Jacek Caban's services_service test and Thomas Faber's ServiceArgs.c (the latter will be able to use 'svchlp' when it'll be ready).
CORE-12414

svn path=/trunk/; revision=73430
2016-12-05 16:22:30 +00:00
Sylvain Petreolle
ab777da1ae [BROWSEUI]
Fix CShellBrowser window class name,
shown by shell32:progman_dde and AHK_Diablo_1.0:1.install

svn path=/trunk/; revision=73429
2016-12-04 23:33:19 +00:00
Hermès Bélusca-Maïto
2299a44489 [NTDLL]: Export _wcstoui64 (as done in Win2k3). Prototype from msvcrt. CORE-12534
svn path=/trunk/; revision=73428
2016-12-04 22:52:03 +00:00
Hermès Bélusca-Maïto
b193d7bdfb [NTDLL]: Add proper stubs for EtwpGetTraceBuffer and EtwpSetHWConfigFunction, needed for CORE-12534.
[NTDLL][ADVAPI32]: Improve the prototypes for EtwReceiveNotificationsA/WmiReceiveNotificationsA and EtwReceiveNotificationsW/WmiReceiveNotificationsW.

svn path=/trunk/; revision=73427
2016-12-04 22:44:37 +00:00
Hermès Bélusca-Maïto
23e508dc18 [ADVAPI32_APITEST]: Rename the 'LockDatabase' test to 'LockServiceDatabase' to better match the name of the API.
svn path=/trunk/; revision=73426
2016-12-04 18:41:46 +00:00
Hermès Bélusca-Maïto
8cd23c3dc0 [USERENV]: Use ARRAYSIZE instead of hardcoding the sizes of the static buffers.
svn path=/trunk/; revision=73425
2016-12-04 18:28:33 +00:00
Mark Jansen
a55106da83 [DESK] Fix theme preview for Win7. Patch by Carlo Bramini. CORE-10076 #resolve #comment Thanks!
svn path=/trunk/; revision=73424
2016-12-04 16:52:22 +00:00
Eric Kohl
46bbe29d9e [INCLUDE]
Add  CreateUserProfileExA and  CreateUserProfileExW prototypes to userenv.h.

svn path=/trunk/; revision=73423
2016-12-04 15:56:44 +00:00
Mark Jansen
f0d4850705 [APPSHIM_APITEST] Add tests for the DisableThemes shim. CORE-11927
svn path=/trunk/; revision=73422
2016-12-04 15:33:28 +00:00
Mark Jansen
d39ff22033 [APPSHIM_APITEST] Add tests for display mode shims. CORE-11927
svn path=/trunk/; revision=73421
2016-12-03 21:24:47 +00:00
Eric Kohl
16093a084c [SERVICES]
- Code cleanup.
- ScmCreateOrReferenceServiceImage() and ScmDereferenceServiceImage(): Close the logon token and service process handles properly.
- ScmStartUserModeService(): Store the service process handle in the SERVICE_IMAGE struct.
Patch by Hermès BÉLUSCA - MAÏTO.

svn path=/trunk/; revision=73420
2016-12-03 14:33:07 +00:00
Eric Kohl
3e44ec76e4 [SERVICES]
Tiny fixes.
One fix found by Serge Gautherie.

svn path=/trunk/; revision=73419
2016-12-03 13:54:11 +00:00
Eric Kohl
3ee27dbe81 [SERVICES]
Add more parameter checks to RChangeServiceConfigW().

svn path=/trunk/; revision=73418
2016-12-03 12:55:29 +00:00
Eric Kohl
ae1c49c382 [SERVICES]
Implement large parts of RI_ScGetCurrentGroupStateW.

svn path=/trunk/; revision=73417
2016-12-03 12:48:44 +00:00
Eric Kohl
974f97cce5 [SERVICES]
- Get rid of the obsolete USE_SERVICE_START_PENDING option.
- Services do not accept any command when they are in SERVICE_START_PENDING state.
Patch by Hermès BÉLUSCA - MAÏTO.

svn path=/trunk/; revision=73416
2016-12-03 09:33:03 +00:00
Robert Naumann
3d7ae255a1 [TIMEDATE] Update/Fix German and French resource files. Patch by Joachim Henze and Kyle Katarn. CORE-12369
svn path=/trunk/; revision=73415
2016-12-02 22:36:21 +00:00
Robert Naumann
327d464e0c [RAPPS][USERINIT][HIVECLS] Add/Update Italian translation. Patches by Carlo Bramini. Thanks. CORE-9725 #comment rapps_new and usrmgr were not appliable, please check your patches. The others were committed in r73414
svn path=/trunk/; revision=73414
2016-12-02 22:22:28 +00:00
Hermès Bélusca-Maïto
0d21c76ef1 [ROSTESTS]: advapi32_apitest: Add a test to extensively test services command-line arguments. By Thomas Faber.
[ADVAPI32]: Correctly set up both the ANSI and UNICODE service command-line arguments. Adapted from a patch by Thomas Faber. Thanks!

[SERVICES]
- Correctly pack the service command-line arguments in the control packet structure. In particular, the offsets stored in the vector are relative to the beginning of the vector (and not relative to the previous offset ^^). Improve comments...
- Fix the definition of the SCM_CONTROL_PACKET control packet structure to make it Win2k3-compatible, so that we can use Win2k3' advapi32.dll or services.exe on ReactOS and vice-versa.

CORE-9235 CORE-9838

svn path=/trunk/; revision=73413
2016-12-02 20:01:29 +00:00
Robert Naumann
b687b6775f [NETSHELL]Add Japanese translation. Patch by Katayama Hirofumi MZ. Thanks. CORE-12514
svn path=/trunk/; revision=73412
2016-12-01 21:09:47 +00:00
Robert Naumann
e5d67ba90e [RUNONCE] Add Italian translation. Patch by Carlo Bramini. Thanks. CORE-12488
svn path=/trunk/; revision=73411
2016-12-01 21:06:38 +00:00
Mark Jansen
7b0c55ea0c This does not belong here.
svn path=/trunk/; revision=73410
2016-11-30 20:39:06 +00:00
Mark Jansen
0744770ebe [NETSHELL] Implement NcIsValidConnectionName + tests. Patch by Jared Smudde, modified by me. CORE-11320 #resolve
svn path=/trunk/; revision=73409
2016-11-30 20:31:50 +00:00
Giannis Adamopoulos
f9e5da10de Fix build.
svn path=/trunk/; revision=73408
2016-11-29 18:01:35 +00:00
Giannis Adamopoulos
4c9e684463 [SHELL32] - CDefViewBckgrndMenu: Shell_MergeMenus doesn't handle items added by shell extensions correctly so let the folder IContextMenu add its items directly in the menu. CORE-12508
svn path=/trunk/; revision=73407
2016-11-29 17:56:04 +00:00
Giannis Adamopoulos
29310d6f92 [SHELL32] - CDefaultContextMenu::QueryContextMenu : Implement CMF_VERBSONLY flag (needs tests). CORE-11488 (and all its duplicates)
svn path=/trunk/; revision=73406
2016-11-29 15:44:19 +00:00
Giannis Adamopoulos
99548a5a34 [SHELL32]
- CDefViewBckgrndMenu : Add class to handle the background menu of the CDefView and handle stuff that previously were handled by CDefaultContextMenu. Let the shell folders fill their own part of the background context menu.
- CDefView: Create a CDefViewBckgrndMenu instead of a CDefaultContextMenu which was completely wrong.
- CDesktopFolder, CFSFolder: Implement returning the background context menu in CreateViewObject. Note that I am not completely sure that the callback should be adding the Properties item.
- CDefaultContextMenu: Remove code that was moved to CDefViewBckgrndMenu and try to improve the overzealous debug prints regarding the shell extensions.
CORE-12410, CORE-12472

svn path=/trunk/; revision=73405
2016-11-29 15:38:55 +00:00
Giannis Adamopoulos
aab0fd5e9d [SHELL32_APITEST] -Test if CFSFolder::GetUIObjectOf can return an IDataObject for 0 cidl.
svn path=/trunk/; revision=73404
2016-11-29 13:27:21 +00:00
James Tabor
8fc6f71e55 [Win32SS]
- Revert HAX : Fix validating region with null. See CORE-12169 and related issues.

svn path=/trunk/; revision=73403
2016-11-28 16:48:39 +00:00
Hermès Bélusca-Maïto
d73bbf218c [SERVICES]:
- Fix build.
- Remove now deprecated code (since we use RPC for service commands since revision r13xxx).

svn path=/trunk/; revision=73402
2016-11-27 20:44:09 +00:00
Hermès Bélusca-Maïto
49284f4696 [SERVICES]
- The new ScmDeleteServiceKey (r73400) and the already existing ScmDeleteRegKey are the same functions: remove the old ScmDeleteRegKey and use ScmDeleteServiceKey instead AND rename ScmDeleteServiceKey to ScmDeleteRegKey (as it can be used generically within services.exe).
- Call RegDeleteKeyW for the subkey after we have closed its opened handle.

svn path=/trunk/; revision=73401
2016-11-27 20:39:10 +00:00
Eric Kohl
a96ca3a4c1 [SERVICES]
Delete service registry keys recursively.

svn path=/trunk/; revision=73400
2016-11-27 20:12:39 +00:00
Pierre Schweitzer
bb759c3378 [NTOSKRNL]
Don't leak FO reference on failure.
Fixes kmtest:NtCreateSection unloading.
Dedicated to Thomas.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73399
2016-11-27 20:11:30 +00:00
Mark Jansen
26627a49b0 [APPHELP][APPHELP_APITEST] Stub ApphelpCheckShellObject + add tests, based on the work of Mislav Blažević. CORE-12476
svn path=/trunk/; revision=73398
2016-11-27 18:33:21 +00:00
Eric Kohl
7fe41a4b39 [SERVICES]
RQueryServiceStatusEx and REnumServicesStatusExW: This way it make a lot more sense!

svn path=/trunk/; revision=73397
2016-11-27 15:49:05 +00:00
Eric Kohl
183b495907 [SERVICES]
REnumServicesStatusExW/W and RQueryServiceStatusEx should not return a non-zero process ID for a stopped service.

svn path=/trunk/; revision=73396
2016-11-27 15:24:49 +00:00
Pierre Schweitzer
444775e662 [KMTESTS:MM]
Test FCB header fields: FileSize, ValidDataLength

CORE-11819
CORE-12475

svn path=/trunk/; revision=73395
2016-11-27 13:39:01 +00:00
Eric Kohl
a6eabc0043 [SETUPAPI]
Partial implementation of CMP_RegisterNotification and CMP_UnregisterNotification.

[UMPNPMGR]
Partial implementation of PNP_RegisterNotification and PNP_UnregisterNotification.

CORE-12217 #comment This should fix one of the issues.

svn path=/trunk/; revision=73394
2016-11-27 11:14:25 +00:00
Pierre Schweitzer
a3dbf1b448 [KMTESTS:MM]
Playing with EOF shouldn't make you forget EOL!
Addendum to r73392

svn path=/trunk/; revision=73393
2016-11-27 10:56:40 +00:00
Pierre Schweitzer
695beeee78 [KMTESTS:MM]
Check the first byte is really null, in spite of the hack writing.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73392
2016-11-27 10:49:33 +00:00
Pierre Schweitzer
22f4acf925 [NTOSKRNL]
Don't write random byte. Force a value so that it can be easily recognized.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73391
2016-11-27 10:27:43 +00:00
Robert Naumann
3bbcc2cbbe [TRANSLATION] Massive resource maintenance update. 2 oatches by Ștefan Fulea. Thank you! CORE-12326
svn path=/trunk/; revision=73390
2016-11-27 00:15:02 +00:00
Robert Naumann
01d077b3e0 [MODE] Add Russiam Translation. Based on a patch by Nikolay Burshtyn. Thank you. CORE-12202
svn path=/trunk/; revision=73389
2016-11-26 23:58:07 +00:00
Robert Naumann
0cc4d22bd3 [USETUP] Update Russian translation. Patch by Nikolay Burshtyn. Thank you! CORE-12154
svn path=/trunk/; revision=73388
2016-11-26 23:47:36 +00:00
Robert Naumann
ef4075bbc4 [GETUNAME] Update Definitions for GetUName to Unicode 8.0. Patch by Baruch Rutman. Thanks a lot! CORE-10722
svn path=/trunk/; revision=73387
2016-11-26 23:25:14 +00:00
Robert Naumann
e993655cf8 [SHELL32] Update Japanese translation. Patch by Katayama Hirofumi MZ. Thank you!
svn path=/trunk/; revision=73386
2016-11-26 23:10:22 +00:00
Robert Naumann
9b73cb030e [SETUP/REACTOS] Add Japanese translation. Patch by Katayama Hirofumi MZ. Thank you. CORE-12459
svn path=/trunk/; revision=73385
2016-11-26 23:05:54 +00:00
Pierre Schweitzer
3ff70dc5d5 [NTOSKRNL]
A hack has gained enough XP and levels up! Congratulations to the MmCreateSection() in charge of forcing file cache initialization.
As show by kmtest:NtCreateSection tests and real world FSD (starting with MS FastFAT and Ext2Fsd), caching of a file can be initialized rather late (ie, on first effective read/write).
That means that our current hack is totally opless on newly created files with 0-size where the IRP_MJ_READ is most of the time opless too.
The hack, thanks to its level up, can now force a write (1-byte) in case read was unsuccessful and end of file.
In other words, this is the hack of a hack (and a hack v2).
It fixes a few failing kmtests.
Thomas, Peter, please retry the FSDs on which you are currently working on and report. Thanks :-)

CORE-11819
CORE-12475

svn path=/trunk/; revision=73384
2016-11-26 22:39:08 +00:00
Thomas Faber
89c3520c86 [PSDK][XDK]
- Automatically define __ROS_LONG64__ on LP64 systems. This makes no difference for ROS but makes things easier for downstream users of our headers.
 Patch by Cat Zimmermann.

svn path=/trunk/; revision=73383
2016-11-26 18:33:08 +00:00
Amine Khaldi
fb4c861add [WINMM] Properly stub some gfx* functions for Windows mmsys. Addendum to r73381. CORE-12466
svn path=/trunk/; revision=73382
2016-11-26 18:20:25 +00:00
Mark Jansen
0c81653dc2 [WINMM] Stub some gfx* functions for Windows mmsys. Patch by Jared Smudde. CORE-12466 #resolve #comment Thanks!
svn path=/trunk/; revision=73381
2016-11-26 18:12:08 +00:00
Thomas Faber
7e8e4427bf [SHDOCVW]
- Improve stub for _GetStdLocation. Patch by Jared Smudde.
CORE-12467 #resolve

svn path=/trunk/; revision=73380
2016-11-26 17:55:23 +00:00
Pierre Schweitzer
6ca897b261 [SHELL32]
Don't truncate text in French translation.
Patch by Joachim Henze (reactosfanboy)

CORE-12308

svn path=/trunk/; revision=73379
2016-11-26 10:07:57 +00:00
Pierre Schweitzer
7837d0dd2b [NTOSKRNL]
Revert r73376.

CORE-12238

svn path=/trunk/; revision=73378
2016-11-25 22:39:49 +00:00
Mark Jansen
3008f14a0d [REGEDIT] Do not try to dereference a pointer when it is NULL. CORE-11915
svn path=/trunk/; revision=73377
2016-11-25 22:16:39 +00:00
Pierre Schweitzer
b671384719 [NTOSKRNL]
Remove old hacks which seem no longer required

svn path=/trunk/; revision=73376
2016-11-25 21:47:34 +00:00
Christoph von Wittich
4cc7823baf [WINSTA] fix declaration of WinStationQueryInformationA
svn path=/trunk/; revision=73375
2016-11-25 12:48:55 +00:00
Colin Finck
c4a61ec7f2 Fix GCC build
svn path=/trunk/; revision=73374
2016-11-24 19:35:08 +00:00
Colin Finck
65212f3682 [LOCALSPL]
Tests show that the Print Provider functions are less forgiving and expect winspool.drv and spoolss.dll to perform the necessary sanity checks.
Also they don't default to the current environment if none was supplied as pEnvironment. Change our functions accordingly to pass the tests.

[LOCALSPL_APITEST]
Add a test to prove that spoolss.dll isn't just a forwarder, but also performs some sanity checks even though winspool.drv and localspl.dll also do.
This rather belongs to spoolss_apitest. But it needs to be tested inside the Spooler Server Process and it's not worth it to copy all the DLL injection code to spoolss_apitest just for a single test.

[SPOOLSS]
Check for an invalid buffer in GetPrintProcessorDirectoryW.

[WINSPOOL]
* Check the level before the RPC call in GetPrintProcessorDirectoryW.
* Supply our current environment if the caller didn't give any in EnumPrintProcessorsW and GetPrintProcessorDirectoryW.
* Implement GetPrintProcessorDirectoryA.

[WINSPOOL_APITEST]
Prove that pcbNeeded isn't touched when calling GetPrintProcessorDirectoryW with an invalid level.


ReactOS now passes all API tests for GetPrintProcessorDirectoryA and GetPrintProcessorDirectoryW. These tests also cover all known behaviors of both functions.
CORE-12399

svn path=/trunk/; revision=73373
2016-11-24 19:24:27 +00:00
James Tabor
03c1491725 [Win32SS]
- HAX : Fix paint message spam. See CORE-12169 and related issues.

svn path=/trunk/; revision=73372
2016-11-24 18:18:28 +00:00
Colin Finck
fbf2c84e20 [SPOOLSS]
Fix CONTAINING_RECORD calls for spoolss functions that map directly to localspl.
An innovative way to fail the RPC stack...

CORE-12449

svn path=/trunk/; revision=73371
2016-11-24 14:38:39 +00:00
Amine Khaldi
4a949013d2 [MSTSC] Addendum to r73368. Peter, please review. CORE-9321
svn path=/trunk/; revision=73370
2016-11-24 11:16:56 +00:00
Amine Khaldi
05ea8d2099 [README.WINE] Mark some DX dlls as synced with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73369
2016-11-24 10:59:01 +00:00
Peter Hater
a26ebfa365 [MSTSC] Add schannel based SSL implementation. CORE-9321
svn path=/trunk/; revision=73368
2016-11-24 10:56:09 +00:00
Sylvain Petreolle
c253b1d7bc [INCLUDES/WINE][DBGHELP]
Remove the rbtree.h difference with Wine Staging 1.9.23. CORE-12409


svn path=/trunk/; revision=73367
2016-11-23 21:33:54 +00:00
Amine Khaldi
f445cac180 [D3DX9_33] We don't need these here as d3dx9_36 already has them.
svn path=/trunk/; revision=73366
2016-11-23 18:43:17 +00:00
Amine Khaldi
8eb8e09554 [UXTHEME] Reduce difference with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73365
2016-11-23 18:38:48 +00:00
Pierre Schweitzer
46fc7b685b [LOCALMON]
Add French translation.

CORE-12363

svn path=/trunk/; revision=73364
2016-11-23 18:29:40 +00:00
Amine Khaldi
42eafa71ae [CDFS] Fix a thinko.
svn path=/trunk/; revision=73363
2016-11-23 18:27:07 +00:00
Pierre Schweitzer
c3b22d159c [FASTFAT]
In IRP_MJ_QUERY_INFORMATION/IRP_MJ_SET_INFORMATION, handle the case when we receive buggy FO without FCB.
This fixes bugchecks when using FileSpy.

CORE-12448

svn path=/trunk/; revision=73362
2016-11-23 18:21:03 +00:00
Amine Khaldi
07d9832b5f [WININET_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73361
2016-11-23 18:11:04 +00:00
Amine Khaldi
f11a6d6c2c [WININET] Sync with Wine Staging 1.9.23. CORE-12409
4695681 wininet: add ParseX509EncodedCertificateForListBoxEntry stub (try 2)
e3e4fc6 wininet: Add support for INTERNET_OPTION_SETTINGS_CHANGED in InternetSetOption.
4a728d2 wininet: Allow INTERNET_OPTION_SETTINGS_CHANGED on connections.
8478c72 wininet: Resize buffer when call to InternetCanonicalizeUrlW fails in InternetCrackUrlW.
3d6da00 wininet: Handle INTERNET_INVALID_PORT_NUMBER in HttpOpenRequest.
dee155f wininet: Replacing header fields should fail if they do not exist yet.
efd7d44 wininet: Strip filename if no path is set in cookie.
65f5d89 wininet: Silence wininet no support on this platform message.
3cb027c wininet: Increase buffer in _test_status_code to avoid potential potential overflow.
7e84143 wininet: Don't crash by debug printing too long URLs.
7d9a439 wininet: Don't return available data sizes larger than the read buffer.

svn path=/trunk/; revision=73360
2016-11-23 18:09:57 +00:00
James Tabor
6f403240d9 [User32]
- Fix dialog pop up flicker. Regression from 73333.

svn path=/trunk/; revision=73359
2016-11-23 15:42:05 +00:00
Amine Khaldi
58a1e88856 [WINHTTP_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73358
2016-11-23 12:00:25 +00:00
Amine Khaldi
4a404e8b55 [WINHTTP] Sync with Wine Staging 1.9.23. CORE-12409
e27ff36 winhttp: Added WINHTTP_OPTION_CLIENT_CERT_CONTEXT option stub.
9bc3e96 winhttp: Added WINHTTP_OPTION_MAX_CONNS_PER_SERVER and WINHTTP_OPTION_MAX_CONNS_PER_1_0_SERVER options stub.
c8b166e winhttp: Also pass hostname to jsproxy.
668d429 winhttp: Indicate that WinHttpCrackUrl should return string pointers.
985443e winhttp: Don't perform buffer size tests for components that don't pass buffer in WinHttpCrackUrl.
17b4abf winhttp: Validate the port number in WinHttpCrackUrl.
1d07f89 winhttp: Set required buffer length for all components in WinHttpCrackUrl.
6c0fdc0 winhttp: Prevent console spamming in get_system_proxy_autoconfig_url.

svn path=/trunk/; revision=73357
2016-11-23 11:59:10 +00:00
Thomas Faber
8c2649b3fe [ACPI]
- Do not assert phys in AcpiOsMapMemory. Patch by Giovanni Mascellani (gio at debian dot org).
CORE-12444 #resolve

svn path=/trunk/; revision=73356
2016-11-23 11:57:52 +00:00
Amine Khaldi
f5a2b4ee5d [JSCRIPT_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73355
2016-11-23 10:09:03 +00:00
Amine Khaldi
a7a057e3a2 [JSCRIPT] Sync with Wine Staging 1.9.23. Dedicated to Ged. CORE-12409
7af3f65 jscript: Add more jsdisp_t to Instance helpers.
55f6e3c jscript: Use the existing helpers to get from a jsdisp_t to an Instance.
0f21353 jscript: Use wine_rb_tree to store local variables in compiler_ctx_t.
fc1ae4f jscript: Use CONTAINING_RECORD() to get from a field to a struct.
57291c4 jscript: Simplify create_utc_string and add basic tests.
20d5bba jscript: Simplify date_to_string and add basic tests.
4d67ffd jscript: Allocate string of correct size in Date toLocaleDateString method.
79f18d0 jscript: Properly handle \0 characters in Array join method.
fd07a15 jscript: Allocate string of correct size in Date toTimeString method.
1c3e0dd jscript: Properly handle \0 characters in String indexOf method.
54e6736 jscript: Properly handle \0 characters in String to{Lower,Upper}Case methods.
1842082 jscript: Do not include terminating \0 in result returned by Date_toLocale{Date,Time}String.
69437af jscript: Change prototype of jsstr_alloc_buf and fix some error handling issues.
d36ae56 jscript: Fix definition of JSSTR_MAX_LENGTH.
7369836 jscript: Simplify jsstr_release implementation.

svn path=/trunk/; revision=73354
2016-11-23 10:06:56 +00:00
Amine Khaldi
e98102ef8a [CRYPT32] Bring back the code path that had r64026 and r66349 until we adapt our changes to the new code. CORE-12409 CORE-12446
svn path=/trunk/; revision=73353
2016-11-23 09:22:56 +00:00
Ged Murphy
dc7472be71 [NTOS]
- Fix an assert in MiFindExportedRoutineByName to be something more like what the original author probably wanted to do.
- This allows FileSpy to run successfully with the legacy filter driver
- https://postimg.org/image/7z73xy4pd/

svn path=/trunk/; revision=73352
2016-11-22 22:30:55 +00:00
Amine Khaldi
e6d204ac42 [WINDOWSCODECS] Addendum to r73303. CORE-12409
svn path=/trunk/; revision=73351
2016-11-22 18:10:59 +00:00
Amine Khaldi
9a6c74a856 [DBGHELP] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73350
2016-11-22 18:03:01 +00:00
Amine Khaldi
595348341e [INCLUDES/WINE] Attempt to please the linux builder.
svn path=/trunk/; revision=73349
2016-11-22 17:42:41 +00:00
Amine Khaldi
c4dbe78cac [INCLUDES/WINE] Update rbtree.h. [D3DCOMPILER_43][DBGHELP][WINED3D] Reflect the rbtree.h changes. CORE-12409
svn path=/trunk/; revision=73348
2016-11-22 17:23:40 +00:00
Amine Khaldi
81461b5470 [CRYPT32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73347
2016-11-22 17:09:34 +00:00
Amine Khaldi
112dfc045f [CRYPT32] Sync with Wine Staging 1.9.23. Jérôme, please review as we no longer have r64026 and r66349 with this. CORE-12409
svn path=/trunk/; revision=73346
2016-11-22 17:05:59 +00:00
Amine Khaldi
2324378c5e [OLEDLG] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73345
2016-11-22 13:14:51 +00:00
Amine Khaldi
6b17088fa1 [RPCRT4_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73344
2016-11-22 13:13:22 +00:00
Amine Khaldi
0f3ce680b5 [RPCRT4] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73343
2016-11-22 13:11:44 +00:00
Peter Hater
2dc688c68b [WSHTCPIP] Implement SIO_GET_INTERFACE_LIST by Andreas Maier aka andy-123. Thanks. CORE-10343
svn path=/trunk/; revision=73342
2016-11-22 12:45:41 +00:00
Amine Khaldi
b0a8d568d9 [OLE32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73341
2016-11-22 12:30:48 +00:00
Amine Khaldi
6c3bba2b11 [MSI_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73340
2016-11-22 12:26:43 +00:00
Amine Khaldi
687517808b [MSI] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73339
2016-11-22 12:25:27 +00:00
Amine Khaldi
08824abdc1 [COMDLG32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73338
2016-11-22 12:17:19 +00:00
Amine Khaldi
9bf7b57fd1 [COMDLG32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73337
2016-11-22 12:15:51 +00:00
Amine Khaldi
722d054541 [COMCTL32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73336
2016-11-22 12:11:38 +00:00
Amine Khaldi
fe25cf50e9 [COMCTL32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73335
2016-11-22 12:10:28 +00:00
James Tabor
b45fe0d55c [Win32SS]
- Patch by Katayama Hirofumi MZ : Improves NC_IconForWindow function. See CORE-12129.

svn path=/trunk/; revision=73334
2016-11-22 04:46:58 +00:00
James Tabor
20637bd50c [User32]
- Fix dialog pop up crash due to loop.
- Sync/Port from wine head, not sure about Staging.

svn path=/trunk/; revision=73333
2016-11-22 03:57:48 +00:00
James Tabor
4027329c6a [User32]
- Patch by Katayama Hirofumi MZ  : Improve task switcher's appearance.
-    Debugged Alt+Esc
-    Pixel perfect
-    Implemented "Display Item Shifting"
-    Added comments.

svn path=/trunk/; revision=73332
2016-11-22 03:54:55 +00:00
Hermès Bélusca-Maïto
ff16e0a2fc [LSASRV]: Use LsapAllocateHeapZero to initialize the AllocateLsaHeap member of the LSA auth DispatchTable. Should fix login (this means some of the code calling DispatchTable->AllocateLsaHeap expect zero-initialized memory). Addendum to r73330.
CORE-12432

svn path=/trunk/; revision=73331
2016-11-21 14:42:14 +00:00
Hermès Bélusca-Maïto
4fc25ae9f2 [LSASRV]: Implement a simplified version of LsaIAllocateHeap / LsaIAllocateHeapZero / LsaIFreeHeap.
CORE-12432

svn path=/trunk/; revision=73330
2016-11-20 23:53:49 +00:00
Hermès Bélusca-Maïto
a310f53b84 [LSASRV]: Whitespace fixes only.
svn path=/trunk/; revision=73329
2016-11-20 23:53:10 +00:00
Pierre Schweitzer
9951d766cc [KMTESTS:MM]
This tests doesn't fail anylonger on ReactOS (not sure which rev fixed it)

ROSTESTS-108

svn path=/trunk/; revision=73328
2016-11-20 20:58:22 +00:00
Pierre Schweitzer
d36b97a1dc [NTOSKRNL]
When we're really not able to init cache for creating a file section, return the appropriate status code

svn path=/trunk/; revision=73327
2016-11-20 20:55:17 +00:00
Pierre Schweitzer
49691778cd [KMTESTS:MM]
Thanks to r73325, these tests don't deadlock anymore on ReactOS. Enable them again (aka, revert r73227).

ROSTESTS-248

svn path=/trunk/; revision=73326
2016-11-20 18:42:15 +00:00
Pierre Schweitzer
d3a5befca6 [NTOSKRNL]
When creating a new VACB, compare file offset to section size and not to file size.
This fixes regression from r73199 where file size isn't changed anylonger, but section size is.

CORE-12430
ROSTESTS-248

svn path=/trunk/; revision=73325
2016-11-20 18:39:17 +00:00
Amine Khaldi
d14a8724c0 [UNIATA] Update to v0.46e1. CORE-11451
svn path=/trunk/; revision=73324
2016-11-20 15:58:03 +00:00
Pierre Schweitzer
c5ad9e290c [NTOSKRNL]
Use the appropriated macro to check for pending operations. NFC
ROSTESTS-248

svn path=/trunk/; revision=73323
2016-11-20 10:51:26 +00:00
Thomas Faber
c037053a34 [NOTEPAD]
- Update the window title on Save. Based on a patch by Thomas Csovcsity.
CORE-12423 #resolve

svn path=/trunk/; revision=73322
2016-11-20 09:16:19 +00:00
Mark Jansen
cef870285c [CMD] Wait for commands to exit when run with /C or /K. CORE-12402 #resolve
svn path=/trunk/; revision=73321
2016-11-18 19:53:40 +00:00
Amine Khaldi
bc95e1f73c [WSHOM_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73320
2016-11-17 23:56:32 +00:00
Amine Khaldi
d65aa5dd2f [RSAENH_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73319
2016-11-17 23:54:08 +00:00
Amine Khaldi
a02e2eb1aa [SCRRUN_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73318
2016-11-17 23:52:31 +00:00
Amine Khaldi
1f354adf5e [SETUPAPI_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73317
2016-11-17 23:49:54 +00:00
Amine Khaldi
12edc3f68c [IMM32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73316
2016-11-17 23:47:11 +00:00
Amine Khaldi
a16217bd9d [REGEDIT_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73315
2016-11-17 23:39:22 +00:00
Amine Khaldi
bcbf704a5d [GDI32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73314
2016-11-17 23:36:54 +00:00
Amine Khaldi
1fd943c142 [PSDK] Add missing WINHTTP_NO_CLIENT_CERT_CONTEXT.
svn path=/trunk/; revision=73313
2016-11-17 23:32:39 +00:00
Amine Khaldi
01e37dce52 [XMLLITE_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73312
2016-11-17 23:31:04 +00:00
Amine Khaldi
5947a69517 [XMLLITE] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73311
2016-11-17 23:30:21 +00:00
Amine Khaldi
b623cc77d2 [XINPUT1_3_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73310
2016-11-17 23:29:18 +00:00
Amine Khaldi
fef2774bdd [XINPUT1_3] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73309
2016-11-17 23:28:41 +00:00
Amine Khaldi
ed898f91d4 [PSDK] Update xinput.h. CORE-12409
svn path=/trunk/; revision=73308
2016-11-17 23:27:31 +00:00
Amine Khaldi
a63f1b60f6 [WINTRUST_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73307
2016-11-17 23:26:31 +00:00
Amine Khaldi
d4491e333c [WINTRUST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73306
2016-11-17 23:25:53 +00:00
Amine Khaldi
0f78def92f [WINEMP3.ACM] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73305
2016-11-17 23:24:47 +00:00
Amine Khaldi
b81dc9c21f [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73304
2016-11-17 23:23:38 +00:00
Amine Khaldi
c3af8cc0b7 [WINDOWSCODECS] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73303
2016-11-17 23:22:42 +00:00
Amine Khaldi
8209287044 [PSDK] Add missing WINCODEC_ERR_UNKNOWNIMAGEFORMAT.
svn path=/trunk/; revision=73302
2016-11-17 23:20:00 +00:00
Amine Khaldi
0d6ecb3255 [WBOMPROX_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73301
2016-11-17 23:19:20 +00:00
Amine Khaldi
610f6533b9 [WBOMPROX] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73300
2016-11-17 23:18:42 +00:00
Amine Khaldi
fa6326df88 [VBSCRIPT_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73299
2016-11-17 23:16:08 +00:00
Amine Khaldi
a8e3a0bea0 [VBSCRIPT] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73298
2016-11-17 23:15:02 +00:00
Amine Khaldi
d110b7df27 [USP10_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73297
2016-11-17 23:13:43 +00:00
Amine Khaldi
8c9854691e [USP10] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73296
2016-11-17 23:13:09 +00:00
Amine Khaldi
10570fa49e [URLMON_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73295
2016-11-17 23:11:50 +00:00
Amine Khaldi
01cc187f9e [URLMON] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73294
2016-11-17 23:10:44 +00:00
Amine Khaldi
129d8806b0 [T2EMBED] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73293
2016-11-17 23:09:21 +00:00
Amine Khaldi
32cb9ee335 [STI] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73292
2016-11-17 23:08:33 +00:00
Amine Khaldi
06ccd81758 [SHLWAPI_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73291
2016-11-17 23:07:24 +00:00
Amine Khaldi
7c6c0e06c6 [SHLWAPI] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73290
2016-11-17 23:06:15 +00:00
Amine Khaldi
0b209bd3b4 [RICHED20_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73289
2016-11-17 23:05:13 +00:00
Amine Khaldi
534805b248 [RICHED20] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73288
2016-11-17 23:04:08 +00:00
Amine Khaldi
757b0ecb88 [QMGR] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73287
2016-11-17 23:01:19 +00:00
Amine Khaldi
e1e4c63781 [OLEAUT32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73286
2016-11-17 22:59:30 +00:00
Amine Khaldi
9d4be48ab8 [OLEAUT32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73285
2016-11-17 22:58:15 +00:00
Amine Khaldi
90dbda7271 [ODBC32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73284
2016-11-17 22:55:42 +00:00
Amine Khaldi
69581680df [MSVFW32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73283
2016-11-17 22:54:16 +00:00
Amine Khaldi
7a050e50e5 [MSIMTF] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73282
2016-11-17 22:52:27 +00:00
Amine Khaldi
3720284204 [MSCTF_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73281
2016-11-17 22:50:52 +00:00
Amine Khaldi
6202dba74a [MSCTF] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73280
2016-11-17 22:50:15 +00:00
Amine Khaldi
bc96e9183b [MSACM32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73279
2016-11-17 22:49:19 +00:00
Amine Khaldi
d98c0d0d23 [MSACM32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73278
2016-11-17 22:48:39 +00:00
Amine Khaldi
8004c858f3 [MMDEVAPI_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73277
2016-11-17 22:47:02 +00:00
Amine Khaldi
a418a747f9 [MMDEVAPI] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73276
2016-11-17 22:45:24 +00:00
Amine Khaldi
e0a9bb0739 [INSENG] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73275
2016-11-17 22:44:24 +00:00
Amine Khaldi
4e2fae0c10 [PSDK] Update inseng.idl. CORE-12409
svn path=/trunk/; revision=73274
2016-11-17 22:42:31 +00:00
Amine Khaldi
a2a3c645f6 [INETCOMM_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73273
2016-11-17 22:39:46 +00:00
Amine Khaldi
b42373406d [INETCOMM] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73272
2016-11-17 22:39:08 +00:00
Amine Khaldi
35d175df70 [GDIPLUS_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73271
2016-11-17 22:37:09 +00:00
Amine Khaldi
3c5dbe9f1f [GDIPLUS] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73270
2016-11-17 22:35:44 +00:00
Amine Khaldi
3e8eeb6c2e [PSDK] Update gdipluscolormatrix.h, gdiplusenums.h and gdiplusflat.h CORE-12409
svn path=/trunk/; revision=73269
2016-11-17 22:31:42 +00:00
Amine Khaldi
d10ad38516 [FUSION_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73268
2016-11-17 22:28:40 +00:00
Amine Khaldi
48bef33818 [FUSION] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73267
2016-11-17 22:27:46 +00:00
Amine Khaldi
9f128bf796 [CABINET] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73266
2016-11-17 22:26:11 +00:00
Amine Khaldi
d23c9ec3c5 [CMD_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73265
2016-11-17 22:23:43 +00:00
Colin Finck
aa84b232e5 [LOCALSPL_APITEST]
Add a test for fpGetPrintProcessorDirectory, the actual worker function inside localspl.dll at the end of the call chain.
With that final test, we should have enough information to implement 100% compatible versions of GetPrintProcessorDirectoryA/W and fpGetPrintProcessorDirectory.

[WINSPOOL_APITEST]
Initialize some more variables with bogus values to verify that they have actually changed.

Next step for CORE-12399

svn path=/trunk/; revision=73264
2016-11-17 22:23:28 +00:00
Amine Khaldi
180da765bc [BCRYPT_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73263
2016-11-17 22:22:21 +00:00
Amine Khaldi
cab4d92ac6 [BOOTDATA] Add FIPSAlgorithmPolicy registry value for bcrypt tests.
svn path=/trunk/; revision=73262
2016-11-17 22:21:35 +00:00
Amine Khaldi
7831d346b7 [BCRYPT] Sync with Wine Staging 1.9.23. The mbedtls code paths are brought to you by Peter Hater. CORE-12409
svn path=/trunk/; revision=73261
2016-11-17 22:13:28 +00:00
Amine Khaldi
7d40a4c98e [MBEDTLS] Export some needed functions for bcrypt. By Peter Hater.
svn path=/trunk/; revision=73260
2016-11-17 22:09:11 +00:00
Amine Khaldi
38e3f17430 [PSDK] Update bcrypt.h. CORE-12409
svn path=/trunk/; revision=73259
2016-11-17 22:07:42 +00:00
Amine Khaldi
a0293288a2 [AVIFIL32_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73258
2016-11-17 22:06:10 +00:00
Amine Khaldi
0c2925fa09 [AVIFIL32] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73257
2016-11-17 22:05:29 +00:00
Amine Khaldi
340722145f [QUARTZ] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73256
2016-11-17 22:03:51 +00:00
Amine Khaldi
22687f1551 [DMUSIC] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73255
2016-11-17 22:02:00 +00:00
Amine Khaldi
a5b9d1f8e8 [DINPUT_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73254
2016-11-17 22:00:07 +00:00
Amine Khaldi
ff822fa7da [D3DRM_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73253
2016-11-17 21:59:05 +00:00
Amine Khaldi
65c4e72403 [DINPUT] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73252
2016-11-17 21:57:53 +00:00
Amine Khaldi
540093496e [PSDK] Add missing DI_WRITEPROTECT and DIPROP_PRODUCTNAME.
svn path=/trunk/; revision=73251
2016-11-17 21:56:53 +00:00
Amine Khaldi
b4b72c9302 [D3DRM] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73250
2016-11-17 21:52:34 +00:00
Amine Khaldi
e5a3cf92da [AMSTREAM] Sync with Wine Staging 1.9.23. CORE-12409
svn path=/trunk/; revision=73249
2016-11-17 21:43:18 +00:00
Colin Finck
e12ad8d673 [WINSPOOL_APITEST]
GetPrintProcessorDirectory.c: fix 4 error messages (s/cbNeeded/cbTemp/).
By Serge Gautherie

svn path=/trunk/; revision=73248
2016-11-17 21:30:45 +00:00
Colin Finck
5fd4223870 [WINPRINT_APITEST]
Load all functions to test dynamically from either winprint.dll in the Print Processor Directory (for ReactOS and NT6) or localspl.dll in the system path (for NT5).
Should fix winprint_apitest on ReactOS and Windows Server 2003.

svn path=/trunk/; revision=73247
2016-11-17 21:24:07 +00:00
Mark Jansen
9beec30ba3 [CMD] Wait for the spawned application to exit while executing a batch script. Patch by Joachim Henze. CORE-12402
svn path=/trunk/; revision=73246
2016-11-17 20:47:23 +00:00
Mark Jansen
20421c1d49 [SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve
svn path=/trunk/; revision=73245
2016-11-17 19:50:45 +00:00
Giannis Adamopoulos
81047f4a8b [PSDK] - shlobj.h: Add some flags that are needed to let shell32 compile.
svn path=/trunk/; revision=73244
2016-11-17 14:51:02 +00:00
Giannis Adamopoulos
1d4fcbf920 [SHELL32]
- CDefaultContextMenu: Add rudimentary support for callbacks so as to let folders have item specific commands and remove all item specific code from this class.
- Implement context menu callbacks for CFSFolder, CRegFolder, CDrivesFolder in order to let them handle the properties item and let the CDrivesFolder add and handle the Format item itself.

svn path=/trunk/; revision=73243
2016-11-17 14:35:19 +00:00
Amine Khaldi
bdf445d754 [WLANAPI_APITEST] Bring these tests back home.
svn path=/trunk/; revision=73242
2016-11-17 13:46:36 +00:00
Peter Hater
9cbc4837b7 [MSAFD] Fix WSPSelect heap corruption and don't repeat sockets if they are in different fd_sets.
CORE-12324

svn path=/trunk/; revision=73241
2016-11-17 12:57:32 +00:00
Amine Khaldi
7408b63c91 [NOTEPAD] Fix a typo. Spotted by Laur Florin. CORE-12405
svn path=/trunk/; revision=73240
2016-11-17 11:56:16 +00:00
Colin Finck
e53a72c351 [LOCALSPL_APITEST]
Fix some NULL vs. INVALID_HANDLE_VALUE checks.
Now localspl_apitest.exe should properly quit when it cannot find its DLL.

svn path=/trunk/; revision=73239
2016-11-16 14:59:01 +00:00
Colin Finck
8f3b3eb6e2 [WINSPOOL_APITEST]
Add tests for GetPrintProcessorDirectoryA and another one for GetPrintProcessorDirectoryW.
Tested against Windows Server 2003 SP2.

Step 1 for CORE-12399

svn path=/trunk/; revision=73238
2016-11-16 08:54:54 +00:00
Giannis Adamopoulos
6cf2a9fc0e [SHELL32]
- Implement filling in needed keys passed to CDefFolderMenu_Create2.
- CDefaultContextMenu: Remove the code that filled the array of keys as this is now moved to the implementation of the shell folder.

svn path=/trunk/; revision=73237
2016-11-15 20:14:56 +00:00
Giannis Adamopoulos
46512f3a37 [SHELL32] - Accept NULL pidl in CRegFolder::GetDisplayNameOf. CORE-12317
svn path=/trunk/; revision=73236
2016-11-15 14:25:05 +00:00
Giannis Adamopoulos
4a5fe31949 [SHELL32_APITEST] - Add a test for CShellDesktop to show what breaks the select folder dialog.
svn path=/trunk/; revision=73235
2016-11-15 14:08:57 +00:00
Hermès Bélusca-Maïto
42d50ca091 [LSASRV]: Revert part of r73233: GetModuleHandle(NULL) retrieves the exe module in which the dll is loaded, not the dll instance itself. (an alternative might be to use the hinstance from DllMain...). Thanks Thomas for having pointed this to me.
svn path=/trunk/; revision=73234
2016-11-14 18:57:18 +00:00
Hermès Bélusca-Maïto
a0cb636ee3 [LSASRV]
- No need to hardcode the name of the dll in the GetModuleHandleW call;
- Use ARRAYSIZE instead of hardcoding string buffer sizes;
- When initializing the "Network Sid", use the correct localized string.

svn path=/trunk/; revision=73233
2016-11-14 16:19:22 +00:00
Hermès Bélusca-Maïto
076082358a [LSASRV]
- Remove trailing whitespace;
- Tabs --> Spaces;
- Don't always hardcode parameters sizeofs;
- Use ARRAYSIZE where applicable;
- Use UNICODE_NULL

svn path=/trunk/; revision=73232
2016-11-14 16:17:42 +00:00
Peter Hater
e27a5768be [MSAFD] When out of band data is inlined, calling WSPRecv/WSPRecvFrom with flag MSG_OOB is invalid, return WSAEINVAL. CORE-12104
svn path=/trunk/; revision=73231
2016-11-14 14:10:48 +00:00
Amine Khaldi
02a4d63dc1 [LOCALMON] Russian translation by Nikolay Burshtyn aka amber. CORE-12363
svn path=/trunk/; revision=73230
2016-11-14 11:18:11 +00:00
Amine Khaldi
4aa6b2e9d3 [LOCALMON] Italian translation by Carlo Bramini. CORE-12363
svn path=/trunk/; revision=73229
2016-11-14 10:58:53 +00:00
Mark Jansen
1a9744d406 [ADVAPI32][ADVAPI32_APITEST] Fix incorrect parameter output uncovered by CORE-12333 #comment Please retest!
svn path=/trunk/; revision=73228
2016-11-13 18:11:14 +00:00
Thomas Faber
a9805facab [KMTESTS:MM]
- Skip NtCreateSection tests since they hang on testbot.
ROSTESTS-248

svn path=/trunk/; revision=73227
2016-11-13 16:42:16 +00:00
Amine Khaldi
5c2f126896 [DRIVERS] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73226
2016-11-13 15:31:39 +00:00
Thomas Faber
c2b131e793 [WS2_32_APITEST]
- Skip nonblocking tests since they hang on testbot
ROSTESTS-247

svn path=/trunk/; revision=73225
2016-11-13 14:54:06 +00:00
Thomas Faber
ce14a59aa5 [KMTESTS:RTL]
- Silence a GCC5+ warning
CORE-11794

svn path=/trunk/; revision=73224
2016-11-13 12:19:05 +00:00
Thomas Faber
28126afb8e [ATL]
- Don't return values from void functions.
CORE-11794

svn path=/trunk/; revision=73223
2016-11-13 11:51:02 +00:00
Pierre Schweitzer
58576e2c5b [EXPLORER]
Translate last bits of the task parameters in French.
CORE-12385

svn path=/trunk/; revision=73221
2016-11-13 10:33:23 +00:00
Thomas Faber
37e99b9f99 [CMAKE]
- Use CMake 3.4's <INCLUDES> rule variable in addition to <FLAGS>.
CORE-12373 #resolve

svn path=/trunk/; revision=73220
2016-11-13 10:19:22 +00:00
Thomas Faber
273a731496 [CMAKE]
- We require automatic generation of phony targets for now. Set the corresponding CMake 3.3+ policy (CMP0058).
CORE-12373

svn path=/trunk/; revision=73219
2016-11-13 09:57:30 +00:00
Amine Khaldi
4eb205b6f5 [WINSPOOL] Properly export GetPrinterDriverDirectoryA as a stub. CORE-12375
svn path=/trunk/; revision=73218
2016-11-12 22:59:55 +00:00
Amine Khaldi
c443191b84 [WINSPOOL] Properly export GetPrintProcessorDirectoryA as a stub. CORE-12375
svn path=/trunk/; revision=73217
2016-11-12 22:32:14 +00:00
Amine Khaldi
4297c7b0b6 [DLLS] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73216
2016-11-12 21:53:33 +00:00
Amine Khaldi
1072717a60 [BOOT] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73215
2016-11-12 20:53:49 +00:00
Amine Khaldi
aca585d81e [TIMEDATE] Make the custom clock control aware of the theming. By Carlo Bramini. CORE-12079
svn path=/trunk/; revision=73214
2016-11-12 20:24:07 +00:00
Giannis Adamopoulos
8c25d803dd [SHELL32_APITEST] -Test the IPersistFolder3 interface of CFSFolder.
svn path=/trunk/; revision=73213
2016-11-12 15:38:33 +00:00
Giannis Adamopoulos
f563a3856b [SHELL32_APITEST]
- Add tests for the Initialize method for CDesktopFolder and CDrivesFolder.
- Add tests for CFSFolder to see how it behaves whhile not initialized.

svn path=/trunk/; revision=73212
2016-11-12 14:54:12 +00:00
Thomas Faber
67cbaa5a02 [PSEH3]
- Avoid trying to disable 'declaration after statement' warnings in C++
CORE-11794

svn path=/trunk/; revision=73211
2016-11-12 14:52:58 +00:00
Thomas Faber
790c388fd1 [SHELL32_APITEST]
- Don't compare a pointer to S_OK
CORE-11794

svn path=/trunk/; revision=73210
2016-11-12 12:43:02 +00:00
Thomas Faber
df216319db [MSWSOCK]
- Remove broken 'inline' specifiers
CORE-11794

svn path=/trunk/; revision=73209
2016-11-12 12:23:49 +00:00
Pierre Schweitzer
d121793bd6 [SNDREC32]
Don't double free buffers in case of failure

svn path=/trunk/; revision=73208
2016-11-12 09:24:09 +00:00
Hermès Bélusca-Maïto
3d204aa2b1 [EVENTVWR]: Fix translation for "Information" event type: it is really in singular, not plural.
svn path=/trunk/; revision=73207
2016-11-12 01:29:05 +00:00
Hermès Bélusca-Maïto
b98bfc8583 [MSVCRT]: Implement and export _wtof, based on Wine and existing code; patch by Amine Khaldi.
CORE-12335 #resolve
CORE-9312 #comment Please retest with r73206

svn path=/trunk/; revision=73206
2016-11-11 23:32:29 +00:00
Hermès Bélusca-Maïto
ed21369043 [MSAFD]
- In C, void functions should better have 'VOID' mentioned in their prototypes.
- Simplify GetCurrentTimeInSeconds code.

svn path=/trunk/; revision=73205
2016-11-11 21:37:09 +00:00
Hermès Bélusca-Maïto
47cea24f67 [MSAFD]: Addendum to r73203.
svn path=/trunk/; revision=73204
2016-11-11 21:25:02 +00:00
Hermès Bélusca-Maïto
80ba74a493 [MSAFD]: Convert tabs to spaces.
svn path=/trunk/; revision=73203
2016-11-11 21:19:13 +00:00
Pierre Schweitzer
cc6674b4d1 [NTOSKRNL]
Don't redefine RTL_NUMBER_OF

svn path=/trunk/; revision=73202
2016-11-11 18:16:43 +00:00
Christoph von Wittich
37cc16189d [PSDK] small fixes for dns headers
svn path=/trunk/; revision=73201
2016-11-11 14:21:55 +00:00
Pierre Schweitzer
2fdacdbbd6 [KMTESTS:MM]
Bugfix for IRP_MJ_SET_INFORMATION/FileEndOfFileInformation: really set the information. The test still works fine in Windows and still fails hard in ReactOS.

svn path=/trunk/; revision=73200
2016-11-11 10:44:51 +00:00
Pierre Schweitzer
e01923caaa [NTOSKRNL]
In MmCreateDataFileSection(), when maximum size is higher than file size, don't deal with its allocation size, just move EOF.
This was shown by NtCreateSection() tests.

svn path=/trunk/; revision=73199
2016-11-10 21:17:21 +00:00
Pierre Schweitzer
6db40277dc [KMTESTS:MM]
Add tests for the NtCreateSection functions which mimic some of the behavior that can be exposed by FSDs (late init, too small files, and so on).
It was designed in W2K3.

svn path=/trunk/; revision=73198
2016-11-10 21:02:48 +00:00
Peter Hater
ad99a6f7fd [MSAFD] Implement SO_CONNECT_TIME. CORE-12104
svn path=/trunk/; revision=73197
2016-11-10 17:55:00 +00:00
Thomas Faber
429d685816 [HOST-TOOLS]
- Fix some GCC6 warnings

svn path=/trunk/; revision=73196
2016-11-10 15:34:25 +00:00
Peter Hater
373bee1800 [WS2_32_APITESTS] Add nonblocking tests
svn path=/trunk/; revision=73195
2016-11-10 15:13:19 +00:00
Peter Hater
ec87a34342 [WS2_32_APITESTS] Add more WSAAsync tests
svn path=/trunk/; revision=73194
2016-11-10 15:00:44 +00:00
Peter Hater
b3bee8c862 [WS2_32_APITEST] Use test.winehq.org insteadof reactos.org. These days main reactos page is too big.
svn path=/trunk/; revision=73193
2016-11-10 14:23:49 +00:00
Peter Hater
a32e890392 [MSAFD] Fix for WSPStringToAddressA/W wine tests. CORE-12104
svn path=/trunk/; revision=73192
2016-11-10 11:15:14 +00:00
Thomas Faber
d26b1ff847 [FASTFAT]
- Generate LFNs for files containing non-ASCII characters in their names.
CORE-8617 #resolve

svn path=/trunk/; revision=73191
2016-11-10 11:04:29 +00:00
Thomas Faber
ac5bba8ea8 [NTDLL_APITEST]
- Add tests for RtlIsNameLegalDOS8Dot3 and RtlUpcaseUnicodeStringToCountedOemString with the ® sign.
CORE-8617

svn path=/trunk/; revision=73190
2016-11-10 10:18:25 +00:00
Giannis Adamopoulos
8632758e52 [SHELL32] - CStartMenu: Add missing checks for failure and make some checks noisy. CORE-12300
svn path=/trunk/; revision=73189
2016-11-10 09:34:14 +00:00
Giannis Adamopoulos
0125f9192d [SHELL32] - CMenuBand: Don't accept a NULL shell folder in SetShellFolder. Should fix a test and possibly CORE-12300.
svn path=/trunk/; revision=73188
2016-11-10 08:10:28 +00:00
Giannis Adamopoulos
d2812c3e70 [SHELL32]
- Make some checks for failure in CDefView and CDefaultContextMenu noisy.

svn path=/trunk/; revision=73187
2016-11-10 08:05:13 +00:00
Mark Jansen
f6c36fb82e and of course also rename the test itself...
svn path=/trunk/; revision=73186
2016-11-09 23:23:50 +00:00
Mark Jansen
cae3a4455e Rename shlexec.cpp to ShellExecuteEx.cpp as suggested by Thomas.
svn path=/trunk/; revision=73185
2016-11-09 23:18:23 +00:00
Thomas Faber
03d2a4b809 [PROPSYS_WINETEST]
- Fix VS2010 build

svn path=/trunk/; revision=73184
2016-11-09 22:55:16 +00:00
Mark Jansen
c707b2d936 addendum to r73180 (aka, fix the build)
svn path=/trunk/; revision=73183
2016-11-09 22:24:42 +00:00
Mark Jansen
813cc3f137 [SHELL32] Automatically add the .exe extension for App Paths in ShellExecuteEx. Patch by Yaroslav Veremenko. CORE-12049
svn path=/trunk/; revision=73182
2016-11-09 22:18:33 +00:00
Hermès Bélusca-Maïto
1d2fe2375a [EVENTVWR]: Adjust some menu keyboard shortcuts.
svn path=/trunk/; revision=73181
2016-11-09 22:14:20 +00:00
Mark Jansen
353c67c0d4 [SHELL32_APITEST] Add some tests for ShellExecuteEx showing extension completion with the App Paths registry key. Patch by Yaroslav Veremenko. CORE-12049
svn path=/trunk/; revision=73180
2016-11-09 22:13:26 +00:00
Christoph von Wittich
d4c71dda90 [PSDK] fix DNS_RECORDW definition
svn path=/trunk/; revision=73179
2016-11-09 21:29:09 +00:00
Hermès Bélusca-Maïto
54c7babbb3 [EXPLORER]: Add missing keyboard shortcuts for some commands.
svn path=/trunk/; revision=73178
2016-11-09 18:03:19 +00:00
Peter Hater
38d1fdf118 [MSAFD] Fix possible memory corruption in WSPIoctl. Brought to you by Andreas Maier aka andy-123. Thanks.
CORE-12322

svn path=/trunk/; revision=73177
2016-11-09 12:05:48 +00:00
Peter Hater
781673fa3d [MSAFD] Minor changes. Code style fixes. tabs->spaces. CORE-12104
svn path=/trunk/; revision=73176
2016-11-09 11:49:55 +00:00
Giannis Adamopoulos
2c118e1890 [BROWSEUI]
- CAddressBand: Call the SetOwner method with NULL parameter to CAddressEditBox to let it know that it should deinitialize.
- CAddressEditBox: Release the connection with the browse window and release the pointer to the site during deinitialization.
- CInternetToolbar: Destroy the toolbar and release pointers when CloseDW method gets called.
- CBaseBar: Destroy the window when SetClient is called with NULL parameter.
- CToolbarProxy: Add a Destroy method to release resources because we hold a pointer to the CInternetToolbar.
- CShellBrowser: When storing the pointer  to the new basebar add a new reference because we directly change the pointer in the smart pointer and not the smart pointer itself. Destroy the toolbar proxy and properly release all references to containted objects. Also expect the reference count of the shell view to reach zero after the internet toolbar gets freed because it also keeps a reference.

This should fix all the leaking objects and windows when closing the shell browser. It should also fix CORE-12066.

svn path=/trunk/; revision=73175
2016-11-08 23:38:42 +00:00
Christoph von Wittich
a0aeb266fa [PSDK] add some missing DNS structures, add incomplete dnsrslvr.idl
svn path=/trunk/; revision=73174
2016-11-08 12:27:55 +00:00
Christoph von Wittich
4c9e70a899 [PSDK] disable SAL for WIDL as well
svn path=/trunk/; revision=73173
2016-11-08 11:33:54 +00:00
Thomas Faber
602c2dd81e [USETUP]
- Critical errors are worth a debug print
CORE-11819

svn path=/trunk/; revision=73172
2016-11-08 09:40:05 +00:00
Hermès Bélusca-Maïto
a9c9bed2e2 [NTOS]: Fix MmPt and DOPE tags.
svn path=/trunk/; revision=73171
2016-11-07 20:41:24 +00:00
Hermès Bélusca-Maïto
98ffc124f5 [NTOS:IO]: IopCreateDriver(): Set the returned DriverObject value only in case of success.
svn path=/trunk/; revision=73170
2016-11-07 15:51:56 +00:00
Hermès Bélusca-Maïto
12e8ef0213 [TCPIP]
- Enable logging now that IoWriteErrorLogEntry works.
- Check for log event size before calling IoAllocateErrorLogEntry.
- Reduce code indentation in the logging function.

svn path=/trunk/; revision=73169
2016-11-07 15:48:34 +00:00
Hermès Bélusca-Maïto
323bd18771 [NTOS:IO]: An improvement for the total log size check (addendum to r73167).
svn path=/trunk/; revision=73168
2016-11-07 13:57:11 +00:00
Hermès Bélusca-Maïto
0dfecf815d [NTOS:IO][INCLUDES][EVENTLOG]: Fix support for event logging through the "ErrorLogPort" LPC. See the details in CORE-12301 #resolve
svn path=/trunk/; revision=73167
2016-11-07 13:29:09 +00:00
Hermès Bélusca-Maïto
824c5e07c0 [NTOS:LPC]
- Capture the ServerView/ClientView *only* when those pointers are not NULL.
- Fix a LpcRequest vs. CapturedLpcRequest in a call to LpcpMoveMessage. Caught by Thomas. CORE-7371 CR-100

svn path=/trunk/; revision=73166
2016-11-07 12:35:09 +00:00
Peter Hater
09207124de [MSAFD] Implement SOL_SOCKET/SO_ERROR. CORE-12104
svn path=/trunk/; revision=73165
2016-11-07 08:50:31 +00:00
Hermès Bélusca-Maïto
f197af7358 [NTOS:LPC]
- Fix the usage, or add support (for NtSecureConnectPort based on patches by Alexander Andrejevic, and for NtReplyPort, NtReplyWaitReceivePortEx, NtListenPort by me) for capturing user-mode parameters and using SEH in LPC functions.
CORE-7371 #resolve
- Make NtSecureConnectPort call SeQueryInformationToken, now that the latter is implemented since r73122.
- Fix ObDereferenceObject usage for Port vs. ClientPort in NtSecureConnectPort.
- ObCloseHandle certainly needs to be called with the actual 'PreviousMode'.

svn path=/trunk/; revision=73164
2016-11-07 01:24:24 +00:00
Hermès Bélusca-Maïto
a066c5bbb0 [NTOS:LPC]: Fix the function prototypes (reference: Process Hacker + how the parameters are used in the code).
[NOTS][NDK]: Fix whitespace in header files.
[XDK]: Define PORT_MAXIMUM_MESSAGE_LENGTH before actually using it in the different IO_ERROR_LOG_xxx #defines, for consistency purposes.

svn path=/trunk/; revision=73163
2016-11-07 01:06:24 +00:00
Hermès Bélusca-Maïto
06807aee1b [NTOS:LPC]: Improve the lisibility of some functions:
- Group together the local parameters used for capturing user variables;
- Add some space between the list of parameters and the beginning of the code proper;
- Rename some variables or move some code to make some different functions look more similar (helps in finding functionality-similar functions in the code);
- Improve some comments;
- Whitespace fixes;
- Few code formatting.
- Use a ExFreePoolWithTag instead of ExFreePool, but otherwise no other functional code changes.

svn path=/trunk/; revision=73162
2016-11-07 00:55:34 +00:00
Giannis Adamopoulos
bb59ec3e6e [SHELL32]
- CShellLink: Zero the pointer to mDropTarget by releasing the smart pointer instead of just releasing the object. This lead to a crash every time CShellLink::DragLeave was called.
CORE-11956

svn path=/trunk/; revision=73161
2016-11-06 23:34:22 +00:00
Giannis Adamopoulos
f4a1861aab [SHELL32]
- SHOpenFolderAndSelectItems: Take into account buggy applications like firefox that like to pass full pidls in a PCUITEMID_CHILD_ARRAY.

svn path=/trunk/; revision=73160
2016-11-06 22:25:02 +00:00
Giannis Adamopoulos
b183748a87 [SHELL32]
- Hackplement SHOpenFolderAndSelectItems by using the /select parameter of explorer.exe and selecting only the first of the requested items.
- Implement the "Find Target" button in the properties dialog of shortcuts to use SHOpenFolderAndSelectItems so as we can test it.
Based on the patch of Joachim Henze (reactosfanboy).
CORE-9367 

svn path=/trunk/; revision=73159
2016-11-06 21:51:46 +00:00
Giannis Adamopoulos
0814bc5358 [SHELL32]
- CDefView: Correct the check for SVSI_EDIT because SVSI_EDIT implies SVSI_SELECT. This actualyl fixes SVSI_SELECT to not cause a rename.

[BROWSEUI]
- ExplorerMessageLoop: Implement the /select parameter for explorer.

svn path=/trunk/; revision=73158
2016-11-06 20:47:21 +00:00
Giannis Adamopoulos
3c58a339dc [SHELL32]
- CDesktopBrowser: The flags that SHOpenNewFrame takes are the same that SHExplorerParseCmdLine returns, not the SBSP_ ones.

[BROWSEUI]
- Move the hack to fill the parsed pidl if none was found to SHCreateFromDesktop.
- Convert the SH_EXPLORER_CMDLINE_FLAG_E flag to a SBSP_EXPLOREMODE and pass it to the CShellBrowser.

svn path=/trunk/; revision=73157
2016-11-06 20:13:17 +00:00
Giannis Adamopoulos
ce0d9e3727 [COM_APITEST]
- The new interfaces are not registered in the registry
- Add a few interfaces that were discovered for CLSID_Printers and CLSID_QueryAssociations.

svn path=/trunk/; revision=73156
2016-11-06 18:04:58 +00:00
Giannis Adamopoulos
d0aa105b59 [COM_APITEST]
- Test for the undocumented interfaces that were added recently.

svn path=/trunk/; revision=73155
2016-11-06 17:17:57 +00:00
Giannis Adamopoulos
55ed87f042 [SHLGUID_UNDOC.H] -Add several undocumented interfaces taken from http://www.geoffchappell.com/studies/windows/shell/shell32/interfaces/index.htm
svn path=/trunk/; revision=73154
2016-11-06 15:47:35 +00:00
Thomas Faber
42ce59cdd2 [KMTESTS]
- Complete IRPs with STATUS_INVALID_DEVICE_REQUEST by default.
CORE-12295 #resolve

svn path=/trunk/; revision=73153
2016-11-06 15:26:39 +00:00
Hermès Bélusca-Maïto
4ce821ad14 [EVTLIB]: Don't spam the log with "add new record" lines.
svn path=/trunk/; revision=73152
2016-11-06 15:26:20 +00:00
Thomas Faber
fa7d321cf7 [MKISOFS]
- Fix build with VS2010 and 2012
CORE-11988

svn path=/trunk/; revision=73151
2016-11-06 14:57:13 +00:00
Johannes Anderwald
99e69d6761 [USBAUDIO]
- partly implement GetDataRangeIndexForFormat

svn path=/trunk/; revision=73150
2016-11-06 13:59:39 +00:00
Thomas Faber
0c93077425 [PSEH]
- Correctly restore the old frame pointer when unwinding in _except_handler3.
CORE-12283 #resolve

svn path=/trunk/; revision=73149
2016-11-06 11:49:19 +00:00
Thomas Faber
52adca06a9 [KMTESTS:RTL]
- Add a test checking stack frame correctness in a nested __finally handler
CORE-12283

svn path=/trunk/; revision=73148
2016-11-06 09:31:09 +00:00
Giannis Adamopoulos
034a3f9f20 [SHELL32]
- Only specific shell folders are supposed to return their display name. Consequently, only CRegFolder reads the registry now to get the display name of items.

svn path=/trunk/; revision=73147
2016-11-05 19:55:29 +00:00
Thomas Faber
f2495ba422 [ASM]
- Addendum to r73145 aka fix build

svn path=/trunk/; revision=73146
2016-11-05 18:34:44 +00:00
Thomas Faber
2c8f2ae901 [PSEH]
- Make _except_handler3 human-readable
CORE-12283

svn path=/trunk/; revision=73145
2016-11-05 18:33:50 +00:00
Thomas Faber
7eea8b9401 [CRT]
- Avoid 'except' as a variable name in math.h, for compatibility with SEH tests

svn path=/trunk/; revision=73144
2016-11-05 18:27:30 +00:00
Mark Jansen
91a67de356 [ADVAPI32] Set REG_NONE type in RegQueryValueExW with certain failure cases. Patch by Victor Martinez Calvo. CORE-9666 #resolve #comment Thanks!
svn path=/trunk/; revision=73143
2016-11-05 17:46:30 +00:00
Mark Jansen
5cccca79c2 [ADVAPI32_APITEST] Add tests for RegQueryValueExW. Patch by Victor Martinez Calvo. ROSTESTS-171 #resolve #comment Thanks!
svn path=/trunk/; revision=73142
2016-11-05 17:43:24 +00:00
Mark Jansen
f52999c41e [MKISOFS] Silence progress spam.
svn path=/trunk/; revision=73141
2016-11-05 17:28:00 +00:00
Giannis Adamopoulos
3412b511c1 [SHELL32]
- Make most dll dependencies to be delay loaded just like windows.

svn path=/trunk/; revision=73140
2016-11-05 17:04:15 +00:00
Giannis Adamopoulos
55f2b129e3 [SHELL32]
- Add missing resource strings for the description of some shell folders.

svn path=/trunk/; revision=73139
2016-11-05 16:45:41 +00:00
Johannes Anderwald
35e6d1e851 [USBAUDIO]
- store remaining audio bytes in a common buffer, which will be sent on next request
- fixes some of audio distortion issues

svn path=/trunk/; revision=73138
2016-11-05 16:38:59 +00:00
Giannis Adamopoulos
f7841638f6 [SHELL32]
- Properly add Printers folder in Control Panel.
CORE-12193

svn path=/trunk/; revision=73137
2016-11-05 16:33:24 +00:00
Mark Jansen
0fe87b6c3c [SHELL32] Improve the choose icon dialog. Patch by Jared Smudde, edited by me. CORE-11792 #resolve
Translators, please check this dialog in your language, some text is changed!

svn path=/trunk/; revision=73136
2016-11-05 16:12:09 +00:00
Thomas Faber
4221bc4d2d [CRT]
- Remove SEH code that's duplicated in the pseh library.
CORE-12283

svn path=/trunk/; revision=73135
2016-11-05 16:05:02 +00:00
Giannis Adamopoulos
072c1d16c8 [SHELL32]
CDesktopBrowser: Forward the parameters pased in CDesktopBrowser::BrowseObject to SHOpenNewFrame. Thus the same parameters are eventually passed to CShellBrowser::Initialize.

[BROWSEUI]
CShellBrowser: Handle SBSP_EXPLOREMODE flag so as to show the tree view when the user selects the Explore option from the context menu.

svn path=/trunk/; revision=73134
2016-11-05 15:05:00 +00:00
Amine Khaldi
d12708671c [BASE] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73133
2016-11-05 14:55:55 +00:00
Giannis Adamopoulos
86fb59915f [BROWSEUI]
- CShellBrowser: Add some checks for failures that we re missing.
- CAddressEditBox: Add some checks for failures that we re missing.
- SHCreateFromDesktop: Actually create the proxy desktop window when needed and keep its handle and prefer it when we try to find the proxy desktop window.
- Wake the message queue of the proxy desktop after a browser thread exits so the proxy desktop can exit when the last browser thread exits.
- Add a hack to prefer to show my documents if we ended up trying to open a browser window with a NULL pidl. This is a hack that is needed because SHExplorerParseCmdLine is broken.
- Finally this fixes using "explorer /separate" and also fixes the separate process to exit when the last browser gets closed (this fix also applies to filebrowser.exe which no longer lives forever).
CORE-12168

svn path=/trunk/; revision=73132
2016-11-05 14:40:55 +00:00
Giannis Adamopoulos
7731fea285 [BROWSEUI]
- CAddressEditBox: Implement handling relative paths in the addressbar of explore in addition to absolute paths.

svn path=/trunk/; revision=73130
2016-11-05 00:09:51 +00:00
Giannis Adamopoulos
6cd367f86e [BROWSEUI]
- CShellBrowser: Add a standard ShellObjectCreatorInit constructor and make its initializer take a pidl and flags.
- Move BrowserThreadProc to desktopipc.cpp where the lifetime of the browser thread will be managed.

svn path=/trunk/; revision=73129
2016-11-04 23:56:02 +00:00
Giannis Adamopoulos
24fcf531e7 [SHELL32]
- Implement comparing child items in CompareIDs method of our IShellFolder immplementation in shell32 as this is the expected behaviour according to tests and documentation.
- This was removed after each folder got its own implementation (we used a single one from wine that did handle it).
May fix CORE-12106.

svn path=/trunk/; revision=73128
2016-11-04 23:11:29 +00:00
Johannes Anderwald
c86e482415 [SDK]
- fix build
- thanks learn_more

svn path=/trunk/; revision=73127
2016-11-04 18:38:07 +00:00
Johannes Anderwald
ad98e4a993 [SDK]
- add newline

svn path=/trunk/; revision=73126
2016-11-04 18:14:40 +00:00
Johannes Anderwald
d84d3c799f [SDK]
- add prototypes

svn path=/trunk/; revision=73125
2016-11-04 18:12:00 +00:00
Johannes Anderwald
20ff103b96 [USBAUDIO]
- fix buffer calculation for usb headsets
- usb headsets now partially work with usbaudio in win2k3

svn path=/trunk/; revision=73124
2016-11-04 18:07:44 +00:00
Peter Hater
f3d71d8a6b [MSAFD] Check params on WSAAceept. CORE-12104
svn path=/trunk/; revision=73123
2016-11-04 18:03:15 +00:00
Hermès Bélusca-Maïto
15d77be6fd [NTOS]
- accesschk.c: Remove redundant SepAccessCheck/SepAccessCheckEx pair of private functions; instead just rename SepAccessCheckEx into SepAccessCheck and use it directly in the code. NOTE: SepAccessCheck is *incomplete* (in particular it doesn't retrieve the information needed to initialize the 'Privileges' parameter).
- sid.c: Comments formatting fix.
- token.c:
  * Finish to implement SeQueryInformationToken . This function is really the same as NtQueryInformationToken but without all the stuff needed for user-mode buffer access protection.
  * Some code simplifications in NtQueryInformationToken.
  I need this to fix a "FIXME: Use SeQueryInformationToken" in some code I'm also fixing (& commit later).

[NDK]: Fix parameter types and add annotations to RtlCopySidAndAttributesArray.

[KMTESTS:NTOS_SE]
- Reenable the 'SeQueryInfoToken' test.
- Show that SeQueryInformationToken doesn't support 4 token information classes, which are supported only by NtQueryInformationToken.
- Fix calling of SeAccessCheck. In particular the 'Privileges' parameter is not allocated by the caller, but instead is allocated by SeAccessCheck *and* returned to the caller (who then must free the buffer using SeFreePrivileges). This fixes the encountered BSODs that leaded to disabling preventively the test in r59178.
- Minor code cleaning.

svn path=/trunk/; revision=73122
2016-11-04 17:52:32 +00:00
Giannis Adamopoulos
3430268b90 [SHELL32_APITEST]
- Add extensive tests for SHParseDisplayName. I tried to add as many as possible  but this list of tests is still incomplete. In the meantime I discovered interesting stuff like the "shell:system" path which if you enter in the run dialog will open the system32 folder. I tried to test parsing protocols like ftp paths but couldn't find wht it should look like yet. Afaik all protocol except for the shell protocol like the one mentioned before should be parsed by CInternet class as noted in the appropriate comment in the tests.

svn path=/trunk/; revision=73121
2016-11-04 17:31:53 +00:00
Peter Hater
7f3c674aee [MSAFD] Disable setting blocking mode if there are WSPAsyncSelect or WSPEventSelect pending calls. CORE-12104
svn path=/trunk/; revision=73120
2016-11-04 09:38:21 +00:00
Amine Khaldi
509c345083 [NETCFGX] Compensate for the proper widths until we have sane font support. Suggestion by Jim, patch by Doug Lyons. CORE-12094
svn path=/trunk/; revision=73117
2016-11-04 09:28:44 +00:00
Pierre Schweitzer
a343648323 [NTOSKRNL]
In IoWritePartitionTableEx(), don't return STATUS_SUCCESS when we cannot write GPT to higher partitions count than space available; return STATUS_INVALID_PARAMETER.

svn path=/trunk/; revision=73114
2016-11-03 21:49:55 +00:00
Pierre Schweitzer
82425d713b [DISK]
Don't overflow when computing disk size.
Patch by Vort.

CORE-12261

svn path=/trunk/; revision=73113
2016-11-03 21:38:56 +00:00
Pierre Schweitzer
ec670d6c25 [NTOSKRNL]
For now, disable broken code in FstubReadPartitionTableEFI(). In its current state, it wrongly assumes backup GPT is broken and thus attempts to fix main GPT (?!).
Furthermore, it appears Windows 2K3 doesn't perform such checks, nor such GPT rewritings in FstubReadPartitionTableEFI().

CORE-12261

svn path=/trunk/; revision=73112
2016-11-03 21:13:30 +00:00
Hermès Bélusca-Maïto
cfbf8660bc [WHOAMI]: Use the conutils (stream) library for console output (see also r65894).
CORE-8965 CORE-10504

svn path=/trunk/; revision=73111
2016-11-03 16:30:48 +00:00
Hermès Bélusca-Maïto
79c7b07668 [CONUTILS]: Remove that overengineered splitted library stuff, and just rely on the splitting of the source code files instead. This is simpler and does the same job as I wanted to do initially (thanks Amine and Thomas for the feedback).
CORE-10504 #resolve
[APPS]: Use again just the conutils library.
The effect of these two modifications above is to partly revert r73024 (the code splitting remains on the contrary).
[CMAKE]: Remove the "evil workaround" (revert r73027). See CORE-12206 for more details.

svn path=/trunk/; revision=73110
2016-11-03 15:47:45 +00:00
Peter Hater
ee601ad450 [TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks
CORE-12152

svn path=/trunk/; revision=73109
2016-11-03 14:53:00 +00:00
Thomas Faber
bdcecff0be [USETUP]
- A fatal error when creating the install directory is worth a DPRINT1
CORE-11819

svn path=/trunk/; revision=73108
2016-11-03 14:14:19 +00:00
Johannes Anderwald
92338e37d3 [USBAUDIO]
- frequencies may appear unsorted, handle that

svn path=/trunk/; revision=73107
2016-11-03 13:44:01 +00:00
Johannes Anderwald
e8322d1fb7 [USBAUDIO]
- include controls from logical channels
- process selector unit descriptors
- automatic gain is KSNODETYPE_AGC

svn path=/trunk/; revision=73106
2016-11-03 13:26:45 +00:00
Hermès Bélusca-Maïto
698798ac5c [BOOTDATA]: Fix the indentation of the file(..) commands, noted by Thomas.
svn path=/trunk/; revision=73105
2016-11-02 21:49:50 +00:00
Hermès Bélusca-Maïto
1562869a7a [BOOTDATA]: Diverse improvements for mkisofs support and ISO image configuration:
- Make our build system create the required empty directory for mkisofs, instead. (It's not the purpose of the SVN to hold special files/directories just to make host tools happy; instead it's the job of the buld system to create them.)
- Place the boot files (catalog & co.) preferably at the beginning of the ISO image (it makes ISO image analysis easier, and is back-compatible with cdmake & oscdimg & windows ISOs): use the build system to generate the mkisofs sorting file. See the CMakeLists.txt for more details.
- Set in one place the ISO manufacturer & volume name strings so that it makes easier to bulk-change them (and makes features like CORE-12233 a bit easier to maintain).
- The EFI image must be set up with no emulation mode! (See section "12.3.2.1 ISO-9660 and El Torito" of the UEFI spec v2.4 errata B, for example).

[MKISOFS]: Add some useful offline documentation.

CORE-11988

svn path=/trunk/; revision=73104
2016-11-02 21:43:46 +00:00
Pierre Schweitzer
5bcce07fd7 [NDK]
Properly export functions for C++ code

svn path=/trunk/; revision=73103
2016-11-02 19:46:46 +00:00
Pierre Schweitzer
1e3e451c22 [BTRFS]
Enable the BTRFS shell registration

svn path=/trunk/; revision=73102
2016-11-02 19:40:50 +00:00
Pierre Schweitzer
f7dfa0ee35 [DOC]
Update sync status reading BTRFS

svn path=/trunk/; revision=73101
2016-11-02 19:38:39 +00:00
Pierre Schweitzer
7f4d8362bf [BTRFS]
Import the BTRFS driver shell extension. It allows having a finer control on btrfs volumes.
Note that not everything works in ReactOS and its usage may lead to bugchecks...

CORE-10892

svn path=/trunk/; revision=73100
2016-11-02 19:36:59 +00:00
Amine Khaldi
e9a079b458 [CHARMAP_NEW] Fix a copy pasta.
svn path=/trunk/; revision=73099
2016-11-02 19:19:17 +00:00
Amine Khaldi
968516f86d [SERVMAN] Sort out header inclusions.
svn path=/trunk/; revision=73098
2016-11-02 18:55:51 +00:00
Mark Jansen
b42f4fa34d [SETUPAPI] Forward pSetup[Malloc|Realloc|Free] to My[Malloc|Realloc|Free] as wine does. Spotted by Jared Smudde. CORE-12262
svn path=/trunk/; revision=73097
2016-11-02 18:31:46 +00:00
Peter Hater
0c396fc83e [MSAFD] Add more checks for lpErrno. Rearrange start of some functions to avoid creation and disposal of event of socket handle or parameter(s) is wrong. Other small changes
CORE-12104

svn path=/trunk/; revision=73096
2016-11-02 15:36:26 +00:00
Peter Hater
494db7a55d [TCPIP] Copy back unicast IP if broadcast is specified for listen.
CORE-12152

svn path=/trunk/; revision=73095
2016-11-02 11:24:08 +00:00
Johannes Anderwald
2a33de20a4 [USBAUDIO]
- remove setting InstancesNecessary as it causes problems with KsStudio
- start implementing support for usb headsets
- use endpoint address in UsbAudioSetFormat
- rewrite USBAudioSelectAudioStreamingInterface to select the interface based on the format index chosen

svn path=/trunk/; revision=73094
2016-11-02 09:55:18 +00:00
Pierre Schweitzer
79e0de2faf [MPR]
Implement saved connections restoration.
This is a bit hackish for now: it should only be attempted once, when the DLL is loaded on session login. Right now, it's attempt each time the DLL is loaded (ie, even when a program linking to it is started). This is to be fixed later on. So far, it brings the intended feature.

Now, you can create a connection with net use, save it, and reboot: it will be restored on the session opening.

CORE-11757

svn path=/trunk/; revision=73093
2016-10-31 21:27:02 +00:00
Pierre Schweitzer
fdc18e536d [MPR]
Delete saved connection on disconnection if asked (even though the resource wasn't connected).
This allows net use to properly remove connections it may have created.

CORE-11757

svn path=/trunk/; revision=73092
2016-10-31 21:20:32 +00:00
Pierre Schweitzer
c397981db2 [MPR]
Allow saving connections when using WNetUseConnection(), WNetAddConnection2().
It makes the "net use /persistent" switch working (ie, saving connection - not restoring connections).

CORE-11757

svn path=/trunk/; revision=73091
2016-10-31 21:17:46 +00:00
Johannes Anderwald
9b3c3d78a1 [USBAUDIO]
- initialize pin with correct flags
- enumerate all dataranges for an input / output terminal

svn path=/trunk/; revision=73090
2016-10-31 20:45:23 +00:00
Jérôme Gardou
eb0d4a0a16 [KERNEL32_WINETEST]
- Guard page and ATL thunks tests work fine. Enable them.
ROSTESTS-155 #resolve

svn path=/trunk/; revision=73089
2016-10-31 11:51:50 +00:00
James Tabor
07bc9a400d [User32]
- Leave Dialog Procedure calls protected with SEH, the same as windows.
- See CORE-12182, CORE-12111 and related issues.

svn path=/trunk/; revision=73088
2016-10-31 01:18:43 +00:00
Hermès Bélusca-Maïto
8793f1b4c6 [NTVDM]: Properly fixes build. Addendum to r73082, supersedes r73084.
CORE-10340

svn path=/trunk/; revision=73085
2016-10-30 20:27:05 +00:00
Mark Jansen
8657be9fb4 Addendum to r73082
svn path=/trunk/; revision=73084
2016-10-30 19:52:53 +00:00
Mark Jansen
22ba0b5aa5 [APPHELP][APPHELP_APITEST] Update db apitests to succeed from 2k3 to 10, paving the way for the next set of tests.
- Support 2k3 and Vista+ versions of the SDBQUERYRESULT structure.
- Add tests for SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Implement SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Add a version resource to apphelp, so that we can use it to identify which tests to use.

svn path=/trunk/; revision=73083
2016-10-30 19:39:43 +00:00
Hermès Bélusca-Maïto
705f7ce49e Art work commit:
[PIFMGR]: Update the 16-colour version of the computer icon.
[NTVDM]: Add the tangoified versions of the NTVDM computer icon by Ismael Ferreras Morezuelas. Also update the Tango PC-AT and XT icons.
CORE-10340 #resolve #comment Committed in r73082, thanks to you all!

svn path=/trunk/; revision=73082
2016-10-30 19:02:15 +00:00
Hermès Bélusca-Maïto
ecddd01a74 [BTRFS]: Fix compilation with MSVC too, as we don't have the 'FileFsSectorSizeInformation' FS information class in our headers (this is some Win8+ stuff).
CORE-12223 #comment MSVC compilation fixed in r73078 ('FileFsSectorSizeInformation' absent in our headers).

svn path=/trunk/; revision=73078
2016-10-30 14:14:27 +00:00
Mark Jansen
082463978d [REGSVR32] Disable error message boxes while loading a dll. CORE-12209
svn path=/trunk/; revision=73077
2016-10-30 11:50:10 +00:00
Thomas Faber
6acbbeddf8 [MKISOFS]
- Fix Win64 build -- the define is _WIN32, not WIN32.
CORE-11988

svn path=/trunk/; revision=73076
2016-10-30 09:44:29 +00:00
Pierre Schweitzer
97d164005c [RPCRT4]
Import Wine commit (by Alexandre Julliard):
- 7b0c2cdbcd64cffa2f5c5a37f55799b114132b59, Remove noisy fixme.

svn path=/trunk/; revision=73075
2016-10-30 09:17:42 +00:00
Peter Hater
55d4688b34 Revert r73068 and r73070
Current tests are obviously not enough to declare them OK.
I'll add more tests first

svn path=/trunk/; revision=73074
2016-10-30 05:58:02 +00:00
Thomas Faber
78ad433718 [FASTFAT]
- Only lock down the user buffer in the non-cached read/write case. CcCopyRead/CcCopyWrite takes care of this in the cached case, and does not impose a size limit like an MDL does.
CORE-12132 #resolve

svn path=/trunk/; revision=73072
2016-10-29 20:30:49 +00:00
Thomas Faber
a51ac2be8c [NTDLL_APITEST]
- Add a test for NtReadFile, also covering buffer size too large for an MDL
CORE-12132

svn path=/trunk/; revision=73071
2016-10-29 20:14:16 +00:00
Peter Hater
0a11d5e9a2 [MSAFD] Implement async connect
CORE-12152 #resolve

svn path=/trunk/; revision=73070
2016-10-29 18:38:27 +00:00
Peter Hater
9817764e06 [MSAFD][WS2_32] Better WSASocket parameters check
CORE-12104

svn path=/trunk/; revision=73068
2016-10-29 18:22:22 +00:00
Pierre Schweitzer
e75da19bb3 [BTRFS]
Sync btrfs to 0.7.

CORE-12223

svn path=/trunk/; revision=73062
2016-10-29 17:05:10 +00:00
Pierre Schweitzer
210d27427c [DDK]
Define IDENTIFY_DEVICE_DATA (from MSDN).

CORE-12223

svn path=/trunk/; revision=73061
2016-10-29 16:53:45 +00:00
Thomas Faber
b6d3cf9388 [MKISOFS]
- Fix VS 2015 build
CORE-11988

svn path=/trunk/; revision=73060
2016-10-29 11:54:19 +00:00
Thomas Faber
8d77737ce9 [NTDLL_APITEST]
- Add tests for NtWriteFile with buffer sizes larger than an MDL can describe.
CORE-12132

svn path=/trunk/; revision=73059
2016-10-29 11:39:07 +00:00
Thomas Faber
ba1509ef9e [KMTESTS:IO]
- Add a test case for trying to open a file "inside" a file to IoFilesystem
ROSTESTS-135

svn path=/trunk/; revision=73058
2016-10-29 11:20:58 +00:00
Benedikt Freisen
3d592530f4 [MSPAINT] refactor RegistrySettings::SetWallpaper, also changing its signature to make it more usable
svn path=/trunk/; revision=73055
2016-10-28 19:48:25 +00:00
Peter Hater
85f275a284 [MSAFD] Fix handle counting in WSPSelect and improve TDI request according to MSDN.
CORE-12104

svn path=/trunk/; revision=73054
2016-10-28 16:37:39 +00:00
Peter Hater
b21dc336da Fix build
svn path=/trunk/; revision=73053
2016-10-28 07:11:20 +00:00
Peter Hater
c05f8b29ef [WS2_32_APITESTS] Add tests for WSAAsync original by Miroslav Mastný. Converted to api test by me.
CORE-12152 #resolve #comment Thanks

svn path=/trunk/; revision=73052
2016-10-28 07:01:16 +00:00
Colin Finck
96877abf85 [MKISOFS]
Import a minimal version of the highly portable mkisofs tool from schily-2016-10-27 (https://sf.net/projects/schilytools) and use it for creating ReactOS ISOs from now on.

mkisofs is the de-facto standard ISO creation tool on most platforms and actively maintained.
Compared to cdmake, its features have matured and it adds ISO9660:1999 support among many other things.
I can import its UDF features as soon as we need them.

mkisofs has been integrated into our buildsystem in the sdk/tools/mkisofs folder with these subfolders:
* "reactos"
  Host-specific include files that are usually generated by the upstream buildsystem. For us, I have handcrafted them to be enough for mkisofs and compatible with Windows, Linux and Mac OS X.
  Follow the original layout of the generated files whenever you have to edit these.
* "schilytools"
  Contains the actual mkisofs code and dependencies while maintaining the original directory layout.
  Only synchronize with newer versions, but never modify. Submit patches upstream instead :)

ISOs are now being built with a single ISO9660:1999 filesystem instead of classic ISO9660 + Joliet.
For the moment, you can switch back to cdmake using -DUSE_MKISOFS:BOOL=0 on the CMake commandline. cdmake will be completely removed in about a month if no problems occur.

CORE-11988

svn path=/trunk/; revision=73051
2016-10-27 22:51:59 +00:00
Thomas Faber
f642128e8f [PROGMAN]
- Fix MSVC warnings
- Use strsafe printf

svn path=/trunk/; revision=73050
2016-10-27 10:21:13 +00:00
Hermès Bélusca-Maïto
3d8a01fc0d [DESK.CPL]: Fix "antiali(a)sed" typo, caught by DopefishJustin; complete the other translations.
svn path=/trunk/; revision=73049
2016-10-27 00:07:29 +00:00
Hermès Bélusca-Maïto
72d0c2396c [README.WINE]: After Colin's print merging in r73039, some files are not WINE-synced anymore: localspl, spoolss; ntprint is completely removed now (will be reimplemented later on). The only remaining file is localui.dll, that is now found under win32ss/printing/monitors/localmon/ui/.
CORE-10489

svn path=/trunk/; revision=73048
2016-10-26 22:54:05 +00:00
Hermès Bélusca-Maïto
688b18d88c [WINSPOOL_PRINT]: Improve the test application:
- Do not hardcode the test file name, but instead take it from the command line (and add a Usage() function);
- Do not use a too large fixed-size buffer to read & print the file, but instead use a correctly-size buffer, get the file size, and then do a loop to read data from the file by chunks & send it to the printer.

svn path=/trunk/; revision=73047
2016-10-26 22:43:53 +00:00
Hermès Bélusca-Maïto
b5beb7dffc Fix a comment.
svn path=/trunk/; revision=73046
2016-10-26 22:06:02 +00:00
Hermès Bélusca-Maïto
c3363cb938 [DESK.CPL]: Patch by Ismael Ferreras Morezuelas:
Implement all the controls in the ``Effects'' section of desk.cpl, except 'Big icons'; make the comboboxes slightly wider; rename user-facing ``ClearType'' to ``FreeType Antialised'' as a nod to the supporting library while avoiding patented and trademarked words.
CORE-10606

svn path=/trunk/; revision=73045
2016-10-26 22:02:24 +00:00
Hermès Bélusca-Maïto
60cf552825 [DESK.CPL]: Fix trailing whitespace, some indent + code formatting style.
svn path=/trunk/; revision=73044
2016-10-26 21:14:39 +00:00
Hermès Bélusca-Maïto
682cc491e7 [EVENTVWR]
- Fix FormatMessage flags sanitization.
- Use "LANG_USER_DEFAULT" instead of MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT) (these are the same, but one is shorter than the other).
- In case LookupAccountSidW fails to retrieve the user name of an associated SID, use ConvertSidToStringSidW to get the SID string directly and display it, instead of claiming there is no associated user for a given event.
- In addition to display (in the status bar) the number of events in the selected log, display the number of events actually listed. This can be useful when events filtering will be completely implemented, and it can be also useful for detecting possible corrupted logs where the number of enumerable events is different (less) than the total number of events in the log...
==> To translators: please update the translations!
CORE-11637

svn path=/trunk/; revision=73043
2016-10-26 20:32:11 +00:00
Johannes Anderwald
1ac7d54efd [USBAUDIO]
- implement audio volume property handler

svn path=/trunk/; revision=73042
2016-10-26 18:09:19 +00:00
Colin Finck
3720040f9d [LOCALUI]
Replace the "localui.dll" from my branch with the newer version in trunk.
This is one of the very few (if not the only) printing component that we can continue to sync with WINE, because it only uses Win32 API to communicate with the Local Port Monitor (localmon.dll in our implementation).

svn path=/trunk/; revision=73040
2016-10-26 12:47:39 +00:00
Colin Finck
fcaeb4d6a4 [PRINTING]
Finally merge my branch "colins-printing-for-freedom", giving us an initial implementation of a Win32-compatible Printing Stack (localmon, localspl, spoolss, spoolsv, winspool)
You can now send raw data to parallel port printers using documented Win32 API. An example application is in my "winspool_print" commandline tool merged to rosapps.
ReactOS folks, thanks for your support during the development of this, making my bachelor's thesis a reality! :)

Documentation/Thesis: https://svn.reactos.org/reactos/trunk/documentation/articles/Printing%20Stack%20Thesis/thesis.pdf
Video: https://www.youtube.com/watch?v=cNzePucTOLY

CORE-10489

svn path=/trunk/; revision=73039
2016-10-26 12:37:27 +00:00
Kamil Hornicek
2c8607a700 [WIN32K]
- fix a typo in the default logical palette copy
- fix color table computation for 8 bpp in GreGetDIBitsInternal (formula taken from gdi32:bitmap winetest)

svn path=/trunk/; revision=73038
2016-10-26 10:21:46 +00:00
Hermès Bélusca-Maïto
c51f0d6551 And the usual thing... "fix build".
svn path=/trunk/; revision=73036
2016-10-25 23:57:35 +00:00
Hermès Bélusca-Maïto
1f9c38b3b9 [EVTLIB]: Create a EvtLib library for manipulating the event log file format from anywhere.
[EVENTLOG]: Make usage of this library.
CORE-11868 #resolve #comment Committed in r73035.

[EVENTLOG]: Protect the global handle table with a lock as it seems to me that this needs serialization. Please notify me if you think this is not actually necessary (and I'll revert that in case).

svn path=/trunk/; revision=73035
2016-10-25 23:50:31 +00:00
Hermès Bélusca-Maïto
34a06851d3 [EVENTLOG]
- Update code source files headers.
- Use explicit unicode functions for RegOpen/Query/SetXXX and safe-string APIs.
- Use GetSystemWindowsDirectoryW where needed instead of GetWindowsDirectoryW (TS-safe).
- Fix some variable names & types.
- Improve some DPRINTs.

svn path=/trunk/; revision=73034
2016-10-25 23:32:20 +00:00
Johannes Anderwald
496573473b [USBAUDIO]
- implement mute control property handler

svn path=/trunk/; revision=73033
2016-10-25 19:20:09 +00:00
Kamil Hornicek
fe5595d60d [GDI32]
- comply with MSDN and stop enumerating font families as soon as the user provided callback returns zero
- fixes bunch of user32:sysparams tests which rely on this

svn path=/trunk/; revision=73032
2016-10-25 17:08:05 +00:00
Peter Hater
263afc07c3 [WSHTCPIP] Don't return NO_ERROR in unimplemented WSHIoctl. It only confuses programs. Return WSAEINVAL. CORE-12104
svn path=/trunk/; revision=73031
2016-10-25 09:23:40 +00:00
Peter Hater
ca5719a178 [MSAFD] Implement WSPIoctl overlapped. CORE-12162 #resolve
svn path=/trunk/; revision=73030
2016-10-25 07:54:00 +00:00
Jérôme Gardou
04442ae74c [NTOS/MM]
- Arch striking again : take everywhere into account the +1 offset introduced in r72988
CORE-12047

svn path=/trunk/; revision=73029
2016-10-23 18:59:42 +00:00
Aleksandar Andrejevic
1ef056a0ed [NTVDM:VBE]: Don't crash if the video mode is invalid.
svn path=/trunk/; revision=73028
2016-10-23 17:21:58 +00:00
Hermès Bélusca-Maïto
6fcebba53b [CMAKE]: Introduce a evil workaround for the problem described in CORE-12205/CORE-12206, that was unveiled by commit r73024. CMake gurus, please review & make suggestions! :)
svn path=/trunk/; revision=73027
2016-10-22 22:51:34 +00:00
Hermès Bélusca-Maïto
00a8b0a3c8 [WLANCONF]: Addendum to r73024.
svn path=/trunk/; revision=73026
2016-10-22 22:15:10 +00:00
Hermès Bélusca-Maïto
6f5d03b414 [MORE]: Rewrite almost completely the MORE command, taking advantage of the console pager functionality of the ConUtils library (see CORE-10504 and commit r73024).
- When displaying files, display the percentage of file read so far in the "Continue" prompt. Otherwise (when being piped or feeded from StdIn), just display the "Continue" prompt without percentage.
- Try to detect the text file encoding (ANSI, UTF16-BE/BE w/ or w/o BOM; UTF-8 to do!!) before displaying it. See the code for more details.

NOTE that the other functionalities of more (being able to scroll one line at a time, other command-line switches, etc...) are still not implemented yet.

svn path=/trunk/; revision=73025
2016-10-22 22:07:28 +00:00
Hermès Bélusca-Maïto
eb198b854d [CONUTILS]
- Introduce new functionalities related to console streams, a console screen management api (almost stubbed), a console pager api (adapted from code from CMD). This new functionality will be used in the future. See CORE-10504 for more details.
- As this library is therefore growing up, split it in small parts (sublibraries) that can be used, with the following dependency scheme: base utils (standalone); streams depending on base; screen depending on streams; pager depending on screen.

[APPS]: As a result, modify the CMakeLists of the different apps that use conutils to make them depend on the correct sublibrary.

svn path=/trunk/; revision=73024
2016-10-22 21:54:29 +00:00
Hermès Bélusca-Maïto
26cf82fa5b [MODE]: Forgot this change too (related to kbd rate before delay).
svn path=/trunk/; revision=73023
2016-10-22 21:46:58 +00:00
Hermès Bélusca-Maïto
0c5fc9b3b5 [CLIP]: Check read status before number of bytes read. Update main resource file.
[COMP]: Code style fix; remove an unused define.
[EVENTCREATE]: Remove an unused define.

[HELP]
- Remove unneeded headers; minor code formatting.
- Remove an unused define.
- Add placeholder Czech resource translation.

[MODE]: Update translation (part 2/x); show the keyboard rate before the delay.

svn path=/trunk/; revision=73022
2016-10-22 21:42:13 +00:00
Johannes Anderwald
a3f82b7d7b [KS]
- enable topology property handlers

svn path=/trunk/; revision=73021
2016-10-22 19:52:51 +00:00
Johannes Anderwald
5dc6c5bb88 [USBAUDIO]
- fix warnings & leaks based on Thomas feedback

svn path=/trunk/; revision=73020
2016-10-22 12:34:03 +00:00
Mark Jansen
d0b74180b2 [FRAGINATOR] Silence a ton of warnings.
svn path=/trunk/; revision=73019
2016-10-22 12:13:34 +00:00
Mark Jansen
9efe78ac9f [OLE32] Stub and export CoGetCancelObject. CORE-12199
svn path=/trunk/; revision=73018
2016-10-22 12:03:33 +00:00
Johannes Anderwald
3e7f31ebe1 - implement MMixerGetDeviceNameWithComponentId, which retrieves the device name via component id
- start implement MMixerHandleTopologyFilter, does not yet fully work

svn path=/trunk/; revision=73017
2016-10-21 21:26:12 +00:00
Johannes Anderwald
a9a9930090 [USBAUDIO]
- implement retrieving string descriptor of product and store it in registry.

svn path=/trunk/; revision=73016
2016-10-21 21:15:01 +00:00
Hermès Bélusca-Maïto
6357011e41 [ADVAPI32_APITEST]: I wasn't alone for writing these tests!
svn path=/trunk/; revision=73015
2016-10-21 21:08:54 +00:00
Johannes Anderwald
3423877df1 [USBCCGP]
- fix invalid device descriptor for composite usb devices

svn path=/trunk/; revision=73014
2016-10-21 20:52:40 +00:00
Hermès Bélusca-Maïto
6672ea6af0 [MODE]: Adjust german resources.
svn path=/trunk/; revision=73013
2016-10-21 20:48:26 +00:00
Robert Naumann
dbf62b106c [MODE] add initial German translation. needs completition!!!
svn path=/trunk/; revision=73012
2016-10-21 20:44:38 +00:00
Peter Hater
08744dfc42 [WS2_32_APITESTS] Add tests for SIO_GET_INTERFACE_LIST. Brought to you by Andreas Maier. Thanks.
Minor modifications by me on comparison and expected flags.
ROSTESTS-246

svn path=/trunk/; revision=73011
2016-10-21 16:47:38 +00:00
Amine Khaldi
3315eae709 [ACPPAGE] Remove unneeded initialization. Should make the x64 bot a tiny bit happier. Spotted by Mark Jansen.
svn path=/trunk/; revision=73010
2016-10-21 09:48:00 +00:00
Amine Khaldi
8a6585ff73 [PSDK] Add missing RpcBindingServerFromClient.
svn path=/trunk/; revision=73009
2016-10-21 09:26:11 +00:00
Amine Khaldi
d61d2809de [URLMON] Stub and export HlinkGoForward(). CORE-12196
svn path=/trunk/; revision=73008
2016-10-21 09:03:45 +00:00
Amine Khaldi
a4cfe8d2da [RPCRT4_WINETEST] Addendum to r73006.
svn path=/trunk/; revision=73007
2016-10-21 09:02:08 +00:00
Amine Khaldi
c0e27b85ab [RPCRT4] Import Wine commit 01290cd by Colin and Christoph: Implement RpcBindingServerFromClient and populate NetworkAddr for each transport.
svn path=/trunk/; revision=73006
2016-10-21 09:01:35 +00:00
Pierre Schweitzer
708359754c [MPR]
Import Wine commit:
- d9c9d9b10f58844a780d8bfc9ed1b6713e37d487, Implement connected resources enumeration.

CORE-11757

svn path=/trunk/; revision=73005
2016-10-21 05:28:29 +00:00
Mark Jansen
a29538f1b9 [WINETESTS] Rename generated_i386.c to generated.c, adjust the CMakeLists.txt accordingly.
svn path=/trunk/; revision=73004
2016-10-20 21:44:12 +00:00
Mark Jansen
9fabe9b420 [SDK] Fix our Delayload notify hook for MSVC x64
svn path=/trunk/; revision=73003
2016-10-20 21:08:17 +00:00
Mark Jansen
a62945fc94 [APPHELP_APITEST] This should not be here.
svn path=/trunk/; revision=73002
2016-10-20 21:03:38 +00:00
Hermès Bélusca-Maïto
252f96e3b1 [KS]: Fix annotations, etc.
svn path=/trunk/; revision=73001
2016-10-20 20:44:02 +00:00
Johannes Anderwald
b8e67c826c [PSDK]
- add missing definition

svn path=/trunk/; revision=73000
2016-10-20 20:29:30 +00:00
Johannes Anderwald
3b8ab07631 [KS]
- implement support for KSPROPSETID_General

svn path=/trunk/; revision=72999
2016-10-20 20:02:43 +00:00
Hermès Bélusca-Maïto
38933ca790 [CMD]: Documentation improvement: we actually support two types of filename completions, windows-cmd like (the default one), and "bash-style" one (that is available through a compile switch). I prefer calling it "bash-style" over "unix-style" because this style of completion looks like the one from the GNU ReadLine library, that is used by Bash, which is not exclusive to unix per se...
svn path=/trunk/; revision=72998
2016-10-20 16:51:07 +00:00
Hermès Bélusca-Maïto
99ef1a3353 [KERNEL32]: Mark Get/SetEnvironmentVariableA/W as hotpatchable since it's needed for Clink 0.4.8 (<rant>btw, if GCC was able to set exported stdcall functions as hotpatchable at a global level, as MSVC does, those "DECLSPEC_HOTPATCH" hacks would not be necessary! </rant>)
svn path=/trunk/; revision=72997
2016-10-19 22:26:04 +00:00
Hermès Bélusca-Maïto
7f59e9a13c [MODE]
- Localization of output based on a patch by Lee Schroeder, but where I haven't modified yet the output localization of errors.
- Dynamically underline the headers of the device status reports (by me).
CORE-12178

svn path=/trunk/; revision=72996
2016-10-19 17:04:29 +00:00
Hermès Bélusca-Maïto
d259d035bc [MODE]
- Rearrange ResizeTextConsole so that it correctly computes the Top & Bottom parts of the window size rectangle;
- Fix its return type;
- Display an error if we failed resizing the console;
- Clear the screen before resizing the console, as the real MODE.COM does.
- Fix a parsing error in SetConsoleStateOld and in SetConsoleCPState.

svn path=/trunk/; revision=72995
2016-10-19 15:04:42 +00:00
Hermès Bélusca-Maïto
4c38c9a07e [MODE]: Code style changes + remove unused parameter for ResizeTextConsole.
svn path=/trunk/; revision=72994
2016-10-19 15:00:32 +00:00
Hermès Bélusca-Maïto
2e6eddbc97 [CONSRV]
- Call TermGetLargestConsoleWindowSize to obtain the largest console window size allowed on the system, and use it for GetConsoleScreenBufferInfo and for SetConsoleWindowInfo too, where it is used to check if the given user window size is not too large.
- Improve GuiGetLargestConsoleWindowSize for multi-monitor situations.
- Remove the redundant definition of GetScreenBufferSizeUnits in guiterm.c (it already exists in conwnd.c).

svn path=/trunk/; revision=72993
2016-10-18 23:51:59 +00:00
Hermès Bélusca-Maïto
be43197190 [CONSRV]: Code style changes only.
svn path=/trunk/; revision=72992
2016-10-18 23:45:19 +00:00
Pierre Schweitzer
a8e3f3a292 [PSDK]
Replace error codes that don't even exist in MS headers (but they are referenced on MSDN?!)
Replace their usage in code

svn path=/trunk/; revision=72991
2016-10-18 20:32:50 +00:00
Jérôme Gardou
3a5149de3e [NTOS/MM]
- Let the zero page thread decide itself whether it is active or not.
 - Raise the low memory limit for our good old balancer
 - Allow the balancer thread to wait for a page to be freed, with a lower limit than for "regular" page faults
 - Let ARM3 notify RosMm when a page gets freed
CORE-12047 #comment Whole patch got in in r72988, 72989 and 72990

svn path=/trunk/; revision=72990
2016-10-18 20:19:00 +00:00
Jérôme Gardou
63bbaff803 [NTOS/MM]
Miscellaneous fixes for legacy Mm section implementation
 - Always allocate a private page for IMAGE_SCN_CNT_UNINITIALIZED_DATA
 - Make sure a shared page is present before writing on a COW mapping and making a private copy.
 - Fix a race condition : when paging out a file section, old Mm lists all of the process maps, removing them one after the other and lowering the page reference count in the process. Sometimes a page fault occur in the process, the mapping is added, but the page refcount is not bumped because it requires locking the corresponding segment. Manage page refcount under segment lock.
CORE-12047

svn path=/trunk/; revision=72989
2016-10-18 20:01:18 +00:00
Jérôme Gardou
d46dd383f6 [NTOS/MM]
- Do not allocate zeroed pagefile entries for legacy Mm
CORE-12047

svn path=/trunk/; revision=72988
2016-10-18 19:55:22 +00:00
Jérôme Gardou
72c8ed3670 [FASTFAT]
- Acquire Paging IO Resource shared when performing paged writes 
Greenlighted by Pierre and tests.
CORE-12184 #resolve 

svn path=/trunk/; revision=72987
2016-10-18 19:28:16 +00:00
Pierre Schweitzer
6fa7ff1eba [PSDK]
Make DECLARE_CONST_UNICODE_STRING() work with something else than MSVC

svn path=/trunk/; revision=72986
2016-10-18 18:28:45 +00:00
Hermès Bélusca-Maïto
0508cc702d [KERNEL32_APITEST]: SetConsoleWindowInfo test:
- Improve the checks done for the tests;
- Add a new test (Test7) that tests the allowed console window sizes wrt. the csbi.dwMaximumWindowSize size.

svn path=/trunk/; revision=72985
2016-10-18 17:44:23 +00:00
Hermès Bélusca-Maïto
76c73fc423 [CONSRV]: Fixes for SetConsoleWindowInfo, where one notices that again the MSDN documentation on SetConsoleWindowInfo is partially wrong.
This makes all the kernel32_apitest:SetConsoleWindowInfo tests pass now.
Also, notify the console window about the size change.

svn path=/trunk/; revision=72984
2016-10-18 17:16:57 +00:00
Hermès Bélusca-Maïto
0d6632cdfb [CONSRV]: Minor fixes:
- Use GetSystemWindowsDirectoryW instead of GetWindowsDirectoryW inside "TranslateConsoleName";
- Don't add scrollbars by default to the console window when it's being created;
- Fix the 2nd parameter of MapVirtualKeyW call;
- Two code style changes in text.c and tuiterm.c.

svn path=/trunk/; revision=72983
2016-10-18 17:12:57 +00:00
Hermès Bélusca-Maïto
916943b1c4 [KERNEL32_APITEST]: Imprrove the SetConsoleWindowInfo test (add a new test case, and now correctly restores the console size after all the tests are done).
svn path=/trunk/; revision=72982
2016-10-18 16:08:34 +00:00
Hermès Bélusca-Maïto
ae221a8274 [KERNEL32_APITEST]: Commit a test for SetConsoleWindowInfo.
svn path=/trunk/; revision=72981
2016-10-18 15:35:06 +00:00
Hermès Bélusca-Maïto
533d9d5f59 [MODE]: Numerous fixes for the MODE utility:
- Parse the command line the same peculiar way as Windows' mode.com tool. This is certainly done such as to be backwards-compatible with MS-DOS' tool.
- Fix serial port string parsing, based on Wine's dll/win32/kernel32/wine/comm.c code. Note that the BuildCommDCB kernel32 API has the same syntax :)
- Implement support for MODE CON codepage, as well as screen size and typematic settings. Screen size code is based on NTVDM's one and will be subject to fixes later on.

MISSING stuff:
- LPT/COM port redirection.
- Localization :)

CORE-12176 #resolve
CORE-7998 CORE-8001

svn path=/trunk/; revision=72980
2016-10-17 22:19:22 +00:00
Johannes Anderwald
cad3120307 [WDMAUD]
- fix a bug in WdmAudControlDeviceType
- clear handle value when opening device interface key fails

svn path=/trunk/; revision=72979
2016-10-17 19:03:01 +00:00
Peter Hater
39544b234b [MSAFD] Add some parameter checks on send/recv based on wine tests. CORE-12104
svn path=/trunk/; revision=72978
2016-10-17 15:24:43 +00:00
Mark Jansen
ee50a9c889 [ATL][ATL_APITEST] Implementation / fixes for varions CRegKey functions, by Katayama Hirofumi MZ. CORE-11746 #resolve
svn path=/trunk/; revision=72977
2016-10-17 12:50:54 +00:00
Thomas Faber
14a0d23f4c [KMTESTS:OB]
- Add a test for the NT directory structure's ACLs
CORE-9184

svn path=/trunk/; revision=72976
2016-10-17 09:28:15 +00:00
Thomas Faber
85fa521728 [NTOS:CM]
- Ignore the KEY_WOW64_32KEY and KEY_WOW64_64KEY flags in NtOpenKey/NtCreateKey, as shown by tests.
CORE-9691 #resolve

svn path=/trunk/; revision=72975
2016-10-15 20:16:47 +00:00
Thomas Faber
0d36dcef60 [NTDLL_APITEST]
- Show that NtOpenKey and NtCreateKey accept, but ignore, KEY_WOW64_32KEY and KEY_WOW64_64KEY
CORE-9691

svn path=/trunk/; revision=72974
2016-10-15 18:33:21 +00:00
Johannes Anderwald
9bd7a7db6d [USBAUDIO]
- implement building topology connections

svn path=/trunk/; revision=72973
2016-10-15 17:56:44 +00:00
Benedikt Freisen
38d01b32ac [MSPAINT]
- fix an odd quirk that resulted from Paint setting wallpaper and wallpaper style in the wrong order
- add the flag SPIF_SENDWININICHANGE

Setting wallpapers now works, whenever the OS natively supports the respective file format for wallpapers.

svn path=/trunk/; revision=72972
2016-10-15 11:44:15 +00:00
Johannes Anderwald
5c2a0471bd [USBAUDIO]
- partly implement BuildUSBAudioFilterTopology

svn path=/trunk/; revision=72971
2016-10-14 22:08:28 +00:00
Johannes Anderwald
1c43c34853 [USBAUDIO]
- partly implement UsbAudioPinDataIntersect

svn path=/trunk/; revision=72970
2016-10-14 13:26:22 +00:00
Johannes Anderwald
4b5428d521 [USBAUDIO]
- specify processings flags in filter descriptor
- implement processing workers
- move code for initializing irp & urb into single function
- usbaudio now successfully captures audio in win2k3.

svn path=/trunk/; revision=72969
2016-10-14 10:35:19 +00:00
Amine Khaldi
25b64d3c35 [SHELL32] Add two missing AVIs. By Jared Smudde. CORE-11641
svn path=/trunk/; revision=72968
2016-10-13 21:46:39 +00:00
Amine Khaldi
e3d7748688 [EVENTVWR][EXPLORER][SHELL32] Russian translation update by Sergey Stopkin. CORE-12153
svn path=/trunk/; revision=72967
2016-10-13 21:39:37 +00:00
Peter Hater
a82f4b1f38 [MSAFD] Implement WSPGetOverlappedResult. Reviewed by Thomas and Art. Thanks! CORE-12134 #resolve
svn path=/trunk/; revision=72966
2016-10-13 20:30:42 +00:00
Mark Jansen
24100643a9 [NETCFGX] RegQueryValueExW accepts a size in bytes, not TCHARS. Also, this local buffer probably shouldnt be used. Uncovered by Victor Martinez Calvo. CORE-9665
svn path=/trunk/; revision=72965
2016-10-13 19:57:29 +00:00
Thomas Faber
6031bd0162 [KMTESTS:IO]
- Add a test for the maximum data length for MDLs
CORE-12132

svn path=/trunk/; revision=72964
2016-10-13 12:28:01 +00:00
Thomas Faber
4b9d31d916 [PSDK]
- ksmedia.h requires ks.h to be included first. Based on a patch by Lee Schroeder.
CORE-6783

svn path=/trunk/; revision=72963
2016-10-13 09:21:57 +00:00
Thomas Faber
1da8f46087 [PSDK]
- Add some KS definitions. Patch by Lee Schroeder
CORE-6783

svn path=/trunk/; revision=72962
2016-10-13 08:53:11 +00:00
Thomas Faber
6a96846321 [MSHTML_WINETEST]
- Re-enable skipped htmldoc tests.
ROSTESTS-113 #resolve

svn path=/trunk/; revision=72961
2016-10-12 21:10:04 +00:00
Thomas Faber
7f94fb8b3d [REGDUMP]
- Fix a buffer overflow. Patch by Víctor Martínez Calvo.
ROSTESTS-203 #resolve

svn path=/trunk/; revision=72960
2016-10-12 12:41:31 +00:00
Thomas Faber
3d2b354712 [USER32]
- Remove IsBadWritePtr hack. Patch by Katayama Hirofumi MZ.
CORE-12136 #resolve

svn path=/trunk/; revision=72959
2016-10-12 12:07:44 +00:00
Hermès Bélusca-Maïto
8fb10f0eea [WINETESTS/SETUPAPI]: setupapi/tests: Determine path to system32 directory at runtime. Synced from Wine-Staging commit 92510a34ed9ec67fec4e580a5c73b8b53c216734
ROSTESTS-234 #comment Updated in r72958.

svn path=/trunk/; revision=72958
2016-10-12 11:36:16 +00:00
Peter Hater
a0257c8b37 [WS2_32_APITESTS] Add super simple WSARecv tests used to test WSAGetOverlappedResult. ROSTESTS-197
svn path=/trunk/; revision=72957
2016-10-11 10:48:47 +00:00
Hermès Bélusca-Maïto
5bcbde18ec [CMD]: Fix the "TYPE" command so that it doesn't interpret the optional /P switch as a filename.
svn path=/trunk/; revision=72956
2016-10-10 19:17:03 +00:00
Hermès Bélusca-Maïto
b408826a0b [CMD]
- Improve the screen pager so that it looks a bit more like MORE's one: display full screen pages, where only the last line contains the "press any key..." prompt, and erase this prompt when a key is pressed and before displaying the other screen page.
- GetScreenSize parameters are pointers (so use NULL instead of 0);
- Use ARRAYSIZE instead of hardcoding buffer number of elements;
- Simplify PrintInfoLine() (use read-only resource string buffer returned by LoadString instead of a temporary buffer, since we are just interested in the counted string).

svn path=/trunk/; revision=72955
2016-10-10 19:15:07 +00:00
Hermès Bélusca-Maïto
8fbd67bc4a [CMD]
- Fix typo in STRING_MEMMORY_xxx symbols (memmory -> memory);
- Remove the trailing newline for the STRING_MISC_HELP1 page prompt, as part of reworking it a bit (see next commit);
- Code formatting in type.c as I'll touch it after.

svn path=/trunk/; revision=72954
2016-10-10 19:11:15 +00:00
Peter Hater
05f82b6443 [MSAFD] We support AF_INET,SOCK_RAW,IPPROTO_RAW and IF_INET,SOCK_RAW,IPPROTO_TCP triples also. Enable them in winsock mapping registry. CORE-12104
svn path=/trunk/; revision=72953
2016-10-10 08:00:20 +00:00
Peter Hater
81eb620cc0 [MSAFD] We support SOCK_RAW and IPPROTO_RAW also. CORE-12104
svn path=/trunk/; revision=72952
2016-10-10 07:57:34 +00:00
Peter Hater
f58ddd3b46 [WINHTTP] Properly initialize winsock. Based on wine tests CORE-12104
svn path=/trunk/; revision=72951
2016-10-10 06:54:56 +00:00
Peter Hater
0ebbe83388 [WININET] initialize winsock with proper version. Based on wine tests CORE-12104
svn path=/trunk/; revision=72950
2016-10-10 06:52:40 +00:00
Peter Hater
9017581a14 [WS2_32_APITESTS] Fix helper by not shutting down send. This way it breaks the test on windows also.
svn path=/trunk/; revision=72949
2016-10-10 06:48:56 +00:00
Peter Hater
91a772cfd5 [MSAFD] Fix some return codes and better parameter checks based on wine tests CORE-12104
svn path=/trunk/; revision=72948
2016-10-10 06:38:52 +00:00
Mark Jansen
aef3f9c467 RegQueryValueExW and RegQueryValueExA calls accept bytes. Patch by Victor Martinez Calvo. CORE-9665 #comment Thanks!
svn path=/trunk/; revision=72947
2016-10-09 20:58:08 +00:00
Mark Jansen
fc0c290789 [MSCONFIG_NEW|SETUP/WELCOME] Capitalize "os" in "ReactOS" part 4 by Adam Stachowicz CORE-9558 #resolve #comment Last patch applied, thanks!
svn path=/trunk/; revision=72946
2016-10-09 20:20:10 +00:00
Benedikt Freisen
2a5f64604f [MSPAINT] get rid of all _stprintf occurrences and the respective magic number sized TCHAR arrays
svn path=/trunk/; revision=72945
2016-10-09 11:42:37 +00:00
Hermès Bélusca-Maïto
84a2080689 [EVENTCREATE]: Update turkish translation, by Erdem Ersoy.
CORE-12120 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72944
2016-10-08 19:43:16 +00:00
Hermès Bélusca-Maïto
8dd8a9d989 [PING]
- Use a dynamic-allocated buffer with FormatMessageW, fixes messages disappearance (eg. ping help in russian). CORE-12108 #comment Fixed in r72943.
- Remove the unneeded 1-line function "Usage" and instead just directly call the corresponding PrintString function.

svn path=/trunk/; revision=72943
2016-10-08 14:48:18 +00:00
Hermès Bélusca-Maïto
d03fd72465 [DEVMGR]: Fix spacing around "ReactOS" in translated strings.
svn path=/trunk/; revision=72942
2016-10-08 14:20:22 +00:00
Hermès Bélusca-Maïto
8b0c046e3c [FLTMC]: Resource strings do not need to be explicitely NULL-terminated, as ATL helpers know how to deal with them.
svn path=/trunk/; revision=72941
2016-10-08 14:05:06 +00:00
Hermès Bélusca-Maïto
2bc77973f5 [FORMAT]: Fix ukrainian translation by Vort.
svn path=/trunk/; revision=72940
2016-10-08 13:55:30 +00:00
Hermès Bélusca-Maïto
3d9c96162e Fix commit synchronization issue (that's what happens when you work on a patch that somebody else worked on in parallel!!)
svn path=/trunk/; revision=72939
2016-10-08 13:13:38 +00:00
Hermès Bélusca-Maïto
8b14a4a88a [TRANSLATIONS]: Russian translation update by Sergey Stopkin.
CORE-12108 #comment Спасибо!

svn path=/trunk/; revision=72938
2016-10-08 13:12:35 +00:00
Amine Khaldi
aec4ce26d4 [TRANSLATIONS] Russian translation update by Sergey Stopkin. CORE-12108
svn path=/trunk/; revision=72937
2016-10-08 12:57:53 +00:00
Amine Khaldi
d550219e4c [PING] German translation by Joachim Henze. CORE-12117
svn path=/trunk/; revision=72936
2016-10-08 12:50:15 +00:00
Thomas Faber
628956f819 [GDI32]
- Remove handling of BS_DIBPATTERN8X8 in CreateBrushIndirect. Fixes the last gdi32:brush winetest failure. Patch by Víctor Martínez Calvo.
CORE-9673 #resolve

svn path=/trunk/; revision=72935
2016-10-08 08:28:08 +00:00
Mark Jansen
c9c3a517b2 [MSGINA] Fix the order of checking for a valid / visible window, spotted by 'leha-bot' CORE-12028
svn path=/trunk/; revision=72934
2016-10-07 23:11:17 +00:00
Hermès Bélusca-Maïto
330db984fe [DISKPART][NET][WLANCONF]
Make those command tools use the console uilities library, aka. solve all those problems of wrong characters on the console...
CORE-10584 #resolve

[CONUTILS]: Remove the now unneeded compatibility defines.
CORE-10504

svn path=/trunk/; revision=72933
2016-10-07 22:50:32 +00:00
Hermès Bélusca-Maïto
4c4b769ef2 [LOGOFF]: Code formatting fixes, including tabs vs. spaces.
svn path=/trunk/; revision=72932
2016-10-07 22:08:20 +00:00
Hermès Bélusca-Maïto
0b335753ce [CONUTILS]: Fix build:
- Commit the *Puts functions.
- Fix __stdcall that needs to be read __cdecl for variadic functions.

svn path=/trunk/; revision=72931
2016-10-07 21:57:59 +00:00
Hermès Bélusca-Maïto
cc5ded3854 [CACLS][CLIP][COMP][EVENTCREATE][HELP][LOGOFF][SHUTDOWN][CHKDSK][FORMAT][SUBST]
- Use Puts functions where needed;
- Fix a __stdcall that needs to be read __cdecl for a variadic function.

[CACLS]
Fix some resources so that the strings can hold on the width of a standard console screen (80 chars).

svn path=/trunk/; revision=72930
2016-10-07 21:57:12 +00:00
Hermès Bélusca-Maïto
bf2828383e Fix build.
svn path=/trunk/; revision=72929
2016-10-07 20:44:15 +00:00
Hermès Bélusca-Maïto
bc065fb271 [CACLS][CLIP][COMP][HELP][LOGOFF][SHUTDOWN][CHKDSK][FORMAT][SUBST]
Make those command tools use the console uilities library, aka. solve all those problems of wrong characters on the console...
Nitpickers may notice that at some places, the usage of a "Puts"-like function would be better than Printf. Don't worry, I'm on it, it's for another commit.
CORE-10504
CORE-11909 #resolve

svn path=/trunk/; revision=72928
2016-10-07 20:37:36 +00:00
Mark Jansen
2ff4f82972 [NETID] Cleanup the spec file. Patch by Jared Smudde. CORE-11309 #resolve
svn path=/trunk/; revision=72927
2016-10-07 18:40:45 +00:00
Christoph von Wittich
ee7a3fece4 [MSAFD] Implement WSPDuplicateSocket. By Peter Hater. CORE-12092
svn path=/trunk/; revision=72926
2016-10-07 17:51:03 +00:00
Johannes Anderwald
eb204e920d [USBAUDIO]
- use IoInitializeIrp over IoAllocateIrp
- reinitialize irp and urb when resubmitting it
- usbaudio now successfully transfers stream irps (not yet fully working)

svn path=/trunk/; revision=72925
2016-10-07 17:30:27 +00:00
Christoph von Wittich
4c5f898585 [WS2_32] fix various ws2_32:sock failures with return codes. By Peter Hater. CORE-12104
svn path=/trunk/; revision=72924
2016-10-07 16:17:49 +00:00
Thomas Faber
d47e800182 [DWNL]
- Handle arbitrary console buffer width in write_status
CORE-10228 #resolve

svn path=/trunk/; revision=72923
2016-10-07 15:25:20 +00:00
Hermès Bélusca-Maïto
f239ca0f04 [KD]
- When enabling or disabling the kernel debugger and setting the KdDebuggerEnabled flag, also update the corresponding user-mode flag in SharedUserData->KdDebuggerEnabled.
- Turn KdpGetMemorySizeInMBs into a INIT_FUNCTION.
- Print kernel command line & ARC paths even in debug log file mode.

[KD64]
WinKD: Also print our nice ReactOS debug header (version, # of processors & memory MB, kernel command line and ARC paths).

svn path=/trunk/; revision=72922
2016-10-06 19:01:33 +00:00
Amine Khaldi
9593c338c3 [CONUTILS] Addendum to r72913. CORE-10504
svn path=/trunk/; revision=72921
2016-10-06 14:20:16 +00:00
Hermès Bélusca-Maïto
fe98303465 [RAPPS(_NEW)][SETUP]: Last russian translation fixes, by Kudratov Olimjon, amber, and Sergey Stopkin.
CORE-11510 CORE-11636 #resolve #comment Fixed in r72920, thanks to you all!

svn path=/trunk/; revision=72920
2016-10-06 12:51:05 +00:00
Hermès Bélusca-Maïto
baf0c710d8 [RAPPS_NEW]: Whitespace fix in taiwan chinese language.
svn path=/trunk/; revision=72919
2016-10-06 12:48:37 +00:00
Hermès Bélusca-Maïto
5f68ab2401 [RAPPS][RAPPS_NEW]: Try to not hardcode types of variables in sizeofs, and use _countof where possible.
svn path=/trunk/; revision=72918
2016-10-06 12:22:32 +00:00
Amine Khaldi
894fa45ad2 [WS2_32_WINETEST] Sync with Wine Staging 1.9.20.
svn path=/trunk/; revision=72917
2016-10-06 11:15:59 +00:00
Thomas Faber
e8109a02b4 [SYSSETUP]
- Install the DHCP client service as part of nettcpip.inf. This ensures it does not try to run before tcpip is installed.
CORE-12011 #resolve

svn path=/trunk/; revision=72916
2016-10-06 10:57:29 +00:00
Daniel Reimer
48a354d428 [INF]
Update Root CAs removing "Juur-SK", "EBG Elektronik Sertifika Hizmet Saglayicisi" and "IGC/A"

svn path=/trunk/; revision=72915
2016-10-05 22:53:24 +00:00
Daniel Reimer
f37012d4bd [FONTS]
Next time I will update the doc folder, too...

svn path=/trunk/; revision=72914
2016-10-05 22:48:51 +00:00
Hermès Bélusca-Maïto
89db25b0b1 [CONUTILS]: Create a C library for console output/input functions, last-error messages display, etc. to be used for all of our internal command-line utilities. Useless user32.dll dependencies are removed thanks to this lib. Currently only output functions are supported.
CORE-10504

[EVENTCREATE]: Adapt EventCreate to use ConUtils library, as an example of how to use this library.

svn path=/trunk/; revision=72913
2016-10-05 17:40:22 +00:00
Hermès Bélusca-Maïto
b881e7c859 [KERNEL32]: Improve RtlUnwind spec export.
svn path=/trunk/; revision=72912
2016-10-05 17:30:56 +00:00
Hermès Bélusca-Maïto
699e9b4328 [INCLUDES/CRT]: Fix the definition of 'stderr' (that we have wrong since r38292); move it next to the _iob definition.
svn path=/trunk/; revision=72911
2016-10-05 14:30:59 +00:00
Amine Khaldi
5290f6cf12 [MSAFD] Fix socket address length returned in WSPAccept. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72910
2016-10-05 09:39:12 +00:00
Amine Khaldi
cd930de18d [WS2_32] Fix returned size of socketaddr on accepting connection. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72909
2016-10-05 09:37:52 +00:00
Amine Khaldi
c3b215936d [WS2_32_APITEST] Add tests for getnameinfo. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72908
2016-10-05 09:33:03 +00:00
Sylvain Petreolle
9c1da77024 [NtUser]
Revert r72905.

svn path=/trunk/; revision=72907
2016-10-05 08:46:30 +00:00
Colin Finck
a0c5f491cd Add a directory guaranteed to be empty :)
Needed for CORE-11988 to add arbitrary empty directories to the ISO image using mkisofs.
This change can't be expressed in a patch, so I have to do it right here.

svn path=/trunk/; revision=72906
2016-10-04 23:12:55 +00:00
Sylvain Petreolle
63a22e2a2f [NtUser]
Turn an ERR into a TRACE.

svn path=/trunk/; revision=72905
2016-10-04 21:45:39 +00:00
Amine Khaldi
b00ebb4709 [MSAFD] Fix some error translations by Peter Hater. CORE-7487
svn path=/trunk/; revision=72904
2016-10-04 18:36:00 +00:00
Amine Khaldi
fed5729c81 [WS2_32_WINETEST] Enable test_address_list_query() again, now that CORE-12000 is resolved.
svn path=/trunk/; revision=72903
2016-10-04 18:32:09 +00:00
Amine Khaldi
12aba472ef [MSAFD] Partial implementation of SIO_ADDRESS_LIST_QUERY by Peter Hater. CORE-12000
svn path=/trunk/; revision=72902
2016-10-04 18:27:17 +00:00
Thomas Faber
bf8b336ec9 [USER32_APITEST]
- Fix build

svn path=/trunk/; revision=72901
2016-10-04 15:37:25 +00:00
Thomas Faber
0a783e0ff3 [USER32_APITEST]
- Extend GetUserObjectInformation tests by adding tests for UOI_NAME on the default as well as custom window stations/desktops.
CORE-12073

svn path=/trunk/; revision=72900
2016-10-04 15:14:30 +00:00
Colin Finck
dc5f65c8d9 [HOST_TOOLS]
Defining -fshort-wchar globally for all host tools breaks every possibility to interact with the host's Unicode support for some operating systems with 4 byte wchar_t (like Mac OS X).
Let's better define no additional global flags and only add -fshort-wchar for the host modules that really need a 2-byte wchar_t for writing ReactOS data files. These are cmlibhost, inflibhost, mkhive and xml2sdb.

Also add -Wno-multichar only for cmlibhost, where it's required.

In preparation for CORE-11988

svn path=/trunk/; revision=72899
2016-10-04 12:37:52 +00:00
Amine Khaldi
2a4fd5b529 [ADNS][DNSAPI] Fix a local resolving regression that led to some browsers crashing after startup. By Peter Hater. CORE-12072 CORE-12088
svn path=/trunk/; revision=72898
2016-10-04 07:55:15 +00:00
Hermès Bélusca-Maïto
1c4750792d [CLIPBRD][EVENTVWR][MPLAY32][WELCOME][SYSDM]
Fix the ShowLastWin32Error helpers:
- don't display the last error string if it's ERROR_SUCCESS (since the code usually expects to display the last error message in case of errors);
- *always* call FormatMessage with the FORMAT_MESSAGE_IGNORE_INSERTS flag enabled. Indeed if it happens that the message string associated to an error ID contains insert parameter placeholders, and since we don't give here FormatMessage any argument array, the call would result into a crash without this flag.

svn path=/trunk/; revision=72897
2016-10-03 12:22:29 +00:00
Alex Ionescu
eb94308bbb [NTOS]: Handle two complex failure paths, one of which is apparently easily reproducible by ntdll:om test (I'm guessing some invalid object attribute). Thanks to Amine and lentin. Haven't tested this, but hopefully fixes things (and doesn't leak).
svn path=/trunk/; revision=72896
2016-10-03 03:30:11 +00:00
Hermès Bélusca-Maïto
58d0c0b704 [EVENTCREATE]: Update the english, russian & turkish translations:
- Translate a string into english (that I forgot to do: english & turkish);
- Fix the allowed event ID range mentioned in the help (russian);
- The event log names should not be localized (turkish).

svn path=/trunk/; revision=72895
2016-10-02 21:49:03 +00:00
Amine Khaldi
5a80dc6298 [EVENTCREATE] Attempt to fix unrecognized escape sequence issue. Sergey please review. CORE-12069
svn path=/trunk/; revision=72894
2016-10-02 20:40:06 +00:00
Amine Khaldi
b0887ed28d [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-12089
svn path=/trunk/; revision=72893
2016-10-02 20:37:58 +00:00
Amine Khaldi
b88d0f18e9 [EVENTCREATE][PING] Russian translation update by Sergey Stopkin. CORE-12069
svn path=/trunk/; revision=72892
2016-10-02 19:26:45 +00:00
Giannis Adamopoulos
8a0defef3d [SHELL32]
- CNetFolder: Use the Folder class for the items shown. The same is done in shell extensions (in windows) that use the CDefaultContextMenu and want the Open and Explore verbs to be shown. This behaviour was first discovered by gigaherz when ntobjshex was tested in windows.
CORE-12086

svn path=/trunk/; revision=72891
2016-10-02 13:22:01 +00:00
Johannes Anderwald
1cfbbff51a [USBAUDIO]
- edit allocator framing struct to match endpoint requirements
- implement partly PinCaptureProcess, not yet working

svn path=/trunk/; revision=72890
2016-10-02 13:08:23 +00:00
Johannes Anderwald
160d7c5b1e [SDK]
- add missing definitions

svn path=/trunk/; revision=72889
2016-10-02 09:15:13 +00:00
Pierre Schweitzer
67cf4907ae [SHELL32]
When parsing the UNC names, start the connection to allow the user to browse the net folder immediately.
This is required for network providers which require the connections to be started before browsing (as VBoxNP).

This is likely a hack.

ROSAPPS-303
CORE-11757

svn path=/trunk/; revision=72888
2016-10-02 08:46:30 +00:00
Thomas Faber
bbc1b9deba [RTL]
- Only check for MBCS lead bytes in RtlIsTextUnicode if specifically requested
CORE-12027 #resolve for real this time

svn path=/trunk/; revision=72887
2016-10-02 08:34:30 +00:00
Hermès Bélusca-Maïto
e294510fcd [EVENTCREATE]: Update the lang files & make 1 stylistic change + remove trailing whitespace. No functionality changes.
svn path=/trunk/; revision=72886
2016-10-01 23:06:23 +00:00
Hermès Bélusca-Maïto
098c7ec631 [DISKPART]: Harmonize the source file info headers. No code changes.
svn path=/trunk/; revision=72885
2016-10-01 22:58:21 +00:00
Hermès Bélusca-Maïto
3eea4e5f2d [FORMAT]: Fix some resources.
svn path=/trunk/; revision=72884
2016-10-01 21:00:16 +00:00
Benedikt Freisen
66a9815a4e [MSPAINT]
- change type of haccel from HANDLE to HACCEL
- port registry code to ATL::CRegKey, which -- through its destructor -- should prevent handle leaks
- rename some parameters and variables
- incorporate some changes suggested by Carlo Bramini in CORE-12080

svn path=/trunk/; revision=72883
2016-10-01 20:04:43 +00:00
James Tabor
fb8f6fd2aa [NtUser]
- Turn off debug information.

svn path=/trunk/; revision=72882
2016-10-01 19:01:04 +00:00
James Tabor
0b4b25d0ed [User32_wineTest]
- Enable skipped test_activateapp tests.

svn path=/trunk/; revision=72881
2016-10-01 18:51:46 +00:00
James Tabor
d8c3f23447 [NtUser]
- Fix lockup while testing wine test_activateapp (all the tests including the ones commented out). Reordered focus functions to eliminate recursions. Fix ROSTESTS-208.

svn path=/trunk/; revision=72880
2016-10-01 18:48:02 +00:00
Thomas Faber
69ce708392 [ADVAPI32]
- Return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW from RegEnumKeyExW in case the name or class buffer is too small.
CORE-12030 #resolve

svn path=/trunk/; revision=72879
2016-10-01 16:44:21 +00:00
Mark Jansen
cf6ff20079 [SHELL32] New shortcut overlay icon, fixed Folder Options Dialog icon, and other minor icon fixes by Jared Smudde. CORE-11414 #resolve #comment Thanks!
svn path=/trunk/; revision=72878
2016-10-01 16:35:14 +00:00
Mark Jansen
51a51d3174 [EXPLORER] Make the 'Remove' button in classic start menu properties spawn the remove dialog. Patch by Jared Smudde. CORE-12076 #resolve #comment Thanks!
svn path=/trunk/; revision=72877
2016-10-01 15:57:29 +00:00
Thomas Faber
3a5e3ae774 [ADVAPI32_APITEST]
- Add a test for RegEnumKeyExW showing that it should return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW when the name buffer is too small. Based on a patch by Doug Lyons.
CORE-12030

svn path=/trunk/; revision=72876
2016-10-01 14:41:41 +00:00
Amine Khaldi
254a9ba114 [SHELL32] Disconnect dialog improvements by Jared Smudde. CORE-11864
svn path=/trunk/; revision=72875
2016-10-01 09:50:53 +00:00
Amine Khaldi
b5806e39e8 [NETSHELL][SAMSRV][SYSSETUP] Fix some misspellings. By Coburn on IRC and Jared Smudde. CORE-12013
svn path=/trunk/; revision=72874
2016-10-01 09:43:24 +00:00
Thomas Faber
531ee01590 [NTOS:EX]
- Acquire ProcessLock before accessing a process's thread list in NtQuerySystemInformation/SystemProcessInformation. Patch by Volodymyr Shcherbyna.
CORE-12001 #resolve

svn path=/trunk/; revision=72873
2016-10-01 09:03:47 +00:00
Amine Khaldi
10cdda5bf5 [MSTSC] Japanese translation improvements by Katayama Hirofumi MZ. CORE-12067
svn path=/trunk/; revision=72872
2016-10-01 08:38:01 +00:00
Thomas Faber
c77ad2e9b5 [WIN32K:NTGDI]
- Handle arbitrary-length DEVMODEW structures in NtGdiOpenDCW. Patch by Katayama Hirofumi MZ with small changes by me.
CORE-12068 #resolve

svn path=/trunk/; revision=72871
2016-10-01 08:25:35 +00:00
Dmitry Chapyshev
c60a62e0de [NTOS:FSRTL] Handle failure case
svn path=/trunk/; revision=72870
2016-09-30 17:33:19 +00:00
Thomas Faber
076a3c9cb7 [NTOS:MM]
- Get rid of MiNonPagedSystemSize, which is misleading because MmNumberOfSystemPtes can change throughout the startup process, thus invalidating this size variable
- Correctly reserve the system PTE space and nonpaged pool expansion space in MiInitSystemMemoryAreas
Should fix the remaining "Bad PTE" bug checks when running out of kernel address space.
CORE-11533 #resolve
CORE-11160 CORE-10611 CORE-11926 CORE-11873 CORE-11554 #comment This should be fixed with r72869, please retest.

svn path=/trunk/; revision=72869
2016-09-30 15:58:23 +00:00
Amine Khaldi
8e21414853 [DNSAPI_APITEST] Add more tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72868
2016-09-30 15:23:25 +00:00
Amine Khaldi
040de105cc [ADNS][DNSAPI][MSWSOCK] Several fixes and improvements to DnsQuery and co, detailed in CORE-11394. This also fixes CORE-7441, many tests in dnsapi:DnsQuery, ws2_32:getaddrinfo and more. Brought to you by Peter Hater.
svn path=/trunk/; revision=72867
2016-09-30 15:19:29 +00:00
Johannes Anderwald
bc741955ed - fix bugs in USBAudioSelectAudioStreamingInterface
svn path=/trunk/; revision=72866
2016-09-30 09:57:42 +00:00
Johannes Anderwald
8895dae5d0 [USBAUDIO]
- implement GetMaxPacketSizeForInterface, UsbAudioAllocCaptureUrbIso, InitCapturePin

svn path=/trunk/; revision=72865
2016-09-29 22:19:34 +00:00
Daniel Reimer
ad3aa035db [RAPPS_NEW]
When Internet connection is down. Rapps does not generate any msg by Rama Teja Gampa
+ GIT -> SVN Patch manual translation
+ Bitrot fixes
+ Tabs -> Spaces fixes
CORE-10980 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72864
2016-09-29 21:31:11 +00:00
Daniel Reimer
8ff30df6f3 [RAPPS]
Translate missing string

svn path=/trunk/; revision=72863
2016-09-29 21:25:36 +00:00
Daniel Reimer
60153818ab [ROSAPPS]
Russian translation update by Sergey Stopkin
ROSAPPS-333 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72862
2016-09-29 21:02:07 +00:00
Daniel Reimer
91d63bd669 [PING]
Russian translation update by Sergey Stopkin + lil build fix by me
CORE-12019 #resolve #comment Committed, thx ^^ Beware of " in string blocks though, these are "" then

svn path=/trunk/; revision=72861
2016-09-29 20:59:03 +00:00
Daniel Reimer
30abd4f6ee [POWERCFG]
Bug fix and improvements to PowerCfg applet by Carlo Bramini
CORE-11801 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72860
2016-09-29 20:54:58 +00:00
Daniel Reimer
c3df272d43 [3DTEXT]
3d Text Screensaver pt-BR translation by Lucas Raziel
CORE-11672 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72859
2016-09-29 20:46:14 +00:00
Mark Jansen
137402a3be [DXDIAG] Fix DirectDraw test titles & 16bit icon. Patch by Jared Smudde. CORE-11054 #resolve #comment Thanks!
svn path=/trunk/; revision=72858
2016-09-29 20:29:59 +00:00
Johannes Anderwald
8363fc0f08 [USBAUDIO]
- fix bug in UsbAudioSetFormat

svn path=/trunk/; revision=72857
2016-09-29 19:25:31 +00:00
Hermès Bélusca-Maïto
a8badad1fa [EVENTCREATE]: Check for a better last error after the GetModuleFileNameW call.
svn path=/trunk/; revision=72856
2016-09-29 17:42:20 +00:00
Hermès Bélusca-Maïto
fbebe613b7 Temporarily switch the message file to English language to try to "fix" windmc compilation on linux host (*of course*, this problem didn't happen on the "GNU windmc (GNU Binutils) 2.23.51.20121208" provided in RosBE 2.1.3 for Windows, nor with MC.EXE from MSVC...)
svn path=/trunk/; revision=72855
2016-09-29 16:58:02 +00:00
Hermès Bélusca-Maïto
efc5b376b4 [EVENTCREATE]: Implement the EventCreate command-line tool, which allows reporting custom user events in event logs, by using the old-school NT <= 2k3 logging API.
More information in the JIRA report and in the source code (eventcreate.c).
The generator (evtmsggen) for the event message string templates file "evtmsgstr.mc" is also provided.
CORE-12065 #resolve

svn path=/trunk/; revision=72854
2016-09-29 16:49:27 +00:00
Amine Khaldi
1fbf90a712 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-12039
svn path=/trunk/; revision=72853
2016-09-29 11:33:25 +00:00
Benedikt Freisen
0e026443cf [PSDK][GDIPLUS]
Make previously untested GDI+ C++ wrappers compilable.  This involves:
- adding the respective headers to gdiplus.h in a sensible order
- adding forward-declarations
- adding friend-declarations, so that the wrapper functions in those classes can access the private GpXXX members
- const-qualifying the getters in class Color
- adding the EmfToWmfBitsFlags enum
- commenting out bits that use unavailable flatapi functions
- commenting out bits that for some reason the compiler does not like
- the typical typo/data type fixes that untested code tends to need
- moving the Font class within the same header to fulfill dependencies
- adding private GpXXX members to otherwise unimplemented classes
- adding a data-members-only implementation of SizeF

svn path=/trunk/; revision=72852
2016-09-29 11:15:10 +00:00
Amine Khaldi
6a6a58912e [IPHLPAPI][KERNEL32] Revert r72722 and apply a proper fix based on tests. By Peter Hater. CORE-10440 ROSTESTS-243
svn path=/trunk/; revision=72851
2016-09-29 10:49:30 +00:00
Amine Khaldi
d3aebbcedc [RTL] Demote this print as we'll be notified when failure occurs.
svn path=/trunk/; revision=72850
2016-09-29 10:00:07 +00:00
Amine Khaldi
c27310bf96 [KERNEL32_APITEST] Add tests that reveal how the GetComputerNameEx fix in r72722 was not proper. By Peter Hater. ROSTESTS-243
svn path=/trunk/; revision=72849
2016-09-29 09:44:57 +00:00
Thomas Faber
1ff9c7f40d [RAPPS]
- Avoid an unintended fall-through and document and intended one in DownloadProgressProc. CID 1341273 (rapps), 1363531 (rapps_new)

svn path=/trunk/; revision=72848
2016-09-29 09:36:33 +00:00
Thomas Faber
e5645b55eb [WIN32K:NTUSER]
- Add missing break in DefWndStartSizeMove. CID 513489
CORE-12064 #resolve

svn path=/trunk/; revision=72847
2016-09-29 08:23:26 +00:00
Hermès Bélusca-Maïto
4b67338a7f [REACTOS]: Do not gather all the generated message resource files in the same directory (sdk/include/reactos/), so that to avoid potential file collisions, but instead place them into their respective per-target directories.
CORE-12062 #resolve

[RAPPS_NEW]: Fix rapps_new message header & resource files inclusion.

[ROSTESTS]: Adjust the CMakeLists files in accordance.

svn path=/trunk/; revision=72846
2016-09-28 23:20:20 +00:00
Dmitry Chapyshev
fb4cb1c8c5 [SHLWAPI] Try to fix regression
svn path=/trunk/; revision=72845
2016-09-28 21:44:01 +00:00
Mark Jansen
8ab805c96c [DEGMGR] Revert r65406, this is not a leak. CORE-9716 #comment Please retest!
svn path=/trunk/; revision=72844
2016-09-28 21:05:39 +00:00
Johannes Anderwald
ff46d90618 [USBAUDIO]
- implement USBAudioSelectAudioStreamingInterface

svn path=/trunk/; revision=72843
2016-09-28 20:31:32 +00:00
Hermès Bélusca-Maïto
d1faa1a99f Addendum to r72841.
svn path=/trunk/; revision=72842
2016-09-28 20:22:33 +00:00
Hermès Bélusca-Maïto
9c77bd1cb7 Use set_module_type() with module type == "module" instead of specifying that the entrypoint is 0, for resource-only dlls.
svn path=/trunk/; revision=72841
2016-09-28 20:21:31 +00:00
Dmitry Chapyshev
0140e3bf68 [KERNEL32] Add check for Flags parameter.
* Fixes 124 tests for kernel32:WideCharToMultiByte

svn path=/trunk/; revision=72840
2016-09-28 19:53:43 +00:00
Dmitry Chapyshev
d507b7555e [NTOS:FSRTL] Rework FsRtlIsDbcsInExpression for correct parsing some expressions
* Fixes 1 test for kmtest:FsRtlExpression

svn path=/trunk/; revision=72839
2016-09-28 19:01:10 +00:00
Mark Jansen
7d865c5974 [KERNEL32] Mute WC_COMPOSITECHECK DPRINT1. CORE-12058 #resolve
svn path=/trunk/; revision=72838
2016-09-28 17:33:36 +00:00
James Tabor
eb207003e7 [Win32SS]
- Fix menu crash, marking the menu object destroyed if the access count is more than one. Must remember these are not GDI objects. Expect a retooling of user objects soon. Set CORE-11892.

svn path=/trunk/; revision=72837
2016-09-28 16:51:53 +00:00
Amine Khaldi
d0e5925de2 [IPHLPAPI_APITEST] Add some tests for GetNetworkParams. By Peter Hater. ROSTESTS-244
svn path=/trunk/; revision=72836
2016-09-28 14:27:48 +00:00
Dmitry Chapyshev
d04540ff98 [NTOS:FSRTL] Rework FsRtlIsNameInExpressionPrivate for correct parsing some expressions
* Fixes 1 test for kmtest:FsRtlExpression and 15 tests for kernel32:file

svn path=/trunk/; revision=72835
2016-09-27 23:00:20 +00:00
Giannis Adamopoulos
1b795376fc [SHELL32]
- CDesktopBrowser: Implement support for multiple monitors. This needs to be disabled since we don't support LVM_SETWORKAREAS in comctl32 yet. Till then confine the desktop window in the default monitor.

svn path=/trunk/; revision=72834
2016-09-27 22:53:39 +00:00
Johannes Anderwald
17cc431d33 [USBAUDIO]
- improve guid mess a bit
- thanks amine 

svn path=/trunk/; revision=72833
2016-09-27 19:56:54 +00:00
Johannes Anderwald
8112191cdb [USBAUDIO]
- implement USBAudioFilterCreate
- partly implement USBAudioPinCreate, USBAudioPinSetDataFormat

svn path=/trunk/; revision=72832
2016-09-27 19:20:00 +00:00
Amine Khaldi
96d5ff4d93 [PING] Minor fixes by Tim Crawford. Please see CORE-12022 for the list of changes.
svn path=/trunk/; revision=72831
2016-09-27 18:37:45 +00:00
Mark Jansen
105f70b1fe [ATL_APITEST] Remove dependency on rpcrt4. CORE-10029
svn path=/trunk/; revision=72830
2016-09-27 18:20:20 +00:00
Amine Khaldi
2735832354 [DNSAPI_APITEST] Add some tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72829
2016-09-27 18:00:03 +00:00
Thomas Faber
b12f9a0545 [SHELL32]
- Work around what appears to be a bug in the VS 2010 resource compiler (it failed without an error message when processing this file)

svn path=/trunk/; revision=72828
2016-09-27 17:14:39 +00:00
Thomas Faber
16b33b45ab [ATL_APITEST]
- Fix MSVC build

svn path=/trunk/; revision=72827
2016-09-27 16:51:39 +00:00
Daniel Reimer
deb1abff20 [RAPPS]
ooops

svn path=/trunk/; revision=72826
2016-09-27 05:46:09 +00:00
James Tabor
5cb2406405 [NtUser]
- Need more information from callbacks.

svn path=/trunk/; revision=72825
2016-09-27 01:14:49 +00:00
Hermès Bélusca-Maïto
99b8a71b9d [USERINIT]: Addendum to r72823 (sorry for the redundant commits): Fix a use without initialization warning for the 'Success' variable: initialize it to TRUE so that we by default do not perform the main menu loop (in livecd mode).
svn path=/trunk/; revision=72824
2016-09-26 22:52:04 +00:00
Hermès Bélusca-Maïto
3f6ca86312 [USERINIT]: Usability commit: when in LiveCD mode, if we cannot start the shell or the installer, display again the main menu.
svn path=/trunk/; revision=72823
2016-09-26 22:49:13 +00:00
Hermès Bélusca-Maïto
6c90c67259 [USERINIT]: Addendum to r72821 + demote to WARNing the displayed message if the installer could not be started.
svn path=/trunk/; revision=72822
2016-09-26 22:47:25 +00:00
Hermès Bélusca-Maïto
0a81885192 [USERINIT]
- Use explicit unicode functions where possible.
- Use ARRAYSIZE(foo) instead of sizeof(foo)/sizeof(foo[0]).
- Don't hardcode some buffer sizes.
- Try reducing level of code indentation in some functions.
- Make StartShell and StartInstaller return a boolean (TRUE: success; FALSE: failure). Will be needed in the next commit.
- Remove a useless "#pragma warning".

svn path=/trunk/; revision=72821
2016-09-26 22:42:56 +00:00
Mark Jansen
ed8515d7ed [ATL][ATL_APITEST] Implement some basic functionality for CComVariant + tests. CORE-12041
Also adds Detach() to CComBSTR.

svn path=/trunk/; revision=72820
2016-09-26 20:50:36 +00:00
Benedikt Freisen
7c6b473efc [MSPAINT]
- port load and save to ATL::CImage
- let CImage generate the filter lists for the dialogs
- add menu entries "From Scanner or Camera..." and "Send..." (no functionality)
- add menu entries for most recently used files using ATL::CPath and ATL::CString
- manage list of most recently used files in registry using ATL::CRegKey
- use CString in some places instead of TCHAR arrays

Use of CImage for load/save adds support for all GDI+ formats but breaks import/export of dots per meter/inch values.

svn path=/trunk/; revision=72819
2016-09-26 19:53:42 +00:00
Benedikt Freisen
dcea2a97b2 [ATL][ROSTESTS] Tests for: CImage: Add GetImporterFilterString and GetExporterFilterString. Patch by Katayama Hirofumi MZ, CORE-10029
svn path=/trunk/; revision=72818
2016-09-26 19:15:40 +00:00
Benedikt Freisen
61c3571160 [ATL] CImage: Add GetImporterFilterString and GetExporterFilterString. Patch by Katayama Hirofumi MZ, CORE-10029
svn path=/trunk/; revision=72817
2016-09-26 19:08:20 +00:00
Daniel Reimer
d894f5d843 [RAPPS]
Bugfix to correctly identify the size of the programs in RAPPS for the Russian language by amber
CORE-11847 #resolve #comment Committed, thx.
App Manager - NirLauncher has a broken link by Ken Rochard
CORE-11718 #resolve #comment Committed, thx.
App Manager - Audacity has a broken link by Ken Rochard
CORE-11719 #resolve #comment Committed, thx.
Downgrade Python 3.5 to Python 3.4 (if it works) in Rapps by David Kleuker
CORE-11342 #resolve #comment Committed, thx.
App Manager - Libre Office 5.1.3 has a broken link by Ken Rochard
CORE-11670 #resolve #comment Committed, thx.
[RAPPS-DB] Click-N-Type Virtual Keyboard version is wrong by reactosfanboy
CORE-11243 #resolve #comment Committed, thx.

svn path=/trunk/; revision=72816
2016-09-26 18:42:16 +00:00
Benedikt Freisen
b2b90f6342 [ATL]
- implement CStringT::LoadString(UINT nID) via LoadString(_AtlBaseModule.GetResourceInstance(), nID)

[FLTMC]
- add target_link_libraries(fltmc atlnew) so that the linker finds _AtlBaseModule

svn path=/trunk/; revision=72815
2016-09-26 17:50:07 +00:00
Eric Kohl
2f75d2cf5a [LSASRV]
Store the domain name and user SID in the session too.

svn path=/trunk/; revision=72814
2016-09-26 16:28:10 +00:00
Benedikt Freisen
a5bb3a9997 [ATL] cstringt.h: Uncomment and complete Format(UINT nFormatID, ...). It still uses a LoadString-stub, though.
svn path=/trunk/; revision=72813
2016-09-26 14:11:50 +00:00
Dmitry Chapyshev
75df465bbf [NTOS:KE] Use variable instead function calling
svn path=/trunk/; revision=72812
2016-09-26 12:31:26 +00:00
Dmitry Chapyshev
aac32378ed [NTOS:KE] Added *Thread versions of macros with ASSERT(_Thread == KeGetCurrentThread()). Use new macros in _KeAcquireGuardedMutex, _KeReleaseGuardedMutex, _KeTryToAcquireGuardedMutex. Thanks Alex!
svn path=/trunk/; revision=72811
2016-09-26 12:03:57 +00:00
Thomas Faber
4e21017693 [KERNEL32]
- Handle UTF-16 surrogate pairs in IntWideCharToMultiByteUTF8.
CORE-12042 #resolve

svn path=/trunk/; revision=72810
2016-09-26 10:12:58 +00:00
Thomas Faber
8abd9a0386 [KERNEL32_APITEST]
- Add a test for WideCharToMultiByte with CP_UTF8
CORE-12042

svn path=/trunk/; revision=72809
2016-09-26 10:06:55 +00:00
Giannis Adamopoulos
a4aafe9309 [SHELL32]
- CDefView: Overhaul the code that filled the menu bar of explorer. Fill the arrange as menu with the column names from the shell folders instead of hardcoding them. Check the selected arrange mode and view mode in the menu bar and in the context menu. Make the items in the file menu to actually work. It is possible to arrange the icons from the context menu now. 
- Note to translators: Please check that the changes that I did in the 31 resource files make sense. Also note that the "Arrange Icons" menu now is called "Arrange Icons As".

svn path=/trunk/; revision=72808
2016-09-26 00:43:21 +00:00
Robert Naumann
5895908402 [SHELL32]Swedish translation by Andreas Bjerkeholt CORE-12040
svn path=/trunk/; revision=72807
2016-09-25 22:53:05 +00:00
Jérôme Gardou
14628d18e5 [KDGDB]
- Fix a stupid typo, causing all threads to have the same backtrace.

svn path=/trunk/; revision=72806
2016-09-25 22:33:48 +00:00
Benedikt Freisen
844f4e8868 [ATL] atlpath.h: This looked like a bug.
svn path=/trunk/; revision=72805
2016-09-25 21:14:23 +00:00
Benedikt Freisen
ee95d592f0 [ATL] Add atlpath.h, which provides the CPathT class template and the classes CPath, CPathA and CPathW. CORE-12034
svn path=/trunk/; revision=72804
2016-09-25 19:58:22 +00:00
Jérôme Gardou
7b8651cd90 [SDK/GCC_INTRIN]
- Update __invlpg instrinsic for x86_64 compatibility

svn path=/trunk/; revision=72803
2016-09-25 18:35:52 +00:00
Dmitry Chapyshev
28e32eb784 [RTL] Capture parameters with using SEH. Fixes new test for ntdll:RtlAllocateHeap
svn path=/trunk/; revision=72802
2016-09-25 17:05:52 +00:00
Dmitry Chapyshev
92e7c0979a [NTDLL_APITEST] Add test for invalid pointer
svn path=/trunk/; revision=72801
2016-09-25 16:57:55 +00:00
Thomas Faber
3e357794f9 [NTOS:PO]
- Protect against invalid user mode pointers in NtPowerInformation

svn path=/trunk/; revision=72800
2016-09-25 13:46:18 +00:00
Dmitry Chapyshev
7986e05dd7 [NTOS:PO] Stubpliment ProcessorInformation case in NtPowerInformation. Fixes 1 test for ntdll:info
svn path=/trunk/; revision=72799
2016-09-25 13:03:06 +00:00
Benedikt Freisen
9c2f0f7e3a [ATL] atltime.h: fix assertion: hours of a day are in the range 0-23, not 0-59
svn path=/trunk/; revision=72798
2016-09-25 09:33:56 +00:00
Thomas Faber
44408ed371 [RTL]
- Avoid dereferencing a NULL pointer in RtlIsTextUnicode
CORE-12027 #resolve

svn path=/trunk/; revision=72797
2016-09-25 08:25:45 +00:00
Hermès Bélusca-Maïto
558f564017 [EVENTVWR]: Turkish translation update by Erdem Ersoy.
CORE-12031 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72796
2016-09-24 23:21:05 +00:00
Benedikt Freisen
40e80da24a [SDK][ATL] Add header atltime.h and prerequisites in atlsimpstr.h and atlstr.h. CORE-12023
svn path=/trunk/; revision=72795
2016-09-24 18:01:49 +00:00
Mark Jansen
5fbd6598b7 [MSGINA] Prevent an infinite loop in ShellDimScreen. CORE-12028
svn path=/trunk/; revision=72794
2016-09-24 14:15:23 +00:00
Christoph von Wittich
6476277b5c [CRYPTNET] don't try to prepend a drive letter when there is one already
svn path=/trunk/; revision=72793
2016-09-24 12:19:35 +00:00
Christoph von Wittich
940cde001f [CRYPTNET] disable broken code
svn path=/trunk/; revision=72792
2016-09-24 11:39:17 +00:00
Johannes Anderwald
23829f32f6 [LIBUSBAUDIO]
- delete unused code

svn path=/trunk/; revision=72791
2016-09-24 11:24:07 +00:00
Johannes Anderwald
ceb3c692f3 [USBAUDIO]
- allocate filter descriptor
- fixes hang in win2k3

svn path=/trunk/; revision=72790
2016-09-24 11:17:32 +00:00
Eric Kohl
3c7d74d9d9 [LSASRV]
LsapSetLogonSessionData: Set the logon type and the user name of the selected session.
LsapGetLogonSessionData: Fix the session data marshalling code.
Now we can retrieve the logon type and user name of the logon sessions.

svn path=/trunk/; revision=72789
2016-09-24 09:38:17 +00:00
Dmitry Chapyshev
fdef947fd3 [NTOSKRNL] Add missed _SEH2_YIELD's
svn path=/trunk/; revision=72788
2016-09-24 09:34:09 +00:00
Dmitry Chapyshev
f250bb4eb6 [NTOSKRNL] Remove unneeded sanity checks
svn path=/trunk/; revision=72787
2016-09-24 09:30:06 +00:00
Dmitry Chapyshev
ae49423a04 [ACPPAGE] Update Russian translation
svn path=/trunk/; revision=72786
2016-09-24 09:25:13 +00:00
Johannes Anderwald
5da8ac035d [USBAUDIO]
- add pin dispatch routines

svn path=/trunk/; revision=72785
2016-09-24 08:35:25 +00:00
Christoph von Wittich
fa4bc0ad15 [DNSAPI] sync record.c with wine 1.9.19
svn path=/trunk/; revision=72784
2016-09-24 07:32:25 +00:00
Johannes Anderwald
ebc30bc7c1 [USBAUDIO]
- fix build with gcc

svn path=/trunk/; revision=72783
2016-09-23 22:14:21 +00:00
Johannes Anderwald
f9d6dccd9c [USBAUDIO]
- fix warnings
- implement UsbAudioGetDataRanges for filter descriptor

svn path=/trunk/; revision=72782
2016-09-23 22:07:24 +00:00
Johannes Anderwald
885506056c [USBAUDIO]
- start implementing USBAudioPinBuildDescriptors

svn path=/trunk/; revision=72781
2016-09-23 19:53:19 +00:00
Johannes Anderwald
d034494c4d [KS]
- fix gcc build

svn path=/trunk/; revision=72780
2016-09-23 19:10:44 +00:00
Johannes Anderwald
2380a6ec54 [KS]
- make a copy of KSFILTER_DESCRIPTOR as it might have been allocated from the stack
- always initialize object bag in filter factory 

svn path=/trunk/; revision=72779
2016-09-23 18:35:15 +00:00
Giannis Adamopoulos
ed87e2056d [SHELL32]
- CPrinterFolder: Use the printer icon for printers not the icon for printers folder.

svn path=/trunk/; revision=72778
2016-09-23 15:51:53 +00:00
Dmitry Chapyshev
4a71e9a2bc [SETUPAPI] Implement freeing memory in SetupDiDestroyClassImageList function. Based on patch from CircularTriangle06. Thanks! See CORE-11668
svn path=/trunk/; revision=72777
2016-09-22 21:39:25 +00:00
Giannis Adamopoulos
76bf27c021 [SHELL32]
- SHCreateDefaultContextMenu: Since our shell folders don't pass the array of class keys needed, populate this array right in SHCreateDefaultContextMenu. This code should later be moved to the shell folders so as to make CDefaultContextMenu.cpp agnostic to the kind of items it handles.
- CDefaultContextMenu: Simplify filling the menu by making use of the array of keys passed in the DEFCONTEXTMENU struct.

svn path=/trunk/; revision=72776
2016-09-22 21:34:14 +00:00
Giannis Adamopoulos
05f4321160 [SHELL32]
- CDefaultContextMenu: Simplify some really superfluous code and add more checks for bogus parameters. Create the data object using GetUIObjectOf instead of SHCreateDataObject. Each sell folder should be able to use its own special data object.

svn path=/trunk/; revision=72775
2016-09-22 19:54:15 +00:00
Dmitry Chapyshev
32705690e7 [NLS] Add 1146 and 21025 code pages
svn path=/trunk/; revision=72774
2016-09-22 18:16:30 +00:00
Dmitry Chapyshev
e12d8ec40d [NLS] Add missed code pages
svn path=/trunk/; revision=72773
2016-09-22 18:14:07 +00:00
Giannis Adamopoulos
3fc6a9d6f0 [HIVECLS.INF]
- Drive property page is registered by sehll32.

svn path=/trunk/; revision=72772
2016-09-22 16:48:12 +00:00
Giannis Adamopoulos
adffe02e6f [SHELL32]
- Handle failure in SHELL32_CompareDetails.

svn path=/trunk/; revision=72771
2016-09-22 16:22:44 +00:00
Giannis Adamopoulos
c6db4d179c [SHELL32]
- COpenWithMenu: Don't try to close the same registry key twice.

svn path=/trunk/; revision=72770
2016-09-22 16:14:07 +00:00
Giannis Adamopoulos
e00840033e [SHELL32]
- HCR_GetFolderAttributes already calls GetAttributesOf when needed, calling it when it is not needed can lead to crashes.

svn path=/trunk/; revision=72769
2016-09-22 16:09:28 +00:00
Christoph von Wittich
ef8e98a485 [SHELL32] implement CreateViewWindow3 and fix CreateViewWindow2
svn path=/trunk/; revision=72768
2016-09-22 14:28:44 +00:00
Eric Kohl
e5d301366c [LSASRV]
LsapGetLogonSessionData: Marshall the session data before sending them to the client.

[SECUR32]
LsaConnectUntrusted: Wait for the authentication thread.
LsaGetLogonSessionData: Unmarshall the session data after receiving them from the server.

svn path=/trunk/; revision=72767
2016-09-22 11:27:05 +00:00
Benedikt Freisen
770c7d7cb0 [MSPAINT] Lets
svn path=/trunk/; revision=72766
2016-09-22 10:03:32 +00:00
Amine Khaldi
5d8bf427ca [PING] Rewrite ping. It now uses the Icmp* functions in iphlpapi, supports IPv4 and IPv6, and adds more options than available in the current ReactOS ping. Brought to you by Tim Crawford. CORE-10573
svn path=/trunk/; revision=72765
2016-09-22 08:10:47 +00:00
Christoph von Wittich
e0f1966727 [SHELL32] revert 72685 the testman hang wasn't related
svn path=/trunk/; revision=72764
2016-09-21 19:51:35 +00:00
Mark Jansen
2d582ff542 [CRT] Fix __getmainargs parsing for a commandline ending with spaces. Patch by Yaroslav Veremenko CORE-9199 #comment Thanks, please re-test!
svn path=/trunk/; revision=72763
2016-09-21 19:34:42 +00:00
Mark Jansen
6ee0488c6d [CRT_APITEST] Add tests for __getmainargs, testing a commandline ending with spaces. Patch by Yaroslav Veremenko CORE-9199
svn path=/trunk/; revision=72762
2016-09-21 19:26:47 +00:00
Mark Jansen
1d08fd530f [NETSHELL] Register some COM interfaces to fix a few tests. Patch by Jared Smudde. CORE-12016 #resolve #comment Thanks!
svn path=/trunk/; revision=72761
2016-09-21 19:04:07 +00:00
Mark Jansen
37e073b675 [NETSHELL.RGS] set eol-style so that hopefully the patchbot will eat a patch without choking on it.
svn path=/trunk/; revision=72760
2016-09-21 17:55:35 +00:00
Amine Khaldi
51d329b7e1 [IPHLPAPI] Fix all testIcmpSendEcho tests. By Peter Hater. Please see CORE-11993 for the list of changes.
svn path=/trunk/; revision=72759
2016-09-21 15:53:17 +00:00
Hermès Bélusca-Maïto
640e1bacfc [LSALIB]: Fix build (and 2 dprints in the process).
svn path=/trunk/; revision=72758
2016-09-21 14:02:54 +00:00
Eric Kohl
1b6257ac3f [LSASRV]
Revert all pointless changes from r72751.

svn path=/trunk/; revision=72757
2016-09-21 10:49:40 +00:00
Eric Kohl
73975f8f4a [LSALIB]
- LsaRegisterLogonProcess: Wait for the LSA_AUTHENTICATION_INITIALIZED event.
- LsaDeregisterLogonProcess: Use ZwClose to close the port handle.

svn path=/trunk/; revision=72756
2016-09-21 10:27:06 +00:00
Eric Kohl
dff8dfadb8 [LSASRV]
Open/Create and set the \\SECURITY\\LSA_AUTHENTICATION_INITIALIZED event after the LsaAuthenticationPort has been created.

svn path=/trunk/; revision=72755
2016-09-21 07:27:18 +00:00
Eric Kohl
0b423f6a54 [LSALIB][SECUR32]
- Move LsaConnectUntrusted() from sdk/lib/lsalib/lsa.c to dll/win32/secur32/lsalpc.c as it is not exported from ntoskrnl.
- Remove obsolete code from lsalib.

svn path=/trunk/; revision=72754
2016-09-21 06:19:22 +00:00
Eric Kohl
1df78f4892 [LSALIB]
LsaRegisterLogonProcess: Do not wait for \\SECURITY\\LSA_AUTHENTICATION_INITIALIZED to get signaled as it breaks the boot.

svn path=/trunk/; revision=72753
2016-09-21 06:11:02 +00:00
Eric Kohl
d307723a72 [NTOSKRNL]
- Move the session notification routines from se/lsa.c to se/srm.c.
- Get rid of se/lsa.c.

svn path=/trunk/; revision=72752
2016-09-21 04:57:25 +00:00
Hermès Bélusca-Maïto
9bc48b336f [SECUR32][NTOS]: Update the LSA export signatures for the functions that are implemented in the "lsalib" library.
[LSALIB]
- Add old-school annotations (as we currently do in our main .c code of our stuff).
- Mention that LsaConnectUntrusted is not an API that is exported (& implemented) by ntoskrnl.
- For LsaRegisterLogonProcess, we first wait for the LSA server to be ready (by waiting on its initialization event). This is TODO for LsaConnectUntrusted on the contrary.

[LSALIB][NTOS]
Usa the lsalib as the implementation of the LSA functions exported by ntoskrnl. But for that we need to recompile the lsalib as a library that can be used from inside ntoskrnl, because it needs some functions that are normally exported by ntos. For this purpose I add the library target "ntlsalib" (which also specify different #defines), to differentiate it from the (user-mode) "lsalib" one that is used by secur32.dll (Amine, if you have a better idea on how to do that, please let me know!).

svn path=/trunk/; revision=72751
2016-09-20 23:43:16 +00:00
Amine Khaldi
7d07b21168 [WS2_32] The current ws2_32 served us well, but it's time for ws2_32_new to shine. It took slightly more than 7 years since Ged brought-in Alex' impressive work on this module, and thanks to the great follow-up work by Peter Hater, Andreas Maier, Thomas Faber and everyone else involved in the effort, we now have a chance to retire ws2_32 in favor of ws2_32_new. The test results speak for the excellent achievements, and this serves as a platform to continue inspecting and fixing the remaining test failures. Thank you all for a job well done! Please see CORE-10440 for a summary of the changes performed in this commit.
svn path=/trunk/; revision=72750
2016-09-20 16:51:28 +00:00
Amine Khaldi
840345bf57 [MSAFD] Don't assume SOL_SOCKET is the only socket level. By Peter Hater. CORE-10440 CORE-12008
svn path=/trunk/; revision=72749
2016-09-20 16:31:53 +00:00
Amine Khaldi
e4af4ccb22 [ETC/SERVICES] Update services file as expected by the tests. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72748
2016-09-20 09:45:02 +00:00
Amine Khaldi
e9878b1c6a [IPHLPAPI] Don't (de)initialize ws2 on dll process (attach/detach), do it on IcmpCreateFile/IcmpCloseHandle instead, due to the circular dependency ws2_32 -> mswsock -> dnsapi(adns lib) -> iphlpapi -> ws2_32. This creates 2 references to ws2_32 and ws2_32 can't cleanup on WSACleanup. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72747
2016-09-20 09:42:51 +00:00
Amine Khaldi
b257841ecd [MSAFD] Move WSAAddressToStringA/W and WSAStringToAddressA/W in msafd protocol provider from ws2_32. Other small fixes for return codes. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72746
2016-09-20 08:12:44 +00:00
James Tabor
e38d2daa32 [NtUser]
- Use send message only and fix return for WM_NC/ACTIVATE. See CORE-11979 and CORE-11324.

svn path=/trunk/; revision=72745
2016-09-20 02:00:18 +00:00
Johannes Anderwald
f5f288f652 [USBAUDIO]
- fix minor bugs
- start implementing filter context

svn path=/trunk/; revision=72744
2016-09-19 18:40:44 +00:00
Amine Khaldi
d35ce60785 [PSDK] Apply our headers style to winwlx.h. Supersedes and fixes the "fix whitespace" part of r72741.
svn path=/trunk/; revision=72743
2016-09-19 17:04:27 +00:00
Hermès Bélusca-Maïto
d4b08aa9bb Revert 2 small changes that I didn't want to do.
svn path=/trunk/; revision=72742
2016-09-19 15:51:13 +00:00
Hermès Bélusca-Maïto
9121ca5711 [PSDK]: Add annotations & fix whitespace.
svn path=/trunk/; revision=72741
2016-09-19 15:49:45 +00:00
Dmitry Chapyshev
ab60ef617a [KERNEL32] Sync other functions with Wine 1.9.17
* Fixes 1 test for kernel32:locale

svn path=/trunk/; revision=72740
2016-09-19 11:28:20 +00:00
Dmitry Chapyshev
b44173c769 [KERNEL32] Sync GetStringTypeW with Wine
* Fixes 255 tests for kernel32:locale

svn path=/trunk/; revision=72739
2016-09-19 10:11:19 +00:00
Thomas Faber
8970909ad9 [AFD]
- Fix MDL leak in failure case of AfdGetSockName. Patch by Volodymyr Shcherbyna. CID 1322161.
CORE-11096 #resolve

svn path=/trunk/; revision=72738
2016-09-19 08:15:24 +00:00
Hermès Bélusca-Maïto
9481be0824 [WINLOGON]
- CreateUserEnvironment: if user impersonation fails, just fail the call.
- SetDefaultLanguage: Use the *correct* HKEY_CURRENT_USER key to retrieve the lang., that is, first impersonate the user, then, call RegOpenCurrentUser. We do that because otherwise calling RegOpenKey(Ex) for HKEY_CURRENT_USER just uses the process cached value of HKEY_CURRENT_USER, which does not change *even if* one impersonates an user.

[MSGINA]
- Correctly impersonate the user when opening & initializing the shutdown dialog (in the same way as winlogon does), i.e. call ImpersonateLoggedOnUser and use RegOpenCurrentUser.
- Fill few (but not all) code holes in WlxScreenSaverNotify.

svn path=/trunk/; revision=72737
2016-09-18 23:32:02 +00:00
Hermès Bélusca-Maïto
4b29ab5690 [NTOS]: Code formatting only.
svn path=/trunk/; revision=72736
2016-09-18 23:28:32 +00:00
Amine Khaldi
0fc28afe45 [MSWSOCK] Partially implement Name Service Provider in mswsock. Brought to you by Andreas Maier aka andy-123 with small fixes by Peter Hater and formatting by me. CORE-10024 CORE-10440
svn path=/trunk/; revision=72735
2016-09-18 21:21:28 +00:00
Dmitry Chapyshev
be31da9af7 [KERNEL32] - Remove unneded checks (these values can be received from table). - We have to insert UNICODE_NULL if it is the end of string or in string contains 0.
* Fixes 12 tests for kernel32:codepage

svn path=/trunk/; revision=72734
2016-09-18 21:10:07 +00:00
Dmitry Chapyshev
a7c123661e [KERNEL32] Add missed type-casting
* Fixes 28 tests for kernel32:codepage

svn path=/trunk/; revision=72733
2016-09-18 20:11:05 +00:00
Hermès Bélusca-Maïto
f8ff1c2126 [MSGINA]
- Do not hardcode buffer sizes in function calls, and use _countof when needed.
- Use explicit unicode functions where possible.
- No need to have 342687 versions of the shutdown dialog in msgina, only one is sufficient. The help button should be either shown or hidden, depending on whom is calling the dialog (shell or winlogon) (this is TODO!)
- Therefore, no need to have twice the (almost) same code for the shutdown dialog.
- Fix & rework said code.
- The old duplicated shutdown dialog now becomes the "template" for the "Luna-XP-style Shut Down dialog" (implementation TODO!)
- Reenable the WM_ACTIVATE code that was added in r72720 and temporarily disabled in r72721.
CORE-7559 #comment Numerous fixes committed in r72732.

svn path=/trunk/; revision=72732
2016-09-18 19:37:25 +00:00
Hermès Bélusca-Maïto
c7afe8dea0 [SHELL32]: Code formatting only.
svn path=/trunk/; revision=72731
2016-09-18 19:36:05 +00:00
Dmitry Chapyshev
d0228d56b4 [KERNEL32] Implement MB_ERR_INVALID_CHARS flag for DBCS codepages
* Fixes 3 tests for kernel32:codepage

svn path=/trunk/; revision=72730
2016-09-18 18:21:30 +00:00
Dmitry Chapyshev
84351186d5 [KERNEL32] Implement MB_USEGLYPHCHARS flag for MultiByteToWideChar. Add checks for "Private Use" characters. More correct checks for input parameters.
* Fixes 6 tests for kernel32:codepage

svn path=/trunk/; revision=72729
2016-09-18 17:26:59 +00:00
Amine Khaldi
dc52ede2f3 [WS2_32_WINETEST] Disable test_address_list_query() as the ioctl is not supported yet by winsock helper dll (wshtcpip.dll) and the test is assuming there is info returned which is wrong and crashes. By Peter Hater. CORE-10440 CORE-12000
svn path=/trunk/; revision=72728
2016-09-18 16:20:20 +00:00
Amine Khaldi
0040a2fd32 [ADNS] Use dynamic memory for network info and set domain for searches. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72727
2016-09-18 16:07:29 +00:00
Amine Khaldi
6086defd15 [DNSAPI] Request adns to search servers and domains. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72726
2016-09-18 14:25:39 +00:00
Johannes Anderwald
ad787661bb [USBAUDIO]
- start implementing init routines
- not yet added to build

svn path=/trunk/; revision=72725
2016-09-18 14:24:21 +00:00
Johannes Anderwald
956b933a71 try fix build
svn path=/trunk/; revision=72724
2016-09-18 14:11:47 +00:00
Johannes Anderwald
1b15d09a65 [PSDK]
- add missing definitions

svn path=/trunk/; revision=72723
2016-09-18 14:02:22 +00:00
Amine Khaldi
15b97111e6 [KERNEL32] Try to read 'DhcpDomain' registry value if present, otherwise return 'Domain' one, when domain part is requested from GetComputerNameEx(). By Peter Hater. CORE-10440
svn path=/trunk/; revision=72722
2016-09-18 12:55:45 +00:00
Hermès Bélusca-Maïto
b33dfb3ede [MSGINA][SHELL32]: Temporarily disable the WM_ACTIVATE check because it blocks for whatever reason the dialog to properly close and return its correct return value when the user selects e.g. "Shutdown" and validate by pressing "OK" (effectively disables commit r72720).
svn path=/trunk/; revision=72721
2016-09-17 23:07:46 +00:00
Hermès Bélusca-Maïto
99dcff252e [MSGINA][SHELL32]: Now that CORE-11979 is fixed, automatically close the logoff/shutdown dialog as soon as the user deactivates the window (focus lost) by e.g. pressing Alt-Tab.
svn path=/trunk/; revision=72720
2016-09-17 22:44:50 +00:00
Hermès Bélusca-Maïto
a1895a9da6 [XDK][MSGINA]: Consistency codestyle fixes.
[SHELL32]
- Use explicit unicode functions;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Enable the shutdown privilege when we need it, and disable as soon as possible (code taken from taskmgr).

svn path=/trunk/; revision=72719
2016-09-17 22:39:54 +00:00
Hermès Bélusca-Maïto
b5fc396ab8 [MSGINA]: Code style fixes:
- Use explicit unicode functions;
- Just use the hdc field of the PAINTSTRUCT initialized by BeginPaint instead of introducing yet another hdc variable;
- Use SetDlgItemTextW instead of GetDlgItem + SetWindowTextW;
- Don't hardcode buffer sizes in functions calls;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Avoid using raw 'int' variables where possible;
- Remove trailing whitespace.
...

svn path=/trunk/; revision=72718
2016-09-17 22:04:54 +00:00
Dmitry Chapyshev
40f2bef33b [NLS] Update NLS files. Part 5/x
svn path=/trunk/; revision=72717
2016-09-17 21:45:39 +00:00
Dmitry Chapyshev
4969288a3b [NLS] Add source data for NLS-files
svn path=/trunk/; revision=72716
2016-09-17 21:18:13 +00:00
Hermès Bélusca-Maïto
f76faf799a [NTVDM]: Update README.
svn path=/trunk/; revision=72715
2016-09-17 21:12:03 +00:00
Dmitry Chapyshev
20e9303118 [NLS] Update NLS files. Part 4/x
svn path=/trunk/; revision=72714
2016-09-17 21:08:09 +00:00
Dmitry Chapyshev
3855dc8d24 [NLS] Add source data for 10000, 10006, 10007, 10029, 10079, 10081 codepages
svn path=/trunk/; revision=72713
2016-09-17 20:54:14 +00:00
Hermès Bélusca-Maïto
d0c02243d2 [NTVDM]: Add new icons:
- Tango-style icons by Henry Tang Ih and Jared Smudde, arranged by myself for PC-XT and AT style;
- ROS-DOS & VDM-DOS (copied from pifmgr.dll) by DSP2015
CORE-10340

svn path=/trunk/; revision=72712
2016-09-17 20:50:08 +00:00
Dmitry Chapyshev
67862907fb [NLS] Update NLS files. Part 3/x
svn path=/trunk/; revision=72711
2016-09-17 20:48:40 +00:00
Dmitry Chapyshev
4e4d86df9c [NLS] Add source data for 1006, 1026, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258 codepages
svn path=/trunk/; revision=72710
2016-09-17 20:27:00 +00:00
Dmitry Chapyshev
cc3ce56acd [NLS] Update NLS file for 037, 500, 874, 875 codepages
svn path=/trunk/; revision=72709
2016-09-17 20:17:04 +00:00
Dmitry Chapyshev
40a137dfa8 [TXT2NLS] TransUniDefaultChar has to be received from WideCharTable. TransDefaultChar has to be received from MultiByteTable (or from DBCS table)
svn path=/trunk/; revision=72708
2016-09-17 20:03:13 +00:00
Dmitry Chapyshev
c75bd6ee1e [NLS] Add source data for 037, 424, 500, 874, 875 codepages
svn path=/trunk/; revision=72707
2016-09-17 19:27:16 +00:00
Dmitry Chapyshev
0dff1696a2 [NLS] Update NLS files. Part 1/x
svn path=/trunk/; revision=72706
2016-09-17 19:01:54 +00:00
Mark Jansen
d1a6ea86f7 [ATL] Do not corrupt the internal state of the CSimpleArray when allocation fails. Patch by Katayama Hirofumi MZ. CORE-11946 #comment Committed, thanks!
svn path=/trunk/; revision=72705
2016-09-17 17:54:16 +00:00
Dmitry Chapyshev
ea13a8e917 [NLS2TXT] Add missed check for default char
[TXT2NLS] Size of glyph table in words (create_nls uses wrong size)

svn path=/trunk/; revision=72704
2016-09-17 14:04:32 +00:00
Dmitry Chapyshev
fc49388a2a [NLS] Update nls files for 437 and 775 codepages
* Fixes 16 tests for ntdll:RtlGenerate8dot3Name

svn path=/trunk/; revision=72703
2016-09-17 12:41:29 +00:00
Dmitry Chapyshev
25dc758375 [NLS] Added source data for NLS files (generated by nls2txt from our files)
svn path=/trunk/; revision=72702
2016-09-17 12:29:49 +00:00
Dmitry Chapyshev
0d8a2edf6b [TXT2NLS] Write correct size for wide char table
svn path=/trunk/; revision=72701
2016-09-17 12:18:28 +00:00
Dmitry Chapyshev
942c4eff2d [ROSAPPS] Add initial version txt2nls file converter (DBCS codepages not supported yet)
svn path=/trunk/; revision=72700
2016-09-17 01:02:53 +00:00
James Tabor
cb199a866c [NtUser]
- Use desktop thread list to search for related active desktop threads. See CORE-11983.

svn path=/trunk/; revision=72699
2016-09-16 23:58:51 +00:00
Hermès Bélusca-Maïto
6e3b5e1ee2 [PIFMGR]: Update the 16-colour format of some icons; add new icons.
CORE-10253

svn path=/trunk/; revision=72698
2016-09-16 23:17:06 +00:00
Amine Khaldi
b183bab8f7 [DHCPCSVC] Add registry key for DHCP domain if present in DHCP reply. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72697
2016-09-16 13:40:21 +00:00
Thomas Faber
bae3687192 [NTDLL_WINETEST]
- Skip exception test on WHS-Testbot... because problems...
ROSTESTS-240

svn path=/trunk/; revision=72696
2016-09-16 09:33:54 +00:00
Dmitry Chapyshev
8e08a3b453 [NLS2TXT] Remove unneeded imports
svn path=/trunk/; revision=72695
2016-09-15 21:47:22 +00:00
Dmitry Chapyshev
d4e7d0c0ff [GETUNAME] Add import library for nls2txt
svn path=/trunk/; revision=72694
2016-09-15 21:17:03 +00:00
Dmitry Chapyshev
3f3ae1f05b [ROSAPPS] Add NLS to TXT file converter
svn path=/trunk/; revision=72693
2016-09-15 21:13:26 +00:00
Dmitry Chapyshev
434964f61d [RTL] Add internal RtlpDowncaseUnicodeChar function and use instead RtlDowncaseUnicodeChar internally in RTL. RtlMultiAppendUnicodeStringBuffer parameters are specified (it is documented on: http://undoc.airesoft.co.uk/ntdll.dll/RtlMultiAppendUnicodeStringBuffer.php)
svn path=/trunk/; revision=72692
2016-09-15 20:40:29 +00:00
Dmitry Chapyshev
ce4186a1eb [RTL] Add internal RtlpUpcaseUnicodeChar function and use instead RtlUpcaseUnicodeChar internally in RTL
svn path=/trunk/; revision=72691
2016-09-15 20:05:26 +00:00
Mark Jansen
406bb0105f [SYSSETUP][UNATTENDED] Remove dead code for VmwInst. Found by Jared Smudde.
svn path=/trunk/; revision=72690
2016-09-15 19:58:29 +00:00
Mark Jansen
af4f582986 [ATL_APITEST] Update CImage apitest to be in line with the CSimpleArray / CSimpleMap tests. Patch from Katayama Hirofumi MZ. CORE-11946 #resolve #comment Thanks!
svn path=/trunk/; revision=72689
2016-09-15 19:42:45 +00:00
Mark Jansen
639a2c725d [ATL][ATL_APITEST] Implemente CSimpleArray + CSimpleMap. Based on a patch from Katayama Hirofumi MZ. CORE-11946
Most of the code is from Katayama Hirofumi MZ, the placement new / delete is written by me, based on a hint from Giannis.

svn path=/trunk/; revision=72688
2016-09-15 19:41:03 +00:00
Dmitry Chapyshev
f648131f93 [RTL] Add missed IN/OUT/OPTIONAL/PAGED_CODE_RTL
svn path=/trunk/; revision=72687
2016-09-15 19:35:59 +00:00
Dmitry Chapyshev
3c4a2b6d93 [RTL] Formatting only
svn path=/trunk/; revision=72686
2016-09-15 19:17:47 +00:00
Christoph von Wittich
c18c4aa282 [SHELL32] try to fix testman hang, by "breaking" CreateViewWindow2 again
svn path=/trunk/; revision=72685
2016-09-15 16:12:50 +00:00
Christoph von Wittich
a4ff747ee4 [SHELL32] halfplement CreateViewWindow2 (SHELLVIEWID not handled yet)
svn path=/trunk/; revision=72684
2016-09-15 15:09:22 +00:00
Thomas Faber
b64b5f76db [LIBUSB]
- Correctly fail IRP_MN_START_DEVICE if PnpStart failed. Spotted by Vadim Galyant.
CORE-11929 #resolve

svn path=/trunk/; revision=72683
2016-09-15 13:37:26 +00:00
Thomas Faber
a2d24bde65 [NTOS:IO]
- Avoid IRP allocation failure in IopDeleteFile and IopCloseFile. Based on a patch by Volodymyr Shcherbyna.
CORE-11959

svn path=/trunk/; revision=72682
2016-09-15 13:25:20 +00:00
Thomas Faber
f2599dd576 [FASTFAT]
- Acquire DirResource before MainResource in DoQuery to keep locking order consistent and avoid deadlocks. Patch by Volodymyr Shcherbyna with small modification by me.
CORE-11959 CORE-11652

svn path=/trunk/; revision=72681
2016-09-15 13:12:02 +00:00
Christoph von Wittich
a35a286182 [LSASRV] check correct variable for NULL
svn path=/trunk/; revision=72680
2016-09-15 08:41:17 +00:00
Hermès Bélusca-Maïto
368cd76efb Of course, as soon as you see such typos in our code, you can be 90% sure they are repeated elsewhere. And indeed they are. Fix the typos in our code (I leave them in the 3rd party code).
Concerning the fix in the NDK header I've checked that publicly available information about this structure (NirSoft website, Windows Internals book, Windows symbols...) has the member correctly named.

svn path=/trunk/; revision=72679
2016-09-14 22:51:55 +00:00
Amine Khaldi
a957a1d35d [INF] Fix some spelling errors. By Josh Soref. CORE-11986
svn path=/trunk/; revision=72678
2016-09-14 21:30:34 +00:00
Amine Khaldi
7b41c2ebbf [TRANSLATIONS] One step further towards improving our translations. Brought to you by Josh Soref aka timeless. CORE-11985
svn path=/trunk/; revision=72677
2016-09-14 20:38:53 +00:00
James Tabor
585f434ff4 [NtUser]
- Remove unneeded code and information, the problem is in focus.c:SFW. See CORE-11324.

svn path=/trunk/; revision=72676
2016-09-14 14:35:03 +00:00
James Tabor
9e1cd0b7ff [NtUser]
- Fix recursion issues, CORE-8780 and CORE-11979. See CORE-11324 for breakage.

svn path=/trunk/; revision=72675
2016-09-14 14:15:46 +00:00
Thomas Faber
503cf310ad [NTOS]
- Return pool quota before freeing IRPs to a lookaside list
CORE-11962 #resolve

svn path=/trunk/; revision=72674
2016-09-14 12:45:45 +00:00
Thomas Faber
aac3bbc746 [TCPIP]
- Don't try to mark IRPs as pending when they might already be completed. For simplicity, always pend them instead.
CORE-11962

svn path=/trunk/; revision=72673
2016-09-14 11:46:19 +00:00
Amine Khaldi
7d478eb667 [IP] Avoid use-after-free of IPDATAGRAM_REASSEMBLY structures. By Roel Messiant. CORE-11889
svn path=/trunk/; revision=72672
2016-09-14 10:09:02 +00:00
Amine Khaldi
d87e3543c1 [PSDK] Add PFE_EXPORT_FUNC.
svn path=/trunk/; revision=72671
2016-09-14 10:04:40 +00:00
Amine Khaldi
fd3e47079c [FREETYPE] Update to v2.7.0. CORE-11639
svn path=/trunk/; revision=72670
2016-09-14 10:01:27 +00:00
Amine Khaldi
019c2ecb53 [MEDIA/INF] Add raw transport provider from msafd. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72669
2016-09-14 08:55:23 +00:00
Dmitry Chapyshev
a4cd19ec42 [RTL]
- Use correct checks for illegal chars
- Build context and 8.3 name on the basis of it (context can be already presented)

* Fixes 34 tests for ntdll:RtlGenerate8dot3Name (remained 16 tests will be fixed after correction of a problem with NLS files)

svn path=/trunk/; revision=72668
2016-09-14 00:31:30 +00:00
Hermès Bélusca-Maïto
f693e1e83a [PIFMGR]
- Add new icons by DSP2003 under CC-BY-SA 4.0 International License Terms (the .ico and the original .png files).
- Use DSP2003's icons wherever possible, otherwise fallback to "alternative" icons or to the placeholder icon. The aim is to finally convert or create all the remaining icons using DSP2003's style.
CORE-10253

svn path=/trunk/; revision=72667
2016-09-13 21:46:47 +00:00
Pierre Schweitzer
7d2b56ccb0 [NTDLL_APITEST]
RtlGenerate8dot3Name: show that we don't deal correctly with checksums while generating short names.

Dedicated to Christoph

svn path=/trunk/; revision=72666
2016-09-13 09:57:52 +00:00
Mark Jansen
02b4119836 [SHELL32] Do not try to call a NULL m_pSF2Parent. CORE-11969 #comment Please retest!
svn path=/trunk/; revision=72662
2016-09-12 18:05:22 +00:00
Aleksandar Andrejevic
c6f8d6fe2c [KS]
The "Add" routine is optional in the KSDEVICE_DISPATCH structure.
KsDevice.Descriptor should be initialized even if there is no device dispatch.


svn path=/trunk/; revision=72661
2016-09-12 03:59:04 +00:00
Hermès Bélusca-Maïto
4fa77bfbc3 [NTDLL]: Fix misspelling.
svn path=/trunk/; revision=72660
2016-09-11 20:40:41 +00:00
Dmitry Chapyshev
6dd9ac5dc5 [USER32] We have to use the copy of DEVMODEA structure (having size expanded on dmDriverExtra) for support of extra data of the driver
svn path=/trunk/; revision=72659
2016-09-11 20:11:35 +00:00
Dmitry Chapyshev
5e9b9699a6 [USER32_APITEST] Add tests for EnumDisplaySettingsA
svn path=/trunk/; revision=72658
2016-09-11 19:50:16 +00:00
Dmitry Chapyshev
35d777891f [USER32] We have to use the copy of DEVMODEW structure (having size expanded on dmDriverExtra) for support of extra data of the driver
* Fixes 16 tests for EnumDisplaySettings

svn path=/trunk/; revision=72657
2016-09-11 19:05:27 +00:00
Christoph von Wittich
0ec1c73cbf [WIN32K] set lasterror in NtGdiCombineRgn
svn path=/trunk/; revision=72656
2016-09-11 17:27:59 +00:00
Dmitry Chapyshev
10c7e5cb30 [NtUser] Try to fix tests for user32:EnumDisplaySettings
svn path=/trunk/; revision=72655
2016-09-11 16:13:46 +00:00
Christoph von Wittich
db1b0cb26d [KERNEL32] set ExitCode when terminating threads in ExitProcess as well
svn path=/trunk/; revision=72654
2016-09-11 13:22:33 +00:00
Christoph von Wittich
63df102547 [WIN32K] add missing parameter check in NtGdiArcInternal
svn path=/trunk/; revision=72653
2016-09-11 09:01:04 +00:00
James Tabor
4e415d8996 [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72652
2016-09-11 00:58:12 +00:00
James Tabor
3e15c24d4c [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72651
2016-09-11 00:58:00 +00:00
James Tabor
cf98f01e86 [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72650
2016-09-11 00:57:38 +00:00
Dmitry Chapyshev
50ce1f1694 [NtUser] Unnecessary check is removed and correct value of an error code is returned
* Fixes 2 tests for win32knt_apitest:NtUserEnumDisplaySettings

svn path=/trunk/; revision=72649
2016-09-10 22:30:53 +00:00
Dmitry Chapyshev
0bbd5c592b [NtUser] Fix 3 new tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS
svn path=/trunk/; revision=72648
2016-09-10 18:39:40 +00:00
Dmitry Chapyshev
5d2a362dda [WIN32KNT_APITEST] Add some tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS. It is checked in win2k3
svn path=/trunk/; revision=72647
2016-09-10 18:36:56 +00:00
Dmitry Chapyshev
47b4a945d2 [NtUser]
- Initialize cbSize for animationinfo
- Use widechar versions of structures

svn path=/trunk/; revision=72646
2016-09-10 17:58:32 +00:00
Dmitry Chapyshev
3776d19ec9 [WIN32KNT_APITEST]
- Remove wrong tests. Win2k3 ignores the size of structure for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS

[NtUser]
- Remove wrong checks

svn path=/trunk/; revision=72645
2016-09-10 16:17:35 +00:00
Eric Kohl
796aa0f7b3 [NTOSKRNL]
Fix lock/unlock order in SeLockSubjectContext/SeUnlockSubjectContext.
Patch by  Volodymyr Shcherbyna.
CORE-11966 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=72644
2016-09-10 13:54:16 +00:00
Christoph von Wittich
e44c624a3e [CRT] sync ischira.c to wine 1.9.16
svn path=/trunk/; revision=72643
2016-09-10 11:40:54 +00:00
Christoph von Wittich
acc28413a5 [CRT] fix build
svn path=/trunk/; revision=72642
2016-09-10 07:18:50 +00:00
Christoph von Wittich
2899d91c28 [CRT] sync wtoi64.c with wine 1.9.16
svn path=/trunk/; revision=72641
2016-09-10 06:52:50 +00:00
Christoph von Wittich
d38c74fa76 [SETUPAPI] sync diskspace.c with wine 1.9.16
svn path=/trunk/; revision=72640
2016-09-10 06:20:10 +00:00
Dmitry Chapyshev
e0009ad353 [NtUser]
- Initialize cbSize filed for HIGHCONTRASTW
- SOUNDSENTRY -> SOUNDSENTRYW
- Add checks of size for SPI_GETHIGHCONTRAST and SPI_SETHIGHCONTRAST

svn path=/trunk/; revision=72639
2016-09-09 23:03:42 +00:00
Dmitry Chapyshev
0774f98a1b [NtUser]
- LPICONMETRICS -> LPICONMETRICSW

svn path=/trunk/; revision=72638
2016-09-09 22:39:25 +00:00
Amine Khaldi
87c6f4541c [WIN32K] Fix the size passed to UserSystemParametersInfo(). Addresses test issues revealed by r72636.
svn path=/trunk/; revision=72637
2016-09-09 22:26:55 +00:00
Dmitry Chapyshev
3d5e037772 [WIN32KNT_APITEST]
- Fix copypasta

[NTUSER]
- User's buffer has to be checked before check of size parameters, differently we cannot safely check the sizes of structures

svn path=/trunk/; revision=72636
2016-09-09 20:44:34 +00:00
Dmitry Chapyshev
5b62af8967 [WIN32NT_APITEST]
- Add some tests for NtUserSystemParametersInfo

svn path=/trunk/; revision=72635
2016-09-09 20:27:31 +00:00
Christoph von Wittich
f5f84ed231 [CRT] add #ifdef for easier syncing
svn path=/trunk/; revision=72634
2016-09-09 17:40:53 +00:00
Christoph von Wittich
a9a1a8f8bd [CRT] sync strxfrm.c to wine-1.9.16
svn path=/trunk/; revision=72633
2016-09-09 17:22:29 +00:00
Christoph von Wittich
77685fe543 [CRT] _strtoi64_l should crash on NULL pointer
svn path=/trunk/; revision=72632
2016-09-09 16:54:55 +00:00
James Tabor
2fa1533cf4 [NtGDI]
- Remove unneeded return sets.

svn path=/trunk/; revision=72630
2016-09-09 15:12:04 +00:00
James Tabor
28d8ba0d3e [NtGDI]
- Fix remaining Path test results. Include Flat Path for Stroke Path. See CORE-4990.

svn path=/trunk/; revision=72628
2016-09-09 15:07:42 +00:00
James Tabor
cefd6ab0a1 [NtGDI]
- Fix Ellipse Path test results. See CORE-4990.

svn path=/trunk/; revision=72627
2016-09-09 14:30:44 +00:00
Dmitry Chapyshev
9434ff082b [WIN32K]
- Add missed checks of size
- Initialize cbSize field of structures

* Fixes 6 tests for win32knt_apitest:NtUserSystemParametersInfo

svn path=/trunk/; revision=72626
2016-09-08 22:46:42 +00:00
James Tabor
895906f45d [NtGDI]
- Fix Path issues, Sync/Port wine. See CORE-4990 (Fill Path painting?), CORE-9612 (Fixed) and CORE-11916 (Fixed). Maybe more.
- Pen width might be related to another issue outside Path. See CORE-2527.

svn path=/trunk/; revision=72625
2016-09-08 22:37:41 +00:00
Amine Khaldi
4e5e90c854 [WIN32K] Add some missing parameter checks. Fixes all but 4 tests in win32knt:NtUserEnumDisplaySettings. By Peter Hater. CORE-11524
svn path=/trunk/; revision=72624
2016-09-08 20:25:30 +00:00
Amine Khaldi
d4b414cc35 [WIN32K] Fix a crash in win32knt:NTUserSystemParametersInfo tests. Brought to you by Peter Hater. CORE-11525
svn path=/trunk/; revision=72623
2016-09-08 20:18:41 +00:00
Thomas Faber
8cb8d2d156 [OLE32]
- Gracefully handle NULL clipbrd in clipbrd_wndproc. This is probably not the right fix, but avoids crashing for now.
CORE-11905

svn path=/trunk/; revision=72622
2016-09-08 11:01:43 +00:00
Amine Khaldi
3b9689a4ea [CRT] Apply Wine commit 190c67c by Piotr Caban: Fix __pioinfo block size. CORE-11866
svn path=/trunk/; revision=72621
2016-09-08 10:56:41 +00:00
Amine Khaldi
6485aa2f27 [USER32_WINETEST] Enable the skipped part of clipboard.c as the issue documented in CORE-11953 doesn't happen in the KVM testbot.
svn path=/trunk/; revision=72620
2016-09-08 09:36:26 +00:00
Aleksandar Andrejevic
be20a14b8c [PSDK]
KsStreamPointerUnlock returns VOID, not NTSTATUS.


svn path=/trunk/; revision=72619
2016-09-08 01:23:06 +00:00
Aleksandar Andrejevic
325efbd59e [PSDK]
Add definitions for KsPinGetLeadingEdgeStreamPointer and KsStreamPointerUnlock.


svn path=/trunk/; revision=72618
2016-09-08 01:18:35 +00:00
Amine Khaldi
1c04786553 [WS2_32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72617
2016-09-07 23:29:52 +00:00
Amine Khaldi
bca9ea7b61 [USER32_WINETEST] Sync with Wine Staging 1.9.18. One skipped part of clipboard.c is documented in CORE-11953
svn path=/trunk/; revision=72616
2016-09-07 23:24:48 +00:00
Amine Khaldi
a38f07f3e8 [SHELL32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72615
2016-09-07 22:45:39 +00:00
Amine Khaldi
450fb4a3d3 [SETUPAPI_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72614
2016-09-07 22:43:09 +00:00
Amine Khaldi
4ec63eee1b [SERVICES_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72613
2016-09-07 22:35:17 +00:00
Amine Khaldi
ae503d62cc [MSVCRT_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72612
2016-09-07 22:34:15 +00:00
Amine Khaldi
89932f2716 [KERNEL32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72611
2016-09-07 22:32:56 +00:00
Amine Khaldi
9018c6fe32 [GDI32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72610
2016-09-07 22:12:51 +00:00
Dmitry Chapyshev
debfd3bfc1 [NTOS]
- Add missed _SEH2_YIELD's

svn path=/trunk/; revision=72609
2016-09-07 18:52:09 +00:00
Dmitry Chapyshev
a039776826 [NTOS:EX]
- Use ExAcquirePushLockShared instead ExAcquirePushLockExclusive (and move it outside enumeration)
- Don't leave a enumeration at ReqSize > Size. It is used for calculation of the size
- ObjectHeader->Type field currupted and I do not know who spoils it. Commented.
- Remove unneeded SEH

svn path=/trunk/; revision=72608
2016-09-07 17:34:17 +00:00
Aleksandar Andrejevic
d97ea85a86 [VGADDI]
Explain how VGA write mode 2 works. No code changes!
CORE-8164


svn path=/trunk/; revision=72607
2016-09-07 14:38:58 +00:00
Amine Khaldi
fc686705cd [CRT] Sync _cputs() with Wine Staging 1.9.16. CORE-11866 CORE-8546
svn path=/trunk/; revision=72606
2016-09-07 09:31:52 +00:00
James Tabor
dc4261f3eb [Win32k]
- Fix a crash while running modified stress test with explorer. See CORE-11913.

svn path=/trunk/; revision=72605
2016-09-07 06:33:44 +00:00
James Tabor
183626a804 [NtGdi]
- Remove Path for MoveTo and Polyline. It is not needed.
- Fix build.

svn path=/trunk/; revision=72604
2016-09-07 03:24:12 +00:00
James Tabor
c2a9c48bbf [NtGdi]
- Remove Path for MoveTo. It is not needed.

svn path=/trunk/; revision=72603
2016-09-07 03:20:18 +00:00
Aleksandar Andrejevic
7049508b80 [PSDK]
Add a definition for KsReleaseDevice to ks.h.


svn path=/trunk/; revision=72602
2016-09-07 01:16:47 +00:00
Ged Murphy
2852cc21e8 [PSDK]
- Add flt error codes to winerror.h

svn path=/trunk/; revision=72601
2016-09-06 20:53:43 +00:00
Ged Murphy
d7b8883f0c Stub 'LoadString(UINT)'
svn path=/trunk/; revision=72600
2016-09-06 20:30:13 +00:00
Ged Murphy
fc9eaeb551 try to fix unix build
svn path=/trunk/; revision=72599
2016-09-06 20:26:26 +00:00
Ged Murphy
cb088390cd [FLTMC]
- Add fltmc to the build
- Add some resource files for translation

svn path=/trunk/; revision=72598
2016-09-06 20:22:04 +00:00
Ged Murphy
245e4929bd [FLTMGR]
- We can now swap the 2k3 fltmgr with ours and successfully boot windows, so we can use the same name from here on.
- Start type is still demand as I've not done too much testing in ros, but it seems to be boot and run fine, so can be changed to boot start for anyone wanting to experiment a bit.

svn path=/trunk/; revision=72597
2016-09-06 17:10:14 +00:00
Ged Murphy
0674b88a50 [FLTMGR]
- Set correct major and minor versions
- Update the cmakelist file
- Export FltRegisterFilter and FltUnregisterFilter
- Minor cleanup

svn path=/trunk/; revision=72596
2016-09-06 17:03:27 +00:00
Ged Murphy
abe4dbbca0 [FLTMGR]
- Add stubs for context registration
- Add dispatch and device control handlers
- Implement the load IOCTL. We can now load minifilters with 'fltmc load <myfilter>'

svn path=/trunk/; revision=72595
2016-09-06 16:59:11 +00:00
Ged Murphy
2c3c2095fb [FLTMGR]
- Implement FltLoadFilter and stub FltUnloadFilter
- Register contexts if the caller requests (coming later)
- Stubpliment FltStartFiltering

svn path=/trunk/; revision=72594
2016-09-06 16:47:43 +00:00
Ged Murphy
72ae4c113e [FLTMGR]
- Properly handle requests that were sent directly to the fltmgr instead of sending them down the stack
- Add a separate callback for IRP_MJ_DEVICE_CONTROL and forward them on to an internal handler
- We can now open a handle to the fltmgr and send IOCTLs down to it.

svn path=/trunk/; revision=72593
2016-09-06 16:33:46 +00:00
Ged Murphy
4e466b10df Turn off building of the fltmgr for now while I (slowly) update it.
svn path=/trunk/; revision=72592
2016-09-06 16:27:38 +00:00
Ged Murphy
e37e1f59d3 [FLTLIB]
- On load, open a handle to fltmgr, not the target driver...
- Fixup the load data we send to the fltmgr to be the same Windows layout. We need to copy this interface to allow component sharing between windows and ros.
- Move IOCTLs to shared header

svn path=/trunk/; revision=72591
2016-09-06 15:52:38 +00:00
Ged Murphy
6cc00bad38 [FLTMGR]
- Add a header for sharing data between fltlib and fltmgr

svn path=/trunk/; revision=72590
2016-09-06 15:48:44 +00:00
Amine Khaldi
70a9414c61 [CRT] Reduce difference of file.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72589
2016-09-06 10:04:29 +00:00
Amine Khaldi
3f38d71d2d [CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test regressions. CORE-11866 CORE-11949
svn path=/trunk/; revision=72588
2016-09-05 22:39:59 +00:00
Amine Khaldi
8d8f918c2c [CRT] Sync msvcrt_flush_buffer(), add_std_buffer() and remove_std_buffer() with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72587
2016-09-05 20:58:12 +00:00
Dmitry Chapyshev
f57de63a06 [RTL]
- It is impossible to look for multi byte char in single byte table

svn path=/trunk/; revision=72586
2016-09-05 19:14:22 +00:00
Dmitry Chapyshev
e8b1768ca7 [RTL]
- Use correct table for multibyte code page

svn path=/trunk/; revision=72585
2016-09-05 17:44:05 +00:00
Dmitry Chapyshev
05a9507394 [RTL]
- NlsDbcsUnicodeToAnsiTable -> NlsUnicodeToMbAnsiTable, NlsDbcsUnicodeToOemTable -> NlsUnicodeToMbOemTable
- Change types to USHORT (its not PWCHAR's)

svn path=/trunk/; revision=72584
2016-09-05 17:32:06 +00:00
Thomas Faber
ee0aa584d8 [USBEHCI]
- Correct the definition of END_POINT_CAPABILITIES. Brought to you by Vadim Galyant.
CORE-11893 #resolve
CORE-9296

svn path=/trunk/; revision=72583
2016-09-05 13:06:26 +00:00
Christoph von Wittich
aca10fa72a [SHELL32] fix some typos
svn path=/trunk/; revision=72582
2016-09-05 07:52:52 +00:00
Dmitry Chapyshev
abdc65593f [KMTEST]
- Add null-pointer test for RtlIsValidOemCharacter

svn path=/trunk/; revision=72581
2016-09-04 23:15:08 +00:00
Dmitry Chapyshev
468c2342d6 [RTL]
- Implement RtlIsValidOemCharacter function

* Fixes all new tests for this function

svn path=/trunk/; revision=72580
2016-09-04 22:57:44 +00:00
Dmitry Chapyshev
1a8c432587 [KMTEST]
- Implement tests for RtlIsValidOemCharacter function

svn path=/trunk/; revision=72579
2016-09-04 22:15:53 +00:00
Christoph von Wittich
e3b66d324c [SHELL32] sync CQueryAssociations.cpp with wine
svn path=/trunk/; revision=72578
2016-09-04 20:10:29 +00:00
Amine Khaldi
7028633b58 [BTRFS][ZLIB] Addendum to r72576. CORE-11937
svn path=/trunk/; revision=72577
2016-09-04 17:31:50 +00:00
Pierre Schweitzer
74750c6d1a [BTRFS]
Sync btrfs to 0.6.

CORE-11937

svn path=/trunk/; revision=72576
2016-09-04 15:27:46 +00:00
Pierre Schweitzer
2d33d95a7b [ZLIB]
Revert r72574

svn path=/trunk/; revision=72575
2016-09-04 15:15:01 +00:00
Pierre Schweitzer
329d454546 [ZLIB]
When building zlib, only build portable functions so that we have a portable library.

CORE-11937

svn path=/trunk/; revision=72574
2016-09-04 15:11:26 +00:00
Mark Jansen
3eb3d2d909 [SHELL32] Use the new ShellDimScreen function to fade the background on logoff / shutdown dialogs. CORE-11422 #resolve
svn path=/trunk/; revision=72573
2016-09-04 14:18:41 +00:00
Mark Jansen
87a716926b [MSGINA] Implement ShellDimScreen. CORE-11422
svn path=/trunk/; revision=72572
2016-09-04 14:17:22 +00:00
Hermès Bélusca-Maïto
6a5543002e [NTVDM]: Improve a bit the WOW16 "unsupported" warning message. See CORE-10323
svn path=/trunk/; revision=72571
2016-09-04 11:46:08 +00:00
Amine Khaldi
c15ef5b516 [CRT] Sync undname.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72570
2016-09-04 09:04:00 +00:00
Christoph von Wittich
67e98141b8 [USER32] Fix use-after-free. wine patch by Thomas Faller
svn path=/trunk/; revision=72569
2016-09-04 08:57:52 +00:00
Amine Khaldi
25c33a9dae [SHELL32] Partially sync shlmenu.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72568
2016-09-04 08:57:08 +00:00
Christoph von Wittich
4d464164e8 [SDK] sync undname.c to wine 1.9.16
svn path=/trunk/; revision=72567
2016-09-04 08:54:06 +00:00
Christoph von Wittich
d054078c72 [SHELL32] some minor wine syncs
svn path=/trunk/; revision=72566
2016-09-04 08:44:20 +00:00
Christoph von Wittich
cd73072e50 [SETUPAPI] Remove dead code. wine patch by André Hentschel
svn path=/trunk/; revision=72565
2016-09-04 08:17:41 +00:00
Christoph von Wittich
b0d2f91e07 [ADVAPI32] Use proper enum member to initialize SECURITY_IMPERSONATION_LEVEL variable wine patch by Nikolay Sivov
svn path=/trunk/; revision=72564
2016-09-04 08:11:52 +00:00
Christoph von Wittich
068c14debb [USER32] on't overwrite 'cb' field with uninitialized data in DdeQueryConvInfo() patch by Nikolay Sivov
svn path=/trunk/; revision=72563
2016-09-04 08:03:23 +00:00
Christoph von Wittich
0bf3b4e81b [PSDK] fix typo
svn path=/trunk/; revision=72562
2016-09-04 07:57:03 +00:00
Christoph von Wittich
9eae1a4984 [SHELL32] add DECLSPEC_HOTPATCH to WinExec function (wine patch from Jacek Caban)
svn path=/trunk/; revision=72561
2016-09-04 07:50:55 +00:00
Christoph von Wittich
09dc7fbe19 [SHELL32] sync shellole.c with wine 1.9.16
svn path=/trunk/; revision=72560
2016-09-04 07:48:41 +00:00
Christoph von Wittich
55a37c4abb shell32: Do nothing if we can't convert PIDL to path in SHAddToRecentDocs (wine commit from Vincent Povirk)
svn path=/trunk/; revision=72559
2016-09-04 07:08:50 +00:00
Christoph von Wittich
4025100ad8 [NTOS] addenum to r72556
svn path=/trunk/; revision=72558
2016-09-04 06:20:53 +00:00
Dmitry Chapyshev
76de8ee7ce [RTL]
- Formatting only (no code changes)

svn path=/trunk/; revision=72557
2016-09-03 22:43:29 +00:00
Hermès Bélusca-Maïto
6d4d06afbb [NTOS]: Fix comments & increase code readability by directly using InterlockedIncrement.
svn path=/trunk/; revision=72556
2016-09-03 22:07:53 +00:00
Dmitry Chapyshev
2e18ad193c [NTOS:KE]
- Don't set value for DpcActive in KeInitializeMutant and KeInitializeMutex

* Fixes 55 tests in kmtest:KeMutex

svn path=/trunk/; revision=72555
2016-09-03 21:48:21 +00:00
Dmitry Chapyshev
8612af94d2 [NTOS:IO]
- Implement Lookaside Floats allocations in IoAllocateIrp and IoFreeIrp

* Fixes 2 tests in kmtest:IoIrp

svn path=/trunk/; revision=72554
2016-09-03 21:25:45 +00:00
Eric Kohl
7dc1fbc420 [SAMSRV]
Implement SamrSetSecurityObject.

svn path=/trunk/; revision=72553
2016-09-03 19:45:09 +00:00
Dmitry Chapyshev
f77ed4dcd6 [NTOS:IO]
- Add dismount checking (function should behave the same in the fastio and the slow case)
- Fix comment

svn path=/trunk/; revision=72552
2016-09-03 19:10:09 +00:00
Dmitry Chapyshev
d94cfe79f5 [NTOS:EX]
- Reset of count of handles prior to enumeration
See issue 11928 for more details.

svn path=/trunk/; revision=72551
2016-09-03 18:52:22 +00:00
Mark Jansen
865a118a60 [ADVAPI32] Do not report failure when closing a predefined registry key.
svn path=/trunk/; revision=72550
2016-09-03 16:31:27 +00:00
Mark Jansen
e61bc91d97 [APPHELP][APPHELP_APITEST] Partially implement SdbGetMatchingExe, SdbInitDatabase and SdbTagRefToTagID. CORE-10367
- SdbGetMatchingExe, SdbInitDatabase partial implementation by Mislav Blažević
- Tests by me, they pass on vista - win10. (Win2k3 has another struct layout)
- Move shared test functions to a common header
- SdbTagRefToTagID misses functionality related to multiple databases, but that is not supported anywhere yet.

svn path=/trunk/; revision=72549
2016-09-03 16:20:52 +00:00
Dmitry Chapyshev
212b70142c [NTOS:IO]
- Fix potential null-pointer dereferencing (we call IopCleanupAfterException in IopDeviceFsIoControl with Irp == NULL)

svn path=/trunk/; revision=72548
2016-09-03 15:49:55 +00:00
Eric Kohl
6c6813d7f7 [SAMSRV]
SamrQuerySecurityObject: Return security information according to the SecurityInformation parameter.

svn path=/trunk/; revision=72547
2016-09-03 15:06:20 +00:00
Dmitry Chapyshev
0a7f15c9c6 [NTOS:IO]
- IopDeviceFsIoControl is paged code
- Incorrect logic at when processing the IsDevIoCtl parameter

svn path=/trunk/; revision=72546
2016-09-03 15:02:57 +00:00
Dmitry Chapyshev
174d181e5c [NTOS:IO]
- It is paged code
- We do not compare with TRUE

svn path=/trunk/; revision=72545
2016-09-03 13:26:27 +00:00
Amine Khaldi
af3b7ffad5 [CRT] Apply Wine commit 21fd1d3 by Nikolay Sivov: Fix calloc() prototype. CORE-11866
svn path=/trunk/; revision=72544
2016-09-03 13:23:43 +00:00
Amine Khaldi
7dfe459bdf [CRT] Reduce difference of file.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72543
2016-09-03 12:40:59 +00:00
Dmitry Chapyshev
006abaebe6 [NTOS:FSRTL]
- Rework FsRtlIsHpfsDbcsLegal is similar FsRtlIsFatDbcsLegal

* Fixes 30 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72542
2016-09-03 10:47:21 +00:00
Amine Khaldi
44bb873f32 [RTL] Partially sync actctx.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72541
2016-09-03 10:46:01 +00:00
Amine Khaldi
8ba1bd92d3 [CRT] Apply Wine commit d3a48ee by Piotr Caban: Only check for flag presence in isatty function. CORE-11866 CORE-11904
svn path=/trunk/; revision=72540
2016-09-03 10:32:43 +00:00
Dmitry Chapyshev
f99009a18b [NTOS:FSRTL]
- The order of operations is changed
- Added check on availability of a '.' with a length of name of 8 and more characters (In 8.3 filename has to be a '.')
- Lead DBCS cannot precede the end of a filename

* Fixes 90 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72539
2016-09-03 00:37:51 +00:00
Mark Jansen
1f8f7ffbe8 [ICMP] Fix IcmpCloseHandle crashing on NULL handle. Patch by Tim Crawford. CORE-10707 #resolve #comment Thanks!
svn path=/trunk/; revision=72538
2016-09-02 21:47:05 +00:00
Hermès Bélusca-Maïto
8f1b88d617 [NDK]: Fix size of reserved member of the RTL_HEAP_INFORMATION structure, signaled by https://github.com/subTee/native-nt-toolkit/issues/5 and confirmed by Process Hacker headers.
svn path=/trunk/; revision=72537
2016-09-02 21:21:00 +00:00
Hermès Bélusca-Maïto
c986fba6d1 [NDK][UNIATA]: Fix typo. See https://github.com/subTee/native-nt-toolkit/issues/2 .
svn path=/trunk/; revision=72536
2016-09-02 21:09:56 +00:00
Dmitry Chapyshev
2725eb9e0b [NTOS:FSRTL]
- The name of the file can be shorter than 3 symbols

* Fixes 36 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72535
2016-09-02 20:21:02 +00:00
Dmitry Chapyshev
dff1c73022 [GDI32]
- ConvertBitmapInfo returns value of the cjInfoSize variable. We should not ignore this value. Checks are added
- The call of CalculateColorTableSize is not necessary, its value was already returned by ConvertBitmapInfo.

* Fixes 9 tests for gdi32_apitest CreateDIBitmap

svn path=/trunk/; revision=72534
2016-09-02 15:40:32 +00:00
Jérôme Gardou
9598f87c7c [KDGDB]
- Better report kernel stack (real back traces for all threads!)
 - Support reporting loaded libraries (== drivers, hal, etc.). You can even debug KDGDB inside KDGDB :-)
 - A few improvements here and there
CORE-8531

svn path=/trunk/; revision=72533
2016-09-01 22:58:15 +00:00
Dmitry Chapyshev
24834c0492 [NTOS:PS]
- Use ProbeForRead instead ProbeForWrite (ProbeForWrite is a behavior which was in win2000)
- Set returned length after checking buffer size (ntdll_apitest NtQueryInformationProcess has tests only for ProcessTimes, but I checked other cases and always Length is set after check of the size)

* Fixes 4 tests in ntdll_apitest NtQueryInformationProcess (all NtQueryInformationProcess tests passed now)

svn path=/trunk/; revision=72532
2016-09-01 22:38:25 +00:00
Dmitry Chapyshev
e72b567d4e [NTOS:EX]
- More correct exit on failure

svn path=/trunk/; revision=72531
2016-09-01 18:22:48 +00:00
Dmitry Chapyshev
125c4571ad [NTOS:EX]
- Use all handles enumeration in system instead of enumeration for each process
See issue 11906 for more details.

svn path=/trunk/; revision=72530
2016-09-01 16:39:54 +00:00
James Tabor
27e451c99f [NtGDI]
- Allocate initial entries for paths.

svn path=/trunk/; revision=72529
2016-09-01 06:53:28 +00:00
Dmitry Chapyshev
170bf20513 [NTOS:EX]
- Try to fix CORE-11906
See issue 11906 for more details.

svn path=/trunk/; revision=72528
2016-08-31 21:29:40 +00:00
Hermès Bélusca-Maïto
06c287d000 [README]
- Show our URLs using https.
- Add a "FAQ" section to point to the corresponding website URL; feel free to improve the section!

svn path=/trunk/; revision=72527
2016-08-31 21:22:37 +00:00
Mark Jansen
e54a97258b [SHELL32] Disable some controls for a network drive. Patch by Jared Smudde. CORE-11897 #resolve #comment Thanks!
svn path=/trunk/; revision=72526
2016-08-31 21:15:57 +00:00
James Tabor
a83d5e5fe6 [Win32SS]
- Patch by Sebastian Lackner : Do not block sending/posting WM_NOTIFY messages.
- Sync/Port : Fix more msg:msg_queue:test_notify_message results.

svn path=/trunk/; revision=72525
2016-08-31 21:14:35 +00:00
Amine Khaldi
cdce72e067 [BROWSEUI] Present "Is ReactOS legal" in ReactOS readme file. By Joachim Henze. CORE-11800
svn path=/trunk/; revision=72524
2016-08-31 20:54:51 +00:00
James Tabor
1ed7f14359 [NtUser]
- Fixed one of the msg:msg_paint:test_paint_messages while looking for another issue. See CORE-7166.

svn path=/trunk/; revision=72523
2016-08-31 20:38:09 +00:00
James Tabor
684902c4cc [NtUser]
- Fix test results for msg:msg_queue:test_broadcast.

svn path=/trunk/; revision=72522
2016-08-31 17:59:41 +00:00
James Tabor
8496d0aa2e [NtGDI]
- Patch by Sebastian Gasiorek : Fix incorrect placement of the text in the Tab buttons. Implement TA_UPDATECP. See CORE-1578 and CORE-11415.

svn path=/trunk/; revision=72521
2016-08-31 16:20:57 +00:00
James Tabor
303ece2421 [User32]
- MDI Sync/Port from wine head, not sure about Staging.

svn path=/trunk/; revision=72520
2016-08-31 16:05:34 +00:00
Aleksandar Andrejevic
a809e4ff02 [NTVDM:BIOS]
The 640x480x256 video mode has 640 bytes per scanline.


svn path=/trunk/; revision=72519
2016-08-31 15:37:53 +00:00
Aleksandar Andrejevic
724065020c [NTVDM:SVGA]
Halfplement (or perhaps hackplement) SVGA packed pixel addressing.


svn path=/trunk/; revision=72518
2016-08-31 05:38:56 +00:00
James Tabor
17a315285a [NtUser]
- Fix mouse move auto selecting while tracking popup menu. See CORE-2338.

svn path=/trunk/; revision=72517
2016-08-31 02:24:14 +00:00
Aleksandar Andrejevic
81b5e2b655 [NTVDM:BIOS]
Implement VESA function AH = 07h.


svn path=/trunk/; revision=72516
2016-08-30 22:52:49 +00:00
Dmitry Chapyshev
622507d06f [WIN32K]
- Stubpliment UOI_FLAGS flag in NtUserGetObjectInformation

* Fixes 32 tests in user32_apitest GetUserObjectInformation

svn path=/trunk/; revision=72515
2016-08-30 21:45:39 +00:00
Aleksandar Andrejevic
8c89d519a9 [NTVDM:SVGA]
Chain-4 addressing isn't really the same as packed-pixel addressing.
Also, fix a bug in the optimized odd/even mode reading code.


svn path=/trunk/; revision=72514
2016-08-30 21:07:26 +00:00
James Tabor
aa033a5fc4 [NtUser]
- Fix crash while using mouse or keyboard for menu selection in UxThmeme.
- Sync/Ports and copy paste error fixes.

svn path=/trunk/; revision=72513
2016-08-30 19:30:45 +00:00
Dmitry Chapyshev
2ef1af40a1 [KERNEL32]
- Failure if does not come to an end a way with a symbol '\' (exception - a path of a looks like 'C:')

* Fixes 2 tests for kernel32_apitest GetDriveType (all tests for GetDriveType passed now)

svn path=/trunk/; revision=72512
2016-08-30 19:22:00 +00:00
Dmitry Chapyshev
779ba0d221 [KERNEL32]
- Initialization of a string before obtaining information

* Fixes 2 tests for kernel32_apitest GetComputerNameEx (all tests passed now)

svn path=/trunk/; revision=72511
2016-08-30 17:36:01 +00:00
Dmitry Chapyshev
cc64f06a82 [RTL]
- Remove unneeded type-casts

svn path=/trunk/; revision=72510
2016-08-30 16:28:47 +00:00
Dmitry Chapyshev
7b880d99d0 [RTL]
- The Condition parameter every time is compared to VER_EQUAL, but does not change thus. This behavior wrong. We have to receive new Condition every time

* Fixes 7 tests in kernel32_winetest version (all tests passed now)

svn path=/trunk/; revision=72509
2016-08-30 15:10:07 +00:00
Aleksandar Andrejevic
8622e4ccf9 [NTVDM:EMS]
Implement EMS function 4E/03: "Get Size of Page-Mapping Array".


svn path=/trunk/; revision=72508
2016-08-30 02:13:40 +00:00
Dmitry Chapyshev
9df6fe4496 [NTOS:EX]
- Remove duplicate check

svn path=/trunk/; revision=72507
2016-08-29 21:11:01 +00:00
Dmitry Chapyshev
5168c15faa [NTOS:EX]
- Blocking of the user buffer before obtaining information
- Use of ObpGetHandleObject macro for receiving ObjectHeader
- Remove duplicate NULL pointer check for HandleTableEntry

svn path=/trunk/; revision=72506
2016-08-29 20:41:23 +00:00
Hermès Bélusca-Maïto
c56713f129 [CRT]: Fix typo. Thanks DopefishJustin:)
svn path=/trunk/; revision=72505
2016-08-29 16:44:21 +00:00
Hermès Bélusca-Maïto
499b414a4b [DOSKEY]
Our kernel32.lib already exports all of the console API and in particular the console history API, so we can directly link doskey against it and use them, instead of delay-loading at runtime. We just need to add their prototypes in the source code since they are not declared by wincon.h by default.

svn path=/trunk/; revision=72504
2016-08-29 15:39:19 +00:00
Mark Jansen
1dd7857278 [APPHELP][APPHELP_APITEST] Partially implement SdbMakeIndexKeyFromString
svn path=/trunk/; revision=72503
2016-08-29 15:19:55 +00:00
Mark Jansen
71ad0a0f9b [INCLUDE/WINE] Update test.h with a debug function for longlong.
Disabled by default because it introduces a new dependency on ntdll (_aullshr)

svn path=/trunk/; revision=72502
2016-08-29 15:16:50 +00:00
Hermès Bélusca-Maïto
99a31b3e64 [SHELL32]: We are not Windows! (and not completely Wine either).
svn path=/trunk/; revision=72501
2016-08-29 14:30:51 +00:00
Mark Jansen
0c589e512f Fix the build for msvc users.
svn path=/trunk/; revision=72500
2016-08-29 13:15:44 +00:00
Mark Jansen
820426939a [ATL][SHELL32] Add basic support for _ATL_NO_EXCEPTIONS in CString, use it in shell32 so that we can link without exception support. CORE-11841 #comment Please retest!
svn path=/trunk/; revision=72499
2016-08-29 12:29:45 +00:00
Aleksandar Andrejevic
93b57a7a0f [NTVDM:SVGA]
Don't forget to adapt the console attaching code to the new transposed video
memory, and certainly don't forget to make sure the ScanlineSizeLatch and
StartAddressLatch have the correct values before calling VgaVerticalRetrace.


svn path=/trunk/; revision=72498
2016-08-29 04:31:02 +00:00
Jérôme Gardou
0e07d3b761 [NTOS/MM]
- Shuffle parameter chacks in NtMapViewOfSection to make kmtest pass more of them
 - Restore previously lost check on ZeroBits against 21. Use the architecture specific define
 - Better check for ZeroBits and ViewSize

svn path=/trunk/; revision=72497
2016-08-28 21:07:51 +00:00
Aleksandar Andrejevic
78bb256379 [NTVDM:BIOS]
Implement mode 0x5F, otherwise known as VESA mode 0x101 (640x480 256 colors).


svn path=/trunk/; revision=72496
2016-08-28 20:15:03 +00:00
Jérôme Gardou
097bbc5c95 [WIN32SS/USER32]
- Do not mask exceptions from WndProc. If this makes programs crash, fine, fix it, but DON'T HIDE BUGS.
 - Use a wrappper (like wine does) to handle procs with bad calling conventions
ROSTESTS-155 : Please retest, user32 got in the way and masked the exception handler the wine test installed

svn path=/trunk/; revision=72495
2016-08-28 20:04:01 +00:00
Jérôme Gardou
665e8ea561 [NTOS/MM]
- Do not assert on transitions PTEs, we handle them just fine
ROSTESTS-155

svn path=/trunk/; revision=72494
2016-08-28 19:59:13 +00:00
Jérôme Gardou
3bb511ea04 [NTOS/MM]
- Properly chain events when reading a page from disk, aka don't wait on events allocated on the stack of another thread
 - Use proper type pointers, compilers sometimes help making things right

svn path=/trunk/; revision=72493
2016-08-28 19:53:27 +00:00
Dmitry Chapyshev
f25358387b [NTOS:EX]
- Remove duplicate checks

svn path=/trunk/; revision=72492
2016-08-28 19:28:41 +00:00
Dmitry Chapyshev
7fe5f71795 [NTOS]
- Use ExpLookupHandleTableEntry function for enumerate handles of process
- Filling handle information
- Setting ReqSize value before check of the size

* Fixes 2 tests ntdll_winetest info

svn path=/trunk/; revision=72491
2016-08-28 19:18:28 +00:00
Thomas Faber
cc9a7f1482 [NTOS:MM]
- Add MmSysPteIndex, MmSysPteTables and MmSysPteListBySizeCount to make WinDbg's !sysptes extension happy

svn path=/trunk/; revision=72490
2016-08-28 18:03:41 +00:00
Aleksandar Andrejevic
493ad03e52 [NTVDM:SVGA]
Fix the refresh rate calculation, again.


svn path=/trunk/; revision=72489
2016-08-28 16:17:14 +00:00
Dmitry Chapyshev
75ece18c55 [RTL]
- Implement IS_TEXT_UNICODE_DBCS_LEADBYTE flag

* Fixes 4 new tests in advapi32_apitest

svn path=/trunk/; revision=72488
2016-08-28 16:08:25 +00:00
Dmitry Chapyshev
85d39f7ebe [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_DBCS_LEADBYTE flag

[SDK]
- Add missed IS_TEXT_UNICODE_DBCS_LEADBYTE definition

svn path=/trunk/; revision=72487
2016-08-28 15:59:29 +00:00
Dmitry Chapyshev
af19896deb [RTL]
- Implement IS_TEXT_UNICODE_ILLEGAL_CHARS and IS_TEXT_UNICODE_ASCII16 flags

* It fixes 7 tests for the IsTextUnicode function in advapi32_apitest. All tests passed now

svn path=/trunk/; revision=72486
2016-08-28 11:05:01 +00:00
Thomas Faber
25d05a1982 [USBHUB]
- Return the correct pointer when handling TargetDeviceRelation, and avoid unnecessarily allocating from NonPagedPool. Patch by Vardan Mikayelyan, merged from r72376.

svn path=/trunk/; revision=72485
2016-08-28 10:52:40 +00:00
Dmitry Chapyshev
c49c7bb373 [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_ILLEGAL_CHARS flag (not passed on ReactOS)

svn path=/trunk/; revision=72484
2016-08-28 10:42:32 +00:00
Jérôme Gardou
92a722fd03 [NTOS/MM]
- NtQuerySection : Add initial support for ARM3 sections

svn path=/trunk/; revision=72483
2016-08-28 09:38:54 +00:00
Thomas Faber
4359ce1117 [NTOS:MM]
- Improve a debug print

svn path=/trunk/; revision=72482
2016-08-28 08:17:03 +00:00
Aleksandar Andrejevic
c93742a831 [NTVDM:BIOS]
Properly implement INT 15h, AH = 86h.


svn path=/trunk/; revision=72481
2016-08-28 02:00:10 +00:00
Aleksandar Andrejevic
fd7db0e65b [NTVDM:SVGA]
Fix the refresh rate calculation.


svn path=/trunk/; revision=72480
2016-08-28 01:53:52 +00:00
Aleksandar Andrejevic
3ecb5aa01a [NTVDM:SVGA]
Fix read mode 1.


svn path=/trunk/; revision=72479
2016-08-27 23:40:44 +00:00
James Tabor
b4743181f7 - Fix GCC build.
svn path=/trunk/; revision=72478
2016-08-27 23:05:51 +00:00
Aleksandar Andrejevic
4966051e96 [NTVDM]
Move the framebuffer update to the start of the display cycle to reduce tearing.
Stabilize the IPS calculation.


svn path=/trunk/; revision=72477
2016-08-27 21:55:34 +00:00
Dmitry Chapyshev
e5bc9e5062 [RTL]
- Implement IS_TEXT_UNICODE_REVERSE_ASCII16, IS_TEXT_UNICODE_REVERSE_STATISTICS flags
- Fix IS_TEXT_UNICODE_STATISTICS

* It fixes 2 tests for RtlIsTextUnicode function. Now all rtlstr in winetest are passed successfully

svn path=/trunk/; revision=72476
2016-08-27 20:18:18 +00:00
Hermès Bélusca-Maïto
148354095a [HAL]
Update the PCI hardware IDs database. Extracted from the pci.ids database from http://pci-ids.ucw.cz/ from 2016-08-26 03:15:02
Maintained by Albert Pool, Martin Mares, and other volunteers from the PCI ID Project at http://pci-ids.ucw.cz/.
CORE-11903 #resolve

svn path=/trunk/; revision=72475
2016-08-27 19:12:11 +00:00
Aleksandar Andrejevic
1bfb13f4fb [NTVDM:SVGA]
Properly implement the vertical retrace interval. The starting address and the
scanline size are calculated at the start, and the actual update is performed at
the end. This allows software to change the pixel panning and some other
parameters during the vertical retrace.
Also, normalize the CRTC register names.


svn path=/trunk/; revision=72474
2016-08-27 17:10:08 +00:00
Jérôme Gardou
acd35552c3 [NTOS/MM]
- Addendum to r72472 : address nodes are not VADs for the base section AVL table
CORE-11900

svn path=/trunk/; revision=72473
2016-08-27 13:22:17 +00:00
Jérôme Gardou
707280b695 [NTOS/MM]
- Keep the control area as being created through the whole creation process in MmCreateArm3Section
 - Use the segment length to find a suitable place for SEC_BASED sections
 - Properly remove the global section node when deleting a based section
CORE-11900 #resolve

svn path=/trunk/; revision=72472
2016-08-27 13:17:10 +00:00
Thomas Faber
5c207cc611 [USBHUB]
- Fix memory leaks in failure case of CreateUsbChildDeviceObject. Patch by Vardan Mikayelyan, merged from r72366.

svn path=/trunk/; revision=72471
2016-08-27 11:29:42 +00:00
James Tabor
c064e95689 [NtUser]
- Fix crash when there are no system cursors created. See CORE-11899.

svn path=/trunk/; revision=72470
2016-08-26 23:43:19 +00:00
Jérôme Gardou
2215ccef67 [NTOS/MM]
- Fix ZeroBits check in NtMapViewOfSection
 - Implement handling MEM_DOS_LIM AllocationType
This fixes all but a few NtMapViewOfSection (due to some temp file not being removed) wine tests + tests from 72468


svn path=/trunk/; revision=72469
2016-08-26 21:15:06 +00:00
Jérôme Gardou
9726a48493 [NTDLL_APITEST]
- Add some tests which show how Windows handles the ZeroBits argument

svn path=/trunk/; revision=72468
2016-08-26 21:08:24 +00:00
Jérôme Gardou
c0b63bd391 [KDGDB]
- Add a ugly and grotesque hack to give "o" back to RtlAssert so that we actually break on ASSERTs
 - Check for the breakpoint instruction for deciding when to move forward the ProgramCounter. This is OK since KD removes all breakpoints set when hitting a soft BP


svn path=/trunk/; revision=72467
2016-08-26 21:07:27 +00:00
Hermès Bélusca-Maïto
2e18c7a3cf Fix translation (cf. r72465) CORE-11763
svn path=/trunk/; revision=72466
2016-08-26 11:09:34 +00:00
Amine Khaldi
4959899003 * Please at least compile before committing patches. CORE-11763
svn path=/trunk/; revision=72465
2016-08-26 10:53:33 +00:00
Aleksandar Andrejevic
5aa44019cc [NTVDM:SVGA]
Implement the extended wrapping control (64 KB / 1 MB).
Transpose the video memory so that it corresponds to chain-4 and packed-pixel
modes. This allows us to optimize video memory access, since the majority of all
SVGA modes are packed-pixel. Only VgaReadMemory has been optimized so far.


svn path=/trunk/; revision=72464
2016-08-26 01:22:00 +00:00
Hermès Bélusca-Maïto
5108bc5af6 [CMAKE]: Update baseaddress_msvc.cmake with the updated scripts from CORE-11382 , with RTC1 enabled so that we get a bit of space margin. Dedicated to Thomas Faber :)
svn path=/trunk/; revision=72463
2016-08-25 18:26:13 +00:00
Hermès Bélusca-Maïto
c1a625b590 [IERUNONCE]: CORE-11763 #comment Addendum to r72456 : comment out one of the IDS_INCORRECTFORMAT strings (since only one can exist at a time!). Somebody (Sergey?) should choose the best translation between the two. Also re-add the original IDS_NOEXPORT string that just vanished out.
svn path=/trunk/; revision=72461
2016-08-25 17:13:24 +00:00
Hermès Bélusca-Maïto
d099454223 [TRANSLATIONS]: Update russian translation, by 'amber'.
CORE-11510 #comment Only the translations that did not collide with existing ones were committed! Please recheck :)

svn path=/trunk/; revision=72460
2016-08-25 14:32:50 +00:00
Thomas Faber
640b2bece9 [MSTSC]
- Unbreak build

svn path=/trunk/; revision=72458
2016-08-25 12:08:58 +00:00
Hermès Bélusca-Maïto
890ccaa0c2 [SHORTCUTS]: Update russian translations, by 'amber'.
CORE-11510

svn path=/trunk/; revision=72457
2016-08-25 10:49:37 +00:00
Hermès Bélusca-Maïto
70fe9b43c2 [TRANSLATIONS][ACPPAGE][IERNONCE]: Update ReactOS russian translation, by Sergey Stopkin.
CORE-11763 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72456
2016-08-25 10:44:39 +00:00
Hermès Bélusca-Maïto
d6026c7465 [TRANSLATIONS][USETUP][EXPLORER]: Update ReactOS russian translation, by Kudratov Olimjon. Part 2
CORE-11636

svn path=/trunk/; revision=72455
2016-08-25 10:35:42 +00:00
Hermès Bélusca-Maïto
10c087b83b [TRANSLATIONS]: Update ReactOS russian translation, by Kudratov Olimjon. Part 1
CORE-11636

svn path=/trunk/; revision=72454
2016-08-25 10:22:26 +00:00
Aleksandar Andrejevic
d26178a938 [TRANSLATIONS]
Japanese translations for the following libraries: browseui, credui, ieframe,
iernonce, msports, msvfw32, mycomput, oleacc, samsrv, serialui, shimgvw, and
wldap32.
Patch by Katayama Hirofumi MZ. Thanks!
CORE-11884 #resolve #comment Committed in revision r72452.


svn path=/trunk/; revision=72452
2016-08-25 03:44:29 +00:00
Aleksandar Andrejevic
e7339745af [NTVDM:BIOS]
Implement VBE function AH = 0x05, "CPU Video Memory Control".


svn path=/trunk/; revision=72451
2016-08-25 03:01:18 +00:00
Hermès Bélusca-Maïto
e145ed06c6 [BOOTDATA]
- Remove invalid "ServiceType" registry value of the MPU401 driver.
- Fix MUP driver group.
- Fix MountMgr driver group.
- Fix rosfltmgr driver group.
- Add "Base" group list (until we have it inside some driver inf).
- Add tags for acpi, pci, null, beep and ksecdd drivers.

svn path=/trunk/; revision=72450
2016-08-24 19:55:12 +00:00
Eric Kohl
1161db9756 [LSASRV]
LsarSetSecurityObject: Impersonate the client and retrieve the client token when the owner sid will be set.

svn path=/trunk/; revision=72449
2016-08-23 21:14:17 +00:00
Amine Khaldi
15d8c32ada [ACPPAGE] Improve header inclusions.
svn path=/trunk/; revision=72448
2016-08-23 19:37:31 +00:00
Amine Khaldi
fd8f2bb80e [STRMBASE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72447
2016-08-23 19:35:53 +00:00
Amine Khaldi
dd7d00f90d [RPCSS] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72446
2016-08-23 19:34:57 +00:00
Amine Khaldi
89a86c50c7 [WRITE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72445
2016-08-23 19:34:21 +00:00
Amine Khaldi
55188dfb8c [WORDPAD] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72444
2016-08-23 19:32:58 +00:00
Amine Khaldi
5e7598a6d2 [WINHLP32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72443
2016-08-23 19:31:44 +00:00
Amine Khaldi
444f693e31 [FREELDR] Fix a regression introduced in r70687. Dedicated to Sylvain Deverre.
svn path=/trunk/; revision=72442
2016-08-23 19:20:44 +00:00
Amine Khaldi
91dfb227f8 [WINMINE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72441
2016-08-23 19:08:37 +00:00
Giannis Adamopoulos
4542952e42 [EXPLORER]
- CTrayWindow: Reorganise the code in logical groups to make it more readable. Move command handlers at the top of the file followed by the code that manages moving and resizing the taskbar. After that is code that paints the taskbar and the implementation of the ITrayWindow interface which I really doubt if it is needed. Finally at the bottom are the message handlers.

svn path=/trunk/; revision=72440
2016-08-23 16:52:05 +00:00
James Tabor
cf7c648a68 [NtUser]
- Properly sync wine menu code. Attempt to fix CORE-11892.

svn path=/trunk/; revision=72439
2016-08-23 16:33:44 +00:00
Hermès Bélusca-Maïto
df8d9cbd28 [CMAKE]: Update baseaddress_msvc.cmake with the updated scripts from CORE-11382 , after the recent translations of some of the message compiler files.
svn path=/trunk/; revision=72438
2016-08-23 12:15:12 +00:00
Aleksandar Andrejevic
c50b9d7c96 [NTVDM:SVGA]
Implement starting address extensions, scanline offset extensions and memory
address extensions.
No more 64 KB memory banks. The code now uses SVGA_BANK_SIZE (1 MB) for
everything.


svn path=/trunk/; revision=72436
2016-08-22 22:41:01 +00:00
Jérôme Gardou
fa5fed4f1d [KDGDB]
- Implement setting and removing breakpoints
 - Implement single-stepping
 - Only get past the breakpoint instruction when it comes from RtlpBreakWithStatus
 - Implement writing to memory
 - Always send the thread raising the exception to GDB to avoid confusing it
 - Let GDB find the program counter alone by querying the registers (support was already there before.)
 - Properly escape special characters on input
Ladies and gentlemen : the almost-fully functional GDB stub. (still no real multi-process support :-( )
To enable , in CMakeCache.txt :
 - Set GDB:BOOL=TRUE
 - Set _WINKD_:BOOL=TRUE
 - Set KDBG:BOOL=FALSE
To do : give GDB the list of loaded drivers. Loading ntoskrnl.exe symbols at 0x80801000 already does a good enough job.
Default output is on COM1. Can be configure to any othe COM port with usual kernel options.
Hope you'll like it as much as I do ;-)

svn path=/trunk/; revision=72435
2016-08-22 22:24:30 +00:00
Dmitry Chapyshev
e41a81db0b [TRANSLATIONS]
- Update Russian translation

svn path=/trunk/; revision=72434
2016-08-22 21:18:42 +00:00
Dmitry Chapyshev
05e9013f07 [SDK]
- It is partially translated into Russian

* Now there is a possibility of the translation of *.mc of files

svn path=/trunk/; revision=72433
2016-08-22 16:48:55 +00:00
Dmitry Chapyshev
840bf2046f [CMAKE]
- Update kernel32 address

svn path=/trunk/; revision=72432
2016-08-22 14:34:53 +00:00
Dmitry Chapyshev
bac50c092f [CMAKE]
- Convert all *.mc files to UTF16 LE (without BOM) at build
- Use unicode flag in windmc/mc for source files
- Switch UNICODE_SOURCE files to UNICODE (must check for the presence of regression tests)

svn path=/trunk/; revision=72431
2016-08-22 14:02:42 +00:00
Dmitry Chapyshev
bdc447f6cd [UTF16LE]
- Fix MSVC build

svn path=/trunk/; revision=72430
2016-08-22 13:49:12 +00:00
James Tabor
f7b2e13609 [NtUser]
- Defer the changing of the window region while setting the window position.
- Patch based on Stefano Toncich work. See CORE-6897 and possibly CORE-7229.

svn path=/trunk/; revision=72429
2016-08-22 13:28:02 +00:00
Dmitry Chapyshev
f5b4891559 Maybe strcasecmp?
svn path=/trunk/; revision=72428
2016-08-22 13:22:32 +00:00
Dmitry Chapyshev
bbe68b6347 [UTF16LE]
Try to fix build

svn path=/trunk/; revision=72427
2016-08-22 13:18:26 +00:00
Dmitry Chapyshev
457d4cff98 [UTF16LE]
- Implement ability to disable BOM writing

svn path=/trunk/; revision=72426
2016-08-22 13:14:41 +00:00
Dmitry Chapyshev
6ba5e47c0e [KERNEL32]
- Update Russian translation

svn path=/trunk/; revision=72425
2016-08-22 12:15:00 +00:00
Eric Kohl
2cb8276b6c [LSASRV]
Implement LsarSetSecurityObject.

svn path=/trunk/; revision=72421
2016-08-21 21:39:02 +00:00
Eric Kohl
fcf959d784 [INCLUDE]
Add the RtlLengthSecurityDescriptor prototype to the NDK.

svn path=/trunk/; revision=72420
2016-08-21 21:31:40 +00:00
Eric Kohl
72f1555249 [LSASRV]
Implement LsaIFree_LSAPR_TRANSLATED_SIDS.

svn path=/trunk/; revision=72419
2016-08-21 21:24:10 +00:00
Mark Jansen
cf27bf75e9 Addendum to r72417. CORE-11858 #resolve
svn path=/trunk/; revision=72418
2016-08-21 20:07:05 +00:00
Mark Jansen
11d1368d04 [WIN32SS] Fix argument name, spotted by Hermes. CORE-11858
svn path=/trunk/; revision=72417
2016-08-21 20:03:19 +00:00
Mark Jansen
963d66822f [SHELL32] Partially implement CFolderItems. Thanks to Giannis for the advice :)
svn path=/trunk/; revision=72416
2016-08-21 19:58:32 +00:00
Mark Jansen
63fae88fbc [SHELL32] Fix a crash in shell32:shelldispatch by returning an empty CFolderItems object instead of nothing.
svn path=/trunk/; revision=72415
2016-08-21 18:48:48 +00:00
Mark Jansen
8b95cbf0e2 [WIN32SS] Implement windows class versioning, by Sylvain Deverre. CORE-11858 #comment Committed, thanks!
svn path=/trunk/; revision=72414
2016-08-21 18:28:33 +00:00
Amine Khaldi
7e6c5db9a4 [CRT] Sync wctype.c with Wine Staging 1.9.16 and document this. CORE-11866
svn path=/trunk/; revision=72413
2016-08-21 18:24:21 +00:00
Amine Khaldi
9c71618a0d [FDEBUG] Improve header inclusions.
svn path=/trunk/; revision=72410
2016-08-21 17:25:07 +00:00
Amine Khaldi
1cd18d016a [WIDL] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72409
2016-08-21 17:22:27 +00:00
Amine Khaldi
7cf942787a [UNICODE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72408
2016-08-21 16:47:13 +00:00
Amine Khaldi
0825399200 [README.WINE] Update some paths.
svn path=/trunk/; revision=72407
2016-08-21 16:44:35 +00:00
Amine Khaldi
761db77da5 [CDMAKE][CTR] Fix strtok_s for empty strings. Part of Wine commit 4fa616c by Bernhard Übelacker.
svn path=/trunk/; revision=72406
2016-08-21 16:30:06 +00:00
Amine Khaldi
f6aaf58005 [CRT] Sync strtok_s() with Wine Staging 1.9.16 and mark strtok() as synced. CORE-11866
svn path=/trunk/; revision=72405
2016-08-21 16:24:00 +00:00
Eric Kohl
c7c1b36949 [LSASRV]
Implement LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR and LsaIFree_LSAPR_TRANSLATED_NAMES.

svn path=/trunk/; revision=72404
2016-08-21 14:56:54 +00:00
Daniel Reimer
6f5011a861 [RAPPS]
Fix Audacity/NIRLauncher/Tahoma and Watercolor entries.

svn path=/trunk/; revision=72403
2016-08-21 11:45:05 +00:00
Amine Khaldi
7785437568 [TRANSLATIONS] Japanese translation of control panel applets by Katayama Hirofumi MZ. CORE-11882
svn path=/trunk/; revision=72402
2016-08-21 10:40:42 +00:00
Giannis Adamopoulos
56970603ce [SHELL32]
- CMenuBand: Do not open the context menu on mouse down but on mouse up.
- Patch by Joachim Henze (reactosfanboy)
CORE-10830

svn path=/trunk/; revision=72401
2016-08-20 22:05:12 +00:00
Mark Jansen
f156a8d727 [WIN32NT_APITEST] Add additional tests for NtUserCreateWindowEx by Sylvain Deverre. ROSTESTS-237 #resolve #comment Thanks!
svn path=/trunk/; revision=72400
2016-08-20 16:58:20 +00:00
Giannis Adamopoulos
68ed94281d [SHELL32]
- Use ExpandEnvironmentStringsW instead of PathUnExpandEnvStringsW in the pick icon dialog.
- Patch by Jared Smudde.
CORE-10962

svn path=/trunk/; revision=72399
2016-08-20 09:53:55 +00:00
Giannis Adamopoulos
8f70f4395e [SHELL32]
- Fail to delete any file if one is invalid.
- Patch by andy-123
CORE-9959

svn path=/trunk/; revision=72398
2016-08-20 09:43:09 +00:00
Giannis Adamopoulos
e4743d51be [SHELL32]
- Show an error message when creating a directory fails.
- Patch by Jared Smudde
CORE-11661

svn path=/trunk/; revision=72397
2016-08-20 09:34:25 +00:00
Jérôme Gardou
3bae10b2bc [SERVICES]
- Properly invalidate service handles when closing/freeing them
Dedicated to Hermès and any regression chaser. FalsePositives--

svn path=/trunk/; revision=72396
2016-08-19 22:15:53 +00:00
Jérôme Gardou
690941472d [NTOS/MM]
- Implement copy on write support in ARM3 page fault handler
CORE-8541 #resolve #comment committed in r72395

svn path=/trunk/; revision=72395
2016-08-19 17:24:53 +00:00
Amine Khaldi
fa041e04ad [HNETCFG] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72363
2016-08-19 09:55:53 +00:00
Amine Khaldi
a0297b51ec [SCRRUN_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72362
2016-08-19 09:54:01 +00:00
Amine Khaldi
22b736b312 [REG_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72361
2016-08-19 09:53:19 +00:00
Amine Khaldi
435823810b [REG] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72360
2016-08-19 09:52:47 +00:00
Amine Khaldi
d1ca52d800 [WSCRIPT_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72359
2016-08-19 09:49:22 +00:00
Amine Khaldi
2b9948d14b [WSCRIPT] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72358
2016-08-19 09:48:46 +00:00
Amine Khaldi
7762de059c [WININET_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72357
2016-08-19 09:46:10 +00:00
Amine Khaldi
86f990eac4 [WININET] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72356
2016-08-19 09:45:28 +00:00
Amine Khaldi
a58f578c0e [WINHTTP_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72355
2016-08-19 09:44:16 +00:00
Amine Khaldi
fb5949784d [WINHTTP] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72354
2016-08-19 09:43:46 +00:00
Amine Khaldi
722837d960 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72353
2016-08-19 09:42:48 +00:00
Amine Khaldi
0aa49a16bb [WINDOWSCODECS] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72352
2016-08-19 09:42:13 +00:00
Amine Khaldi
ae7213af9a [RPCRT4_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72351
2016-08-19 09:41:01 +00:00
Amine Khaldi
5f766a75dc [RPCRT4] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72350
2016-08-19 09:40:25 +00:00
Amine Khaldi
891c9a1bc1 [OLE32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72349
2016-08-19 09:39:12 +00:00
Amine Khaldi
e88c7f24df [OLE32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72348
2016-08-19 09:38:43 +00:00
Amine Khaldi
d4778af3f0 [JSCRIPT_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72347
2016-08-19 09:37:22 +00:00
Amine Khaldi
4dd5cd6d92 [JSCRIPT] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72346
2016-08-19 09:36:35 +00:00
Amine Khaldi
6873f2c1ae [INETCOMM_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72345
2016-08-19 09:34:00 +00:00
Amine Khaldi
60cad68706 [INETCOMM] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72344
2016-08-19 09:33:16 +00:00
Amine Khaldi
e48834ab6d [PSDK] Update mimeole.idl. CORE-11866
svn path=/trunk/; revision=72343
2016-08-19 09:30:21 +00:00
Amine Khaldi
efa0b8f5af [GDIPLUS_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72342
2016-08-19 09:29:03 +00:00
Amine Khaldi
3f043d113a [GDIPLUS] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72341
2016-08-19 09:28:13 +00:00
Amine Khaldi
ee606040a1 [PSDK] Update netfw.idl. CORE-11866
svn path=/trunk/; revision=72340
2016-08-19 09:26:49 +00:00
Amine Khaldi
26869f8e63 [COMDLG32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72339
2016-08-19 09:24:50 +00:00
Amine Khaldi
2213bae856 [COMDLG32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72338
2016-08-19 09:24:04 +00:00
Amine Khaldi
178465de85 [SETUPAPI_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72337
2016-08-19 09:21:44 +00:00
Amine Khaldi
a3bbb41299 [PSDK] Update icftypes.idl. CORE-11866
svn path=/trunk/; revision=72336
2016-08-19 09:20:52 +00:00
James Tabor
d3af3bb97e [NtUser] - Patch by Józef Kucia : Prevent resetting WS_MINIMIZE through SetWindowLong.
svn path=/trunk/; revision=72335
2016-08-18 23:37:42 +00:00
Mark Jansen
1a411ce0e6 Addendum to r72332
svn path=/trunk/; revision=72333
2016-08-18 19:34:12 +00:00
Mark Jansen
6db0c12e85 [ATL][ATL_APITEST] Add CImage initial implementation + tests, by Katayama Hirofumi MZ. CORE-10029 #comment Thanks, first iteration committed!
- Tests focus mainly on loading + saving images.
- The implementation is not perfect yet, see CImage_WIP.txt for test results.
- The GDI+ functions should be fixed before this test can pass fully, MS' ATL fails in ReactOS, but passes on Windows.

svn path=/trunk/; revision=72332
2016-08-18 19:27:49 +00:00
Amine Khaldi
ded08d3fbb [KERNEL32_WINETEST] Come on Jérôme! commit the awesomeness so we can remove this skip ;)
svn path=/trunk/; revision=72331
2016-08-18 19:12:59 +00:00
Aman Priyadarshi
e991c925c8 Minor changes for ATAPI Srb Functions
svn path=/branches/GSoC_2016/AHCI/; revision=72330
2016-08-18 18:03:26 +00:00
Dmitry Chapyshev
dbc5ec87ab [KERNEL32]
- Update Russian translation

svn path=/trunk/; revision=72329
2016-08-18 17:23:11 +00:00
Giannis Adamopoulos
2f6cecc6f1 [SHELL32]
- CDefaultContextMenu: Fix some cosmetic issues.

svn path=/trunk/; revision=72328
2016-08-18 14:01:44 +00:00
Giannis Adamopoulos
4c322eaeef [SHELL32]
- CDefView: Set the site of the context menu to the CDefView essentialy reverting r68727 which was wrong.
- CDefaultContextMenu: Implement IObjectWithSite interface. Don't use CWM_GETISHELLBROWSER to get a pointer to the shell browser. Do a IUnknown_QueryService to the site instead asking for either the shell browser or the shell view (and it is fine if there is none of them).
- Rename IDefaultContextMenu_Constructor to CDefaultContextMenu_CreateInstance and use ShellObjectCreatorInit to simplify its code.

svn path=/trunk/; revision=72327
2016-08-18 13:50:56 +00:00
Giannis Adamopoulos
9fab725041 [BROWSEUI]
- CInternetToolbar: Fix resizing the top rebar. Works in windows (but not in ros).

svn path=/trunk/; revision=72326
2016-08-18 13:24:16 +00:00
Giannis Adamopoulos
888d052418 [BROWSEUI]
- Use OleFlushClipboard while the browser window is being destroyed in order to make make any IDataObject that is in clipboard to render so as make is data available after the browser thread exits.
CORE-11565

svn path=/trunk/; revision=72325
2016-08-18 13:16:05 +00:00
Daniel Reimer
c611e5c83f [BOOTDATA]
Update CA root scripts adding "ISRG Root X1"

svn path=/trunk/; revision=72324
2016-08-18 12:07:59 +00:00
Daniel Reimer
8bd13ae274 [FONTS]
Update DejaVu to v2.37

svn path=/trunk/; revision=72323
2016-08-18 12:03:31 +00:00
Amine Khaldi
1ea4f4f0d7 [PSDK] Update wincodecsdk.idl. CORE-11866
svn path=/trunk/; revision=72322
2016-08-18 11:11:13 +00:00
Amine Khaldi
d00225ce65 [COMCTL32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72321
2016-08-18 11:10:51 +00:00
Amine Khaldi
297e33f228 [COMCTL32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72320
2016-08-18 11:09:45 +00:00
Amine Khaldi
acdd6b2e5b [PSDK] Update gdiplusflat.h. CORE-11866
svn path=/trunk/; revision=72319
2016-08-18 10:56:57 +00:00
Amine Khaldi
b36e38a2a3 [XMLLITE_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72318
2016-08-18 10:55:43 +00:00
Amine Khaldi
78d4075504 [XMLLITE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72317
2016-08-18 10:54:49 +00:00
Amine Khaldi
8497ce4353 [WSHOM_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72316
2016-08-18 10:53:52 +00:00
Amine Khaldi
42e1654535 [XINPUT1_3] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72315
2016-08-18 10:53:09 +00:00
Amine Khaldi
8ce605cde9 [WBEMDISP_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72314
2016-08-18 10:50:44 +00:00
Amine Khaldi
07f4aca553 [WBEMDISP] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72313
2016-08-18 10:50:14 +00:00
Amine Khaldi
f72814fe25 [USP10_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72312
2016-08-18 10:48:39 +00:00
Amine Khaldi
e47a8043ed [USP10] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72311
2016-08-18 10:47:59 +00:00
Amine Khaldi
3860b7af4a [URLMON_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72310
2016-08-18 10:46:40 +00:00
Amine Khaldi
042c7f8e93 [URLMON] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72309
2016-08-18 10:45:43 +00:00
Amine Khaldi
6da422d0ce [SHLWAPI_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72308
2016-08-18 10:44:39 +00:00
Amine Khaldi
4a513658de [SHLWAPI] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72307
2016-08-18 10:43:47 +00:00
Amine Khaldi
e16af6724e [RICHED20_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72306
2016-08-18 10:41:23 +00:00
Amine Khaldi
bacd0179ec [RICHED20] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72305
2016-08-18 10:40:37 +00:00
Amine Khaldi
8338fe9d09 [PSTOREC] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72304
2016-08-18 10:37:24 +00:00
Amine Khaldi
330e94b329 [PROPSYS_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72303
2016-08-18 10:35:58 +00:00
Amine Khaldi
df418ff838 [PROPSYS] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72302
2016-08-18 10:35:19 +00:00
Dmitry Chapyshev
c5ba8fbb12 [INPUT]
- Use _wcsdup instead internal DuplicateString
- Check of the returned value of the wcsstr function is added

svn path=/trunk/; revision=72301
2016-08-18 10:31:42 +00:00
Amine Khaldi
9b71c6be30 [PSDK] Update propvarutil.h. CORE-11866
svn path=/trunk/; revision=72300
2016-08-18 10:31:31 +00:00
Amine Khaldi
0f820f751c [OLEAUT32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72299
2016-08-18 10:30:35 +00:00
Amine Khaldi
7651447df4 [OLEAUT32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72298
2016-08-18 10:29:24 +00:00
Amine Khaldi
ddb3a842ea [MSXML3_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72297
2016-08-18 10:27:46 +00:00
Amine Khaldi
2336f78df3 [MSXML3] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72296
2016-08-18 10:27:06 +00:00
Amine Khaldi
5613aa4e45 [MSVFW32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72295
2016-08-18 10:25:37 +00:00
Amine Khaldi
b3323a21c5 [MSIMTF] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72294
2016-08-18 10:24:35 +00:00
Amine Khaldi
c96078d760 [MSI_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72293
2016-08-18 10:22:37 +00:00
Amine Khaldi
0cecc250b5 [MSI] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72292
2016-08-18 10:22:22 +00:00
Amine Khaldi
c99ab15017 [MSCTF_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72291
2016-08-18 10:20:17 +00:00
Amine Khaldi
f841a54235 [MSCTF] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72290
2016-08-18 10:19:15 +00:00
Amine Khaldi
e4a5020766 [MMDEVAPI_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72289
2016-08-18 10:17:56 +00:00
Amine Khaldi
53a474e252 [MMDEVAPI] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72288
2016-08-18 10:17:05 +00:00
Amine Khaldi
85b1436323 [MLANG] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72287
2016-08-18 10:16:03 +00:00
Amine Khaldi
7a8a3e75ea [MCIQTZ32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72286
2016-08-18 10:15:04 +00:00
Amine Khaldi
5943af0b23 [MCICDA] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72285
2016-08-18 10:13:31 +00:00
Amine Khaldi
7510c70f4a [MCIAVI32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72284
2016-08-18 10:12:12 +00:00
Amine Khaldi
6bc8a14ac1 [IEFRAME] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72283
2016-08-18 10:10:30 +00:00
Amine Khaldi
66863bf8c5 [IMM32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72282
2016-08-18 10:08:05 +00:00
Amine Khaldi
681eba21be [HLINK_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72281
2016-08-18 10:07:20 +00:00
Amine Khaldi
b2afbea16b [HLINK] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72280
2016-08-18 10:06:29 +00:00
Amine Khaldi
2b65c48e2d [HHCTRL.OCX] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72279
2016-08-18 10:05:18 +00:00
Amine Khaldi
ea1e7ebddb [DBGHELP] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72278
2016-08-18 10:04:21 +00:00
Amine Khaldi
0cac4632f5 [CRYPTUI] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72277
2016-08-18 10:03:16 +00:00
Amine Khaldi
056256bdd2 [CRYPT32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72276
2016-08-18 10:01:42 +00:00
Amine Khaldi
06caf69964 [CREDUI] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72275
2016-08-18 10:00:07 +00:00
Amine Khaldi
922b77273d [CABINET] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72274
2016-08-18 09:58:31 +00:00
Amine Khaldi
0ee528548f [AVIFIL32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72273
2016-08-18 09:56:44 +00:00
Amine Khaldi
855d6e8644 [AVIFIL32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72272
2016-08-18 09:55:39 +00:00
Amine Khaldi
9c0416c9fd [ATL] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72271
2016-08-18 09:54:01 +00:00
Amine Khaldi
3f76d7c905 [QUARTZ_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72270
2016-08-18 09:51:01 +00:00
Amine Khaldi
64dc1ba32c [QUARTZ] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72269
2016-08-18 09:50:09 +00:00
Amine Khaldi
ab2bcbbcb7 [QEDIT] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72268
2016-08-18 09:48:26 +00:00
Amine Khaldi
d6d93b75da [DPLAYX] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72267
2016-08-18 09:46:58 +00:00
Amine Khaldi
bef5d0e69f [DMUSIC] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72266
2016-08-18 09:45:45 +00:00
Amine Khaldi
7d75b785b8 [DINPUT_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72265
2016-08-18 09:44:21 +00:00
Amine Khaldi
9311bf01ef [DINPUT] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72264
2016-08-18 09:43:58 +00:00
Amine Khaldi
db110c2bfe [DEVENUM] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72263
2016-08-18 09:42:25 +00:00
Amine Khaldi
ab71e5511f [D3DXOF] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72262
2016-08-18 09:40:45 +00:00
Amine Khaldi
ebac637363 [SHELL32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72261
2016-08-18 09:39:10 +00:00
Amine Khaldi
aa23d6090c [PSDK] Update shldisp.idl. CORE-11866
svn path=/trunk/; revision=72260
2016-08-18 09:38:10 +00:00
Amine Khaldi
d71de35a77 [D3DRM_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72259
2016-08-18 09:37:07 +00:00
Amine Khaldi
e896b09c90 [D3DRM] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72258
2016-08-18 09:36:20 +00:00
Amine Khaldi
8ad1b07ac3 [PSDK] Update d3drmobj.h. CORE-11866
svn path=/trunk/; revision=72257
2016-08-18 09:34:23 +00:00
Amine Khaldi
470fde8354 [SECUR32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72256
2016-08-18 09:33:29 +00:00
Amine Khaldi
c7940bf549 [WS2_32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72255
2016-08-18 09:29:06 +00:00
Amine Khaldi
fb9b36051a [USER32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72254
2016-08-18 09:26:41 +00:00
Amine Khaldi
088421e1ef [KERNEL32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72253
2016-08-18 09:22:13 +00:00
Amine Khaldi
66b0514a00 [GDI32_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72252
2016-08-18 09:19:56 +00:00
Amine Khaldi
214259b900 [CMD_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72251
2016-08-18 09:18:03 +00:00
Amine Khaldi
bdcb293e98 [AMSTREAM_WINETEST] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72250
2016-08-18 09:15:31 +00:00
Amine Khaldi
6a451198b1 [AMSTREAM] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72249
2016-08-18 09:14:24 +00:00
Mark Jansen
f2efdd0952 [DBGPRINT] --wintest mode: Improve readability of output.
svn path=/trunk/; revision=72248
2016-08-17 21:02:49 +00:00
Amine Khaldi
80afa82c59 [WIN32NT_APITEST] Add some NtUserCreateWindowEx tests by Sylvain Deverre. ROSTESTS-237
svn path=/trunk/; revision=72242
2016-08-17 17:53:11 +00:00
Amine Khaldi
be65077e3f [KERNEL32] Sync sortkey.c with Wine Staging 1.9.16. CORE-10771 CORE-11866
svn path=/trunk/; revision=72241
2016-08-17 15:35:42 +00:00
Amine Khaldi
b01239eb28 [GLU32] Remove the special case for Clang. CORE-11799
svn path=/trunk/; revision=72240
2016-08-17 15:33:15 +00:00
Amine Khaldi
1a954c4f3e [OPENGL32] We don't need mingwex anymore. CORE-11799
svn path=/trunk/; revision=72239
2016-08-17 15:29:25 +00:00
Amine Khaldi
02be91f3aa [INCLUDE/REACTOS] Add some missing VOIDs. CORE-11799
svn path=/trunk/; revision=72238
2016-08-17 15:21:48 +00:00
Hermès Bélusca-Maïto
a2b693dfc4 [EVENTLOG]
- Get rid of MyHeap.
- Continue using safe string functions.
- Allow event logs themselves to be their own source. And store the full list of log sources in the "Sources" registry multi-string value.
- Correctly compute the number of records.
- Correctly return the event number and the write timestamp of reported events.
- Use a helper function for ElfrReportEventW/A and for ElfrReportEventAndSourceW that is now implemented.
- Rewrite the file.c functions using NT-APIs almost exclusively for file operations.
- Modify the logic of LogfReadEvents so that a RecordNumber == 0 in sequential read mode means we need to determine where to start the read operation, depending on whether a forwards-read or a backwards-read is performed. The log handle's CurrentRecord member is therefore initialized to 0 before usage.
- Adjust LogfAllocAndBuildNewRecord to take in input the event generation timestamp.
- Do not "compute" the RecordNumber of the new event in LogfAllocAndBuildNewRecord; it will be consistently assigned by LogfWriteRecord.
- Correctly initialize the OldestRecordNumber to zero for new (empty) logs.
- Perform extensive log validity checks when opening existing logs: log header and EOF record as well as boundary checks.
- Rewrite almost of the functions to support event log wrapping (see https://msdn.microsoft.com/en-us/library/windows/desktop/bb309026(v=vs.85).aspx ) and splitted records. Now our event logs are not corrupted anymore, and are readable under Windows 2k/xp/2k3/Vista+.
- As a consequence of supporting wrapping event logs we need to iterate through them at loading time in order to locate the valid EOF record (indeed it may happen that the log header is not correctly synced, and its Start/EndOffsets are invalid. The EOF record offsets contain on the other way the correct values).

The file.c fixes are a bit still work-in-progress, but the bulk of the code works. It is extensively tested in situ in my local VM since 2 months now.

CORE-11843 #resolve

svn path=/trunk/; revision=72236
2016-08-16 21:08:15 +00:00
Dmitry Chapyshev
d5ac073cbc [INPUT]
- Show localized keyboard layout name

svn path=/trunk/; revision=72235
2016-08-16 18:33:50 +00:00
Sylvain Petreolle
445ae177c1 Get rosautotest from the web.
@aminekhaldi thanks for the idea.
ONLINE-567

svn path=/trunk/; revision=72234
2016-08-15 23:32:42 +00:00
Giannis Adamopoulos
bed40f1d7e [EXPLORER]
- Implement resizing the taskbar in steps based on the way the rebar resizes. It works in windows (a bit buggy) and it would work in ros if our rebar could resize on demand.
- Let CStartButton handle the creation of the start button.

svn path=/trunk/; revision=72233
2016-08-15 20:53:12 +00:00
Christoph von Wittich
d1686ea263 [ADVAPI32] add DECLSPEC_HOTPATCH to CreateProcessAsUser
svn path=/trunk/; revision=72231
2016-08-15 17:25:04 +00:00
Christoph von Wittich
3f62a5f7f8 [GDI32] sync GetICMProfileA to wine
svn path=/trunk/; revision=72230
2016-08-15 17:04:05 +00:00
Daniel Reimer
69a268849d Bye SHA1 @utorrent and bittorrent. Still no nice direct links for the broken ones found.
svn path=/trunk/; revision=72229
2016-08-15 15:02:07 +00:00
Amine Khaldi
450c7177af [CMAKE] Update baseaddress.cmake for the GCC build.
svn path=/trunk/; revision=72228
2016-08-15 11:56:47 +00:00
James Tabor
fddaeea688 [Win32SS]
- Fix regression from 62529, striped all the MF_POPUP from the code, no way to know if the submenu is a drop menu. See CORE-9269.

svn path=/trunk/; revision=72227
2016-08-15 01:14:47 +00:00
Eric Kohl
12ea67644c [LSASRV]
Implement LsarEnumerateAccountsWithUserRight.

svn path=/trunk/; revision=72226
2016-08-14 20:37:35 +00:00
Hermès Bélusca-Maïto
13478a6cb0 [ROSTESTS]: Add an interactive test that tests some parts of the event log service.
CORE-11843 CORE-11838

svn path=/trunk/; revision=72225
2016-08-14 19:15:54 +00:00
Hermès Bélusca-Maïto
e7ce655076 [ROSTESTS]: Update the code file header.
svn path=/trunk/; revision=72224
2016-08-14 19:12:30 +00:00
Hermès Bélusca-Maïto
2081c44ca0 [SDK:MC]: Ensure the EOL style of MC files is *always* CR-LF in *all* platforms.
svn path=/trunk/; revision=72223
2016-08-14 19:10:41 +00:00
Eric Kohl
deec91b6c2 [LSASRV]
Add missing TRACE messages.

svn path=/trunk/; revision=72222
2016-08-14 16:16:40 +00:00
Giannis Adamopoulos
21f8a27469 [SHELL32]
- Fix a bug in CStartMenu_Constructor and add some comments to explain what this part does.

svn path=/trunk/; revision=72221
2016-08-14 16:15:02 +00:00
Eric Kohl
09e88a8e27 [LSASRV]
LsarQuerySecurityObject: Build a new SD that conatains requested information only and return it to the caller.

svn path=/trunk/; revision=72220
2016-08-14 15:42:40 +00:00
Aman Priyadarshi
f1f2cc1bc4 Added Port Reset for non Idle ports
FIXED missing VendorId, RevisionId and SerialNo

svn path=/branches/GSoC_2016/AHCI/; revision=72219
2016-08-14 12:54:10 +00:00
Eric Kohl
e60fde9ccb [LSASRV]
Implement LsaIFree_LSAPR_CR_CIPHER_VALUE, LsaIFree_LSAPR_PRIVILEGE_ENUM_BUFFER and LsaIFree_LSAPR_REFERENCED_DOMAIN_LIST.

svn path=/trunk/; revision=72218
2016-08-14 10:26:23 +00:00
Eric Kohl
9426bb9c91 [SYSSETUP]
InstallPrivileges: 
- Use LsaAddAccountRights instead of LsaAddPrivilegesToAccount. This enables us to add privileges and user rights to a given account.
- Identify SIDs by a leading asterisk. Account names do not start with an asterisk.
defltws.inf:
- Add user rights.
- Add an asterisk before all SIDs.

svn path=/trunk/; revision=72217
2016-08-13 19:25:31 +00:00
Eric Kohl
7265f00e4e [LSASRV]
Implement LsaIFree_LSAPR_ACCOUNT_ENUM_BUFFER and fix a typo.

svn path=/trunk/; revision=72216
2016-08-13 17:15:04 +00:00
Eric Kohl
3890a9cf57 [LSASRV]
- LsapRegQueryKeyInfo: Return the maximum sub key name length too.
- LsarEnumerateAccounts: User the maximum sub key name length to allocate a large enough buffer instead of using a fixed size one.
- LsarAddAccountRights: Use the proper value size to retrieve the system access attribute.

svn path=/trunk/; revision=72215
2016-08-13 16:26:23 +00:00
Mark Jansen
caa5c5b12d [CRT][CRT_APITEST] Fix __getmainargs and __wgetmainargs parsing, verified with apitests. Patch by Yaroslav Veremenko. CORE-11673 #resolve #comment Thanks!
svn path=/trunk/; revision=72214
2016-08-12 21:31:32 +00:00
Hermès Bélusca-Maïto
f7cb5ca5c0 [EVENTLOG]
- Use NT functions to retrieve timestamps for events.
- Log kernel events with the current computer name.
- Don't hardcode variables types for sizeofs.
- Add type-checks for the data to be retrieved from the registry, and use default values in case the values do not exist or are invalid.
- Use ULONG_PTR to perform pointer arithmetics.
- Use string-safe functions for copy/concatenation.
- Cache EventLog source for eventlog service self-logging.
- Unlock the LogFile in LogfClearFile.
- Fix rounding in LogfAllocAndBuildNewRecord.
- Verify ELF handle validity in ElfrGetLogInformation.
- Implement IELF_HANDLE_rundown to correctly cleanup ELF handles when client apps shut down. Adapt also the parameter of ElfDeleteEventLogHandle for reusing it there.
- Update some code formatting.
CORE-11842 #resolve

I don't completely touch file.c as it contains most of my upcoming eventlog fixes...

svn path=/trunk/; revision=72213
2016-08-12 19:14:55 +00:00
Hermès Bélusca-Maïto
275590c74e [EVENTLOG]: Fix also ElfrChangeNotify here. Addendum to r72211. Must fix the build.
CORE-11839

svn path=/trunk/; revision=72212
2016-08-12 17:25:36 +00:00
Hermès Bélusca-Maïto
6fe74528cb [SDK:IDL]: Fix the event log RPC IDL file definitions:
- ElfrChangeNotify takes a IELF_HANDLE handle as its first parameter, not a pointer to it.
- Since we already use NT-like types (especially for USHORT variables), do the same for the other parameters (DWORD -> ULONG), and also use the Pxxx for pointers to xxx.
- Use Windows 2003 maximum size (0x3FFFF) for the event data to be written, instead of the Vista+ limit that is much smaller (0xF000). See also revisions r72207 and r72209.
CORE-11839 #resolve

svn path=/trunk/; revision=72211
2016-08-12 17:22:15 +00:00
Hermès Bélusca-Maïto
8402a33700 [SDK]: Move some event log flags to the correct header (from winbase.h to winnt.h).
CORE-11839

svn path=/trunk/; revision=72210
2016-08-12 14:24:55 +00:00
Hermès Bélusca-Maïto
0bdab15b0f [ADVAPI32_APITEST]: Addendum to r72207:
- Fix the tests so that they test what they have to test, on ReactOS & Windows 2k3/XP. (Note that here, ReactOS used the more restrained event size limitations of Vista+ compared to those of Win2k3. I choose to test, and will implement, the size limitations of Win2k3.)
- Choose a different name for the test such that it doesn't collide with the 'eventlog' test from advapi32_winetest.
CORE-11838 CORE-11839

svn path=/trunk/; revision=72209
2016-08-12 13:38:49 +00:00
Giannis Adamopoulos
43728d3f66 [SHELL32]
- Get rid of the functions that handle guid pidls and move their implementation in CRegFolder.cpp.

svn path=/trunk/; revision=72208
2016-08-12 12:21:13 +00:00
Hermès Bélusca-Maïto
b3195b9538 [ADVAPI32_APITEST]: Add some supplemental tests for Winetests' Event Logging functions, testing different RPC limits related to the maximum size of the data buffer in events.
CORE-11838 CORE-11839

svn path=/trunk/; revision=72207
2016-08-12 12:15:24 +00:00
Giannis Adamopoulos
87bf08acdb [SHELL32]
- Move CFSDropTarget to its own file.

svn path=/trunk/; revision=72206
2016-08-12 11:35:24 +00:00
Daniel Reimer
65ed10be3f [RAPPS}
Fix structural errors, fix some dead links, fix wrong lang inclusions, fix trailing spaces etcetc
Some entries are dead, like nirlauncher, watercolor, tahoma and audacity. Feel free to fix em. (@holiday till monday now, cya)

svn path=/trunk/; revision=72205
2016-08-12 11:00:21 +00:00
James Tabor
cbdab97572 [NtUser]
- Get the right shift to pass through the keyboard subsystem. (WIP)

svn path=/trunk/; revision=72204
2016-08-12 00:54:44 +00:00
James Tabor
018df975b6 [NtUser]
- Send Input Language Change System Character flag if font signature and system character is set.

svn path=/trunk/; revision=72203
2016-08-11 22:33:12 +00:00
James Tabor
d3001862bf [NtUser]
- If focus window null use active.

svn path=/trunk/; revision=72202
2016-08-11 22:04:33 +00:00
James Tabor
5b2fac1964 [NtUser]
- Fix registry update when turning on/off keyboard layout hotkey and selecting. VK_RSHIFT (WIP).

svn path=/trunk/; revision=72201
2016-08-11 21:36:55 +00:00
Hermès Bélusca-Maïto
9a84ae8ab1 Remove extra ending semicolons in our C code base.
svn path=/trunk/; revision=72199
2016-08-11 16:50:41 +00:00
Pierre Schweitzer
24572de19c [MPR]
Import Wine commit:
- b452e6285915b1ad46920fc8551335ab28bfb4c0, Implement local name automatic redirection for disks.
- a65c31e46fa354fc8fbf86c0b9f273f86132a571, Implement provider selection given remote name.

CORE-11757

svn path=/trunk/; revision=72198
2016-08-11 16:29:36 +00:00
James Tabor
4afd025847 [NtUser]
- Fix up Language Layout Hotkey Toggle support for the new Keyboard switching. Support registry settings. Dedicated to Dmitry Chapyshev.
- The registry entry it reads from is the wrong (the short number) one. Someone with registry knowledge please help.
  Also VK_LSHIFT is passed all the time and not VK_RSHIFT (WIP). Support for Left Alt and Control work including SysParam.
- Side Tracks : Fixed CORE-5683. ReactOS can switch from keyboard processing or from DeferWindowProc.

svn path=/trunk/; revision=72197
2016-08-11 15:53:05 +00:00
Thomas Faber
a93f0e73ff [FASTFAT]
- Fail invalid opens specifying FILE_DELETE_ON_CLOSE
CORE-6931

svn path=/trunk/; revision=72196
2016-08-11 13:25:57 +00:00
Thomas Faber
3b70374248 [FASTFAT]
- Cancel deletion of a directory if it is not empty when its last handle is closed
CORE-6931

svn path=/trunk/; revision=72195
2016-08-11 11:41:25 +00:00
James Tabor
d2ae65c710 - Fix Desktop hang if no windows open.
svn path=/trunk/; revision=72194
2016-08-11 00:29:26 +00:00
Thomas Faber
aed9207c96 [NTOS:FSRTL]
- Use the correct parent node when replacing an identical cache entry in FsRtlAddToTunnelCache
CORE-11819

svn path=/trunk/; revision=72193
2016-08-10 21:09:50 +00:00
Pierre Schweitzer
72eefb7a68 [KMTESTS:FSRTL]
Add a stress test for tunnel cache implementation, where we have fun adding duplicated entries.
It doesn't seem to go well.
These tests are also known as "Learn your English ordinals", or as "Learn how to count in English". My pleasure.

CORE-11819

svn path=/trunk/; revision=72192
2016-08-10 20:50:36 +00:00
Mark Jansen
da6a705bb1 [ATL][ATL_APITEST] Partially implement CRegKey + add tests. CORE-11746
svn path=/trunk/; revision=72191
2016-08-10 19:34:38 +00:00
Dmitry Chapyshev
ac58e0fdf6 [SDK]
- KLF_SHIFTLOCK is not equal 65535. Correct value is 0x00010000

svn path=/trunk/; revision=72190
2016-08-10 19:05:54 +00:00
Dmitry Chapyshev
4245233f5f [INPUT]
- Draw 0x2022 unicode symbol instead 0x25CF (marking default input method)
- Fix incorrect logic in CapsLock parameters
- Notice system of change CapsLock mode parameters

svn path=/trunk/; revision=72189
2016-08-10 19:04:11 +00:00
Giannis Adamopoulos
22c0bb2723 [SHELL32]
- Add CRegFolder using the guid item specific functions. So far it is only partly implemented with stuff like enumerating still missing.
- Use CRegFolder in CDesktopFolder, CDrivesFolder and CControlPanelFolder and stop using guid item specific functions.

svn path=/trunk/; revision=72188
2016-08-10 18:56:48 +00:00
Amine Khaldi
5645cda63f [SHIMLIB] Improve header inclusions.
svn path=/trunk/; revision=72187
2016-08-10 13:37:22 +00:00
Pierre Schweitzer
e3b0a95319 [NTOSKRNL]
While attempting to read data from disk in CcReadVirtualAddress(), always align our read size by pages.
That means that even on boundaries, we will read a complete page.
This fixes FSD relying on Cc to properly align reads and thus poorly failing in disk.sys because of unaligned reads.
Notably, it helps MS FastFAT loading a bit farther in ReactOS (but it still fails :-().
This also fixes a few kmtests.

CORE-11003
CORE-11819

svn path=/trunk/; revision=72186
2016-08-10 11:52:30 +00:00
Hermès Bélusca-Maïto
57888376d9 [INPUT]
- Fix misspelling "Dublicate" -> "Duplicate".
- Use ZeroMemory instead of memset(..., 0, ...).
- Don't hardcode most of the variable types for sizeof.

svn path=/trunk/; revision=72185
2016-08-10 11:42:21 +00:00
Thomas Faber
079e405958 [TCPIP]
- Use pool tagging

svn path=/trunk/; revision=72184
2016-08-10 11:19:59 +00:00
Thomas Faber
0439f525d3 [IP]
- Only accept an incoming connection on one listening socket, not all. Fixes use after free when multiple connection endpoints are assigned the same PCB.
CORE-11649 #resolve

svn path=/trunk/; revision=72183
2016-08-10 10:28:28 +00:00
Pierre Schweitzer
f27ecf0960 [KMTESTS:CC]
New test case which is matching the MS FastFAT CcCopyRead (minus the offset) and shows clearly the issue in our Cc.
It also shows that my hack is utterly broken :-).

CORE-11003
CORE-11819

svn path=/trunk/; revision=72182
2016-08-10 07:39:20 +00:00
James Tabor
831a53f80f [NtUser]
- Fix breakage due to WM_NCPAINT call. Duplicate check for draw caption bar Justin Case.

svn path=/trunk/; revision=72181
2016-08-10 03:02:57 +00:00
James Tabor
824b41c0b2 [NtUser]
- Fix regression from r71846. See CORE-11479 for more details.

svn path=/trunk/; revision=72180
2016-08-10 00:16:57 +00:00
Ged Murphy
6927d67350 [README.WINE]
- Remove reference to fltlib. It was, and will likely only ever be a stubbed dll in Wine

svn path=/trunk/; revision=72179
2016-08-09 22:23:16 +00:00
Ged Murphy
35623f5db9 [FLTLIB]
- Stub out fltlib.dll.
- Add basic implementations for FilterLoad and FilterUnload
- Remove the wine code, this lib talks directly to fltmgr.sys and is therefore a reactos only dll from now on.

svn path=/trunk/; revision=72178
2016-08-09 22:10:05 +00:00
Dmitry Chapyshev
d89d2873bc [INPUT]
- Rename input_new to input

svn path=/trunk/; revision=72177
2016-08-09 21:49:06 +00:00
Dmitry Chapyshev
ce6a889a7b [INPUT]
- Remove old input.dll

svn path=/trunk/; revision=72176
2016-08-09 21:45:58 +00:00
Dmitry Chapyshev
fcb6eaa8cc [KBSWITCH]
- Hackfix detecting keyboard layout switching

* Now when hotkeys switching layouts icon changes

svn path=/trunk/; revision=72175
2016-08-09 21:41:05 +00:00
Ged Murphy
0b589c107d [FLTMC]
- Start to implement fltMC
- It currently supports loading, unloading and listing loaded filter driver.

svn path=/trunk/; revision=72174
2016-08-09 21:33:53 +00:00
Ged Murphy
705846cb25 [FLTLIB_APITEST]
- Create a skeleton test project for fltlib.dll
- Not yet part of the build

svn path=/trunk/; revision=72173
2016-08-09 21:23:40 +00:00
Dmitry Chapyshev
e5d5259ab7 [INPUT]
- Small fix :-p

svn path=/trunk/; revision=72172
2016-08-09 21:09:07 +00:00
Dmitry Chapyshev
4e8d5c9c39 [INPUT]
- Implement 'Key Settings' and 'Change Key Settings' dialogs

* Now you can add, delete and change the input method, change the hotkey switching input methods. The system correctly responds to changes. It works fine in Windows 10, but has not yet been tested on ReactOS

svn path=/trunk/; revision=72171
2016-08-09 21:03:55 +00:00
Pierre Schweitzer
b7586c0478 [KMTESTS:CC]
It seems we're page-aligned.

CORE-11003

svn path=/trunk/; revision=72170
2016-08-09 20:52:38 +00:00
Pierre Schweitzer
dfdbabb521 [KMTESTS:CC]
Modify a bit the read test so that it actually fails in ReactOS. It instructs us that when it comes to file boundaries, our Cc fails to properly align read (whereas it should!).
This is the behavior exposed by the MS FastFAT.

CORE-11003
CORE-11819

svn path=/trunk/; revision=72169
2016-08-09 20:46:00 +00:00
Dmitry Chapyshev
e64e194b5d [INPUT]
- Implement editing input methods
- Marking default layout
- Other bugfixes

svn path=/trunk/; revision=72168
2016-08-09 18:26:43 +00:00
Giannis Adamopoulos
ecf30d78ed [SHELL32]
- Don't hardcode the path in the shell namespace in any folder appart for CDesktopFolder and CDrivesFolder.
- Make SHELL32_CoCreateInitSF slightly more generic and use it when we need to create and initialise a shell folder.
- Now SHELL32_BindToFS is used only by CFSFolder but SHELL32_CoCreateInitSF still uses the generic _ILSimpleGetTextW (it accesses the pidl).

svn path=/trunk/; revision=72167
2016-08-09 18:05:50 +00:00
Dmitry Chapyshev
b346062c73 [INPUT]
- Implement 'Remove', 'Set Default' for input methods

svn path=/trunk/; revision=72166
2016-08-09 14:01:52 +00:00
Pierre Schweitzer
22f90f2210 [KMTESTS:CC]
Complete the tests for Cc: not only check for alignment, but also check that expected data are returned.
Thanks to Thomas for his help on this :-).

CORE-11003

svn path=/trunk/; revision=72165
2016-08-09 12:43:18 +00:00
Thomas Faber
7849fac958 [NTOS:CC]
- Gracefully handle failure to obtain virtual memory when creating a VACB. We now no longer crash when running out of virtual memory during (large) file operations (but will still crash when running out of physical memory).
CORE-11533

svn path=/trunk/; revision=72164
2016-08-09 07:59:07 +00:00
Thomas Faber
0c43b4ec9c [NTOS:MM]
- Correctly reserve the whole 4 MB of HAL address space instead of just 2 pages
CORE-11533

svn path=/trunk/; revision=72163
2016-08-09 07:48:09 +00:00
Thomas Faber
2a05ceca1d [NTOS:MM]
- Accept memory areas that end at 0xffffffff
CORE-11533

svn path=/trunk/; revision=72162
2016-08-09 07:43:51 +00:00
Thomas Faber
41defc9597 [NTOS:MM]
- In debug builds, invalidate the MEMORY_AREA's Magic on destroy to catch potential uses after free

svn path=/trunk/; revision=72161
2016-08-09 07:28:02 +00:00
Dmitry Chapyshev
8a32608dfe [INPUT]
- Implement add input methods
- Some improvents

svn path=/trunk/; revision=72160
2016-08-08 20:30:36 +00:00
Benedikt Freisen
3185db7675 [MSPAINT] Handle settings from registry correctly. Patch by Carlo Bramini. CORE-11400
svn path=/trunk/; revision=72158
2016-08-08 14:00:18 +00:00
Pierre Schweitzer
77624f187f [FASTFAT]
Fix a FIXME: update the last writing date in case of null-length write.

svn path=/trunk/; revision=72157
2016-08-08 12:44:15 +00:00
Pierre Schweitzer
2a1acea36f [FASTFAT]
Opening file by ID is not possible with FAT.

svn path=/trunk/; revision=72156
2016-08-08 07:28:14 +00:00
James Tabor
f2e1baa17e [User32]
- Fix bug that was uncovered by r72143. See CORE-11810.
- Move System Commands to server side. Leaving Alt-Tab and Scrolls.

svn path=/trunk/; revision=72155
2016-08-07 23:52:43 +00:00
Dmitry Chapyshev
6b265ca585 [INPUT]
- Implement list of keyboard layouts on Settings Page

svn path=/trunk/; revision=72154
2016-08-07 23:28:50 +00:00
Eric Kohl
71757bb0fe [LSASRV]
- Partital implementation of LsarRemoveAccountRights.
- Simplify LsapLookupAccountRightValue. Return ACCESS_MASK instead of NTSTATUS.
- LsarAddAccountRights: Check parameters before referncing the policy handle.

svn path=/trunk/; revision=72153
2016-08-07 22:36:07 +00:00
Hermès Bélusca-Maïto
17704fdd87 [ADVAPI32]: Addendum to r72151: It's incorrect to compare the variable of BOOL type with TRUE. Any non-zero value is considered to be "true". Caught by Thomas.
svn path=/trunk/; revision=72152
2016-08-07 19:11:08 +00:00
Hermès Bélusca-Maïto
1b15193628 [ADVAPI32]: Don't directly redirect IsTextUnicode to RtlIsTextUnicode, but use a helper function, so that the return value is correctly set to TRUE or FALSE. Indeed the former function returns a BOOL (long) while the latter returns a BOOLEAN (byte), and the high bytes in the return value could not be correctly set otherwise.
Adapted from a patch by 'andy-123'.

CORE-11803 #resolve #comment Fixesd, thanks!

svn path=/trunk/; revision=72151
2016-08-07 19:02:07 +00:00
Hermès Bélusca-Maïto
0644419fd1 [SDK][RTL][NDK]: Update RtlIsTextUnicode prototype.
svn path=/trunk/; revision=72150
2016-08-07 18:52:49 +00:00
Hermès Bélusca-Maïto
2ecffb24d7 [ADVAPI32]: Cleanup file headers and whitespace.
svn path=/trunk/; revision=72149
2016-08-07 16:57:45 +00:00
Hermès Bélusca-Maïto
13b28424d8 [APITESTS]: Add a test for advapi32!IsTextUnicode.
CORE-11803

svn path=/trunk/; revision=72148
2016-08-07 16:35:56 +00:00
Thomas Faber
1d2d985d11 [FASTFAT]
- Update FCB hashes after changing the path name
CORE-11377

svn path=/trunk/; revision=72147
2016-08-07 14:24:45 +00:00
Dmitry Chapyshev
85915846eb [INPUT]
- Create an empty project for re-working keyboard layouts management

svn path=/trunk/; revision=72146
2016-08-07 13:07:23 +00:00
Pierre Schweitzer
2f3c2c58d2 [FASTFAT]
After renaming a directory, rename any children FCB that would still exist in the FSD. This will allow next directory opening to properly work and open correct data.
This defeats corruption on directory renaming.
Unfortunately, this solution is not ideal and our driver should be reworked so that it quits using a hash table and it quits storing the whole path in the FCBs.

Deep thanks to Wim Hueskes and Thomas Faber for their help debugging the issue!

CORE-11377

svn path=/trunk/; revision=72145
2016-08-07 12:29:48 +00:00
Thomas Faber
bf98b09370 [NTOS:CC]
- Define CcPfEnablePrefetcher
CORE-11799

svn path=/trunk/; revision=72144
2016-08-07 07:00:56 +00:00
Dmitry Chapyshev
bc10137a10 [KBSWITCH]
- Use strsafe functions
- Use Shell Hooks in dll for detecting keyboard layout switching
- Fix bug in loading kbsdll

* Detection switch keyboard layout is now working in Windovs, but does not work in ReactOS (WH_SHELL not work in win32k)

svn path=/trunk/; revision=72143
2016-08-06 20:48:33 +00:00
Dmitry Chapyshev
a32f426a76 [WIN32K]
- Detect Alt+Shift hotkeys and send input language change request message to window

* Switching the keyboard layout works now. The code needs to be improved

svn path=/trunk/; revision=72142
2016-08-06 17:43:57 +00:00
Eric Kohl
e6597810f6 [LSASRV]
Move ServiceInit() into a separate file.

svn path=/trunk/; revision=72141
2016-08-06 17:07:59 +00:00
Hermès Bélusca-Maïto
3027d2e22f [EVENTVWR]
Don't hardcode a fixed size for the memory buffer holding the event details data to be copied into the clipboard, but instead compute it using the real lengths of the different strings. Use also StringCbPrintfW instead.

svn path=/trunk/; revision=72140
2016-08-06 16:21:02 +00:00
Eric Kohl
bbedf68e82 [LSASRV]
Implement LsarAddAccountRigths and fix some bugs along the way:
- LsarGetSystemAccessAccount: Fix an uninitialized varable.
- LsarOpenAccount, LsarCreateAccount: Make these functions wrappers around the real implementation in LsarpCreateAccount and LsarpOpenAccount.
- LsarEnumerateAccountRights: Fix the use of the wrong array index.
- LsarAddAccountRights: Implement it.
- LsarpLookupPrivilegeValue: Return a pointer to an LUID instead of an NTSTATUS. It is much earier to use it this way.
- LsapLookupAccountRightValue: Implement it.


svn path=/trunk/; revision=72139
2016-08-06 15:07:41 +00:00
Thomas Faber
0cd0cc28ff [NTOS:MM][USER32]
- Correctly handle/avoid C99-style inline semantics
CORE-11794

svn path=/trunk/; revision=72138
2016-08-06 15:04:08 +00:00
Thomas Faber
a946a97f6b [WS2_32_NEW]
- Fix always true conditions in ComputeQuerySetSize
CORE-11799

svn path=/trunk/; revision=72137
2016-08-06 12:58:32 +00:00
Pierre Schweitzer
3a66592294 [FASTFAT]
Properly check for opened handles in subdirectories when we're about to rename a directory.
This helps reducing corruption where some renaming operations were allowed whereas they shouldn't have been.

CORE-11377
CORE-11426

svn path=/trunk/; revision=72136
2016-08-06 12:25:47 +00:00
Thomas Faber
22d54fcfa8 [SYSDM]
- Less ambiguously check the return value of DialogBoxParam
CORE-11794

svn path=/trunk/; revision=72135
2016-08-06 12:15:16 +00:00
Thomas Faber
62af010479 [WIN32K:NTUSER]
- Add some missing VOIDs
CORE-11799

svn path=/trunk/; revision=72134
2016-08-06 12:07:54 +00:00
Amine Khaldi
23b8928f06 [INCLUDE/CRT] Correct _wctime and _wctime_s when _USE_32BIT_TIME_T is defined. CORE-11799
svn path=/trunk/; revision=72133
2016-08-06 10:35:53 +00:00
Amine Khaldi
adbe2036e0 [CRT] Correct some types. CORE-11799
svn path=/trunk/; revision=72132
2016-08-06 10:18:08 +00:00
Amine Khaldi
35c9147919 [WIN32DLLS] We don't need mingwex for these modules anymore. CORE-11799
svn path=/trunk/; revision=72131
2016-08-06 09:53:47 +00:00
Amine Khaldi
603f35f918 [NTOS:MM] Add some missing VOIDs. CORE-11799
svn path=/trunk/; revision=72130
2016-08-06 09:34:39 +00:00
Amine Khaldi
9f5c4f5a29 [DIRECTX/WINE] We don't need mingwex for these anymore. CORE-11799
svn path=/trunk/; revision=72129
2016-08-06 09:32:45 +00:00
Amine Khaldi
b7565d1023 [NTOS:PNPMGR] Mark IopReportTargetDeviceChangeAsyncWorker as stdcall and remove the PWORKER_THREAD_ROUTINE cast. CORE-11799
svn path=/trunk/; revision=72128
2016-08-06 09:11:08 +00:00
Thomas Faber
88b195195f [NTOS:MM]
- Correctly check for overflow in PeFmtCreateSection
CORE-11794

svn path=/trunk/; revision=72127
2016-08-06 09:07:03 +00:00
Pierre Schweitzer
29270756ea [FASTFAT]
Don't mess with parentless FCB.
Dedicated to Thomas :-).

CORE-11377
CORE-11426

svn path=/trunk/; revision=72126
2016-08-06 08:57:47 +00:00
Pierre Schweitzer
bf24a57417 [FASTFAT]
Addendum to r72124

svn path=/trunk/; revision=72125
2016-08-06 08:32:17 +00:00
Pierre Schweitzer
ccacd0b3f1 [FASTFAT]
Track child FCB in parent FCB to allow browsing them in case it's needed.
This allows fixing a FIXME and offering better performances when renaming a directory.

CORE-11377
CORE-11426

svn path=/trunk/; revision=72124
2016-08-06 08:30:30 +00:00
Amine Khaldi
60c0a0a00d [CALC] We don't need mingwex anymore. CORE-11799
svn path=/trunk/; revision=72123
2016-08-06 08:26:54 +00:00
Amine Khaldi
5c9fcf98d1 [NTDLL] Add missing VOID. CORE-11799
svn path=/trunk/; revision=72122
2016-08-06 08:18:11 +00:00
Thomas Faber
be4ad0b096 [ARP]
- Do not return failure after successful operations
CORE-11794

svn path=/trunk/; revision=72121
2016-08-06 07:57:51 +00:00
Thomas Faber
933a038005 [CMD][UXTHEME]
- Clarify misleading indentation
CORE-11794

svn path=/trunk/; revision=72120
2016-08-06 07:08:52 +00:00
Thomas Faber
6feaa4a628 [CRT]
- Apply Wine commit b7f6362d (msvcrt: Use the correct object type for __non_rtti_object exceptions.) by Alexandre Julliard
CORE-11794

svn path=/trunk/; revision=72119
2016-08-06 06:52:41 +00:00
Thomas Faber
3e8de0c105 [CRT]
- Remove pointless inline
CORE-11794

svn path=/trunk/; revision=72118
2016-08-05 21:33:54 +00:00
Hermès Bélusca-Maïto
b515da6e1e [COMCTL32]: Addendum to r72116: Add the __REACTOS__ ifdefs to ease wine syncing, and update the patch in accordance.
CORE-11532

svn path=/trunk/; revision=72117
2016-08-05 17:45:34 +00:00
Giannis Adamopoulos
c515594b02 [COMCTL32]
- rebar: actually pass the hittest flag to the NM_NCHITTEST notification.
CORE-11532

svn path=/trunk/; revision=72116
2016-08-05 17:16:22 +00:00
Hermès Bélusca-Maïto
9a2f59499f [FASTFAT_NEW]: Fix add_pch command usage.
svn path=/trunk/; revision=72115
2016-08-05 11:54:48 +00:00
Pierre Schweitzer
0929932490 [NET/USE]
Always delete remembered connections on /delete

ROSAPPS-303

svn path=/trunk/; revision=72114
2016-08-05 10:58:09 +00:00
Pierre Schweitzer
751ace6d12 [FASTFAT]
Refactor vfatMakeFCBFromDirEntry() and vfatUpdateFCB() so that they share code. It will help avoiding wild FCB modifications on renaming.

CORE-11377

svn path=/trunk/; revision=72113
2016-08-05 10:48:01 +00:00
Giannis Adamopoulos
359bec99e3 [EXPLORER]
- Fix subclassing the tasks toolbar which was broken in r65274. 
CORE-11532

svn path=/trunk/; revision=72111
2016-08-05 09:06:30 +00:00
Mark Jansen
49fc85553f [ATL][ATL_APITEST] Add implementation + tests for most functions from CPoint, CSize, CRect. CORE-11747 #resolve
Not all functions are implemented, the ones that are not implemented are left in a comment in the header.

svn path=/trunk/; revision=72110
2016-08-04 19:15:21 +00:00
Mark Jansen
f0aaf60460 [INCLUDE/WINE] Update test.h with debug functions for POINT and SIZE.
svn path=/trunk/; revision=72109
2016-08-04 19:11:50 +00:00
Pierre Schweitzer
b32d97100d [MPR]
Check for the right capability.
Already sent upstream.

CORE-11757

svn path=/trunk/; revision=72108
2016-08-04 12:27:59 +00:00
Pierre Schweitzer
8f8d1f4f72 [MPR]
Add a missing break

svn path=/trunk/; revision=72107
2016-08-04 12:25:51 +00:00
Hermès Bélusca-Maïto
d77a6b17da [SHELL32]: Fix copypasta bug.
svn path=/trunk/; revision=72105
2016-08-03 20:02:28 +00:00
Christoph von Wittich
8491cda803 [BROWSEUI] set min width for addressband to 100. patch by Katayama Hirofumi MZ CORE-11766
svn path=/trunk/; revision=72103
2016-08-03 17:59:53 +00:00
James Tabor
e04a9f0689 [NtUser]
- Fix regression from r66350. See CORE-11324 for more details.

svn path=/trunk/; revision=72102
2016-08-03 17:41:22 +00:00
Thomas Faber
ae5f46e58e [NTOS:SE]
- Remove unnecessary null checks & fix up cleanup in SepCreateToken and SepDuplicateToken. Based on a patch by Víctor Martínez Calvo
CORE-11768 #resolve

svn path=/trunk/; revision=72101
2016-08-03 17:10:59 +00:00
Giannis Adamopoulos
ce6e5159ab Fix gcc build
svn path=/trunk/; revision=72100
2016-08-03 15:55:58 +00:00
Giannis Adamopoulos
0d767aa90b [SHELL32]
- CDesktopBrowser: Convert to an ATL CWindow class, remove unused fields and cleanup.

svn path=/trunk/; revision=72099
2016-08-03 15:52:27 +00:00
Pierre Schweitzer
cdc269d16b [NET/USE]
In case an automatic drive letter assignment was asked (net use * REMOTE), print the mapping that was performed on success.

ROSAPPS-303

svn path=/trunk/; revision=72098
2016-08-03 14:42:49 +00:00
Pierre Schweitzer
7f771e6484 [MPR]
Return the correct local name in case of automatic redirection.
Alreaedy sent upstream.

CORE-11757

svn path=/trunk/; revision=72097
2016-08-03 14:41:23 +00:00
Pierre Schweitzer
708319cff7 [FASTFAT]
Fixes suggested by Thomas:
- Don't dereference cached data after unpinning
- Pin big enough data to read direntries

CORE-11377

svn path=/trunk/; revision=72096
2016-08-03 12:54:46 +00:00
Hermès Bélusca-Maïto
19469b4540 [WIN32K]
- Deduplicate NtUserScrollWindowEx / IntScrollWindowEx by making NtUserScrollWindowEx properly call IntScrollWindowEx instead.
- Fix potential memory leaks in failure paths in IntScrollWindowEx.

svn path=/trunk/; revision=72093
2016-08-02 16:02:54 +00:00
Christoph von Wittich
7d7b8c4c9e [BROWSEUI] pass a full pidl to ILGetDisplayNameEx CORE-11458
svn path=/trunk/; revision=72092
2016-08-02 14:52:08 +00:00
Pierre Schweitzer
f6044dc084 [MPR]
Properly set local name in case of redirection for *A function calls.
Alreaedy sent upstream.

CORE-11757

svn path=/trunk/; revision=72091
2016-08-02 11:46:31 +00:00
Pierre Schweitzer
f3851aaaab [MPR]
Misc fixes.
Already sent upstream (d'oh!)

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72090
2016-08-02 10:21:24 +00:00
Pierre Schweitzer
8cf6fe72db [HACKSSIGN]
Drop hackssign app. It's now obsolete.
You served us well :-).

ROSAPPS-303

svn path=/trunk/; revision=72089
2016-08-02 10:12:37 +00:00
Pierre Schweitzer
e3e7dd3331 [NET]
Implement the "net use" usage of the net command.
This allows connecting remote resources to local system with assigning them a local name, to enumerate such connected resources and to delete them.

This obsoletes the hackssign application.

The implementation is a bit... raw. It is mainly here to demonstrate what's doable in ReactOS now. And to help using features we were lacking up to now.
For instance, you can make use of 'net use * \\vmware-host\Shared Folders\{YOURSHARE}' to assign a local letter to your VMware shared folders.

ROSAPPS-303

svn path=/trunk/; revision=72088
2016-08-02 10:10:25 +00:00
Pierre Schweitzer
0549e22a98 [MPR]
Implement connected resources enumeration
To be sent upstream.

Patch 6/6

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72087
2016-08-02 10:04:19 +00:00
Pierre Schweitzer
d833fdc50e [MPR]
Set the CONNECT_LOCALDRIVE on successful local redirection
To be sent upstream.

Patch 5/6

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72086
2016-08-02 09:57:24 +00:00
Pierre Schweitzer
618dc07a58 [MPR]
Implement WNetCancelConnectionA(), WNetCancelConnectionW(), WNetCancelConnection2A()
Already sent upstream.

Patch 4/6

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72085
2016-08-02 09:54:51 +00:00
Pierre Schweitzer
e0484e917c [MPR]
Implement WNetCancelConnection2W()
Already sent upstream.

Patch 3/6

CORE-11757
ROSAPPS-303

svn path=/trunk/; revision=72084
2016-08-02 09:53:54 +00:00
Pierre Schweitzer
ad51814d36 [MPR]
Implement provider automatic selection for WNetUseConnection. That means you don't need anylonger to provider the network provider handling the remote name to establish a connection to the resource.
Already sent upstream.

Patch 2/6

CORE-11757
ROSAPPS-303 

svn path=/trunk/; revision=72083
2016-08-02 09:51:09 +00:00
Pierre Schweitzer
c2b9d609e4 [MPR]
Time to react (again!).

Implement automatic local name redirection for new connection. This implements the behavior of the CONNECT_REDIRECT flag of WNetUseConnection.
Already sent upstream.

Patch 1/6

CORE-11757
ROSAPPS-303 

svn path=/trunk/; revision=72082
2016-08-02 09:49:20 +00:00
Amine Khaldi
c3e09eb2e6 [TRANSLATIONS] Russian translation update by Sergey Stopkin and co, with some fixes by me. CORE-11752
svn path=/trunk/; revision=72081
2016-08-02 09:16:16 +00:00
James Tabor
d7cf4ae646 [NtUser]
- Fix crash while mouse cursor is moving over stress test window (RegEdit). This fixes VLC too. Tested SeaMonkey and it did not crash. See CORE-9169 and CORE-9836.

svn path=/trunk/; revision=72080
2016-08-02 04:05:16 +00:00
Hermès Bélusca-Maïto
c6db848176 [EVENTVWR]
- Reorganize the header inclusions; add a PCH.
- Transform the event details dialog into a control that can be embedded:
  * in a resizable dialog,
  * or in a pane below the window listing the events.
CORE-11637

svn path=/trunk/; revision=72079
2016-08-01 23:29:55 +00:00
Hermès Bélusca-Maïto
1285f0af1c [NOTEPAD]: Fix danish menu shortcuts.
svn path=/trunk/; revision=72078
2016-08-01 23:01:58 +00:00
Jérôme Gardou
9bb0e5a772 [KDGDB]
- Turn this thing into something useful
   - Pretend we are only one process to GDB (making it a kernel-only debugger...) until the GDB team sorts this out
   - This is a kernel debugger stub you know. You didn't seriously pretend that recursive functions would be fine, did you ?
[NTOS:KD64]
 - Fix build
Pix or it din't happen : https://jira.reactos.org/secure/attachment/36322/source_level_debugging_ros.png

svn path=/trunk/; revision=72077
2016-08-01 22:16:58 +00:00
James Tabor
0f196e05cc [NtUser]
- Fix a recursion issue while processing posted messages. Related to CORE-10471. Dedicated to Thomas Faber for Free before Use testing.
- Pass extra information along with posted messages.
- Trigger an event when cursor position has changed.

svn path=/trunk/; revision=72076
2016-08-01 19:13:48 +00:00
James Tabor
a8d130326e - Remove trace.
svn path=/trunk/; revision=72075
2016-08-01 18:15:45 +00:00
James Tabor
283d51cef9 [User32]
- Use correct value for win:test_mdi. Use post instead of send, fix message sequence.
- Minor code changes.


svn path=/trunk/; revision=72074
2016-08-01 18:15:00 +00:00
Christoph von Wittich
ddccdcbf31 [SHELL32] remove obsolete FIXME. was fixed in r68015
svn path=/trunk/; revision=72073
2016-08-01 14:37:27 +00:00
Dmitry Chapyshev
0ed579c095 [USERENV]
- Create separate function for setup session manager variables
- Fixed a regression in msi package winetest after r72066

svn path=/trunk/; revision=72072
2016-08-01 14:26:12 +00:00
Pierre Schweitzer
1e7ca7179c [VFATLIB]
Don't leak memory

svn path=/trunk/; revision=72071
2016-08-01 12:05:13 +00:00
Dmitry Chapyshev
5cb1fd2dda [SHELL32]
- Fixed memory leak

[DNSLIB]
- Fixed uninitialized variable

[USERENV]
- Fixed typo

svn path=/trunk/; revision=72070
2016-08-01 11:29:01 +00:00
Pierre Schweitzer
21652b5c7f [NTFS]
Don't attempt to read beyond stream size.
Patch by Trevor Thompson.

CORE-11707

svn path=/trunk/; revision=72067
2016-08-01 06:14:45 +00:00
Dmitry Chapyshev
96fe018e77 [USERENV]
- Implement GetUserSid() (based on GetUserSidFromToken())
- Remove GetUserSidFromToken() and use new exported function
- Move SID functions to sid.c
- SetUserEnvironmentVariable should not fail, if can't get the short path. Instead, a long path
- Setup environment variables from Session Manager

* This fixes all winetests for userenv.dll (+20 passed tests)

svn path=/trunk/; revision=72066
2016-07-31 13:46:23 +00:00
James Tabor
2c2bd66efd [NtUser]
- Remove unused data.

svn path=/trunk/; revision=72065
2016-07-31 13:00:27 +00:00
Mark Jansen
179537bfc3 [BROWSEUI] Correct the 'Is this legal' url as suggested by Ken Rochard. Also rewrite the function to remove todo's, and make it localizable. CORE-11721 #resolve #comment Thanks!
svn path=/trunk/; revision=72063
2016-07-31 11:59:15 +00:00
Pierre Schweitzer
654cae59a0 [REISERFS]
Reduce verbosity

svn path=/trunk/; revision=72062
2016-07-31 10:13:39 +00:00
Mark Jansen
684feb7418 [ATL][ATL_APITEST] Implement / Improve CString, based upon the code that was already there. CORE-11579 #resolve
Add code + tests for:
Conversion of A->W and W->A, equality operators, MakeLower, MakeUpper, Find, FindOneOf, ReverseFind, Compare, Mid, Left, Right, Format, Replace, Trim, TrimLeft, TrimRight.

svn path=/trunk/; revision=72061
2016-07-30 19:07:43 +00:00
Hermès Bélusca-Maïto
47be569e64 [SCSIPORT]: Port Dmitry's fix from r72059 to our scsiport driver too. I'm wondering how "difficult" it would be to have some kind of scsiport library to be shared between the driver and freeldr's.
svn path=/trunk/; revision=72060
2016-07-30 16:20:41 +00:00
Dmitry Chapyshev
01bab59e21 [WHOAMI]
[ARP]
[TRACERT]
- Incorrect to compare the variable of BOOL type with TRUE. Any non-zero value is considered to be "true".

[FREELDR]
- Variable is assigned values twice
- The 'strlen' function was called multiple times inside the body of a loop
- It is inefficient to identify an empty string by using 'strlen(str) > 0' construct. A more efficient way is to check: str[0] != 0

[NTOBJSHEX]
[SLAYER]
[CMICONTROL]
- It is inefficient to identify an empty string by using 'strlen(str) > 0' construct. A more efficient way is to check: str[0] != 0

[SHELL32]
- There is no sense in testing the pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error 
- Verifying that a pointer value is not NULL is not required. The 'if (ptr != NULL)' check can be removed
- Fix copy-paste error in CMenuFocusManager::PlaceHooks()

[SRCLIENT]
- Remove unneeded check. A part of conditional expression is always false.

[DISK]
[ATAPI]
- Variable is assigned values twice

* All bugs found by PVS-Studio

svn path=/trunk/; revision=72059
2016-07-30 16:00:10 +00:00
Eric Kohl
19832336a1 [SOLITAIRE]
Add Portuguese/Brazillian translation.
Patch by Lucas Raziel.
CORE-11665 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=72058
2016-07-30 14:09:58 +00:00
Eric Kohl
2a7ad50640 [INF]
Update russian translation of inf strings.
Patch by amber.
CORE-11604 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=72057
2016-07-30 13:39:56 +00:00
Pierre Schweitzer
9c6fa5b19d [FASTFAT]
Fix a FIXME

svn path=/trunk/; revision=72056
2016-07-30 12:53:09 +00:00
Giannis Adamopoulos
7853148eb0 [BROWSEUI]
- Move handling of DISPID_NAVIGATECOMPLETE2 event from CAddressBand to CAddressEditBox as the todo comments say it should be.
- Remove the todo entries that are complete.
- Remove IDispatch from CAddressBand as it is not really needed. Now CAddressBand takes care only of positioning and handling the button while CAddressEditBox does all the parsing and interaction with the browser.

svn path=/trunk/; revision=72055
2016-07-30 12:47:39 +00:00
James Tabor
1d66234973 [NtUser]
- Fix hang while inputting mouse message. Fix CORE-9998.

svn path=/trunk/; revision=72054
2016-07-30 12:32:28 +00:00
Giannis Adamopoulos
fdff190335 [BROWSEUI]
- Use the _CreateInstance postfix for all functions that instantiate a class.
- Move the the CreateInstance functions of the exported classes to browseui.h where we can select uniformly which built in classes we use.

svn path=/trunk/; revision=72053
2016-07-30 11:53:16 +00:00
Dmitry Chapyshev
dea009126c [USER32]
- Add missing NULL-pointer checkes in rect functions
- Small coding-style fixes

svn path=/trunk/; revision=72052
2016-07-30 11:31:33 +00:00
Hermès Bélusca-Maïto
155818fc70 [PCIX]
Fix Device_SaveCurrentSettings: do not reference BarArray too soon if the index is out of bounds (in that case it means we are handling a ROM "BAR").
CID 716153, reported by Victor Martinez Calvo.
CORE-11215 #resolve

svn path=/trunk/; revision=72050
2016-07-29 13:44:37 +00:00
Hermès Bélusca-Maïto
d35cbe1643 [XDK]
- Move the PCI_COMMON_HEADER_LAYOUT next to the structures that use it.
- Add IRP flags description comments.

svn path=/trunk/; revision=72049
2016-07-29 13:17:58 +00:00
Giannis Adamopoulos
80cd3d14ba Fix build.
svn path=/trunk/; revision=72048
2016-07-29 12:59:16 +00:00
Giannis Adamopoulos
4d9d28fbd3 [SHELL32]
- Factor CFSDropTarget out of CFSFolder.
- For now their code is mixed (no code was moved), until we decide where exactly is should be kept.

svn path=/trunk/; revision=72047
2016-07-29 12:56:06 +00:00
Robert Naumann
a57e61507d [BROWSEUI] - explorerband: get the caption string from resource file instead of hardcoding it
svn path=/trunk/; revision=72046
2016-07-29 12:05:06 +00:00
Giannis Adamopoulos
5575b8bacc [SHELL32]
- CDefView: Add a missing error check.
CORE-11594

svn path=/trunk/; revision=72045
2016-07-29 12:03:20 +00:00
Pierre Schweitzer
80e79970b3 [EXT2]
Reduce driver verbosity

svn path=/trunk/; revision=72044
2016-07-29 11:54:08 +00:00
Giannis Adamopoulos
0aed20a50c [BROWSEUI]
- CExplorerBand: TranslateAcceleratorIO should return S_FALSE when it doesn't process the message in order to let other components process it.
CORE-11709

svn path=/trunk/; revision=72043
2016-07-29 10:38:22 +00:00
Pierre Schweitzer
b5746c9e6b [EXT2]
Upgrade the driver to release 0.68.

CORE-11714

svn path=/trunk/; revision=72042
2016-07-29 10:29:16 +00:00
Giannis Adamopoulos
45aa3e9f88 [SHELLL32]
- Split GenericExtractIcon_CreateInstance into CGuidItemExtractIcon_CreateInstance, CFSExtractIcon_CreateInstance and CDrivesExtractIcon_CreateInstance.

svn path=/trunk/; revision=72041
2016-07-29 06:21:11 +00:00
Sylvain Petreolle
4bbb7474b4 [INF]
Add data for generic container devices.

svn path=/trunk/; revision=72036
2016-07-28 17:12:31 +00:00
Thomas Faber
ba1b985215 [SHELL32_APITEST]
- Add a test for CShellLink::GetDescription/SetDescription
CORE-5272

svn path=/trunk/; revision=72035
2016-07-28 15:25:35 +00:00
Christoph von Wittich
ad14fb5ef9 [SHELL32] apply similar fixes to SetWorkingDirectory, SetArguments, SetIconLocation and SetRelativePath
svn path=/trunk/; revision=72034
2016-07-28 15:24:44 +00:00
Christoph von Wittich
de1219eb52 [SHELL32]check for NULL pointer in CShellLink::SetDescription. patch by Joachim Henze. fixes Opera 12 installer CORE-5272
svn path=/trunk/; revision=72033
2016-07-28 15:12:23 +00:00
Robert Naumann
372d5c10c4 [HIVECLS] Add support for RDP files. Patch by Jared Smudde. CORE-11655
svn path=/trunk/; revision=72032
2016-07-28 13:27:33 +00:00
Pierre Schweitzer
98136578cf [DOC]
Mark BTRFS as synced

svn path=/trunk/; revision=72031
2016-07-28 07:39:37 +00:00
Hermès Bélusca-Maïto
172e136024 [CONSRV]
- Do not hardcode the values of some flags used with GetKeyState.
- Rework a bit the 'OnScroll' function.
- Implement mouse scrolling the console.
CORE-9900 #resolve
CORE-8394
- In mouse selection mode, allow the user to enlarge the current selection area by pressing the SHIFT key together with clicking on some point.

svn path=/trunk/; revision=72030
2016-07-27 23:30:53 +00:00
Amine Khaldi
cb11c8aa56 [SETUPAPI] CORE-11689 is enough documentation for the issue, so we don't really need to mention it in every single build.
svn path=/trunk/; revision=72028
2016-07-27 21:38:56 +00:00
Giannis Adamopoulos
21c051f4ff [SHELL32]
- Query the drop effect from the key state. After latest wine sync we correctly get all possible effects instead of the effect of the last DragOver event.
CORE-11681

svn path=/trunk/; revision=72026
2016-07-27 20:51:36 +00:00
Pierre Schweitzer
b139d1b07b [BTRFS]
Import three fixes from my local GitHub repository:
- Don't attempt to remove Vcb from list twice on shutdown
- Properly add CCB to root_file
- Init cache for root_file so that cache uninit on shutdown isn't problematic

This fixes BTRFS in ReactOS.
These fixes have already been submitted upstream (https://github.com/maharmstone/btrfs/pull/23).

CORE-11674

svn path=/trunk/; revision=72024
2016-07-27 19:32:05 +00:00
Pierre Schweitzer
7695f39c11 [BTRFS]
Sync btrfs to 0.5.
This breaks BTRFS in ReactOS.

CORE-11674

svn path=/trunk/; revision=72023
2016-07-27 19:24:26 +00:00
Hermès Bélusca-Maïto
8c418c8bdb [SETUPAPI_WINETEST]: Use #ifdef __REACTOS__ instead to underline our local differences wrt. the synced Wine code. Per Amine request.
ROSTESTS_234

svn path=/trunk/; revision=72022
2016-07-27 19:17:35 +00:00
Hermès Bélusca-Maïto
9bd7b2e1f0 [SETUPAPI]: Temporarily remove the error popup since setupapi_winetest pops it out unexpectedly. We don't lose functionality wrt. what we had before r72008 (or with what Wine currently has).
CORE-11689

svn path=/trunk/; revision=72021
2016-07-27 19:12:35 +00:00
Hermès Bélusca-Maïto
1044e92a20 [SETUPAPI_WINETEST]: Temporarily "hackfix" the test so that it uses a more "suitable" test path.
ROSTESTS-234

svn path=/trunk/; revision=72020
2016-07-27 19:05:52 +00:00
Pierre Schweitzer
9c749a7606 [KMTESTS]
Add missing dependency

svn path=/trunk/; revision=72019
2016-07-27 16:40:30 +00:00
Thomas Faber
cb6e26b3db [NTOS:PO]
- Send power IRPs to the top of the device stack instead of the PDO
CORE-10110 #resolve

svn path=/trunk/; revision=72017
2016-07-27 11:15:52 +00:00
Hermès Bélusca-Maïto
7bd6365632 [SETUPAPI]: Implement SetupPromptForDiskA/W by importing dialog.c from Wine Staging 1.9.15.
(Add also the patch "Add patch to support IDF_CHECKFIRST in SetupPromptForDisk." by DarkPlayer - 541cc8d08661980dfe80fe2bb9dd27c91879e09f)

svn path=/trunk/; revision=72009
2016-07-27 00:48:41 +00:00
Hermès Bélusca-Maïto
86ff038c51 [SETUPAPI]
- Transform the cached OsVersionInfo structure into a OSVERSIONINFOEXW that is then reused in SetupDiGetActualSectionToInstallExW.
- Remove few unused hardcoded strings.
- Add two TRACEs in SetupDiGetActualSectionToInstallExW to debug diverse INF file installation problems.
- parser.c: enclose the contents of the for-loop inside braces.
- Implement pSetupSetGlobalFlags and pSetupModifyGlobalFlags, see https://msdn.microsoft.com/en-us/library/bb432397(v=vs.85).aspx
- Popup an error message box in InstallHinfSectionW if an error happened and if interactive setup is allowed (through the global setup flags).

svn path=/trunk/; revision=72008
2016-07-27 00:10:14 +00:00
Hermès Bélusca-Maïto
79ce70c1dd [NTVDM]: Don't attempt to deinitialize the video console if it wasn't previously initialized.
CORE-10182 #resolve

svn path=/trunk/; revision=72007
2016-07-26 19:57:40 +00:00
Hermès Bélusca-Maïto
ad81a85370 [INF]: Use the correct icon for audio controller devices in the device manager. By Jared Smudde.
CORE-11679 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72006
2016-07-26 19:09:18 +00:00
Aman Priyadarshi
6f2ba170ae Fixed write crashes, write support working. Tested on win2k3 sp2 vmware sata
svn path=/branches/GSoC_2016/AHCI/; revision=72005
2016-07-26 15:38:14 +00:00
Giannis Adamopoulos
37a1045d72 [BROWSEUI]
- CExplorerBand: Implement showing the context menu on right click.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=72004
2016-07-26 15:09:04 +00:00
Giannis Adamopoulos
0c47416f5d [BROWSEUI]
- CExplorerBand: Expand the tree view to the current folder when a new folder is browser (either with the addressbar or by double clicking a folder).
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=72003
2016-07-26 14:31:38 +00:00
Aman Priyadarshi
c903cda7aa Added write support, next operation code 53 27.
svn path=/branches/GSoC_2016/AHCI/; revision=72002
2016-07-26 14:15:15 +00:00
Pierre Schweitzer
4e4861b392 [NTOSKRNL_VISTA]
Implement KeQueryActiveProcessorCount().

CORE-11674

svn path=/trunk/; revision=72001
2016-07-25 20:45:48 +00:00
Hermès Bélusca-Maïto
b79e7d2eee [MMSYS]: Improve AddSoundProfile, by Victor Martinez Calvo (with 1 minor modification by myself):
 Don't return TRUE when CB_SETITEMDATA fails.
 Avoid pScheme NULL dereference if allocation fails. CID 1223154
 Avoid overflowing the destiny buffer by using StringCchCopy() CID 510953
and:
1) Make it more readable by returning as soon as possible when an error happens.
2) Make it more readable by reducing the nested ifs-checks.
3) Remove the added string in the combobox if the sound scheme buffer mem allocation fails (pt.3 modified).
CORE-11603 #resolve #comment Thanks!

svn path=/trunk/; revision=72000
2016-07-25 20:24:30 +00:00
Aman Priyadarshi
e51f406055 Handled SCSIOP_MODE_SENSE, Fixes made to maxLba count.
FileSystem detection is still not working :/

svn path=/branches/GSoC_2016/AHCI/; revision=71999
2016-07-25 19:50:09 +00:00
Thomas Faber
42abc25acc [TOOLS]
- Fix MSVC 2013+ build. Patch by Victor Matovykh.
CORE-11575 #resolve

svn path=/trunk/; revision=71998
2016-07-25 19:28:40 +00:00
Thomas Faber
4d367e4fd3 [SHELL32]
- Add missing dependency

svn path=/trunk/; revision=71997
2016-07-25 19:25:46 +00:00
Aman Priyadarshi
60e957af7b Handled SCSIOP_TEST_UNIT_READY
Changed Default status to SRB_STATUS_INVALID_REQUEST
Added support for 48bits in GetLba function

svn path=/branches/GSoC_2016/AHCI/; revision=71996
2016-07-25 11:09:25 +00:00
Christoph von Wittich
359533fc32 [ADVAPI32] silence debug spam
svn path=/trunk/; revision=71995
2016-07-25 11:07:44 +00:00
Thomas Faber
d84820daa7 [WIN32K:NTUSER]
- Fix UserDrawCaptionBar debug spam

svn path=/trunk/; revision=71994
2016-07-25 10:45:30 +00:00
Thomas Faber
5203dd99be [NTOS:CC]
- Unconditionally acquire the VACB lock during map/pin/unpin operations and release it appropriately
CORE-11555 #resolve
CORE-11654 CORE-11504 CORE-11328 #comment This might be fixed with r71993. Could you retry please?

svn path=/trunk/; revision=71993
2016-07-25 08:48:50 +00:00
Aleksandar Andrejevic
45fe0d3a21 [NTVDM]
Implement the VGA AC Color Select register.
Implement INT 0x10, AH = 0x10, subfunction AL = 0x13.


svn path=/trunk/; revision=71992
2016-07-24 18:25:50 +00:00
Thomas Faber
2a6c4f1119 [NTOS:CC]
- Centralize VACB locking/unlocking into inline functions for easier instrumentation

svn path=/trunk/; revision=71991
2016-07-24 17:10:30 +00:00
Aleksandar Andrejevic
7c0554a53f [NTVDM]
Always reset the AC latch before writing to the AC index register.
CORE-11669 #resolve #comment Should be fixed in revision r71990.


svn path=/trunk/; revision=71990
2016-07-24 15:45:50 +00:00
Hermès Bélusca-Maïto
493ec0db98 [EVENTVWR]
- Use helper functions for doing the filtering on the events (idea by Mark Jansen).
- Fix the states of menu items, depending on which event log/item (log file/filter; event item...) is currently selected.
- Correctly empty the event items list & cache whenever an event log/filter is closed (and avoid a crash when all logs/filters are closed and someone attempts to open an event item), during concurrent accesses. I use a reference count and AddRef/Release helpers.
- Get rid of the annoying log loading popup, and use instead the loading message displayed in the events listview as well as a progress-bar in the status bar.
CORE-11637

svn path=/trunk/; revision=71989
2016-07-24 15:24:50 +00:00
Aman Priyadarshi
71e41b01c6 Fixed SrbExtension == NULL bug! :D
svn path=/branches/GSoC_2016/AHCI/; revision=71988
2016-07-24 12:41:07 +00:00
Aman Priyadarshi
05153b057d Completed SCSIOP_READ_CAPACITY, SCSIOP_REPORT_LUNS, SCSIOP_READ
Updated INQUIRY Fields
Code Fixes
Stable, Tested, AHCI-Detection and Read working

svn path=/branches/GSoC_2016/AHCI/; revision=71987
2016-07-23 22:53:15 +00:00
Amine Khaldi
0fb5509517 [GDI32] Sync EMFDRV_PolyPolylinegon() with Wine Staging 1.9.14. CORE-11521
svn path=/trunk/; revision=71986
2016-07-23 21:33:40 +00:00
Mark Jansen
517ee59e43 [CRT][GDI32] Introduce atan2 library, use it for gdi32 to fix a crash. CORE-11521
As suggested by Thomas :)

svn path=/trunk/; revision=71985
2016-07-23 20:35:11 +00:00
Pierre Schweitzer
0ee9e9b016 [MPR]
Provide ReactOS specific implementation for WNetGetConnection(), we cannot use Wine's due to Wine specific MountMgr calls.

svn path=/trunk/; revision=71984
2016-07-23 19:52:23 +00:00
Christoph von Wittich
1ce557f97e [SHELL32] close hKey in error case
svn path=/trunk/; revision=71983
2016-07-23 19:39:16 +00:00
Thomas Faber
43ed362610 [NTOS:IO]
- Avoid infinite loop in IopMountVolume. Brought to you by Vadim Galyant.
CORE-11663 #resolve

svn path=/trunk/; revision=71982
2016-07-23 18:18:11 +00:00
Mark Jansen
98de7f1bae [SHELL32] Addendum to r71980, RegSetValueEx expects a size in bytes, not chars. CORE-10439
svn path=/trunk/; revision=71981
2016-07-23 13:15:19 +00:00
Christoph von Wittich
7541633310 [SHELL32] cache entries of "New" menu
CORE-10439 

svn path=/trunk/; revision=71980
2016-07-23 12:31:30 +00:00
Giannis Adamopoulos
73e04c0cd1 [SHELL32]
- CDefView: Add the skeleton check that should be used to implement moving items in the CDefView. Nothing more is implemented because GetKeyState is completely unreliable.

svn path=/trunk/; revision=71979
2016-07-23 08:42:38 +00:00
Hermès Bélusca-Maïto
e88de75145 [ADVPACK]: Addendum to r71977: Add the resource file into the CMakeList.
CORE-7645

svn path=/trunk/; revision=71978
2016-07-22 14:15:09 +00:00
Hermès Bélusca-Maïto
1296982b50 [ADVPACK]: Add file version information resource.
CORE-7645 #comment Please retest the installation of Visual Basic 6 runtime with revision >= 71977.

svn path=/trunk/; revision=71977
2016-07-22 13:19:25 +00:00
Eric Kohl
ad68bb1dc2 [USETUP]
Keyboard Modifier LEDs not working in usetup.
Patch by Carlo Bramini.
CORE-3368 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71976
2016-07-21 20:53:43 +00:00
Mark Jansen
ac99dacfb5 [ACPPAGE] Add windows ME to the Win98 selection item. Patch by Lee Schroeder. CORE-11606 #resolve #comment Thanks!
svn path=/trunk/; revision=71975
2016-07-21 17:29:41 +00:00
Thomas Faber
6ab411d1dc [SERIAL]
- Properly stub SerialPower
CORE-11648

svn path=/trunk/; revision=71974
2016-07-20 12:50:58 +00:00
Thomas Faber
40e83ead42 [PARPORT]
- Properly stub FdoPower and PdoPower
CORE-11648

svn path=/trunk/; revision=71973
2016-07-20 12:21:11 +00:00
Thomas Faber
bdb49d597f [PCIIDEX]
- Add a stub for PciIdeXPowerDispatch
CORE-11648

svn path=/trunk/; revision=71972
2016-07-20 11:49:22 +00:00
Eric Kohl
a60fc83f53 [SERVICES]
Service logon page:
- Handle the interactive service type flag.
- Change the service configuration in the apply function.

svn path=/trunk/; revision=71971
2016-07-19 21:30:45 +00:00
Amine Khaldi
99c2c38f44 [KERNEL32_WINETEST] Sync thread tests with Wine Staging 1.9.14 now that Thomas fixed CORE-11511.
svn path=/trunk/; revision=71970
2016-07-19 18:12:15 +00:00
Aman Priyadarshi
93ea028360 Implemented Dpc Routine, managed Srb functions and some code fixes!
svn path=/branches/GSoC_2016/AHCI/; revision=71969
2016-07-19 16:50:59 +00:00
Thomas Faber
4bcb47a522 [NTOS:KE]
- Load LDT on context switch if required.
CORE-11511 #resolve

svn path=/trunk/; revision=71967
2016-07-19 12:51:49 +00:00
Hermès Bélusca-Maïto
280b976e35 [REGEDIT]
- Minor whitespace fixes in main.c
- Use a correct info msgbox title when showing regedit command-line usage. Something to think about: translate the cmdline usage! :)

svn path=/trunk/; revision=71966
2016-07-18 22:27:17 +00:00
Eric Kohl
17cc3322a5 [SERVMAN]
Service logon property page:
- Fix initialization and display bugs.
- Start work on the 'Apply' function. It doe not apply changes yet.
- Add password check messages.

svn path=/trunk/; revision=71965
2016-07-18 21:49:19 +00:00
Hermès Bélusca-Maïto
cc99d87bf4 [BOOTDATA]: Disable automatic debugger startup on application crash. This allows getting back the error popup as we used to have, and also warn the user there was indeed a problem, instead of silently start the default debugger (that I've set to an unexistant "drwtsn.exe") and fail silently, since that default debugger doesn't exist.
CORE-11508

svn path=/trunk/; revision=71964
2016-07-18 19:25:53 +00:00
Amine Khaldi
2e9c3e57e4 [USER32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71963
2016-07-18 15:48:27 +00:00
Amine Khaldi
098b000c86 [USER32] Add missing lprc check in SetRect().
svn path=/trunk/; revision=71962
2016-07-18 15:46:38 +00:00
Amine Khaldi
a6161c8c11 [WS2_32_WINETEST] Sync with Wine Staging 1.9.14. Made possible thanks to Peter Hater's changes. CORE-11368 ROSTESTS-233
svn path=/trunk/; revision=71961
2016-07-18 10:44:58 +00:00
Amine Khaldi
a275f7904a [SHELL32] Add AVI file 151. By Jared Smudde. CORE-11638
svn path=/trunk/; revision=71960
2016-07-18 10:27:56 +00:00
James Tabor
56d0ed8cfd [User32]
- Fix log out shutdown dialog window input. See CORE-11633 #resolve


svn path=/trunk/; revision=71959
2016-07-18 02:35:46 +00:00
Hermès Bélusca-Maïto
d5ba2a3784 [EVENTVWR]
Commit "Part 1" of my Improvements for the Event Log Viewer. See CORE-11637 description for more details (too long to stay there).

svn path=/trunk/; revision=71958
2016-07-17 23:06:03 +00:00
Mark Jansen
0d4ae78fc9 [EXPLORER] Fix the Explore all users/open all users menu items. Patch by Jared Smudde. CORE-11146 #resolve #comment Thanks!
svn path=/trunk/; revision=71956
2016-07-16 17:49:27 +00:00
Eric Kohl
bca3b5833c Ooops! These were not meant to be committed!
svn path=/trunk/; revision=71955
2016-07-16 17:41:44 +00:00
Eric Kohl
949bd4b625 [SERVICES]
Check for NULL pointers before derreferecing them in ScmIsSameServiceAccount().
Patch by Victor Martinez Calvo.
CORE-11599 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71954
2016-07-16 17:39:37 +00:00
Eric Kohl
1ef04bbe0a [ADVAPI32]
Remove unneeded NULL checks at CreateServiceA/W and ChangeServiceConfigW/A().
Patch by Victor Martinez Calvo.
CORE-11610 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71953
2016-07-16 16:18:17 +00:00
Eric Kohl
50df31709e [LSASRV]
Fix cleanup in LsarRetrievePrivateData().
Modified patch by Victor Martinez Calvo.
CORE-11611 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71952
2016-07-16 14:57:33 +00:00
Thomas Faber
beec6930e7 [WS2_32]
- Fix a few ws2_32:getaddrinfo test failures. Based on a patch by Peter Hater.
CORE-11368

svn path=/trunk/; revision=71951
2016-07-16 07:49:30 +00:00
Thomas Faber
e556dea177 [KERNEL32]
- Fix GetComputerNameEx behavior with regard to NULL/non-NULL buffers and size calculation
CORE-11368

svn path=/trunk/; revision=71950
2016-07-16 07:08:21 +00:00
Mark Jansen
55cca82ae9 [EXPLORER] HACK: ignore unimplemented SetBandSiteInfo. Patch by Wim Hueskes. CORE-9809 #resolve #comment Thanks!
svn path=/trunk/; revision=71949
2016-07-15 23:33:53 +00:00
Hermès Bélusca-Maïto
42c9931850 [PSDK]: Add two missing flags concerning custom-drawn controls.
svn path=/trunk/; revision=71948
2016-07-15 21:12:52 +00:00
Amine Khaldi
4d6c550bad [KERNEL32] Check the return buffer for NULL before initializing the unicode string buffer with it. By Peter Hater. CORE-11368
svn path=/trunk/; revision=71947
2016-07-15 20:18:20 +00:00
James Tabor
0d440c625d [NtGdi]
- Make SetBkColor work the same as client side.

svn path=/trunk/; revision=71946
2016-07-15 20:13:33 +00:00
Hermès Bélusca-Maïto
3d3efd5dea [EVENTVWR]: Fix transparency problems for some icons.
svn path=/trunk/; revision=71944
2016-07-14 18:58:05 +00:00
Pierre Schweitzer
fccd3c6490 [BOOTLIB]
Fix checksum computation

CID #1363451

svn path=/trunk/; revision=71941
2016-07-14 13:04:08 +00:00
Pierre Schweitzer
ab07decf48 [BOOTLIB]
Fix out of bounds read.

CID #1363549

svn path=/trunk/; revision=71940
2016-07-14 12:58:29 +00:00
Pierre Schweitzer
b34c2f1548 [BOOTMGR]
Don't use uninit var.

CID #1363650

svn path=/trunk/; revision=71939
2016-07-14 12:46:31 +00:00
Pierre Schweitzer
d9e36e2928 [BOOTLIB]
Don't deal with uninit ptr.

CID #1363698

svn path=/trunk/; revision=71938
2016-07-14 12:40:17 +00:00
Pierre Schweitzer
e7bb031141 [NTOSKRNL]
Assert that the allocated buffers are not leaked.

CID #1248416

svn path=/trunk/; revision=71937
2016-07-14 12:21:57 +00:00
Pierre Schweitzer
aeaced7e5a [MUP]
Don't deal with uninit ptr.

CID #1322222

svn path=/trunk/; revision=71936
2016-07-14 12:07:05 +00:00
Mark Jansen
1e53a26381 [ACPPAGE] Remove unused var. CID 1363705
svn path=/trunk/; revision=71934
2016-07-13 18:44:51 +00:00
Mark Jansen
b53f38a463 [RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID 1363551
svn path=/trunk/; revision=71933
2016-07-13 18:33:42 +00:00
Mark Jansen
1aec6625e9 [ACLAYER] Use the return of StringCbPrintfW instead of ignoring it. CID 1363460-63, 65-70, 76, 78, 85, 88, 90
svn path=/trunk/; revision=71932
2016-07-13 18:10:37 +00:00
Mark Jansen
3fe36f5bb9 [APPHELP] Dereference after null check (default_dir). CID 1363509
svn path=/trunk/; revision=71931
2016-07-13 18:02:16 +00:00
Thomas Faber
02da519230 [NTOSKRNL_VISTA]
- Avoid ugly hacks
CORE-11596 #resolve

svn path=/trunk/; revision=71930
2016-07-13 17:48:21 +00:00
Hermès Bélusca-Maïto
8889af9d21 [NET]
No need to check for whether 'pBuffer' is NULL to call NetApiBufferFree, because:
- 'pBuffer' was used above this call without any particular checks;
- 'pBuffer' can be only null when NetUserEnum fails with an error different from NERR_Success or ERROR_MORE_DATA. But this case was actually checked for before using 'pBuffer'.
By Victor Martinez aka. Mr.Coverity ^^ :)
CID 1363629
CORE-11598 #resolve

svn path=/trunk/; revision=71929
2016-07-13 17:35:16 +00:00
Hermès Bélusca-Maïto
341b360aa5 [NTOSKRNL_VISTA lib]
Initialize utf8_ch_len to zero before using it (at each turn of the for-loop). As I couldn't find this code in Wine, I couldn't see whether they already fixed it or not. Caught by Victor.
CORE-11596

svn path=/trunk/; revision=71928
2016-07-13 16:43:16 +00:00
Hermès Bélusca-Maïto
d512139905 [SETUP]
- Fix leaking 'pSetupData' in case of failure. CID 1363604
- Since we know that in the remaining of the code, 'pSetupData' is a valid pointer, we can free it at the very end without rechecking whether it was NULL or not.
CORE-11591 #resolve

svn path=/trunk/; revision=71927
2016-07-13 16:33:37 +00:00
Hermès Bélusca-Maïto
368ccec209 [MAGNIFY]
Missing break. CID 1363532
CORE-11593 #resolve

svn path=/trunk/; revision=71926
2016-07-13 16:27:39 +00:00
Hermès Bélusca-Maïto
054f3b25f7 [MKHIVE]
- Fix usage of the 'Status' variable. CID 1363689
- Fix some DPRINTs.
CORE-11595 #resolve

svn path=/trunk/; revision=71925
2016-07-13 16:23:12 +00:00
Hermès Bélusca-Maïto
3aa8e4c2ac [CHARMAP]
Don't overrun FillGrid() when accessing the last elements. Rewrite the code using 'for' loops, in the same style as what is done elsewhere in the code. CID 1363552
CORE-11597 #resolve

svn path=/trunk/; revision=71924
2016-07-13 15:50:44 +00:00
Hermès Bélusca-Maïto
380484c985 [BOOTLIB]
- BiOpenKey is being feed with the wrong ElementHandle, it should be feed with ElementsHandle one. CID 1363670 . By Victor Martinez Calvo. CORE-11600 #resolve
[BOOTMGR]
- Fix an Assign vs Compare issue. CID 1363558 .  By Victor Martinez Calvo. CORE-11592 #resolve

svn path=/trunk/; revision=71923
2016-07-13 15:43:08 +00:00
Amine Khaldi
d90292f386 [BOOTLIB] Remove stray semicolon from a condition in ConsoleCreateLocalInputConsole(). Patch by Victor for CID 1363701. CORE-11588
svn path=/trunk/; revision=71919
2016-07-13 09:08:34 +00:00
James Tabor
fa03a0ab6b [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 4. CORE-11368
svn path=/trunk/; revision=71918
2016-07-13 03:16:00 +00:00
James Tabor
e5dd5ba644 [User32]
- Sync/port up to Wine Staging 1.9.11 or current. See CORE-11368.

svn path=/trunk/; revision=71917
2016-07-13 03:09:01 +00:00
James Tabor
dc9ad2ee45 [NtUser]
- Fix crash in User32:win:test_winproc_handles. See CORE-11368.

svn path=/trunk/; revision=71916
2016-07-13 03:04:20 +00:00
James Tabor
edd88125ab [User32]
- Fix regression in API:RealGetWindowClass test due to wine sync/port.
- ReactOS use of DIALOG_get_info is an enhanced fork of the same wine function.

svn path=/trunk/; revision=71915
2016-07-13 00:40:07 +00:00
Hermès Bélusca-Maïto
5c7bfe2f11 [CONCFG]: Add needed inclusion for StrSafe functions.
svn path=/trunk/; revision=71914
2016-07-13 00:09:36 +00:00
Hermès Bélusca-Maïto
47d9985bb4 [CONSRV]
- Fix potential Out-of-bounds access during string copy/concatenation. CID 1322098.
- Fix check for NULL after potential dereference. CID 1322175.

svn path=/trunk/; revision=71913
2016-07-13 00:06:09 +00:00
Hermès Bélusca-Maïto
a5b76eb779 [SHELL32]
- Use StringCbCopyW

[PROGMAN]
- Use StringCbCopyW: CID #1363712.
- Don't read registry values in a registry key if we failed to open it. CID #514350.

svn path=/trunk/; revision=71912
2016-07-12 23:00:50 +00:00
Hermès Bélusca-Maïto
4ef92827aa [USETUP]
- Don't hardcode buffer string size in GetPartTypeStringFromPartitionType calls.
- Possibly check whether the first character of the PartTypeString string is NULL before printing a generic partition information in case the partition type is unknown. We might check instead for the STRING_FORMATUNKNOWN string...
- Don't check for PartTypeString being NULL since it's not a pointer. CID #1363481 and CID #1363494.

svn path=/trunk/; revision=71911
2016-07-12 22:30:55 +00:00
Amine Khaldi
5ec6f3d9fc [KERNEL32_WINETEST] Sync with Wine Staging 1.9.14 except thread tests. CORE-11511
svn path=/trunk/; revision=71910
2016-07-12 21:10:24 +00:00
Amine Khaldi
54f3884769 [NTDLL_WINETEST] Partial sync with Wine Staging 1.9.14. CORE-11368 holds some remaining tests.
svn path=/trunk/; revision=71909
2016-07-12 20:40:20 +00:00
James Tabor
69fd33d2a0 [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 3. CORE-11368
svn path=/trunk/; revision=71907
2016-07-12 20:08:44 +00:00
James Tabor
45799931c9 [Win32SS]
- Update (Sync/Port) User32:Text to Wine Staging 1.9.11, see CORE-11368.

svn path=/trunk/; revision=71906
2016-07-12 20:06:30 +00:00
James Tabor
d9af32368a [Win32SS]
- Cleanup error codes for Classes and Menus.
- Update (Sync/Port) User32:Dialog to Wine Staging 1.9.11, see CORE-11368.
- Now pass exactly the same tests as windows, except for the two ToDos lines 1596 & 1617. The other test failures are on wine for not being compatible!

svn path=/trunk/; revision=71904
2016-07-12 18:23:04 +00:00
Amine Khaldi
1c7b4d4699 [SCHTASKS] Import from Wine Staging 1.9.14. CORE-11576
svn path=/trunk/; revision=71903
2016-07-12 15:35:42 +00:00
Amine Khaldi
a9be1b1122 [UXTHEME_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71902
2016-07-12 11:13:34 +00:00
Amine Khaldi
2a753b8ad3 [UXTHEME] Apply Wine commit 997e204 by Louis Lenders: Fix CloseThemeData with invalid handle value. CORE-11368
svn path=/trunk/; revision=71901
2016-07-12 11:12:58 +00:00
Amine Khaldi
94cda5e077 [SHELL32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71900
2016-07-12 10:49:51 +00:00
Amine Khaldi
d86051a8c3 [PSDK] Add some missing ASSOCF_* enum elements.
svn path=/trunk/; revision=71899
2016-07-12 10:46:22 +00:00
Amine Khaldi
c59d46ec65 [ADVAPI32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71898
2016-07-12 10:38:36 +00:00
Mark Jansen
78df1a00d6 [TRANSLATION] Russian translations by Nikolay Burshtyn (amber). CORE-11567 #resolve #comment Thanks!
svn path=/trunk/; revision=71896
2016-07-11 19:02:48 +00:00
Amine Khaldi
a4db20e9a9 [INCLUDES/WINE] Update test.h.
svn path=/trunk/; revision=71895
2016-07-11 10:47:42 +00:00
Amine Khaldi
dc0f375a2d [GDI32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71894
2016-07-11 10:46:47 +00:00
Hermès Bélusca-Maïto
b9a5fd8135 Fix usage of the first parameter for TranslateAccelerator: this should be the handle of the window that will receive the accelerator commands (not the window from which the message originates).
svn path=/trunk/; revision=71893
2016-07-11 01:57:47 +00:00
Eric Kohl
3d32d3faaf [SERVMGR]
Service recovery page:
- Dissect the 'run process' command line and display it.
- Implement the 'Browse' button.

svn path=/trunk/; revision=71892
2016-07-10 21:54:17 +00:00
Eric Kohl
a9f075392d [NEWDEV]
Fix words in newdev. (Italian translation)
Patch by decodp.
CORE-11437 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71891
2016-07-10 20:26:05 +00:00
Pierre Schweitzer
79bcce0cbe [FASTFAT]
CcMapData 4th arg isn't a boolean but a flag. Fix it accordingly
CcPinRead 4th arg isn't a boolean but a flag. Fix it accordingly

svn path=/trunk/; revision=71890
2016-07-10 18:16:03 +00:00
Pierre Schweitzer
bc25d25107 [CDFS]
CcMapData 4th arg isn't a boolean but a flag. Fix it accordingly

svn path=/trunk/; revision=71889
2016-07-10 18:06:47 +00:00
Pierre Schweitzer
e8028606cf [FASTFAT][CDFS]
Call CcMapData(), CcPinRead() inside a SEH block
This allows returning more significant error codes on failure

[NTOSKRNL]
Enable Thomas code for raising exceptions

CORE-9848

svn path=/trunk/; revision=71888
2016-07-10 17:14:33 +00:00
Mark Jansen
7320b9bca3 [SDK] Add the first appcompat database, containing references to version lie shims. CORE-11302 #resolve
svn path=/trunk/; revision=71887
2016-07-10 16:21:53 +00:00
Mark Jansen
e3639a814e [SDK][XML2SDB] Introducing the xml2sdb host tool, used to convert xml files to appcompat Sdb files. CORE-11302
Uses tinyxml2 to parse the xml.
Thanks to Thomas for reviewing / suggesting fixes!

svn path=/trunk/; revision=71886
2016-07-10 16:14:39 +00:00
Mark Jansen
704241af92 [APPHELP] Prepare sdbwrite related api for a new hosttool. CORE-11302
- Adding an extra argument to SdbReAlloc
- Do not rely on platform wcs* functions.

svn path=/trunk/; revision=71885
2016-07-10 16:06:39 +00:00
Eric Kohl
35e5c8b39f [USETUP]
Add CAPS-LOCK support to the keyboard layout.
Patch by Carlo Bramini.
CORE-3368 #comment Thanks a lot!

svn path=/trunk/; revision=71884
2016-07-10 15:51:45 +00:00
Thomas Faber
20b9815882 [NTOS:CC]
- Raise exceptions on failure in CcMapData if RAISE_FROM_CC_MAP_DATA is defined. This is how the function should behave, and should be enabled once all our file system drivers correctly handle this.
CORE-9848

svn path=/trunk/; revision=71883
2016-07-10 14:46:37 +00:00
Mark Jansen
954b67bd37 [WIN32SS] Do not try to call DevModes when it is NULL (mirror drivers). Patch by Victor Matovykh. CORE-11441 #resolve #comment Thanks!
svn path=/trunk/; revision=71882
2016-07-10 14:23:58 +00:00
Mark Jansen
0ecb33fb4b [RAPPS] Fix some translated / misspelled tags.
svn path=/trunk/; revision=71881
2016-07-10 00:18:20 +00:00
Hermès Bélusca-Maïto
7e912fee22 [SHELL32]
- Fix the last parameter of a StringCchCopyEx call; fix a misspelling.
- Do not exclusively use GetFileAttributesEx to retrieve file attributes (for the file properties dialog). Indeed, it happens that this API (as well as GetFileAttributes), and equivalently, NtQueryFullAttributesFile (as well as NtQueryAttributesFile), can fail on *locked system* files (on Win2k/Win2k3/Win7, and on ROS), such as C:\pagefile.sys . See for example http://stackoverflow.com/questions/16772931/getfileattributes-on-locked-system-file and my comment in CORE-10757 . Therefore to retrieve file attributes also for these files we do a trick: we call FindFirstFile on the full path to said file. It happens that FindFirstFile can work on locked system files, and thus we are able to retrieve their attributes (+ size and file dates) as well!
See the code for more details.
CORE-10757 #resolve

svn path=/trunk/; revision=71880
2016-07-09 23:18:39 +00:00
Hermès Bélusca-Maïto
7795699eaa [KERNEL32]
- Do not use a "magic number" for the return value 0xFFFFFFFF from GetFileAttributes.
- Use a meaningful variable name for retrieving the result of GetFileAttributes.

svn path=/trunk/; revision=71879
2016-07-09 22:23:23 +00:00
Thomas Faber
121e0791d7 [SERVMAN]
- Fix MSVC build

svn path=/trunk/; revision=71878
2016-07-09 21:05:00 +00:00
Thomas Faber
ea98e8a8fd [LIBXML2]
- Fix MSVC build (already fixed upstream)

svn path=/trunk/; revision=71877
2016-07-09 21:01:11 +00:00
Amine Khaldi
b938f584f2 [LIBXSLT] Update to v1.1.29. CORE-11557
svn path=/trunk/; revision=71876
2016-07-09 18:30:47 +00:00
Amine Khaldi
5c2ff24677 [LIBXML2] Update to v2.9.4. CORE-11556
svn path=/trunk/; revision=71875
2016-07-09 18:07:58 +00:00
Amine Khaldi
2647877ea8 [CMAKE] Update baseaddress.cmake for the GCC build. CORE-11382
svn path=/trunk/; revision=71874
2016-07-09 17:38:40 +00:00
Amine Khaldi
647586b9d5 [FONTSUB] Import from Wine Staging 1.9.13. CORE-11219
svn path=/trunk/; revision=71873
2016-07-09 17:18:33 +00:00
Eric Kohl
995a10c899 [SERVMAN]
Add logon and recovery property pages. Still work in progress.

svn path=/trunk/; revision=71872
2016-07-09 16:51:21 +00:00
Pierre Schweitzer
746de0cb15 [FLTMGR]
Fix GCC build

svn path=/trunk/; revision=71871
2016-07-09 16:41:18 +00:00
Pierre Schweitzer
e9ce17fc5f [DDK]
MS DDK defines FLT_CALLBACK_DATA_QUEUE_FLAGS as ULONG.

svn path=/trunk/; revision=71870
2016-07-09 16:40:31 +00:00
Pierre Schweitzer
e5ca5b3971 [NTFS][FREELDR]
Cherrypick r71807 by Trevor Thompson

svn path=/trunk/; revision=71869
2016-07-09 16:21:13 +00:00
Thomas Faber
2bdf474cc4 [ACPI]
- This bus hosts all physical hardware. Surely some of it can be in the paging path...

svn path=/trunk/; revision=71868
2016-07-09 15:40:02 +00:00
Hermès Bélusca-Maïto
9a5faf7cc9 [EVENTVWR]
- Display 3 different "types" of logs in the tree: "system logs": Application, Security, System, that are the minimal set of standard logs present on NT systems; "application logs": all the other logs, that are available to the event log service (both "system" and "application" logs are registered in the registry, under the "EventLog" service key). Finally comes the "user logs" that consists in all the log files that are manually opened by the user inthe event log viewer.
- Use 'PEVENTLOGRECORD' instead of 'EVENTLOGRECORD *'.
- Don't hardcode the buffer length values in the size parameters used in the GetEventUserName function.
- Merge both GetDisplayNameFile and GetDisplayNameID helpers into a single GetDisplayNameFileAndID function, since the former two were always called in tandem.
- Forbid editing the labels of the tree root nodes "system"/"application"/"user" logs.
- Splitter bar: set the cursor only when it is on the bar, not when it is above the status bar...
- Resize the status bar only in WM_SIZE events.
- Remove few dead code.

svn path=/trunk/; revision=71867
2016-07-09 12:32:21 +00:00
Amine Khaldi
834f7edab0 [FREETYPE] Update to v2.6.4. CORE-11553 CORE-11543
svn path=/trunk/; revision=71866
2016-07-08 21:07:25 +00:00
Hermès Bélusca-Maïto
b5bf3c7a1f [FLTMGR]: Remove a MSVC warning: FltObjectDereference, whose prototype is publicly defined in fltkernel.h, doesn't return any value.
svn path=/trunk/; revision=71864
2016-07-08 17:44:59 +00:00
Ged Murphy
442231df6f - Slight code cleanup
- Add missing PAGED_CODE (thanks thomas)

svn path=/trunk/; revision=71863
2016-07-08 13:41:31 +00:00
Ged Murphy
7a8d83b7ea [NTOS]
- Implement IoCreateFileSpecifyDeviceObjectHint - will be needed for fltmgr
- Rename IoCreateFile to IopCreateFile and forward both IoCreateFile and IoCreateFileSpecifyDeviceObjectHint to that routine
- Add support to IopParseDevice to check for a top level device hint and use that instead of the real device.
- Create a file object extension in IopParseDevice and use that to store our top level device hint data
- Update IoGetRelatedDeviceObject to check for file object extensions and return the 'fake' top level device if we have one

svn path=/trunk/; revision=71862
2016-07-08 13:18:39 +00:00
Ged Murphy
5095fb9b9e [SDK]
- Add missing filter manager status codes

svn path=/trunk/; revision=71861
2016-07-08 13:05:33 +00:00
Ged Murphy
6e3d7d5199 [FLTMGR]
Move it to a more correct place in the tree

svn path=/trunk/; revision=71860
2016-07-08 13:04:44 +00:00
Ged Murphy
02ded7fff1 [FLTMGR]
- Implement basic versions of FltRegisterFilter and FltUnregisterFilter
- Add layout of data for FLT_FILTER, FLT_INSTANCE, FLT_OBJECT and their accociated data
- Add basic rundown protection for the FLT_FILTER object
- Removed from the build for now because GCC doesn't like our fltkernel.h header

svn path=/trunk/; revision=71859
2016-07-08 12:55:20 +00:00
Christoph von Wittich
872139bf03 [SETUPAPI] Properly export pSetupDoesUserHavePrivilege CORE-11544
svn path=/trunk/; revision=71856
2016-07-08 11:26:24 +00:00
Amine Khaldi
231f83e176 [SETUPAPI] Properly stub pSetupDoesUserHavePrivilege() export. CORE-11544
svn path=/trunk/; revision=71855
2016-07-08 10:45:30 +00:00
Daniel Reimer
de51e2d7d6 [RAPPS]
Remove .net 4 again. We have a rule regarding entries in RAPPS. Stuff that works can be added, thats why I ask for pics proving that. I fully confirm a working setup, but thats it. I have no clue how these pics running paint.net were made, but let me add this one: ONLY pics made of vanilla TRUNK as proof please. I will be readded as soon as it really works in TRUNK.

svn path=/trunk/; revision=71854
2016-07-08 10:16:48 +00:00
Amine Khaldi
20c16fce39 [MBEDTLS] Update to v2.3.0. CORE-11534
svn path=/trunk/; revision=71853
2016-07-08 09:44:52 +00:00
Hermès Bélusca-Maïto
bdffeb24d3 [EVENTVWR]: Fix the look of the status bar.
svn path=/trunk/; revision=71852
2016-07-07 23:32:55 +00:00
Hermès Bélusca-Maïto
b7c9f67f33 [EVENTVWR]: Allow the user to enumerate the events from the oldest to the newest, or vice-versa.
svn path=/trunk/; revision=71851
2016-07-07 23:03:34 +00:00
Hermès Bélusca-Maïto
4713d06eeb [EVENTVWR]
- Change the closed-folder icon, by Jared Smudde :)
- Add "open" and "log settings" menu items. Implementation will be done later.

svn path=/trunk/; revision=71850
2016-07-07 21:52:22 +00:00
James Tabor
6944d128ef [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 3. CORE-11368
svn path=/trunk/; revision=71849
2016-07-07 17:22:10 +00:00
Daniel Reimer
9b98a50a01 [RAPPS]
Auto Fixup of dead links, fix some BOMs, sizes and their units

svn path=/trunk/; revision=71848
2016-07-07 16:30:21 +00:00
James Tabor
60370b0622 [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 2. CORE-11368
svn path=/trunk/; revision=71847
2016-07-07 15:37:02 +00:00
James Tabor
eaef5b9f37 [NtUser]
- Patch by Victor Matovykh : Cleanup and optimization. See CORE-11479.

svn path=/trunk/; revision=71846
2016-07-07 15:21:54 +00:00
James Tabor
4cf4d58a41 [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 1. CORE-11368
svn path=/trunk/; revision=71845
2016-07-07 15:20:03 +00:00
Daniel Reimer
929d0fa6ce [RAPPS]
Add Freemat to the React OS application manager
CORE-10128 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=71844
2016-07-07 11:12:54 +00:00
Daniel Reimer
b0235824ff [RAPPS]
New app to Manager Apps by r57zone (author of software)
CORE-11332 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=71843
2016-07-07 11:09:21 +00:00
Daniel Reimer
a230db93a6 [RAPPS]
Scilab for Rapps by Rama Teja Gampa
CORE-10977 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=71842
2016-07-07 11:04:54 +00:00
Daniel Reimer
d0657155c8 [RAPPS]
Add Far Manager in ReactOS App Manager
ROSAPPS-328 #resolve #comment Added, thx ^^ Btw, ROSAPPS is NOT for RAPPS entries, but for rosapps subtree bugreports.

svn path=/trunk/; revision=71841
2016-07-07 10:58:26 +00:00
Daniel Reimer
4bc5a3a34b [RAPPS]
Add .NET framework 4.0 to RAPPS by Alexander Rechitskiy
CORE-11523 #resolve #comment Added, thx for that nice find ^^

svn path=/trunk/; revision=71840
2016-07-07 10:28:41 +00:00
Daniel Reimer
9ce2c4f771 [RAPPS]
Add unxutils to rapps
CORE-10701 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=71839
2016-07-07 10:22:02 +00:00
Daniel Reimer
aeb7d5cfc0 [RAPPS]
Add tcc 0.9.26 by Mark Jansen
CORE-10636 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=71838
2016-07-07 10:20:05 +00:00
Hermès Bélusca-Maïto
1a6189885a [EVENTVWR]: Improve the user interface of the Event Log Viewer:
- Use a tree to list the available system logs (and in the future, the manually opened logs within the viewer).
- Allow the user to resize the treeview/listview.
- Use the standard shell about-box dialog to display the "About..." notice + copyright.
- Improve the Event Log Viewer icon, and add new ones (folders + eventlog file).

svn path=/trunk/; revision=71836
2016-07-06 23:14:56 +00:00
Mark Jansen
bcb7df7665 [SHELL32] Disable Paste menu items when no items are in the clipboard. Patch by Jared Smudde. CORE-11492 #resolve #comment Thanks!
svn path=/trunk/; revision=71834
2016-07-06 19:30:59 +00:00
Thomas Faber
d5c3d6287d [XDK]
- Define DRIVER_DISPATCH_PAGED and DRIVER_DISPATCH_RAISED

svn path=/trunk/; revision=71833
2016-07-06 10:52:08 +00:00
Christoph von Wittich
9875a2c7aa [GDI32]
reduce diff to wine (metafile)

svn path=/trunk/; revision=71831
2016-07-06 06:20:36 +00:00
Aleksandar Andrejevic
cb085e5f4a [NTVDM]
Implement an 800x600 256-color mode for testing purposes. Its register values
and mode information should be correct already.
Properly reset the VCLKs and the MCLK.
Clear the screen after switching to an extended video mode.
Fix the screen size computation in "High Resolution" modes.


svn path=/trunk/; revision=71830
2016-07-06 04:26:16 +00:00
Hermès Bélusca-Maïto
103794988b [CLIPBRD]: Use NULL for null pointer.
[EVENTVWR]: Add folder icons (needed for later).

svn path=/trunk/; revision=71829
2016-07-05 23:42:40 +00:00
Thomas Faber
b8507bdc86 [NTOS:OB]
- Always set LinkHandle in NtOpenSymbolicLinkObject, as shown by tests
CORE-11509 #resolve

svn path=/trunk/; revision=71828
2016-07-05 22:24:54 +00:00
Hermès Bélusca-Maïto
385c44897b [RAPPS(_new)][REGEDIT]: Fix our usage of (Begin)DeferWindowPos. See https://blogs.msdn.microsoft.com/oldnewthing/20050706-26/?p=35023 for more details.
svn path=/trunk/; revision=71827
2016-07-05 21:30:44 +00:00
Hermès Bélusca-Maïto
8d68884908 [REGEDIT]: We resize 4 windows --> BeginDeferWindowPos(4).
svn path=/trunk/; revision=71826
2016-07-05 21:13:48 +00:00
Daniel Reimer
f7107dbbab [BOOTDATA]
CA roots update

svn path=/trunk/; revision=71825
2016-07-05 20:54:34 +00:00
Hermès Bélusca-Maïto
796e90ac61 [SHORTCUTS]: Add a Task-Manager shortcut in the System Tools menu, for usability purposes.
CORE-11512 #resolve

svn path=/trunk/; revision=71824
2016-07-05 18:43:08 +00:00
Aman Priyadarshi
b86b9221d4 - Handled DET = 03h case.
- Registered (Interrupt enable and SERR clear) working port.
Everything is working now! :D

svn path=/branches/GSoC_2016/AHCI/; revision=71822
2016-07-05 16:51:17 +00:00
Amine Khaldi
eaf1910a98 [SCHANNEL] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71821
2016-07-05 10:38:15 +00:00
Hermès Bélusca-Maïto
342c539058 [RTL]: Follow what I guess might be Alex' coding standards.
svn path=/trunk/; revision=71819
2016-07-05 00:38:28 +00:00
Hermès Bélusca-Maïto
2f20a38912 Fix misspelling "Detatch" --> "Detach"
svn path=/trunk/; revision=71818
2016-07-04 22:35:15 +00:00
Hermès Bélusca-Maïto
d5594d193f [NTOS]: Add a human-readable description for ObInitProcess as well.
svn path=/trunk/; revision=71817
2016-07-04 22:30:40 +00:00
Hermès Bélusca-Maïto
83bcad15b2 [NTOS]
- Document ObKillProcess.
- Implement and document ObClearProcessHandleTable (based on ObKillProcess).

svn path=/trunk/; revision=71816
2016-07-04 22:27:35 +00:00
Hermès Bélusca-Maïto
348c8da73d [NTOS]: Exit gently in MmCreateTeb if the call to MiCreatePebOrTeb failed. This is OK since the callers of MmCreateTeb check for its failure, and also perform cleanup & exit in accordance.
svn path=/trunk/; revision=71815
2016-07-04 22:23:07 +00:00
Eric Kohl
8b24e1b048 [SERVICES]
Fix yet another MSDN bug: ChangeServiceConfig2 ALWAYS requires SERVICE_CHANGE_CONFIG and SERVICE_START access rights and an enabled SE_SHUTDOWN_PRIVILEGE privilege when you try to set the failure actions. Otherwise, you will just get a STATUS_ACCESS_DENIED.

- Remove the access and privilege checks from ScmSetFailureActions and move them to RChangeServiceConfig2W.

svn path=/trunk/; revision=71814
2016-07-04 21:37:24 +00:00
Eric Kohl
8fdfbb5bd0 [SC]
- Fix buggy actions parser.
- Use proper NUL character instead of zero.

svn path=/trunk/; revision=71813
2016-07-04 21:04:00 +00:00
Hermès Bélusca-Maïto
d39e489c3a [RTL]: Code styling modifications only:
- Use RtlCopyMemory,
- Don't hardcode types for sizeof(parameters),
- Braces for 'for'-loops,
- while (TRUE) instead of while (1),
- Use ULONG for integer iterator that cannot be negative,
- Start sentences with capitals.

svn path=/trunk/; revision=71812
2016-07-04 20:40:45 +00:00
Hermès Bélusca-Maïto
982870596b [RTL]
- Duplicate the standard (input/output/error) handles from the parent process, when creating a new one.
- Properly fail RtlCreateUserProcess if any of the ZwWriteVirtualMemory or RtlpInitEnvironment calls fail.

svn path=/trunk/; revision=71811
2016-07-04 20:28:20 +00:00
Aman Priyadarshi
49f68f18d2 - Fixed Offset Issue (VendorId and Reversed space offset in Memory Registers)
- DET = 03h Device is Ready!
- Fixed some warnings

svn path=/branches/GSoC_2016/AHCI/; revision=71810
2016-07-04 20:20:25 +00:00
Aman Priyadarshi
b6081b04fc Debugging Port Device Status Check
svn path=/branches/GSoC_2016/AHCI/; revision=71809
2016-07-04 19:01:07 +00:00
Eric Kohl
4d933beb4c [BOOTDATA]
Revert to r71800.
Do not remove the time zone index because it is used to map countries to timezones.
CORE-11526 #resolve

svn path=/trunk/; revision=71808
2016-07-04 18:27:08 +00:00
Aleksandar Andrejevic
2e172f7a6e [NTVDM]
Remove the standard VGA modes from the VBE table as they're irrelevant for the
VBE driver.
Fix several bugs in INT 10h, AX = 4F02h:
- Don't crash if the video mode was not found.
- AH should be set to 1 on failure, and 0 on success.


svn path=/trunk/; revision=71806
2016-07-04 04:08:01 +00:00
Hermès Bélusca-Maïto
d13229363c [SHELL32]: Fix a regression I introduced in r71804.
svn path=/trunk/; revision=71805
2016-07-03 23:58:37 +00:00
Hermès Bélusca-Maïto
35eeb37cd4 [SHELL32]: Shell policies should also read what's stored in HKEY_LOCAL_MACHINE ... Actually SHRestricted should call SHRestrictionLookup from shlwapi.dll . I think I'll have to fork this code...
svn path=/trunk/; revision=71804
2016-07-03 23:36:21 +00:00
Aleksandar Andrejevic
f715167660 [NTVDM]
Implement getting/setting the current VESA video mode.
Reset the extended SVGA registers when switching to a standard VGA mode.


svn path=/trunk/; revision=71803
2016-07-03 19:06:33 +00:00
Hermès Bélusca-Maïto
62efa61633 [SHELL32]: Add a trailing "\1" for the MRU list commands.
Why? For ReactOS/Windows interoperability purposes.
Because if we don't do that, and then we use our shell32.dll on Windows and use the Run-File dialog, we start adding entries in the RunMRU registry key and, when those are then read by Windows' shell32, they are cut at the last backslash character...
CORE-11390 #resolve

svn path=/trunk/; revision=71802
2016-07-03 18:41:34 +00:00
Eric Kohl
649d151946 [BOOTDATA]
Remove the Index value from the time zone entries. We do not need it any more and it has been removed from Windows Vista.

svn path=/trunk/; revision=71801
2016-07-03 18:40:27 +00:00
Eric Kohl
d576e781b4 [BOOTDATA]
- Add "Belarus Time Zone".
- Add "Russia Time Zone 3", "Russia Timezone 10" and "Russia Time Zone 11".
- Fix some standard time and daylight time names.

svn path=/trunk/; revision=71800
2016-07-03 18:27:17 +00:00
Hermès Bélusca-Maïto
9b48938a7d [SHELL32]: Implement RunFileDlg notification (in RunDlgProc), as described in http://www.codeproject.com/KB/shell/runfiledlg.aspx .
CORE-11390

svn path=/trunk/; revision=71799
2016-07-03 18:07:40 +00:00
Hermès Bélusca-Maïto
6ed6175bfe [SHELL32][UNDOCSHELL]
- Whitespaces fixes (tabs -> spaces);
- Code formatting.

svn path=/trunk/; revision=71798
2016-07-03 18:05:27 +00:00
Eric Kohl
61e26d8796 [USETUP]
Fix crash during installation.
Patch by Wim Hueskens.
CORE-11409 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71797
2016-07-03 14:57:21 +00:00
Hermès Bélusca-Maïto
fcba48cf23 [BOOTDATA]: Apply the new russian timezones, by "amber".
CORE-10558 #resolve #comment Finally committed!! ^^ Please retest :)

svn path=/trunk/; revision=71796
2016-07-03 14:10:58 +00:00
Eric Kohl
2bbf6f4153 [MSGINA]
Icon fix ups.
Patch by Jared Smudde.
CORE-11417 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71795
2016-07-03 13:55:15 +00:00
Hermès Bélusca-Maïto
08f4d01b5a [KERNEL32]: Implement support for Auto-Execute (AE) Debugging: starting a user-specified debugger (e.g., DrWatson on Windows, etc...) which attaches to a user-mode application when the latter crashes.
CORE-11508 #resolve

svn path=/trunk/; revision=71794
2016-07-03 13:52:28 +00:00
Hermès Bélusca-Maïto
21d2accad3 [KERNEL32]
- No need to explicitely convert the pointers to PVOID in the NtQueryInformationProcess calls, and do not hardcode the size-of the variable being passed in parameter.
- "Fix" FatalAppExitW: it's only in checked builds that one can continue running the application even after a FatalAppExitW call.

svn path=/trunk/; revision=71793
2016-07-03 13:48:50 +00:00
Amine Khaldi
f844461ede [COMCTL32_WINETEST] Addendum to r71791. CORE-11383
svn path=/trunk/; revision=71792
2016-07-03 12:30:14 +00:00
Amine Khaldi
94977b7bd4 [COMCTL32] Apply Wine Staging commit 35bf531 by Michael Müller: Preserve custom colors between subitems. (v2). CORE-11383
svn path=/trunk/; revision=71791
2016-07-03 12:29:33 +00:00
Amine Khaldi
4daede09c7 [README.WINE] Mark some modules as synced with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71790
2016-07-03 12:11:37 +00:00
Amine Khaldi
0f78ecdf45 [WINMM_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71789
2016-07-03 11:58:56 +00:00
Amine Khaldi
26ffc33b4f [IPHLPAPI_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71788
2016-07-03 11:56:44 +00:00
Amine Khaldi
b798efdb73 [SETUPAPI_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71787
2016-07-03 11:54:30 +00:00
Amine Khaldi
5166023f77 [SERVICES_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71786
2016-07-03 11:52:01 +00:00
Eric Kohl
13c8b90fd3 [TRANSLATION]
Updating Turkish Translation
Patch by Erdem Ersoy.
CORE-11476 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71785
2016-07-03 11:50:29 +00:00
Amine Khaldi
78cd78815a [SECUR32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71784
2016-07-03 11:50:18 +00:00
Amine Khaldi
6e323c1869 [SCHANNEL_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71782
2016-07-03 11:46:08 +00:00
Amine Khaldi
6b4d3c57da [SHELL32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71781
2016-07-03 11:36:38 +00:00
Amine Khaldi
2e960e0505 [MSVCRT_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71780
2016-07-03 11:33:21 +00:00
Amine Khaldi
5ed7ca77cb [GDI32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368 CORE-11331
svn path=/trunk/; revision=71779
2016-07-03 11:29:52 +00:00
Amine Khaldi
b5f83611ac [WINHTTP_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71778
2016-07-03 11:21:35 +00:00
Amine Khaldi
7c7f34ef58 [PSDK] Update ntsecpkg.h. CORE-11368
svn path=/trunk/; revision=71777
2016-07-03 11:19:58 +00:00
Amine Khaldi
9865b5c0b9 [STDOLE32.TLB] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71776
2016-07-03 11:18:44 +00:00
Amine Khaldi
234f15fb5c [WIDL] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71775
2016-07-03 11:16:23 +00:00
Eric Kohl
893c145538 [TRANSLATION]
Romanian resources maintenance.
Patch by Ștefan Fulea.

CORE-11439 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71774
2016-07-03 09:51:22 +00:00
Thomas Faber
31ac33cd43 [KMTESTS]
- Addendum to r71770
CORE-11509

svn path=/trunk/; revision=71773
2016-07-03 09:23:37 +00:00
Eric Kohl
7507c1b2fc [SC]
Failure command:
- Parse the actions parameter.
- Adjust the shutdown privilege in order to set the failure actions.

svn path=/trunk/; revision=71772
2016-07-03 08:56:43 +00:00
Thomas Faber
f4bbaca31f [NTOS:OB]
- Use the correct buffer size for the link target in NtCreateSymbolicLinkObject
CORE-11509

svn path=/trunk/; revision=71771
2016-07-03 08:54:20 +00:00
Thomas Faber
8e4e756180 [KMTESTS:OB]
- Add a test for ZwCreateSymbolicLinkObject/ZwQuerySymbolicLinkObject
CORE-11509

svn path=/trunk/; revision=71770
2016-07-03 08:31:28 +00:00
Thomas Faber
869afd1010 [NTOS:OB]
- Use SEH to access the link target buffer in NtQuerySymbolicLinkObject
CORE-11509

svn path=/trunk/; revision=71769
2016-07-03 08:22:43 +00:00
Hermès Bélusca-Maïto
1feab2643f [KERNEL32]: Formatting fixes (whitespace...) only.
svn path=/trunk/; revision=71768
2016-07-02 20:52:25 +00:00
Hermès Bélusca-Maïto
12df37e35b [NTDLL]
Export RtlMapSecurityErrorToNtStatus since we have it available in our RTL library (however it is still only stubbed).

[RTL][NDK]
- NT-ify a bit error.c
- Add the prototypes of the functions that manipulate the "last Win32 error" and "last NT status".
- Add the prototypes of the functions that get & set the thread-error-mode (for hard-errors).
- Define some prototypes for NTOS_MODE_USER only.

[CONSRV]
RtlGetLastNtStatus is now in the NDK, no need to keep its prototype there anymore.

svn path=/trunk/; revision=71767
2016-07-02 20:37:35 +00:00
Amine Khaldi
7afa7475cc [INCLUDE/WINE] Update winternl.h. CORE-11368
svn path=/trunk/; revision=71766
2016-07-02 16:07:18 +00:00
Amine Khaldi
30ea2bc4e3 [QUARTZ_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71765
2016-07-02 15:56:56 +00:00
Amine Khaldi
b9d9c7829d [QUARTZ] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71764
2016-07-02 15:56:39 +00:00
Amine Khaldi
f88ab4534f [QEDIT_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71763
2016-07-02 15:52:42 +00:00
Amine Khaldi
011897033a [QEDIT] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71762
2016-07-02 15:52:21 +00:00
Amine Khaldi
79394b09e8 [PSDK] Update qedit.idl. CORE-11368
svn path=/trunk/; revision=71761
2016-07-02 15:42:23 +00:00
Amine Khaldi
8c8e0a9437 [DMUSIC] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71760
2016-07-02 15:40:22 +00:00
Amine Khaldi
b0105c5dc3 [DINPUT] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71759
2016-07-02 15:38:59 +00:00
Amine Khaldi
b30f3bad0f [D3DRM_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71758
2016-07-02 15:34:17 +00:00
Amine Khaldi
a8ea8a5e22 [D3DRM] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71757
2016-07-02 15:33:46 +00:00
Amine Khaldi
2115bc3365 [PSDK] Update d3drm.h. CORE-11368
svn path=/trunk/; revision=71756
2016-07-02 15:33:00 +00:00
Amine Khaldi
7a9c8ac328 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71755
2016-07-02 15:29:06 +00:00
Amine Khaldi
7d6b32431e [WINDOWSCODECS] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71754
2016-07-02 15:28:24 +00:00
Amine Khaldi
7eb19611cb [DEVENUM] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71753
2016-07-02 15:24:22 +00:00
Amine Khaldi
8b6b9733a6 [WININET_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71752
2016-07-02 15:23:55 +00:00
Amine Khaldi
7702f2f814 [WININET] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71751
2016-07-02 15:23:01 +00:00
Amine Khaldi
91e48f534f [PSDK] Update wincodec.idl. CORE-11368
svn path=/trunk/; revision=71750
2016-07-02 15:16:32 +00:00
Amine Khaldi
9419c686af [AMSTREAM_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71749
2016-07-02 15:15:26 +00:00
Amine Khaldi
c317834428 [PSDK] Update rpcdce.h. CORE-11368
svn path=/trunk/; revision=71748
2016-07-02 15:04:47 +00:00
Amine Khaldi
84e73a82e5 [PSDK] Add missing MUI_MERGE_SYSTEM_FALLBACK, MUI_MERGE_USER_FALLBACK and MUI_UI_FALLBACK.
svn path=/trunk/; revision=71747
2016-07-02 13:51:18 +00:00
Amine Khaldi
83402051c9 [UNICODE] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71746
2016-07-02 13:46:41 +00:00
Amine Khaldi
2f09a8e360 [AMSTREAM] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71745
2016-07-02 13:35:40 +00:00
Amine Khaldi
76c1345b9d [INETCPL] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71744
2016-07-02 13:28:27 +00:00
Amine Khaldi
aacb42ba4f [RPCRT4] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71743
2016-07-02 13:24:53 +00:00
Amine Khaldi
0ca1812305 [SETUPAPI] Properly stub SetupAddSectionToDiskSpaceListA, SetupAddToDiskSpaceListA and SetupQueryDrivesInDiskSpaceListA.
svn path=/trunk/; revision=71742
2016-07-02 13:17:44 +00:00
Amine Khaldi
1926b0f97a [SHLWAPI_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71741
2016-07-02 13:17:08 +00:00
Amine Khaldi
9bf8cb2c3f [SHLWAPI] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71740
2016-07-02 13:15:50 +00:00
Amine Khaldi
4c898721f4 [T2EMBED] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71739
2016-07-02 13:14:52 +00:00
Amine Khaldi
4db199664d [URLMON_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71738
2016-07-02 13:12:56 +00:00
Amine Khaldi
a9c2a0cb11 [URLMON] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71737
2016-07-02 13:11:50 +00:00
Amine Khaldi
a6a823f8ed [VBSCRIPT] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71736
2016-07-02 13:09:58 +00:00
Amine Khaldi
031bcbf7cc [WBEMPROX_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71735
2016-07-02 13:07:46 +00:00
Amine Khaldi
b822436c25 [WBEMPROX] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71734
2016-07-02 13:06:47 +00:00
Amine Khaldi
8822aee40f [WINSCARD] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71733
2016-07-02 13:05:27 +00:00
Amine Khaldi
2eca3a3c3e [WINTRUST_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71732
2016-07-02 13:04:19 +00:00
Amine Khaldi
98ed140b4f [WINTRUST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71731
2016-07-02 13:03:38 +00:00
Amine Khaldi
f287457a06 [WLDAP32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71730
2016-07-02 13:02:31 +00:00
Amine Khaldi
017d96265c [VERSION_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71729
2016-07-02 13:01:07 +00:00
Amine Khaldi
487d9a6aed [VERSION] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71728
2016-07-02 12:58:50 +00:00
Amine Khaldi
b9122a338a [XMLLITE_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71727
2016-07-02 12:57:07 +00:00
Amine Khaldi
acef311a10 [PSDK] Update xmllite.idl. CORE-11368
svn path=/trunk/; revision=71726
2016-07-02 12:56:15 +00:00
Amine Khaldi
ad8d7855c6 [XMLLITE] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71725
2016-07-02 12:53:37 +00:00
Amine Khaldi
071c42fe94 [USP10_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71724
2016-07-02 12:51:53 +00:00
Thomas Faber
74a531a658 [DNSAPI]
- Fix infinite loop in DnsQuery_W

svn path=/trunk/; revision=71723
2016-07-02 12:10:05 +00:00
Amine Khaldi
384142a8d9 * Missed this bit.
svn path=/trunk/; revision=71722
2016-07-02 11:58:22 +00:00
Amine Khaldi
8d0a00f1e8 [USP10] Attempt to fix non PCH build.
svn path=/trunk/; revision=71721
2016-07-02 11:55:26 +00:00
Amine Khaldi
008194c52a [USP10] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71720
2016-07-02 11:44:01 +00:00
Thomas Faber
4a36ad96cb [DNSAPI_APITEST]
- Handle unexpected failures without crashing
ROSTESTS-226

svn path=/trunk/; revision=71717
2016-07-02 08:49:07 +00:00
Hermès Bélusca-Maïto
0e71aef30a [TASKMGR]
debug.c:
- Don't hardcode the size of the string buffers.
- Only use KEY_QUERY_VALUE right to query the values inside a registry key.
- Fix size parameter value given to RegQueryValueEx.
- Use ZeroMemory instead of memset(..., 0, ...) (heh, we're in Win32 guys!)
- Close thread-and-process handles of the spawned debugger app.

svn path=/trunk/; revision=71716
2016-07-01 21:23:47 +00:00
Sylvain Petreolle
817eecf900 [SECUR32]
Enable LsaEnumerateLogonSessions and LsaGetLogonSessionData implemtations, used by VirtualBox guest additions.
CORE-7424

svn path=/trunk/; revision=71715
2016-07-01 19:55:32 +00:00
Hermès Bélusca-Maïto
22724e306e [NTOS]
The "BuildLab" string now contains the build number (date + revision number), together with the compiler version used to compile ReactOS.
CORE-6611 CORE-7889 CORE-8877

[WIN32K]
Now use the "BuildLab" string that is read from the registry to be displayed in the desktop watermark, instead of building it at run-time.
Addendum to r71504, CORE-11349

Based on an idea by Mark Jansen (learn_more).

svn path=/trunk/; revision=71714
2016-07-01 19:45:39 +00:00
Ged Murphy
c26e66bc8d The javascript search is turd...
svn path=/trunk/; revision=71712
2016-07-01 17:29:19 +00:00
Thomas Faber
1fd8fbb550 [DNSAPI]
- Check for NULL pointer in DnsQuery to avoid crashing tests

svn path=/trunk/; revision=71711
2016-07-01 17:19:04 +00:00
Thomas Faber
f6bb8b1fb6 [DNSAPI_APITEST]
- Fix unix build
ROSTESTS-226

svn path=/trunk/; revision=71710
2016-07-01 15:19:40 +00:00
Thomas Faber
2d22483bef [DNSAPI_APITEST]
- Add a test for DnsQuery. Patch by Víctor Martínez Calvo, with additional tests and fixes by me.
ROSTESTS-226 #resolve

svn path=/trunk/; revision=71709
2016-07-01 14:44:55 +00:00
Hermès Bélusca-Maïto
e82d66cfa5 [KERNEL32]: Don't hardcode flag values for NtOpenKey.
svn path=/trunk/; revision=71708
2016-06-30 20:34:10 +00:00
James Tabor
74a8923afe [Win32SS]
- Remove unused flag and set old menu type back, based on wine.

svn path=/trunk/; revision=71707
2016-06-30 17:01:14 +00:00
Ged Murphy
2dc8635605 - Revert the revert, we're now back to the latest config file.
- Turn off SERVER_BASED_SEARCH in the hope that it fixes the search issues.

svn path=/trunk/; revision=71706
2016-06-30 16:52:44 +00:00
Aman Priyadarshi
68e6647b7f - Completed Interrupt Handler Routine
- Added Inquiry Completion Routine
Check Notes.txt

svn path=/branches/GSoC_2016/AHCI/; revision=71705
2016-06-30 16:04:50 +00:00
James Tabor
e95ca2d8b7 [NtUser]
- Use internal function to validate menu handle. See CORE-11479 for more information.

svn path=/trunk/; revision=71704
2016-06-30 15:48:20 +00:00
Hermès Bélusca-Maïto
876a3b2681 [KERNEL32]
- Whitespace fixes (dosdev.c, except.c, loader.c)
- except.c: Remove some unneeded casts; NtQueryInformationProcess for 'ProcessDebugPort' is implemented and therefore it will never return STATUS_NOT_IMPLEMENTED.

svn path=/trunk/; revision=71703
2016-06-30 14:00:34 +00:00
Hermès Bélusca-Maïto
b92e83d7b9 [NOTEPAD]: Fix German menu keyboard shortcuts, by Joachim Henze.
CORE-11461 #resolve #comment German shortcut fixed, thanks!

svn path=/trunk/; revision=71702
2016-06-29 23:21:07 +00:00
Hermès Bélusca-Maïto
168b37af43 [CONSRV]: "Fix" pasting non-ansi characters in console by removing the code that was too careful (when pasting text we don't generally use the associated virtual key/scan code, but just the unicode character itself.
CORE-11465 #resolve #comment Fixed! You can paste cyrillic text in the console without problems, and it is correctly understood.

svn path=/trunk/; revision=71701
2016-06-29 23:14:29 +00:00
Hermès Bélusca-Maïto
cf4c3fc4ee [SHORTCUTS]: Update the translations for the ReactOS Read-Me file desktop shortcut. Courtesy David Quintana (gigaherz) for spanish, 'valeriusL' for russian, Grégory Macário Harbs (Mysoft) for portuguese, myself for german, italian, dutch and ukrainian (translators, please check those 4 last languages ^^ ).
svn path=/trunk/; revision=71700
2016-06-29 21:19:13 +00:00
Hermès Bélusca-Maïto
144be49260 [PING]: Fix statistics information in the case sending a ping packet fails. Patch by Tim Crawford.
CORE-10274 #resolve #comment Fixed, thanks for the report!

svn path=/trunk/; revision=71699
2016-06-29 20:30:43 +00:00
Hermès Bélusca-Maïto
666b0279ee [NOTEPAD]: Fix russian menu keyboard shortcuts, by 'denis2dev'.
CORE-11461 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=71698
2016-06-29 20:25:49 +00:00
Hermès Bélusca-Maïto
c37ff9ea32 [SUBST]
- Update the resource program description.
- Convert to full UNICODE.
- Use Win32 functions where possible.
- Factor-out the usage of QueryDosDevice into a QuerySubstedDrive function, that returns error codes according to whether the specified drive is a mapped (substed) drive, or is just an existing drive that is not a mapping, or if the drive does not exist. This allows us to detect attempts to use a drive letter that is not a mapped drive, to define a new mapping, and if so we reject such attempt.
This fixes CORE-10681 #resolve #comment Fixed with another patch according to my last remark.

svn path=/trunk/; revision=71695
2016-06-29 00:38:51 +00:00
Hermès Bélusca-Maïto
3d73fce572 [COMP]: Fix code header & resource program description.
svn path=/trunk/; revision=71694
2016-06-29 00:29:27 +00:00
Hermès Bélusca-Maïto
38416a7c00 [SUBST]
- Headers reordering.
- Use ARRAYSIZE.
- Give the internal helper function IsSubstedDrive just the single letter of the drive to check for.
- AddSubst and DeleteSubst: both take a drive string of *exactly* two characters: the drive letter and the ':' (and of course there's the NULL terminator): fix the parameter check in this regard.
- AddSubst: It is possible on Windows to use the DefineDosDevice API to map a drive letter to a *file* (yes yes!!) (but the mapping made is unusable). Forbids this case in SUBST since it is not made for that.
CORE-10681

svn path=/trunk/; revision=71693
2016-06-28 20:22:07 +00:00
Hermès Bélusca-Maïto
6d8d3402b3 [SUBST]: CORE-10681 #comment Apply part of Peter Hater's patch proposed in CORE-10681, that is, fixing the usage of QueryDosDevice API, but without the new IsDriveUsed functionality. (r71692)
svn path=/trunk/; revision=71692
2016-06-28 19:21:08 +00:00
Hermès Bélusca-Maïto
31eec4a410 [LAUTUS.MSSTYLES]: Russian translation by 'amber'
CORE-11425 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=71691
2016-06-28 18:54:16 +00:00
Hermès Bélusca-Maïto
469896aec5 [COMP]: Russian translation by 'amber'
CORE-11424 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=71690
2016-06-28 18:53:12 +00:00
James Tabor
87b3226b1d [NtUser]
- Remove unused code, enhance wine'isms while checking for menus.

svn path=/trunk/; revision=71689
2016-06-28 16:15:06 +00:00
James Tabor
4c070bf073 [NtUser]
- Patch by Victor Matovykh : Remove menu spacing if there is no menu to paint.

svn path=/trunk/; revision=71688
2016-06-28 15:56:21 +00:00
Hermès Bélusca-Maïto
5113536603 [KERNEL32]: Whitespace fixes only, no functional code changes.
svn path=/trunk/; revision=71687
2016-06-27 22:36:12 +00:00
Eric Kohl
def1d69426 [SERVICES]
RSetServiceObjectSecurity: Modify and store a service security descriptor.

svn path=/trunk/; revision=71686
2016-06-27 22:35:54 +00:00
Eric Kohl
90c41c110a [RTL]
Implement the core functionality of RtlpSetSecurityObject. Still incomplete.

svn path=/trunk/; revision=71685
2016-06-27 22:25:17 +00:00
Eric Kohl
aa7b502c14 [SERVICES]
- Create the absolute default service security descriptor when services.exe starts up.
- Create a self-relative security descriptor whenever it is needed.

svn path=/trunk/; revision=71684
2016-06-27 22:19:19 +00:00
Hermès Bélusca-Maïto
0a1b24ef17 [SUBST]: Fix help message indentation in different languages.
svn path=/trunk/; revision=71683
2016-06-27 20:10:59 +00:00
Hermès Bélusca-Maïto
a34c94d027 [SHELL32]: Adjust the size of the static text in the logoff dialog, for German language. Patch by 'reactosfanboy'.
CORE-11446 #resolve #comment Thanks!

svn path=/trunk/; revision=71682
2016-06-27 19:44:20 +00:00
Aman Priyadarshi
2cb1b3c60d Next: Interrupt Handler for completed FIS commands.
Notes.txt

svn path=/branches/GSoC_2016/AHCI/; revision=71681
2016-06-27 12:58:04 +00:00
Eric Kohl
86b93c239e [SERVICES]
Create an individual security descriptor for each service. We cannot use a common default security descriptor because RtlSetSecurityObject will free the old security descriptor when we try to set a new one.

svn path=/trunk/; revision=71679
2016-06-26 20:09:37 +00:00
Hermès Bélusca-Maïto
4fb300ea06 [EVENTVWR]
- No need to pop up an error box if we cannot find an event message resource DLL for the current event log.
- Flatten out GetEventMessageFileDLL a bit.
- Fix a comment.

svn path=/trunk/; revision=71678
2016-06-26 19:36:38 +00:00
Eric Kohl
d8eb428154 [SERVICES]
Use self-relative security descriptors only:
- Convert the default service security descriptor to the self-relative format.
- Remove security descriptor format conversions from ScmReadSecurityDescriptor and ScmWriteSecurityDescriptor.

svn path=/trunk/; revision=71676
2016-06-26 15:02:48 +00:00
Mark Jansen
6f6f0dfc4e [SCHANNEL] add missing function to the delayload header. Spotted by Peter Hater. CORE-11270 #resolve
svn path=/trunk/; revision=71675
2016-06-26 12:52:46 +00:00
Pierre Schweitzer
1edb644ad2 [FASTFAT]
Don't allow renaming a directory if there are opened files in it.
The way we do it for now isn't fully optimal and could be really improved, but that's a first step in the right direction.
This should help getting rid of FAT volumes corruption.
This also fixes a few winetests it seems.

CORE-11426 #comment Patch that fixes bug 3 committed in r71674

svn path=/trunk/; revision=71674
2016-06-26 10:23:35 +00:00
Thomas Faber
d19532d463 [NTOS:LPC]
- Avoid dereferencing a null pointer in LpcpDeletePort. By Samuel Serapión.
CORE-6850 #resolve

svn path=/trunk/; revision=71673
2016-06-25 23:27:45 +00:00
Thomas Faber
b25491463d [SHELL32_APITEST]
- Add a test for CShellLink GetPath/SetPath behavior with environment variables. Patch by Andreas Maier.
ROSTESTS-229 #resolve

svn path=/trunk/; revision=71672
2016-06-25 22:09:49 +00:00
Hermès Bélusca-Maïto
dbffece26e Fix build (i.e. a change that shouldn't have been done).
svn path=/trunk/; revision=71671
2016-06-25 20:12:18 +00:00
Hermès Bélusca-Maïto
21cc5e26a7 [EVENTVWR]
- Remove a unused header.
- Start (re)working on the functions that retrieve strings associated to event categories and messages.
- Just display the event category number if we are unable to retrieve its associated string.
- If we cannot retrieve the event source for formatting purposes, use a default string and append the event strings to it.
- Fix some problems related to the usage of 'lpComputerName': this global variable stores the computer name on which the Event Viewer is running (or connected to) and view the available logs. Don't overwrite it with computer names from the events.

- Modify some localized strings in the resource files. Translators, please review/fix translations!

svn path=/trunk/; revision=71670
2016-06-25 20:08:58 +00:00
Hermès Bélusca-Maïto
60aee9fc9e [EVENTVWR]
- Use C-style comments.
- Move the helper FreeRecords function closer to where it is used.
- Use the EVENTLOG_BASE_KEY define instead of re-hardcoding the registry path to the EventLog service.

svn path=/trunk/; revision=71669
2016-06-25 19:36:59 +00:00
Amine Khaldi
94c119a9c9 [MSI_WINETEST] Sync with Wine Staging 1.9.12. CORE-11266
svn path=/trunk/; revision=71668
2016-06-25 11:28:00 +00:00
Amine Khaldi
47da43b8e1 [MSI] Sync with Wine Staging 1.9.12. CORE-11266
svn path=/trunk/; revision=71667
2016-06-25 11:27:22 +00:00
Amine Khaldi
c0e08dd9be [PSDK] Add missing msidbServiceInstallErrorControl enum.
svn path=/trunk/; revision=71666
2016-06-25 11:26:38 +00:00
Aman Priyadarshi
b8af2c6014 Implemented AhciBuild_PRDT
svn path=/branches/GSoC_2016/AHCI/; revision=71659
2016-06-22 16:08:45 +00:00
Ged Murphy
a95c7e6be8 Let's see if reverting the doxyfile makes doxygen useful again (or just breaks it)
svn path=/trunk/; revision=71656
2016-06-21 09:02:06 +00:00
Aman Priyadarshi
ca8a828d02 Please look at notes.txt for implementation and progress status.
svn path=/branches/GSoC_2016/AHCI/; revision=71655
2016-06-20 11:49:22 +00:00
Hermès Bélusca-Maïto
3a5a38a065 [i8042prt]: Add yet another Dell Latitude D620 hack to make its trackpad work.
CORE-11431 #resolve
CORE-6901

svn path=/trunk/; revision=71654
2016-06-19 13:13:01 +00:00
Eric Kohl
309b68de7d [SC]
Add EnumDepend command.

svn path=/trunk/; revision=71653
2016-06-18 11:18:53 +00:00
Eric Kohl
47dae4bd05 [SC]
Add GetKeyName command.

svn path=/trunk/; revision=71651
2016-06-16 21:18:59 +00:00
Aman Priyadarshi
b27dbd3e4b fixed portCount boundary problem :D
svn path=/branches/GSoC_2016/AHCI/; revision=71650
2016-06-16 21:14:03 +00:00
Mark Jansen
2df110e92d [MSGINA_APITEST] Add a test for ShellDimScreen, used to fade out the background of the logoff dialog. Thanks to Jared for finding the api, and Hermès for his help! CORE-11422
svn path=/trunk/; revision=71649
2016-06-16 21:00:08 +00:00
Eric Kohl
7d66c9341d [SC]
Add GetDisplayName command.

svn path=/trunk/; revision=71648
2016-06-16 19:47:50 +00:00
Aman Priyadarshi
5b776020ae - Fixed CMakeLists issues reported by hbelusca
- Fixed ROS name issue reported by hbelusca
- Handled non fatal device error interrupts
- AhciProcessIO Implemented
- code clean

svn path=/branches/GSoC_2016/AHCI/; revision=71647
2016-06-16 17:02:55 +00:00
Eric Kohl
ffe9e79d41 [SC]
- Reorganized some commands in order to add erros and success messages.
- Added error and success messages.
- Enabled usage text for the failure command.

svn path=/trunk/; revision=71645
2016-06-15 21:28:33 +00:00
Mark Jansen
3320cc95a2 [SHELL32] Use the logoff dialog instead of the generic ConfirmDialog. Patch by Jared Smudde. CORE-11413 #resolve #comment Thanks!
svn path=/trunk/; revision=71643
2016-06-15 17:46:26 +00:00
Hermès Bélusca-Maïto
2a6da4ca41 [APITESTS]: Fix MSVC warning C4114: "same type qualifier used more than once".
svn path=/trunk/; revision=71642
2016-06-15 17:45:06 +00:00
Aman Priyadarshi
dcf485d6f3 Added AHCI_Global_HBA_CAP_S64A support
Added AhciProcessIO
Added RC file
Added CMAKE file
And Some fixes

svn path=/branches/GSoC_2016/AHCI/; revision=71641
2016-06-15 17:07:26 +00:00
Eric Kohl
caa61ecac3 [SC]
Add some error and success messages to the config and description commands.

svn path=/trunk/; revision=71640
2016-06-14 22:00:34 +00:00
Eric Kohl
464f46d352 [SC]
Merge the failure functions into a single file.

svn path=/trunk/; revision=71639
2016-06-14 20:58:37 +00:00
Eric Kohl
71cb6b0b4d [SC]
- Add the 'failure' command. The 'actions' option is not implemented yet.

svn path=/trunk/; revision=71638
2016-06-14 20:34:21 +00:00
Ged Murphy
1f533a9d6b [NTOS]
- Properly implement ObpValidateAccessMask
- If the security descriptor has a system acl, the caller will need access to it

svn path=/trunk/; revision=71636
2016-06-14 18:01:02 +00:00
Hermès Bélusca-Maïto
bf37176da7 [SHELL32]
- Use similar shell def-view window styles as on Windows.
- Add a "hack" to force the shell progman desktop window to get its correct window name, when running our shell on Windows. I don't know why calling CreateWindowExW(WS_EX_TOOLWINDOW, szProgmanClassName, szProgmanWindowName, ...) with a valid szProgmanWindowName string still persists in setting the window name to NULL... If someone has an idea, please let me know!
- Addendum to CORE-11375: Create the shell desktop view with the same size as the current desktop's workarea. Confirmed with ApiMonitor on Windows. I add some "FIXME" to make future developers think about possible improvements in the code.

svn path=/trunk/; revision=71635
2016-06-13 20:27:57 +00:00
Eric Kohl
4cb718e650 [SC]
Merge the config functions into a single file.

svn path=/trunk/; revision=71634
2016-06-13 20:01:47 +00:00
Eric Kohl
fdf12baa2b [SC]
- Move ParseCreateArguments to the misc.c file, rename it to ParseCreateConfigArguments and tweak it for use in the config command.
- Implement the config command.

svn path=/trunk/; revision=71633
2016-06-13 19:43:02 +00:00
Hermès Bélusca-Maïto
fc0c674649 [SHELL32]: Fix some whitespace and comments.
svn path=/trunk/; revision=71632
2016-06-13 19:39:35 +00:00
Hermès Bélusca-Maïto
20324ae269 [TELNET]: Add russian translation by "amber".
CORE-11411

svn path=/trunk/; revision=71631
2016-06-13 19:18:36 +00:00
Hermès Bélusca-Maïto
722e7e4aaf [DEVMGR]: Fix resource compiler error in MSVC 2010 or GCC' windres. Detected by Victor Martinez Calvo.
CORE-11408

svn path=/trunk/; revision=71630
2016-06-13 12:54:01 +00:00
Daniel Reimer
40e7477403 [RAPPS]
Script check. Fix any broken links. Update Hashes

svn path=/trunk/; revision=71629
2016-06-12 22:21:40 +00:00
Eric Kohl
c7664e0ded [SC]
Merge the description functions into a single file.

svn path=/trunk/; revision=71628
2016-06-12 20:12:15 +00:00
Eric Kohl
3746117c61 [SC]
- Add the 'description' command.
- Fix a little display bug in the 'qdescription' command: Do not print '(null)' if the service does not have a description.

svn path=/trunk/; revision=71627
2016-06-12 19:18:15 +00:00
Eric Kohl
b3bcb0725a [ADVAPI32]
Implement I_ScGetCurrentGroupStateW.

svn path=/trunk/; revision=71626
2016-06-12 17:48:09 +00:00
Daniel Reimer
2d6b126e44 [RAPPS]
Fix Burnaware hash
CORE-11190 #resolve #comment Fixed, thx ^^

svn path=/trunk/; revision=71625
2016-06-12 17:37:39 +00:00
Daniel Reimer
eed1cd063e [RAPPS]
Wrong version in Free Stopwatch entry.
CORE-11198 #resolve

svn path=/trunk/; revision=71624
2016-06-12 17:04:13 +00:00
Hermès Bélusca-Maïto
d63e0ea3fc [ROSTEST:PAINTDESKTOP]: Improve the test: don't force complete redraw when resizing the window, and return a non-zero value from WM_ERASEBKGD if the PaintDesktop call succeeded.
svn path=/trunk/; revision=71623
2016-06-12 16:48:25 +00:00
Hermès Bélusca-Maïto
ac4a897155 [ROSTESTS:USER32] Add an interactive test demonstrating how the PaintDesktop API should behave visually, and how we are not correctly doing well in this regard in ReactOS...
svn path=/trunk/; revision=71622
2016-06-12 14:34:58 +00:00
Hermès Bélusca-Maïto
0301f591be [NETSHELL]: Update russian translation by "leha-bot" and "amber".
CORE-11392

svn path=/trunk/; revision=71621
2016-06-12 13:50:33 +00:00
Hermès Bélusca-Maïto
4f1d2e9e7f [DEVMGR]: Update russian translation by "leha-bot" and "amber".
CORE-11392

svn path=/trunk/; revision=71620
2016-06-12 13:49:02 +00:00
Hermès Bélusca-Maïto
ff2db5c56f [DXDIAG]: Update russian translation by "leha-bot" and "amber".
CORE-11392

svn path=/trunk/; revision=71619
2016-06-12 13:46:51 +00:00
Hermès Bélusca-Maïto
af0f92795c [DXDIAG]: Sync some translations with the english one.
svn path=/trunk/; revision=71618
2016-06-12 13:43:39 +00:00
Hermès Bélusca-Maïto
3ebacc1882 [SC]: Fix a typo in the help.
svn path=/trunk/; revision=71617
2016-06-12 13:28:48 +00:00
Eric Kohl
8361105c91 [SC]
Implement the qc, qdescription and qfailure commands.

svn path=/trunk/; revision=71615
2016-06-11 21:24:40 +00:00
Mark Jansen
5b2c7d7e50 [APPHELP] Implement automatic stringtable generation when writing an Sdb database. CORE-10367
svn path=/trunk/; revision=71614
2016-06-11 21:12:43 +00:00
Hermès Bélusca-Maïto
d4a952c924 [PIFMGR]: Add the PIF icon resource library.
By Jared Smudde, Lee Schroeder, Ercan Ersoy, manuel.
Icons adapted from Tango Icon set and from public domain OpenClipArt (https://openclipart.org/share)
Part 1/2
CORE-10253

svn path=/trunk/; revision=71613
2016-06-11 16:16:26 +00:00
Eric Kohl
45cc914e9f [SC]
Implement the sdset command.

svn path=/trunk/; revision=71612
2016-06-11 15:01:01 +00:00
Eric Kohl
5965ffcd78 [SERVICES]
- Read the service security descriptors when the service list is created.
- Assign and write the default security descriptor when a service does not have its own security desciptor.
- Delete a service security desciptor when the service is deleted.

svn path=/trunk/; revision=71611
2016-06-11 09:41:05 +00:00
Pierre Schweitzer
4746de9066 [FASTFAT]
Properly round up 64b values.
This fixes reads on 4GB+ volumes.

Patch by Wim Hueskes.

CORE-10932 #resolve #comment Thanks for the patch! Commited in r71610

svn path=/trunk/; revision=71610
2016-06-11 09:32:00 +00:00
Mark Jansen
a44dfe6c76 [WIN32SS] Try to load the module before fetching an icon, instead of failing on a module that is not available in the current process. CORE-10292 #resolve
svn path=/trunk/; revision=71609
2016-06-10 20:57:26 +00:00
Aman Priyadarshi
c9f49ee82b Code Review #2
svn path=/branches/GSoC_2016/AHCI/; revision=71607
2016-06-10 08:27:20 +00:00
Hermès Bélusca-Maïto
b85cf60213 [WRITE]: Add wordpad's icon to write.exe compatibility bootstrap.
svn path=/trunk/; revision=71606
2016-06-10 00:14:36 +00:00
Aman Priyadarshi
dc4ae1e279 changes after code review
svn path=/branches/GSoC_2016/AHCI/; revision=71605
2016-06-09 23:47:19 +00:00
Hermès Bélusca-Maïto
287d77c8bd [SHELL32]: Replace icon 210 (filecab) with a valid one (coming from explorer).
svn path=/trunk/; revision=71604
2016-06-09 22:27:54 +00:00
Eric Kohl
5a180609eb [SERVICES]
- Create a default service security descriptor.
- RCreateServiceW: Assign the default security descriptor to new services on service creation and store it in the registry.
- RQueryServiceObjectSecurity: Return the services security descriptor to the caller.

svn path=/trunk/; revision=71603
2016-06-09 21:30:48 +00:00
Hermès Bélusca-Maïto
998a832892 [SOLITAIRE][SPIDER][CARDLIB]
- Remove the ugly WS_EX_CLIENTEDGE style from Solitaire and Spider.
- Make use of the member function parameters when calling CreateWindowEx in cardlib.
Patch by "toe_head2001".
CORE-11391

svn path=/trunk/; revision=71602
2016-06-09 20:33:36 +00:00
Hermès Bélusca-Maïto
25c377e044 [COMP]
- Fix the output of localized strings (and use the "well-known" PrintResourceString function already used in all the other cmdtools)
- Unconditionally increase the number of lines & the offset when performing the comparison.

svn path=/trunk/; revision=71601
2016-06-09 19:20:35 +00:00
Hermès Bélusca-Maïto
732c3f3d40 [COMP]
- Localize comp.exe. Patch + romanian translation by Stefan Fulea.
- French translation by Hermès Bélusca.
CORE-11060

svn path=/trunk/; revision=71600
2016-06-09 19:01:47 +00:00
Hermès Bélusca-Maïto
a014055837 [COMP]
- The comparison buffers contain bytes, not (T)CHARs. Pointed out by Stefan Fulea in CORE-11060.
- Remove a now unnecessary comment header "history" line since we have SVN for that instead.

svn path=/trunk/; revision=71599
2016-06-09 18:43:36 +00:00
James Tabor
e37fafee2c [User32]
- Patch by Jared Smudde : Set text background the same color as the rectangle.
- Adapted by Hermès Bélusca-Maïto. Themes, see CORE-11364.

svn path=/trunk/; revision=71598
2016-06-09 02:50:13 +00:00
Hermès Bélusca-Maïto
1a1823fc09 Well no need to initialize "Ret" if we overwrite immediately its old value.
svn path=/trunk/; revision=71597
2016-06-08 23:08:59 +00:00
Hermès Bélusca-Maïto
57360a0d04 [WIN32K:NTGDI]: Remove redundant code.
svn path=/trunk/; revision=71596
2016-06-08 23:07:32 +00:00
Hermès Bélusca-Maïto
cdae0d1bf7 [SHELL32]: Run dialog box: FillList was ANSI, now it's UNICODE! Partly rewrite Wine code.
svn path=/trunk/; revision=71595
2016-06-08 21:53:34 +00:00
Hermès Bélusca-Maïto
2f53cccf2f [CONSRV]
Only add a history entry if console echo is enabled. This ensures that anything sent to the console when echo is disabled (e.g. binary data, or secrets like passwords...) does not remain stored in memory.

svn path=/trunk/; revision=71593
2016-06-08 00:27:25 +00:00
Hermès Bélusca-Maïto
f29075b129 [DHCPSVC]: It's a service, move it in the correct directory.
svn path=/trunk/; revision=71592
2016-06-07 23:14:58 +00:00
Hermès Bélusca-Maïto
b8391e20ad [CONSRV]
- Remove a wrong assertion that I introduced in r70281 concerning Console->LinePos.
- Fix some boundary conditions.
- Completely reset line discipline variables when the line buffer is freed.
- Fix a potential buffer overrun in the case ReadControl->nInitialChars was larger than Console->LineMaxSize (the size of Console->LineBuffer), which serves to initialize Console->LineSize, Console->LinePos, and copy nInitialChars characters from user buffer.
CORE-11380 CORE-10997 #resolve

svn path=/trunk/; revision=71591
2016-06-07 22:52:44 +00:00
Eric Kohl
97556cc77d [SC]
Add the sdshow command.

svn path=/trunk/; revision=71590
2016-06-07 21:51:37 +00:00
Aman Priyadarshi
d8c1347c02 Added AhciHwInterrupt -- Round Robin Implementation (SharedPort)
Added Support Function AhciInterruptHandler
Added DeviceInquiryRequest
- Need to implement EVPD.
SRB_FUNCTION_EXECUTE_SCSI for cdb->CDB10.OperationCode != SCSIOP_INQUIRY

svn path=/branches/GSoC_2016/AHCI/; revision=71589
2016-06-07 18:06:51 +00:00
Aman Priyadarshi
d4c9e20b36 AHCI-SATA Interface almost ready.
- tested on VM.
- need to implement Interrupt Routine (MessagePerPort) and ATA/ATAPI Based SCSI Query.

svn path=/branches/GSoC_2016/AHCI/; revision=71588
2016-06-07 11:05:32 +00:00
Amine Khaldi
4460ce3990 [RICHED20_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71587
2016-06-07 11:02:39 +00:00
Amine Khaldi
7dcb748d30 [RICHED20] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71586
2016-06-07 11:01:48 +00:00
Amine Khaldi
833c7dbc6e [MSVFW32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71585
2016-06-07 10:59:18 +00:00
Amine Khaldi
662c918d67 [OPENGL32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71584
2016-06-07 10:58:19 +00:00
Amine Khaldi
93c6e744bd [QMGR] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71583
2016-06-07 10:55:17 +00:00
Amine Khaldi
5de9cef087 [OLEAUT32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71582
2016-06-07 10:53:40 +00:00
Amine Khaldi
f7918981cf [OLEAUT32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71581
2016-06-07 10:51:58 +00:00
Amine Khaldi
902eeb69b2 [OLE32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71580
2016-06-07 10:49:20 +00:00
Amine Khaldi
3df7653ebe [OLE32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71579
2016-06-07 10:47:21 +00:00
Amine Khaldi
76e295bbed [PSDK] Update objbase.h. CORE-11368
svn path=/trunk/; revision=71578
2016-06-07 10:43:40 +00:00
Amine Khaldi
820f0a6196 [MSXML3_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71577
2016-06-07 10:30:15 +00:00
Amine Khaldi
34ca173317 [MSXML3] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71576
2016-06-07 10:29:11 +00:00
Amine Khaldi
64fbdcc0f4 [MSVIDC32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71575
2016-06-07 10:27:20 +00:00
Amine Khaldi
beb1555b76 [MSVFW32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71574
2016-06-07 10:26:22 +00:00
Amine Khaldi
1314203868 [MSRLE32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71573
2016-06-07 10:24:56 +00:00
Mark Jansen
122a7bd37d [APPHELP_APITEST] Extend stringtable related tests. CORE-10367
svn path=/trunk/; revision=71572
2016-06-05 21:26:07 +00:00
Thomas Faber
3ee78af3cd [COMCTL32_WINETEST]
- Fix copypasta'd test list entry

svn path=/trunk/; revision=71571
2016-06-05 21:00:22 +00:00
Amine Khaldi
bf211a8bbb [DBGHELP] GET_ENTRY => CONTAINING_RECORD.
svn path=/trunk/; revision=71570
2016-06-05 19:47:14 +00:00
Amine Khaldi
85acdc55e6 [MSCTF_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71569
2016-06-05 19:38:56 +00:00
Amine Khaldi
c0d4c271a4 [MSCTF] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71568
2016-06-05 19:38:23 +00:00
Amine Khaldi
949478c3ff [PSDK] Update msctf.idl. CORE-11368
svn path=/trunk/; revision=71567
2016-06-05 19:36:59 +00:00
Amine Khaldi
237ea501ec [MPR_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71566
2016-06-05 19:35:47 +00:00
Amine Khaldi
99d9ec5a26 [MPR] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71565
2016-06-05 19:35:09 +00:00
Amine Khaldi
485277dd67 [MMDEVAPI_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71564
2016-06-05 19:34:02 +00:00
Amine Khaldi
0bdcd182df [MMDEVAPI] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71563
2016-06-05 19:33:06 +00:00
Amine Khaldi
74d48a8c13 [MGMTAPI] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71562
2016-06-05 19:32:00 +00:00
Amine Khaldi
e233be3395 [MCIQTZ32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71561
2016-06-05 19:30:31 +00:00
Amine Khaldi
28ad123809 [MCIAVI32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71560
2016-06-05 19:29:11 +00:00
Amine Khaldi
8cc3382109 [JSPROXY] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71559
2016-06-05 19:27:31 +00:00
Amine Khaldi
b20d96576c [JSCRIPT_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71558
2016-06-05 19:26:27 +00:00
Amine Khaldi
6f2fa805b0 [JSCRIPT] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71557
2016-06-05 19:25:30 +00:00
Amine Khaldi
8fff423976 [INETCOMM_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71556
2016-06-05 19:24:01 +00:00
Amine Khaldi
ab5f18229a [INETCOMM] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71555
2016-06-05 19:23:27 +00:00
Amine Khaldi
253dbd04f8 [PSDK] Update mimeole.idl. CORE-11368
svn path=/trunk/; revision=71554
2016-06-05 19:22:51 +00:00
Amine Khaldi
8258225614 [IMAADP32.ACM] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71553
2016-06-05 19:20:32 +00:00
Amine Khaldi
54e9896cae [IMAGEHLP_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71552
2016-06-05 19:18:47 +00:00
Amine Khaldi
bdf05dfe65 [IEFRAME] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71551
2016-06-05 19:18:20 +00:00
Amine Khaldi
6d8185db2f [PSDK] Update htiface.idl and htiframe.idl. CORE-11368
svn path=/trunk/; revision=71550
2016-06-05 19:17:37 +00:00
Amine Khaldi
8436b905ae [ICCVID] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71549
2016-06-05 19:11:42 +00:00
Amine Khaldi
8f5987dd7f [HNETCFG] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71548
2016-06-05 19:10:33 +00:00
Amine Khaldi
a0be6b0961 [GDIPLUS_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71547
2016-06-05 19:09:10 +00:00
Amine Khaldi
f1faf90a60 [GDIPLUS] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71546
2016-06-05 19:08:07 +00:00
Amine Khaldi
709c085e2d [DBGHELP] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71545
2016-06-05 19:05:55 +00:00
Amine Khaldi
83338521dc [CRYPT32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71544
2016-06-05 19:01:41 +00:00
Amine Khaldi
4505fb6902 [CRYPT32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71543
2016-06-05 19:00:43 +00:00
Amine Khaldi
ca71fe522a [COMDLG32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71542
2016-06-05 18:59:07 +00:00
Amine Khaldi
1cb9628323 [COMCTL32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71541
2016-06-05 18:56:37 +00:00
Amine Khaldi
9158c74670 [COMCTL32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71540
2016-06-05 18:52:20 +00:00
Amine Khaldi
1331bd1889 [PSDK] Add missing MCS_SHORTDAYSOFWEEK.
svn path=/trunk/; revision=71539
2016-06-05 18:45:07 +00:00
Amine Khaldi
198d18e749 [AVIFIL32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71538
2016-06-05 18:38:02 +00:00
Amine Khaldi
a34061d674 [WORDPAD] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71537
2016-06-05 18:35:43 +00:00
Amine Khaldi
a25bc0320e [WINHLP32] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71536
2016-06-05 18:34:33 +00:00
Hermès Bélusca-Maïto
94b20ff164 [EXPLORER]: Also, sending direct WM_CLOSE messages to the traybar should not close it but instead popup the shutdown dialog. Addendum to r71533.
CORE-4351 CORE-8864

svn path=/trunk/; revision=71535
2016-06-05 14:29:28 +00:00
Hermès Bélusca-Maïto
1cfa76b438 [EXPLORER]: Minor style changes only.
svn path=/trunk/; revision=71534
2016-06-05 14:26:49 +00:00
Hermès Bélusca-Maïto
119d9c8f0b [SHELL32]: In some rare cases, pressing Alt-F4 in ReactOS when the desktop was on focus, just removed the desktop icons. The underlying "progman" window was indeed killed. Sending a WM_CLOSE message to it should not close it directly, but instead prompt the user with the Shutdown dialog. Tests on Windows show that it's indeed the case.
This fix completes r65557.
CORE-4351 CORE-8864

svn path=/trunk/; revision=71533
2016-06-05 14:10:14 +00:00
Hermès Bélusca-Maïto
aa62271497 [SHELL32]: Experiments on Win2k3 reveal that the shell_defview window can be moved if the desktop workarea rectangle changes of size and origin.
svn path=/trunk/; revision=71532
2016-06-05 13:17:55 +00:00
Hermès Bélusca-Maïto
b3a2e6dc2b [SHELL32]
- Use #ifdef __REACTOS__ instead of the #if (as done elsewhere in the code).
- The listview control hosted in a shelldll_defview has its caption named "FolderView".

svn path=/trunk/; revision=71531
2016-06-05 13:15:36 +00:00
Aman Priyadarshi
37fd8e78e1 Added INF File for driver installation with minimal configuration.
Device Detection and Initialization working -- tested on VMware.
StorPortAllocatePool not working, so asked Storport to allocate all memory just after loading up the driver -- Bad idea (will change it later).

svn path=/branches/GSoC_2016/AHCI/; revision=71530
2016-06-05 12:40:49 +00:00
Mark Jansen
5e01926bf5 [WIN32SS] Remember the last process that changed the displaymode with CDS_FULLSCREEN, restore mode after it quits. CORE-11358 #resolve
svn path=/trunk/; revision=71529
2016-06-05 11:16:02 +00:00
Pierre Schweitzer
4322caeede |SHELL32]
Don't blindly delete notification item while there are still ongoing user APC.
To do so, we use reference count, and attempt to release in various places: after APC ended, and on notification unregistration.
This avoids race condition with item between usage and freeing and thus use-afree-free (leading to explorer crash) while browsing rapidly accross directories.

CORE-10941 #resolve

svn path=/trunk/; revision=71528
2016-06-05 09:26:00 +00:00
David Quintana
326b3d7e91 [SHELL32]
Sorry, I'm still half asleep. I did need functional changes.

svn path=/trunk/; revision=71527
2016-06-05 09:06:33 +00:00
David Quintana
b4a3cb9acd [SHELL32]
Replace confusing usage of RECT with some actual variables. No functional changes.

svn path=/trunk/; revision=71526
2016-06-05 08:56:57 +00:00
Hermès Bélusca-Maïto
70fcffe67a [SHELL32]
- Pass indistinctly WM_SYSCOLORCHANGE and WM_SETTINGCHANGE messages sent to the shell progman window, down to its children windows (SHELLDLL_DefView and its associated ListView), as shown by tracking windows messages on Win2k3.
- If we receive a WM_SETTINGCHANGE with wParam == SPI_SETWORKAREA, i.e. the desktop working area was modified, we need to resize the underlying DefView, as shown by tracking windows messages on Win2k3. For the moment we implement support for only the primary monitor.
CORE-11375 #resolve
CORE-5618 #resolve
CORE-5620

svn path=/trunk/; revision=71525
2016-06-04 23:34:46 +00:00
Hermès Bélusca-Maïto
d63c3a89ad [SHELL32]
- Minor stylistic whitespace changes.
- Use 'IDA_DESKBROWSER' instead of hardcoding its value.
- The shell progman window uses the COLOR_DESKTOP as its hbrBackground: partly revert r66271.
- Correctly initialize rcDesk structure before using it for a CreateWindowEx call.

svn path=/trunk/; revision=71524
2016-06-04 23:29:34 +00:00
Hermès Bélusca-Maïto
4e9504f015 [SHELL32]
- Whitespace fix.
- SHSetShellWindowEx really directly redirects to user32.SetShellWindowEx.

svn path=/trunk/; revision=71523
2016-06-04 22:58:53 +00:00
Hermès Bélusca-Maïto
1b9a4118a8 [EXPLORER]: Minor stylistic formatting changes; add a notice about a SystemParametersInfoW(SPI_SETWORKAREA) call, concerning its action when explorer's taskbar size is changed.
svn path=/trunk/; revision=71522
2016-06-04 22:57:12 +00:00
Hermès Bélusca-Maïto
a3fdbc7eca [EXPLORER]: Use _countof where needed.
svn path=/trunk/; revision=71521
2016-06-04 22:51:19 +00:00
Hermès Bélusca-Maïto
1b3d6dfdc1 [RSHELL]: When rshell is compiled and used on Windows (as a testing replacement for shell32), it should correctly initialize the shell32_instance handle so that the rest of shell32 code can use something valid!
svn path=/trunk/; revision=71520
2016-06-04 22:50:33 +00:00
Amine Khaldi
fe2ef00a13 [WMIC] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71519
2016-06-04 18:04:03 +00:00
Amine Khaldi
9cd4c53ae9 [CMD_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71518
2016-06-04 18:00:50 +00:00
Amine Khaldi
f3d911bfbb [ADVAPI32_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71517
2016-06-04 17:57:35 +00:00
Amine Khaldi
68fb09d514 [REG_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71516
2016-06-04 17:48:49 +00:00
Amine Khaldi
26b5aa3cbd [REG] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71515
2016-06-04 17:48:30 +00:00
Amine Khaldi
af54d8dea0 [MAGNIFY] Resource strings improvements by Henry Tang Ih. CORE-10966
svn path=/trunk/; revision=71514
2016-06-04 17:37:40 +00:00
Mark Jansen
85de8c6ccb [APPSHIM_APITEST] Show a few shims that do not use hooks to function.
svn path=/trunk/; revision=71513
2016-06-04 14:51:38 +00:00
Hermès Bélusca-Maïto
3f87882d7d [EXPLORER]
- Start to convert the code to pure Unicode.
- Use _countof where needed.
- Use UINT for loop counters where the counter value is always positive.
- Some whitespace fixes.

svn path=/trunk/; revision=71512
2016-06-04 14:09:20 +00:00
Aman Priyadarshi
7a17550c7d - Added all HwStor Initialization Required Functions
- Driver loaded successfully
- Added Debug stubs

svn path=/branches/GSoC_2016/AHCI/; revision=71511
2016-06-04 12:52:38 +00:00
Giannis Adamopoulos
441ced48c3 [BROWSEUI]
- CExplorerBand: Navigate to the selected item when the selection changes.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71510
2016-06-03 21:25:34 +00:00
Giannis Adamopoulos
5596ec9243 [SHELL32]
- HCR_GetClassName is not supposed to be specific for CLSID_MyDocuments
CORE-11363

svn path=/trunk/; revision=71509
2016-06-03 21:00:59 +00:00
Giannis Adamopoulos
25917dcb89 [BROWSEUI]
- CExplorerBand: Implement populating the treeview. You can navigate the shell namespace but clicking on an item doesn't do anything yet.
- Part of the work submitted by Sylvain Deverre. CExplorerBand::InsertItem was rewritten by me to be efficient.
CORE-10838

svn path=/trunk/; revision=71508
2016-06-03 19:35:33 +00:00
Hermès Bélusca-Maïto
0d6d9c18cc [NTDLL]
- In LdrpLoadImportModule, check for import module extension, and append it if not found.
- Fix LdrpLoadImportModule prototype.
CORE-11360

svn path=/trunk/; revision=71507
2016-06-03 19:02:46 +00:00
Aman Priyadarshi
f7890a371a AhciFindAdapter Completed
- Added AhciZeroMemory
- Added AhciAllocateResourceForAdapter
- Added AhciPortInitialize

Compile Status : OK

svn path=/branches/GSoC_2016/AHCI/; revision=71506
2016-06-03 15:54:21 +00:00
Robert Naumann
fe0b048d53 [DEVMGMT]Remove a self assignment. CORE-11183
svn path=/trunk/; revision=71505
2016-06-03 08:47:03 +00:00
Hermès Bélusca-Maïto
2d91f643ed [WIN32K][BUILDNO]
Add the compiler ID and version to the ROS version desktop watermark. Idea of encoded & learn_more, thanks :)

[BOOTDATA]
Enable the ROS version desktop watermark on our daily builds.

CORE-11349

svn path=/trunk/; revision=71504
2016-06-02 22:28:36 +00:00
Hermès Bélusca-Maïto
add8172c71 [SNDREC32]: Use a sunken edge for the waveform viewer.
svn path=/trunk/; revision=71503
2016-06-02 21:38:47 +00:00
Sylvain Petreolle
88cbd7c4bd [HIVES]
Fix paths passed to the hive maker.

svn path=/trunk/; revision=71502
2016-06-02 20:21:46 +00:00
Mark Jansen
4847a35732 [APPHELP_APITEST][APPHELP] Add new tests showing that SdbWriteStringTag and SdbEndWriteListTag are incorrect, fix SdbEndWriteListTag CORE-10367
SdbWriteStringTag requires the database to keep track of written strings, and append a stringtable to a database.

svn path=/trunk/; revision=71501
2016-06-02 18:59:04 +00:00
Aman Priyadarshi
c62ab931ac Required changes to meet community coding style.
svn path=/branches/GSoC_2016/AHCI/; revision=71500
2016-06-02 14:43:56 +00:00
Aman Priyadarshi
a60737f997 == Storahci driver
- Added DriverEntry
- Added AhciFindAdapter : Need to add code for port initialization.
- Compile : OK
- Test : NOT TESTED

svn path=/branches/GSoC_2016/AHCI/; revision=71499
2016-06-02 14:13:06 +00:00
Thomas Faber
f5da7c7b8c [BROWSEUI]
- Avoid a double free in CComCatCachedCategory::CacheDSA. CComHeapPtr already takes care of this.

svn path=/trunk/; revision=71498
2016-06-02 12:19:56 +00:00
Amine Khaldi
31406b0c21 [MSI] Really silence DllRegisterServer MessageBoxes. Addendum to r71483. Spotted by Peter Hater. CORE-11244
svn path=/trunk/; revision=71497
2016-06-02 08:55:58 +00:00
Hermès Bélusca-Maïto
5141cdee91 [i8042prt]: Yet another initialization hack for the PS/2 touchpad of the Dell Latitude E4300 (which has the same problems). Tested with success by contributor "william341".
CORE-11344 CORE-6901

svn path=/trunk/; revision=71496
2016-06-01 23:04:08 +00:00
Hermès Bélusca-Maïto
d5eddcb8c4 [i8042prt]: Add another initialization hack for the PS/2 touchpad of the Dell Latitude D430. Proposed by Victor Martinez Calvo and tested with success by contributor "william341".
I emphasize that such hacks are absent from Windows' i8042prt.sys driver, yet it is able to correctly drive such touchpads.
CORE-11344 #resolve
CORE-6901

svn path=/trunk/; revision=71495
2016-06-01 22:23:56 +00:00
Hermès Bélusca-Maïto
9afc56b93b [DESK.CPL]: Check properly if the StringCbCopy has been copied correctly just by moving the check block to where it belongs.
CID 1322244
Patch by Victor Martinez Calvo
CORE-11212 #resolve

svn path=/trunk/; revision=71493
2016-06-01 21:23:37 +00:00
Giannis Adamopoulos
91c6b947d3 [BROWSEUI]
- CExplorerBand: Implement IOleWindow, IDockingWindow, IDeskBand, IObjectWithSite, IInputObject and IPersist interfaces. This creates and shows an empty tree view control in the bar.
- CShellBrowser: Restore the hack to use the local CExplorerBand instead of the system one.

svn path=/trunk/; revision=71492
2016-06-01 21:12:17 +00:00
Giannis Adamopoulos
c7a10e3a12 [BROWSEUI]
- Remove the proxy implementation of CExplorerBand. Add IDropTarget and IDropSource interfaces.

svn path=/trunk/; revision=71491
2016-06-01 20:13:27 +00:00
Pierre Schweitzer
990964945a [FS_REC]
Fix the UDFS recognizer.
Patch by Pater Hater.

CORE-9816

svn path=/trunk/; revision=71490
2016-06-01 20:13:15 +00:00
Mark Jansen
aa9a01829c [APPHELP] Fix a possible out of bounds write.
svn path=/trunk/; revision=71489
2016-06-01 19:37:25 +00:00
Mark Jansen
271329164d [APPHELP] Remove all NT api usage from sdbwrite, split apphelp.h header out in preparation of xml2sdb CORE-11302
svn path=/trunk/; revision=71488
2016-06-01 19:10:19 +00:00
Hermès Bélusca-Maïto
3f3dd21d90 [BOOTDATA]
- Swap two values so that they are listed in alphabetical order.
- PaintDesktopVersion is a DWORD value, as such, use a correct initializer.

svn path=/trunk/; revision=71487
2016-06-01 15:34:56 +00:00
Hermès Bélusca-Maïto
30c8acce49 [WIN32K]
Display a nice ReactOS version desktop watermark (with different fonts) when the corresponding registry values are set.
See http://winaero.com/blog/a-new-way-to-display-the-windows-version-on-your-desktop/ for more details (which works on Windows 2003 too).
CORE-11349 #resolve

svn path=/trunk/; revision=71486
2016-06-01 15:24:38 +00:00
Hermès Bélusca-Maïto
f61200c5d3 [BASESRV]
- Always NULL-terminate the cached CSDVersion string.
- Alex wrote most of this file! Attribute to him too.

svn path=/trunk/; revision=71485
2016-06-01 13:22:33 +00:00
Hermès Bélusca-Maïto
2c7124382b [WIN32K]: Avoid (LPWSTR) casts on strings that are LPCWSTR, by just using the corresponding const type LPCWSTR in the functions parameters.
svn path=/trunk/; revision=71484
2016-06-01 13:20:18 +00:00
Christoph von Wittich
b98bfa81af [MSI] silence DllRegisterServer MessageBoxes CORE-11244
svn path=/trunk/; revision=71483
2016-06-01 09:12:22 +00:00
Thomas Faber
2c220df020 [ACPICA]
- Define ACPI_USE_SYSTEM_CLIBRARY to use our libc functions rather than acpica's own implementations. Fixes MSVC release build and obsoletes some ROS-diffs
CORE-11184 #resolve

svn path=/trunk/; revision=71482
2016-06-01 07:32:30 +00:00
Thomas Faber
d317d4fbcc [CRT]
- Introduce an strtol static library that drivers can use to get access to strtol-style functions
CORE-11184

svn path=/trunk/; revision=71481
2016-06-01 07:09:50 +00:00
Thomas Faber
fd9cdcb64f [CRT]
- Give strtoi64_l and strtoul_l their missing leading underscores

svn path=/trunk/; revision=71480
2016-06-01 07:07:57 +00:00
Hermès Bélusca-Maïto
1e655de0a0 [REACTOS]: Turn tabs into spaces + indent.
svn path=/trunk/; revision=71479
2016-05-31 23:02:46 +00:00
Hermès Bélusca-Maïto
982dd1a3c6 [REACTOS][ROSAPPS][ROSSUBSYS]
The buildno #defines KERNEL_RELEASE_STR, KERNEL_RELEASE_RC (introduced in r756 17 years ago), and REACTOS_DLL_RELEASE_STR, REACTOS_DLL_RELEASE_RC (introduced in r11297 12 years ago) are things that never really caught out in our project. They were actually eclipsed in favour of the more common KERNEL_VERSION_STR and co. in our code.
I therefore remove the very last remains of the old KERNEL_RELEASE_xxx defines and replace them with KERNEL_VERSION_xxx ones.

svn path=/trunk/; revision=71478
2016-05-31 22:36:48 +00:00
Mark Jansen
d37cb8f5ad [APPHELP][ACLAYER][APPSHIM_APITEST] Fix some WCHAR hack constructions that VS 2010 didn't like, as pointed out by Hermès
svn path=/trunk/; revision=71477
2016-05-31 18:02:54 +00:00
Mark Jansen
487956500e [SHELL32] Rename CShell to CShellDispatch CORE-6892
svn path=/trunk/; revision=71476
2016-05-31 17:40:44 +00:00
Giannis Adamopoulos
a392e06a26 [BROWSEUI]
- Implement CShellBrowser::Navigate and CShellBrowser::Navigate2.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71475
2016-05-31 14:57:05 +00:00
Giannis Adamopoulos
584260d6ae [BROWSEUI]
- Implement the toolbar that allows the user to close the band.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71474
2016-05-31 14:52:18 +00:00
Giannis Adamopoulos
60b1d9b8d4 [BROWSEUI]
- CShellBrowser: Implement the Explrer bar menu. Implement checking if a band is already loaded. Destroy all bands while destroying the browser window. Misc changes.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71473
2016-05-31 14:42:01 +00:00
Giannis Adamopoulos
1764bca67a [BROWSEUI]
- Fix a crash that can happen under weird circumstances.
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71472
2016-05-31 14:02:58 +00:00
Giannis Adamopoulos
19ee935a70 [BROWSEUI]
- Implement SHEnumClassesOfCategories
- Part of the work submitted by Sylvain Deverre.
CORE-10838

svn path=/trunk/; revision=71471
2016-05-31 13:39:42 +00:00
Robert Naumann
49c56d1976 [IERNONCE]Add Chinese and Malay translations. Patch by Henry Tang Ih. CORE-11022
svn path=/trunk/; revision=71470
2016-05-31 11:15:25 +00:00
Robert Naumann
c4e5821cb9 [SHIMGVW]Replacement for SHIMGVW control button bitmaps. Work by "dsp8195". CORE-11145
svn path=/trunk/; revision=71469
2016-05-31 10:59:04 +00:00
Robert Naumann
4f84951574 [COMCTL32][COMDLG32] Fix Esperanto localization. Patch by Mike Swanson. CORE-11264
svn path=/trunk/; revision=71468
2016-05-31 10:48:53 +00:00
Robert Naumann
3894367a3a [TASKMGR] Change "Mem Usage" status text. Patch by Tim Crawford. Use the more familiar term "Commit Charge" instead.
-Addition: Also apply this for greek and hewbrew CORE-10250

svn path=/trunk/; revision=71467
2016-05-31 10:31:16 +00:00
Robert Naumann
bf3287e7fe [CALC] Use ShellAbout for the about dialog in Calc. Patch by Jason Wendt. Thank You.
- Addition by me: delete about.c as well as ROS_logo.bmp CORE-11346

svn path=/trunk/; revision=71466
2016-05-31 08:04:18 +00:00
Giannis Adamopoulos
8636217b7d [BROWSEUI]
- Implement most methods of IBandSite for CBaseBarSite.
- Part of the work submitted by Sylvain Deverre.
CORE-8814 and CORE-10838

svn path=/trunk/; revision=71465
2016-05-30 22:38:36 +00:00
Hermès Bélusca-Maïto
c77272a3e6 [SHELL32]
It is enough to check the "ListviewShadow" registry setting for deciding whether or not the desktop icons should be transparent.
Now we also get transparent icons in safe mode with no wallpaper.
Thanks Jared Smudde for having pointing this out to me.

svn path=/trunk/; revision=71464
2016-05-30 21:30:25 +00:00
Giannis Adamopoulos
1c979e2bfb [BROWSEUI]
- Move the implementation of the search button from CInternetToolbar to CShellBrowser.
- Part of the work submitted by Sylvain Deverre.
CORE-8814 and CORE-10838

svn path=/trunk/; revision=71463
2016-05-30 20:52:05 +00:00
Giannis Adamopoulos
287a8f22f0 [BROWSEUI]
- Implement CBaseBar::ShowDW and CBaseBar::CloseDW.
- Simplify CBaseBar::SetClient.
- Implement resizing support for CBaseBar.

svn path=/trunk/; revision=71462
2016-05-30 20:37:40 +00:00
Giannis Adamopoulos
25f1b9eb0b [BROWSEUI]
- CBaseBar, CBaseBarSite: Implement IInputObject and IInputObjectSite interfaces
- Part of the work submitted by Sylvain Deverre. Simplified by me.
CORE-8814 and CORE-10838

svn path=/trunk/; revision=71461
2016-05-30 20:28:30 +00:00
Giannis Adamopoulos
9a118725bf [BROWSEUI]
- CBaseBar, CBaseBarSite: Add an initialization method in order to set the basebar and the basebar site as vertical.
- CShellBrowser: Create the basebar and the basebar site with the right orientation.
- Part of the work submitted by Sylvain Deverre.
CORE-8814 and CORE-10838

svn path=/trunk/; revision=71460
2016-05-30 20:02:45 +00:00
Giannis Adamopoulos
7e3d0a9bbd [BROWSEUI]
- Update the definition of SHEnumClassesOfCategories.
- Part of the work submitted by Sylvain Deverre.
CORE-8814 and CORE-10838

svn path=/trunk/; revision=71459
2016-05-30 19:47:09 +00:00
Hermès Bélusca-Maïto
2fc99cfd7f [CMD]: Harmonize CMD's welcome versioning message format with the one used in the VER command.
svn path=/trunk/; revision=71458
2016-05-29 17:21:44 +00:00
Hermès Bélusca-Maïto
39ed4ee85f [WIN32K]: Improvements to IntPaintDesktop:
- Recycle the 'Rect' variable instead of introducing a new one.
- Adapt the colour of the ROS desktop version text according to the desktop brush used and/or whether a wallpaper is used. This is inspired from what is done in the shell.

svn path=/trunk/; revision=71457
2016-05-29 15:24:53 +00:00
Hermès Bélusca-Maïto
ee14b3c341 [SHELL32]: Correctly clear the listview transparent shadow text flag.
svn path=/trunk/; revision=71456
2016-05-29 14:55:29 +00:00
Hermès Bélusca-Maïto
411cee2f02 [WIN32K]
- Write the desktop version string using user-defined font (the same as the one used for window caption titles).
- Reorganize a bit the code of IntPaintDesktop.

svn path=/trunk/; revision=71455
2016-05-29 13:18:05 +00:00
Pierre Schweitzer
a8ebfc7774 [DNSAPI]
Don't attempt to dereference a null-ptr in case of DNS resolution failure.

svn path=/trunk/; revision=71454
2016-05-29 12:12:15 +00:00
Pierre Schweitzer
0a04ca9713 [FREELDR]
Properly count used/unused partitions.
This fixes booting ReactOS when it is installed on a partition entry after an unused partition entry.
Patch by Wim Hueskes

CORE-11330 #resolve

svn path=/trunk/; revision=71453
2016-05-29 08:14:24 +00:00
Hermès Bélusca-Maïto
3e96c56d45 [DESK.CPL]
- Remove redundant UI elements in the "Advanced appearance" dialog.
- Add the possibility to modify the colors of inactive caption bar text and flat menu highlight (for XP/2k3+ only).

svn path=/trunk/; revision=71452
2016-05-29 00:57:31 +00:00
Eric Kohl
86ae503348 [MSPAINT]
Update russian translation
Patch by BinaryTree
CORE-10740 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71451
2016-05-28 22:40:34 +00:00
Hermès Bélusca-Maïto
9016ae61e6 [DESK.CPL]
- Fix french translation;
- Whitespace fix.

svn path=/trunk/; revision=71450
2016-05-28 22:05:48 +00:00
Eric Kohl
4c88138425 [SERVICES]
Prepare service logon.

svn path=/trunk/; revision=71449
2016-05-28 21:56:56 +00:00
Mark Jansen
1ddc5f058e [APPHELP_APITEST] Update embedded database to actually match the embedded exe again.
svn path=/trunk/; revision=71448
2016-05-28 21:46:24 +00:00
Mark Jansen
5d086596ff [APPSHIM_APITEST] Move versionlie tests to a dedicate shim-test binary.
svn path=/trunk/; revision=71447
2016-05-28 21:33:56 +00:00
Hermès Bélusca-Maïto
f1d8ae6b1a [FREELDR]: Usability fix: When pressing F8 (Advanced boot options menu), select "Start ReactOS normally" by default.
svn path=/trunk/; revision=71446
2016-05-28 20:21:11 +00:00
Pierre Schweitzer
4de2debfbb [KMTESTS:CC]
Introduce tests for Cc :-)
Currently, we only test CcCopyRead for specific alignment matters. It shows that under certain conditions, our Cc doesn't align reads it does, leading to later failure in disk.sys.
This reproduces an error observed with MS FastFAT in ReactOS.

CORE-11003

svn path=/trunk/; revision=71445
2016-05-28 19:59:10 +00:00
Hermès Bélusca-Maïto
b68e07fbaa [WIN32K]: Whitespace fix only.
svn path=/trunk/; revision=71444
2016-05-28 19:48:44 +00:00
Hermès Bélusca-Maïto
2047efde02 [DESK.CPL]
- Only use the minimum required registry rights needed in RegOpenKeyEx and RegCreateKeyEx calls.
- Fix SetDesktopBackColor function where we tried to save the selected desktop background color in the registry only in the case where opening the corresponding registry key actually failed... >_>
  Now we do the right thing!

svn path=/trunk/; revision=71443
2016-05-28 19:12:14 +00:00
Mark Jansen
cc1a5a5932 [APPHELP][APPHELP_APITEST] Implement various VersionLie shims. CORE-11299 #resolve
- Implement VersionLie shims
- Add tests for the VersionLie shims
- update get_host_winver prototype (thanks to Thomas for pointing out my err)

We cannot apply this shim yet, since a required part of the infrastructure is missing.

svn path=/trunk/; revision=71442
2016-05-28 17:55:56 +00:00
Hermès Bélusca-Maïto
15082cc9fc [SHELL32]: Always paint the desktop listview transparent. This allows explorer to display the default desktop background color set by win32k as well as the ReactOS version on the desktop.
See also r66271 and r66752.

svn path=/trunk/; revision=71441
2016-05-28 16:59:55 +00:00
Mark Jansen
605449d0fe [APPHELP] Register AppPatch directory with cmake, import SdbGetAppPatchDir implementation from Mislav Blažević CORE-10369
svn path=/trunk/; revision=71440
2016-05-28 16:47:39 +00:00
Mark Jansen
b6d0f03c96 [APPHELP] Begin shimlib implementation. CORE-11329
Implement some macro's and functions that help when registering shims.
These are all written in C, so that wine can use the shim libraries as well.

svn path=/trunk/; revision=71439
2016-05-28 16:42:57 +00:00
Hermès Bélusca-Maïto
849c418010 [KDCOM]: Properly revert the commits.
svn path=/trunk/; revision=71438
2016-05-28 15:54:44 +00:00
Timo Kreuzer
c6a6ac928a Revert a mistake commit...
svn path=/trunk/; revision=71437
2016-05-28 15:51:44 +00:00
Timo Kreuzer
5917e9e09d Patch "works": continue vs return stuff
svn path=/trunk/; revision=71436
2016-05-28 15:46:49 +00:00
Hermès Bélusca-Maïto
a7618ad8b5 [TIMEDATE.CPL]: Do not hardcode some of the buffer lengths.
CORE-11284

svn path=/trunk/; revision=71435
2016-05-28 15:23:00 +00:00
Eric Kohl
6ce8ee357a [NETSHELL]
German translation and fixed layout
Patch by reactosfanboy.
CORE-11278 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71434
2016-05-28 00:18:39 +00:00
Eric Kohl
345ad196e3 [TIMEDATE]
Fixes and improvements to datetime CPL applet.
Patch by Carlo Bramini.
Replaced the original RegLocalQuery() by QueryTimezoneData() to simplify the error handling.
Modification by Eric Kohl.
CORE-11284 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71433
2016-05-28 00:12:02 +00:00
Pierre Schweitzer
be0e0e64a7 [REISERFS]
r71430, repetita

svn path=/trunk/; revision=71432
2016-05-27 20:35:44 +00:00
Pierre Schweitzer
28fd35b834 [DOC]
Add a file to track imported FSD and their release

svn path=/trunk/; revision=71431
2016-05-27 20:32:45 +00:00
Pierre Schweitzer
101f7947a5 [FFS]
We don't need that file

CORE-11040

svn path=/trunk/; revision=71430
2016-05-27 17:52:03 +00:00
Pierre Schweitzer
189f1859ee [FS_REC]
Add support for FFS volumes.
Patch by Peter Hater.

This is done for FFS support! Enjoy :-)

CORE-11040 #resolve

svn path=/trunk/; revision=71429
2016-05-27 12:18:47 +00:00
Pierre Schweitzer
c16cf7dece [PSDK]
Now, ReactOS recognizes the FFS partition :-)

CORE-11040

svn path=/trunk/; revision=71428
2016-05-27 12:13:49 +00:00
Pierre Schweitzer
bb5e205150 [FFS]
Enable the FFS support.
Patch by Peter Hater.

CORE-11040

svn path=/trunk/; revision=71427
2016-05-27 12:12:18 +00:00
Pierre Schweitzer
88f0e76715 [AUTOCHK]
Add support for FFS

CORE-11040

svn path=/trunk/; revision=71426
2016-05-27 12:11:15 +00:00
Pierre Schweitzer
3a3ef631d1 [FFS]
Import the FFS driver by Jae-Hong Lee.
Patch by Peter Hater

CORE-11040

svn path=/trunk/; revision=71425
2016-05-27 12:08:38 +00:00
Pierre Schweitzer
c8fc495780 [UFFS]
Add the FFS DLL

CORE-11040

svn path=/trunk/; revision=71424
2016-05-27 12:05:40 +00:00
Pierre Schweitzer
126b96aee1 [FFSLIB]
Stub the FFS lib

CORE-11040

svn path=/trunk/; revision=71423
2016-05-27 12:04:45 +00:00
Hermès Bélusca-Maïto
5fa287634d [REACTOS]: Add a desktop shortcut to the ReadMe file of ReactOS, on both the livecd and installation. Useful for people discovering ReactOS for the first time.
svn path=/trunk/; revision=71422
2016-05-27 01:06:35 +00:00
Hermès Bélusca-Maïto
09084fe16a [INCLUDES] probe.h: use ExFreePoolWithTag for releasing unicode strings capture, and fully clear up said strings.
svn path=/trunk/; revision=71421
2016-05-26 23:17:59 +00:00
Hermès Bélusca-Maïto
c9493245e5 [WIN32K]: it can be useful to have a TAG_USTR for unicode strings.
svn path=/trunk/; revision=71420
2016-05-26 23:16:10 +00:00
Hermès Bélusca-Maïto
97032dd167 [NETSHELL]: Fix french orthograph.
svn path=/trunk/; revision=71419
2016-05-26 22:36:57 +00:00
Pierre Schweitzer
b6e9ec7df1 [USETUP]
Don't override the hidden sectors value set during format when seting up bootsector.
This allows installing ReactOS on a FAT partition that doesn't start on sector 63. Successfully tested with a partition starting on sector 2048, for instance.
Patch by Wim Hueskes

CORE-8825 #resolve #comment Committed in r71418. Thanks for the debugging and the patch!

svn path=/trunk/; revision=71418
2016-05-26 20:50:44 +00:00
Pierre Schweitzer
a1a1d0917e [FS_REC]
Add support for ReiserFS volumes.
Patch by Peter Hater.

This is done for ReiserFS support! Enjoy :-)

CORE-11005 #resolve

svn path=/trunk/; revision=71417
2016-05-26 18:17:19 +00:00
Pierre Schweitzer
d54f933810 [REISERFS]
Enable the ReiserFS support.
Patch by Peter Hater.

CORE-11005

svn path=/trunk/; revision=71416
2016-05-26 18:14:52 +00:00
Pierre Schweitzer
89138635e9 [AUTOCHK]
Add support for ReiserFS

CORE-11005

svn path=/trunk/; revision=71415
2016-05-26 18:12:36 +00:00
Pierre Schweitzer
0c5c8461eb [REISERFS]
Enable ReiserFS FSD build

CORE-11005

svn path=/trunk/; revision=71414
2016-05-26 18:11:57 +00:00
Pierre Schweitzer
fd78690041 [UREISERFS]
Add the ReiserFS DLL

CORE-11005

svn path=/trunk/; revision=71413
2016-05-26 18:10:20 +00:00
Pierre Schweitzer
7cc10e7297 [REISERFSLIB]
Stub the ReiserFS lib

CORE-11005

svn path=/trunk/; revision=71412
2016-05-26 18:08:42 +00:00
Pierre Schweitzer
f0a44d618b [EXT2]
Upgrade the driver to release 0.66.

CORE-11295 #resolve #comment Committed in r71411

svn path=/trunk/; revision=71411
2016-05-26 17:10:02 +00:00
Pierre Schweitzer
e6b12e4774 [NTOSKRNL]
Cherry pick r71407 by Trevor Thompson:
- Rewrote FsRtlGetNextBaseMcbEntry(), FsRtlLookupBaseMcbEntry(), and FsRtlNumberOfRunsInBaseMcb() using simpler logic.

This finally fixes broken MCB handling in ReactOS and allows FSDs relying on MCB to properly work in ReactOS!

CORE-11002 #resolve #comment Fixed in r71409

svn path=/trunk/; revision=71409
2016-05-26 16:35:45 +00:00
Eric Kohl
a5a8ffb511 [SERVMAN]
GetServiceConfig: Use only the required access rights. Makes servman usable for non-admin users.

svn path=/trunk/; revision=71408
2016-05-26 15:48:46 +00:00
Pierre Schweitzer
0b68260492 [NTOSKRNL]
Rework a bit the way mapping and pinning is working in ReactOS Cc. This is still wrong regarding the way Windows does it, but at least, it offers us more features for a more compatible behavior exposed to FSDs.
First of all, reintroduce the mutex used to lock VACB. Moving there to a resource wasn't enough to work address the issue. This reverts r71387.
Introduce the resource in the BCB, as it should be. This resource will be unused until pinning occurs. In such case, the VACB mutex gets unused so that we can get the BCB released by another thread without deadlocking the associated VACB.
The VACB can be locked again after the last unpinning operation.
Basically, that fixes drivers than pin in a thread and unpin in another thread, after having changed BCB owner. Until now, it would just have deadlock or crashed ReactOS.
The implementation of this preserves hacks and stubplementations already in place in Cc (let's say it's another hack on top of hacks).
It was successfully tested with Ext2Fsd 0.66.

Short summary:
- Replace the VACB resource by a mutex
- Introduce a resource in the BCB
- Fixed CcPinRead() implementation so that it respects PIN_EXCLUSIVE flag
- Implement CcUnpinDataForThread() so that it can unpin data which ownership was changed
- Implement CcSetBcbOwnerPointer() so that it properly set BCB owner and allows unpinning with CcUnpinDataForThread()

CORE-11310 #resolve #comment Committed in r71406

svn path=/trunk/; revision=71406
2016-05-26 12:09:05 +00:00
Pierre Schweitzer
c43741c804 [NTOSKRNL]
On CcInitializeCacheMap() call, keep track of the PinAccess value so that we can later check it on pinning.
It shouldn't be set to FALSE when the user attempts to perform pinning

CORE-11310

svn path=/trunk/; revision=71404
2016-05-26 11:50:42 +00:00
Hermès Bélusca-Maïto
3caf22d458 [USER32]: Remove a leftover from r59868.
svn path=/trunk/; revision=71403
2016-05-26 00:53:54 +00:00
Hermès Bélusca-Maïto
642c228981 [KERNEL32]: Indentation fix only.
svn path=/trunk/; revision=71402
2016-05-25 20:49:40 +00:00
Mark Jansen
bf1990897f [APPHELP_APITEST] Remove some code duplication.
svn path=/trunk/; revision=71400
2016-05-25 17:22:47 +00:00
David Quintana
b6bc3df218 [KERNEL32]
* Return TRUE from SetThreadStackGuarantee. Allows .NET 2.0 setup to complete and consequently allows some .net apps to work in ReactOS. Patch by the self-proclaimed Master of The Universe, Samuel Serapión.

svn path=/trunk/; revision=71399
2016-05-25 14:47:02 +00:00
Thomas Faber
412f0d26d0 [NTOS:EX]
- Use the calling thread instead of the passed-in thread to validate APC status in ExReleaseResourceForThreadLite. The latter can be user-set and might not be a KTHREAD at all.
CORE-11315 #resolve

svn path=/trunk/; revision=71398
2016-05-25 10:27:17 +00:00
Hermès Bélusca-Maïto
6305b9d645 [NTDLL]
Add exports for RtlOemStringToUnicodeSize, RtlUnicodeStringToAnsiSize and RtlUnicodeStringToOemSize as redirections to suitable Rtlx*** functions, as done in our ntoskrnl (and as on Windows either).
This should fix MSYS2 start on ReactOS.
CORE-10459 #comment Please retest!

svn path=/trunk/; revision=71397
2016-05-24 19:57:29 +00:00
Mark Jansen
eb98416097 [CRT] Partially sync strtoi64 with Wine Staging 1.9.9. Patch by Samuel Serapión CORE-11174 #resolve #comment Thanks!
svn path=/trunk/; revision=71396
2016-05-24 19:27:57 +00:00
Pierre Schweitzer
fff779dd5b [KMTESTS]
Add test for ExSetResourceOwnerPointer() and ExReleaseResourceForThreadLite()

CORE-11310

svn path=/trunk/; revision=71395
2016-05-24 08:13:17 +00:00
Eric Kohl
51881431dd [SERVICES]
- RChangeServiceConfigA/W: Modify or delete password secrets.
[ADVAPI32]
- ChangeServiceConfigA, CreateServiceA: Convert passwords to Unicode before passing them to the remote functions.

svn path=/trunk/; revision=71394
2016-05-23 21:48:32 +00:00
Pierre Schweitzer
0977ee2d46 [NTOSKRNL]
Fix misleading comment

svn path=/trunk/; revision=71393
2016-05-23 21:14:49 +00:00
Pierre Schweitzer
990c8c2740 [NTOSKRNL]
In Cc, replace the Vacb mutex by a Bcb resource.
Note that the resource is still placed in the Vacb by it belongs to the Bcb.
This is required to really implement CcSetBcbOwnerPointer().

CORE-11310

svn path=/trunk/; revision=71387
2016-05-23 19:47:39 +00:00
Eric Kohl
197eafa50e [SERVICES]
RCreateServiceW: Store a given password as a secret.

svn path=/trunk/; revision=71386
2016-05-23 15:02:37 +00:00
Eric Kohl
1dc0ccde6a [ADVAPI32]
Implement LogonUserEx[A/W].

svn path=/trunk/; revision=71385
2016-05-23 13:53:24 +00:00
Hermès Bélusca-Maïto
dca4fd46af [ADVAPI32]: Implement all the Elf*** event log APIs as wrappers around the corresponding RPC calls, and the Win32 APIs just become calls to the Elf*** APIs.
svn path=/trunk/; revision=71384
2016-05-23 02:03:49 +00:00
Hermès Bélusca-Maïto
4b98341168 [IDL]: Whitespace fixes only.
svn path=/trunk/; revision=71383
2016-05-22 22:20:25 +00:00
Thomas Faber
a315554938 [RTL]
- Return the ACE pointer from RtlFirstFreeAce also if it is at the end of the ACL buffer.
CORE-11304 #resolve

svn path=/trunk/; revision=71382
2016-05-22 22:11:54 +00:00
Mark Jansen
f03661d8e1 [APPHELP][APPHELP_APITEST] Add more db tests and implement SdbGetDatabaseVersion. CORE-10367
svn path=/trunk/; revision=71381
2016-05-22 20:39:41 +00:00
Mark Jansen
a6879a9948 [APPHELP][APPHELP_APITEST] Implement most of sdbread and sdbwrite, mainly the work of Mislav Blaževic, with some small additions from me. CORE-10367
svn path=/trunk/; revision=71380
2016-05-22 20:27:02 +00:00
Thomas Faber
5a7f64ba98 [SETUPAPI]
- Fix Buffer overflow in FixupServiceBinaryPath

svn path=/trunk/; revision=71379
2016-05-22 19:09:49 +00:00
Hermès Bélusca-Maïto
859060f887 [EVENTVWR]
- Fix the flags used in LoadLibraryEx calls for loading DLLs as resource files.
- Use a nice flag (FORMAT_MESSAGE_MAX_WIDTH_MASK) in FormatMessage calls so that no useless extra newlines are appended to the message strings that are recovered.
  This is especially useful when some strings as localized event log names are retrieved to be displayed in the menu (amongst other things)...
  This fixes CORE-8915 and fixes also the presentation of some event descriptions.
- Fix BuildLogList.

svn path=/trunk/; revision=71378
2016-05-22 19:00:55 +00:00
Hermès Bélusca-Maïto
5e80e9c714 [EVENTVWR]
- Set window parent for different MessageBox calls.
- Add a notice in ShowStatusMessageThread concerning a potential bug.
- Rename strings "Save Protocol" into "Save Event Log"; adjust translations in this regard.

svn path=/trunk/; revision=71377
2016-05-22 17:17:33 +00:00
Hermès Bélusca-Maïto
bd5fd5d6c0 [EVENTVWR]
- Fix a typo in the "loading, wait" dialog.
- Use a RichEdit control for the detailed event description text, so that we can have for free clickable URLs.
- Use "Courier New" as the font for the event data text, so that we can have finer grained control over the font size...

svn path=/trunk/; revision=71376
2016-05-22 16:19:55 +00:00
Pierre Schweitzer
e923b0875b [PSDK]
Define STATUS_FILE_LOCKED_WITH_ONLY_READERS and STATUS_FILE_LOCKED_WITH_WRITERS

CORE-11295

svn path=/trunk/; revision=71375
2016-05-22 13:22:52 +00:00
Eric Kohl
aab801e496 [EVENTVWR]
Display event data properly.

svn path=/trunk/; revision=71374
2016-05-22 12:15:30 +00:00
Thomas Faber
be92945d81 [SCHANNEL]
- Set received length to zero when the receive result is MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY instead of pretending we got data
CORE-11285 #resolve

svn path=/trunk/; revision=71373
2016-05-22 10:56:22 +00:00
Thomas Faber
88af808d05 [SCHANNEL]
- Correctly check for ROS_SCHAN_IS_BLOCKING
CORE-11285

svn path=/trunk/; revision=71372
2016-05-22 10:53:23 +00:00
Thomas Faber
0a56cd3a03 [UNIATA]
- When handling CD READ_CAPACITY requests in AtapiInterrupt__, fully rewind the DataBuffer instead of relying on the last read length. Fixes crash on first stage boot in KVM.
CORE-11286 #resolve
CORE-11296

svn path=/trunk/; revision=71371
2016-05-22 10:25:24 +00:00
Pierre Schweitzer
02fde17b6f [VFATLIB]
Update the amount of FAT entries taking into account that the first two are reserved and thus not usable.

Patch by Wim Hueskes

CORE-11283 #resolve #comment Committed in r71370, thanks for your patch!

svn path=/trunk/; revision=71370
2016-05-22 07:56:45 +00:00
Pierre Schweitzer
3fa137bf9c [SYSSETUP]
Update acknowledgements regarding imported FSDs in ReactOS.

Thanks Matt Wu and Mark Harmstone for your great work!

svn path=/trunk/; revision=71369
2016-05-22 07:56:23 +00:00
Hermès Bélusca-Maïto
c1ecc98f60 [EVENTVWR]
- Fix the window styles of the edit boxes in the event details dialog.
- Refactor some parts of the code to reduce the level of code indentation.
- Replace malloc/free by their Win32 counterparts HeapAlloc/HeapFree.
- When caching the full contents of a given event log, don't load at this point the event text/data. Only load those when opening the event details dialog.

svn path=/trunk/; revision=71368
2016-05-22 00:34:40 +00:00
Hermès Bélusca-Maïto
2c1a9b0f07 [EVENTVWR]
- Finish to convert the app to full unicode;
- Don't hardcode buffer lengths in function calls;
- Remove useless #pragma incantation;
- Whitespace fix.

svn path=/trunk/; revision=71367
2016-05-21 21:44:14 +00:00
Hermès Bélusca-Maïto
3c65b5a5a2 [FREELDR]: Increase again the number of BIOS memory descriptors to 80.
CORE-11247 #comment Please retest.

svn path=/trunk/; revision=71366
2016-05-21 16:12:31 +00:00
Eric Kohl
b666112fa1 [SAMSRV]
Implement SamrGetDomainPasswordInformation.

svn path=/trunk/; revision=71365
2016-05-21 15:05:49 +00:00
Eric Kohl
c26a5012b8 [SAMSRV]
Add LM_OWF_PASSWORD and NT_OWF_PASSWORD types and use them.
See MS-NRPC sections 2.2.1.1.1 to 2.2.1.1.4.

svn path=/trunk/; revision=71364
2016-05-21 13:12:53 +00:00
Pierre Schweitzer
2eca65d304 [NETSHELL]
Update French translation

CORE-10955

svn path=/trunk/; revision=71363
2016-05-21 09:40:18 +00:00
Mark Jansen
c04d14f8bb [MBEDTLS][SCHANNEL] Export mbedtls_ssl_config_free and use it. Patch by Peter Hater. CORE-11270 #resolve #comment Thanks!
svn path=/trunk/; revision=71362
2016-05-20 17:09:56 +00:00
Amine Khaldi
915ed50c3f [SDK][CMAKE] The CMake folder is part of our SDK. CORE-9111
svn path=/trunk/; revision=71361
2016-05-20 16:06:48 +00:00
Robert Naumann
507c4db50d [TASKMGR] improvement german: too long string in statusbar - Patch by Joachim Henze.
svn path=/trunk/; revision=71360
2016-05-19 22:41:08 +00:00
Hermès Bélusca-Maïto
fe1096e0c0 [SDK/INCLUDE]: Fix a typo in ntstatus.mc (Debuger --> Debugger).
svn path=/trunk/; revision=71359
2016-05-19 22:18:11 +00:00
Hermès Bélusca-Maïto
c294e76682 [SDK/INCLUDE]: Fix ntstatus.mc: extra end-line whitespace and erroneous newlines at the end of the messages.
svn path=/trunk/; revision=71358
2016-05-19 21:22:41 +00:00
Thomas Faber
28b4a2412b [AFD]
- Don't overwrite values in a completed IRP in ReceiveActivity
CORE-11276 #resolve

svn path=/trunk/; revision=71357
2016-05-19 21:17:18 +00:00
Eric Kohl
811a8408d0 [NETSHELL]
- Provide a common struct for the network setup data.
- Remember the typical/custom setup decision in order to return to the proper previous page when we click the 'Back' button on the domain page.
- Rename network setup page functions in a consistent way.
CORE-10955

svn path=/trunk/; revision=71356
2016-05-19 13:42:37 +00:00
Thomas Faber
6b27b08a69 [SERVICES]
- On service stop, set Service->lpImage to NULL after calling ScmDereferenceServiceImage, so the same image is not dereferenced again on service deletion
- Do not call ScmDereferenceServiceImage in CreateServiceListEntry, as the service should never have an image there
CORE-11273 #resolve

svn path=/trunk/; revision=71355
2016-05-19 13:01:04 +00:00
Thomas Faber
407f2e8218 [ACPI]
- Correctly double-null-terminate hardware IDs
CORE-11271 #resolve

svn path=/trunk/; revision=71354
2016-05-19 10:15:15 +00:00
Hermès Bélusca-Maïto
63318080ba [NETSHELL]
Addendum to r71348:
Fix MSVC build: "netshell\lang/de-DE.rc(87) : warning RC2182 : duplicate dialog control ID 3501" . Both IDC_NETWORK_TYPICAL and IDC_NETWORK_CUSTOM setup wizard pages had this same ID.
Obviously, GCC didn't catch this error. But the generated code would not have worked as expected.

CORE-10955 #comment [~milawynsrealm], please retest with r71353.

svn path=/trunk/; revision=71353
2016-05-18 21:49:31 +00:00
Colin Finck
270d4db920 Test commit to fix the nightmare caused by "previous" r71352.
See https://reactos.org/archives/public/ros-dev/2016-May/017845.html

svn path=/trunk/; revision=71352
2016-05-18 17:01:01 +00:00
Robert Naumann
59c83ddfe9 [SHELL32] Addendum to r71343: Remove some unneeded checks. The handles are initialized as NULL so they will never be true
svn path=/trunk/; revision=71351
2016-05-18 10:12:13 +00:00
Robert Naumann
0b4cad0a63 [TASKMGR] Use the correct title string for create new task dialog. Spotted by Jared Smudde. CORE-11129
svn path=/trunk/; revision=71350
2016-05-18 08:30:45 +00:00
Hermès Bélusca-Maïto
f02a81b1d9 [ROSAPPS/RDESKTOP]: Fix an heresy in the code.
svn path=/trunk/; revision=71349
2016-05-17 22:44:47 +00:00
Eric Kohl
97f7bbfc4b [SYSSETUP/NETSHELL]
2nd Stage Network Setup
Patch by Lee Schroeder and Eric Kohl.
- Move Lees 2nd stage network setup wizard code to netshell. It gets called by syssetup via NetSetupRequestWizardPages().
- Add code to syssetup which calls NetSetupRequestWizardPages and inserts the retrieved wizard pages into the setup wizard.
- Prevent a font handle leak by storing the bold font handle in the SetuData.

CORE-10955 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71348
2016-05-17 22:38:58 +00:00
Mark Jansen
256737ae18 [PSDK] now the ICurrentWorkingDirectory interface is actually an interface.
svn path=/trunk/; revision=71347
2016-05-16 18:50:14 +00:00
Eric Kohl
6f7967123d [NETAPI32]
Add NetGetAnyDCName stub.
CORE-11261 #comment Please test again!

svn path=/trunk/; revision=71346
2016-05-16 18:34:52 +00:00
Mark Jansen
ebd1e3d611 [BROWSEUI_APITEST] Add tests for ACListISF, a class used for autocompletion. CORE-9281
- Add tests for ACListISF.
- Change the SHExplorerParseCmdLine test to use GetProcAddress instead of relying on the import (it's not there anymore in NT 6.0+)

svn path=/trunk/; revision=71345
2016-05-16 18:03:09 +00:00
Mark Jansen
cb31fa202a [PSDK] Add missing definitions for IACList2 Options. CORE-9281
svn path=/trunk/; revision=71344
2016-05-16 17:59:10 +00:00
Robert Naumann
8d49e82b9c [SHELL32] - Implement a skeleton DlgProc for the folder options general dialog
- show icons depending on button states in folder options general dialog

svn path=/trunk/; revision=71343
2016-05-16 11:58:31 +00:00
Daniel Reimer
4cc03bbf01 [BOOTDATA]
Fix autorun.inf on LiveCD and HybridCD linking to a non existent welcome.exe. HybridCD now links to the correct folder to welcome.exe and LiveCD just opens the readme.txt
https://www.reactos.org/forum/viewtopic.php?f=2&t=15406

svn path=/trunk/; revision=71342
2016-05-16 11:11:22 +00:00
Christoph von Wittich
d2a7e3aea8 [REGSRV32] accept '-' as command line delimiter symbol as well
svn path=/trunk/; revision=71340
2016-05-16 07:17:45 +00:00
Hermès Bélusca-Maïto
8a7240c71a [NTOS][NDK][RTL]: Move the SEM_xxx flags and their corresponding RTL flags around so that they can be accessed in kernel code. I'll need them soon.
svn path=/trunk/; revision=71339
2016-05-15 22:40:34 +00:00
Hermès Bélusca-Maïto
ad5dceff98 [NTOS][USERSRV]: Both hard-error message box options "OptionOkNoWait" and "OptionCancelTryContinue" are valid!
svn path=/trunk/; revision=71338
2016-05-15 22:32:17 +00:00
Hermès Bélusca-Maïto
497e74bc43 [USERSRV]: Code formatting.
svn path=/trunk/; revision=71337
2016-05-15 22:29:23 +00:00
Hermès Bélusca-Maïto
02a7b8eca5 [NTOS]: Remove hardcoded constants; fix a comment; move some code around to reduce the level of code indentation.
svn path=/trunk/; revision=71336
2016-05-15 22:23:14 +00:00
Pierre Schweitzer
a3778e6d22 [DHCPD]
Plug leaks

svn path=/trunk/; revision=71335
2016-05-15 17:45:10 +00:00
Mark Jansen
dd2544d913 [COM_APITEST] Add ICurrentWorkingDirectory for CORE-9281
svn path=/trunk/; revision=71334
2016-05-15 14:45:01 +00:00
Mark Jansen
fb1cfa467b [PSDK] Add missing ICurrentWorkingDirectory definition. CORE-9281
svn path=/trunk/; revision=71333
2016-05-15 10:31:15 +00:00
Mark Jansen
70595b9400 [SHELL] Addendum to r71328, correct one german resource id.
svn path=/trunk/; revision=71332
2016-05-15 10:25:47 +00:00
Hermès Bélusca-Maïto
d74b93c5eb [NTOS][MUP]: Use the correct constant for the PriorityBoost parameter in the IoCompleteRequest calls.
svn path=/trunk/; revision=71331
2016-05-15 00:18:44 +00:00
Hermès Bélusca-Maïto
a8924f81c4 [DRIVERS][NTOSKRNL]
Don't use PWORK_QUEUE_ITEM casts in ExQueueWorkItem calls, but use the explicit underlaying work queue item object instead.

svn path=/trunk/; revision=71330
2016-05-15 00:16:31 +00:00
Hermès Bélusca-Maïto
fb35282eb3 [PROGMAN]
Implement drag&drop support for program items. A similar functionality can be implemented later in our shell32/explorer, based on this code.
We do here better than Windows' progman since we can select and move more than one icon.
Note that if you test it on ReactOS you will see nice bugs coming from our (well, Wine's) comctl32.dll xD :P

svn path=/trunk/; revision=71329
2016-05-12 22:36:05 +00:00
Robert Naumann
a8097ca3e1 [SHELL] Change the icon controls of the folder-options general page to static ones. Also give them and the radio buttons some meaningfull identifiers. Big thanks to our flying dutchman ;)
svn path=/trunk/; revision=71328
2016-05-12 21:26:55 +00:00
Hermès Bélusca-Maïto
41ed1557a2 [PROGMAN]
- Fix the icon chooser dialog: icon enumeration, icon list cleanup... Similar fixes should also be ported to our shell32 icon list dialog code!
- Remove erroneous LBS_SORT style from the icon list box.

svn path=/trunk/; revision=71327
2016-05-12 21:12:40 +00:00
Hermès Bélusca-Maïto
1e2e730dd3 [PROGMAN]
- Load the main icon in a global variable (we use it at different places).
- Use the main icon for the shell-about dialog.

svn path=/trunk/; revision=71325
2016-05-12 19:54:53 +00:00
Hermès Bélusca-Maïto
021e1a40a4 [PROGMAN]: Use a ListView to list program items. On systems that support it (aka. Vista+), enable ListView theming.
svn path=/trunk/; revision=71324
2016-05-12 19:45:26 +00:00
Amine Khaldi
80d2a73871 [PROGMAN] Fix PCH build.
svn path=/trunk/; revision=71322
2016-05-12 16:32:35 +00:00
Eric Kohl
1732ee52e0 [USETUP]
Pressing F3-Enter during setup behaves wrong sometimes.
Patch by Wim Hueskes.
CORE-11231 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71321
2016-05-12 16:18:32 +00:00
Eric Kohl
ade016e3a4 [USETUP]
Debug output in usetup.
Patch by Wim Hueskes.
CORE-11230 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71320
2016-05-12 15:30:49 +00:00
Eric Kohl
beacbdfc3b [TELNET]
Updating Turkish Translation.
Patch by Erdem Ersoy.
CORE-11226 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71319
2016-05-12 14:44:25 +00:00
Thomas Faber
297eae47ed [EXPLORER]
- Avoid activating windows when updating their size and position
CORE-11217

svn path=/trunk/; revision=71318
2016-05-12 12:14:42 +00:00
Hermès Bélusca-Maïto
6df01a9cb0 [PROGMAN]: Commit 90% of the work I did on progman since its first inclusion in ReactOS: this concerns upgrading its user interface code from Wine's Win3.11-compatible code to WinNT-compatible code.
As this is *recovered* code from what I had in my local trunk before my HDD crash that occurred last month, this is almost pure code without most of the comments (this especially concerns the MAIN_LoadSettings function).
The 10% code that is not restored yet concerns the reader/writer code for program group files, and it will be committed separately later. This (missing) code is the core of progman; without it progrman does nothing interesting apart from displaying its main window (and its utility dialogs).

svn path=/trunk/; revision=71317
2016-05-11 22:21:53 +00:00
Thomas Faber
bae547dcec [I8042PRT]
- Don't access device control IRPs after handing them off to a worker routine that has potentially already freed them.
CORE-11229 #resolve

svn path=/trunk/; revision=71316
2016-05-11 12:30:12 +00:00
Pierre Schweitzer
cfe81c2bb8 [BTRFS]
Cherry pick d71baf195715601212a2043f153400a964da6a18: Don't remove an entry list twice in add_to_space_list()

This avoids linked list entry twice removal

CORE-11057

svn path=/trunk/; revision=71315
2016-05-10 21:08:50 +00:00
Pierre Schweitzer
e1036d5ff1 [BTRFS]
Cherry pick aa04ca0ea4cadb0c70ff6d659916cc98b7b02c27: uninit: don't free roots before FCBs are freed

This avoids use-after-free on shutdown

svn path=/trunk/; revision=71314
2016-05-10 21:07:56 +00:00
Robert Naumann
ece9acc307 [SHELL32] Improve a list view header. Patch by Jared Smudde. CORE-11151
svn path=/trunk/; revision=71313
2016-05-10 20:48:39 +00:00
Mark Jansen
4a7af46cee [APPHELP] Remove imagehlp.dll dependency. CORE-10367
svn path=/trunk/; revision=71312
2016-05-10 20:42:37 +00:00
Thomas Faber
67c8423d4f [FASTFAT]
- Fix a use after free in VfatFlushVolume
CORE-11224 #resolve

svn path=/trunk/; revision=71311
2016-05-10 18:29:06 +00:00
Mark Jansen
64f0b43852 [UNIATA] Fix uninitialized variable usage. Patch by 'Alter'. CORE-11157 #resolve #comment Thanks!
svn path=/trunk/; revision=71309
2016-05-10 18:15:35 +00:00
Thomas Faber
bc4d7ba184 [IPHLPAPI]
- Don't use uninitialized values in AllocateAndGet*TableFromStack functions. CID 716757
- Free buffers on failure
CORE-11227 #resolve

svn path=/trunk/; revision=71308
2016-05-10 17:53:36 +00:00
Pierre Schweitzer
321bcc056d Create the AHCI branch for Aman's work
svn path=/branches/GSoC_2016/AHCI/; revision=71203
2016-04-24 20:17:09 +00:00
Colin Finck
5c6fa5db16 [WINSPOOL]
Additional tests show that IsValidDevmodeA/W actually does a lot more than I previously thought.
Implement the missing known features and test this little function to death in winspool_apitest to cover each and every possible call.
They pass on ReactOS, Windows Server 2003 and Windows 8.1.

Credits and many thanks go to Mark Jansen for the additional tests!

svn path=/branches/colins-printing-for-freedom/; revision=70595
2016-01-15 04:36:31 +00:00
Colin Finck
866bb7c041 [WINSPOOL]
Forgot to remove the StartDocPrinterA stub.

svn path=/branches/colins-printing-for-freedom/; revision=70506
2016-01-06 05:25:01 +00:00
Colin Finck
9af0f5d061 [WINSPOOL]
- Implement StartDocPrinterA.
- Fix an uninitialized access in StartDocPrinterW.
- Make OpenPrinterA and StartDocPrinterA consistent.

svn path=/branches/colins-printing-for-freedom/; revision=70505
2016-01-06 05:15:44 +00:00
Colin Finck
3d7b3309c1 [WINSPOOL]
Add and fully implement IsValidDevmodeA and IsValidDevmodeW.

[WINSPOOL_APITEST]
Add tests for IsValidDevmodeA and IsValidDevmodeW covering the entire functions.

svn path=/branches/colins-printing-for-freedom/; revision=70503
2016-01-06 04:31:53 +00:00
Colin Finck
c4f47d3a1f [SKIPLIST]
Add a missing dependency to psdk for the skiplist code.
Work in this branch continues as long as Trunk still serves a purpose for the 0.4.0 release.

svn path=/branches/colins-printing-for-freedom/; revision=70502
2016-01-06 02:31:14 +00:00
Colin Finck
37f713c79d [SKIPLIST]
The Park-Miller Lehmer Random Number Generator only outputs 31 uniformly distributed random bits. Bit 32 is always zero.
Fix the code accordingly.

This limits the maximum number of Skiplist levels to 31, but we only use 16 anyway so far.

svn path=/branches/colins-printing-for-freedom/; revision=68991
2015-09-04 14:03:00 +00:00
Colin Finck
8d6cd613e3 [WINSPOOL_PRINT]
Make winspool_print print a file to the "Dummy Printer On LPT1".

We're now able to print RAW data through the native Win32 Spooler APIs.
https://youtu.be/cNzePucTOLY

svn path=/branches/colins-printing-for-freedom/; revision=68567
2015-07-23 17:48:17 +00:00
Colin Finck
78cb041bec [WINSPOOL]
Stub some functions properly to get unicows.dll to compile again.

svn path=/branches/colins-printing-for-freedom/; revision=68552
2015-07-22 17:59:46 +00:00
Colin Finck
309215ece6 [LOCALSPL]
This is where things get dirty. StartDocPort of the Print Monitor needs the Printer Name and Job ID of the job to print on this port.
But StartDocPort is called by LocalStartDocPrinter, whose parameters are fixed and don't include this information.
Therefore, I have no way to pass these parameters to a port handle directly. Instead, I need to store a pointer to the job in the port structure itself and let the next port handle pick up this information in LocalStartDocPrinter.

Surprisingly, Windows doesn't seem to do any better here. For testing, I stalled execution inside my own Print Processor and called StartDocPrinter from another thread.
It then picked up and "stole" the stored job information. When the Print Processor resumed execution, the job information wasn't present anymore and its StartDocPrinter call crashed. So even Windows definitely stores this information only for a single StartDocPrinter call.

Having solved this, I could finally implement OpenPrinter, StartDocPrinter, ReadPrinter, WritePrinter and ClosePrinter for Port handles as well as OpenPrinter and ClosePrinter for Xcv handles.

svn path=/branches/colins-printing-for-freedom/; revision=68550
2015-07-22 12:44:22 +00:00
Colin Finck
03a88ff715 [LOCALSPL]
Stalling execution of the Print Processor under Windows reveals that the status flag JOB_STATUS_PRINTING is only set right before calling PrintDocumentOnPrintProcessor.

svn path=/branches/colins-printing-for-freedom/; revision=68549
2015-07-22 09:21:20 +00:00
Colin Finck
e29440dd47 [WINPRINT]
Add traces

svn path=/branches/colins-printing-for-freedom/; revision=68511
2015-07-21 13:19:14 +00:00
Colin Finck
09db4c602e [LOCALMON, LOCALSPL]
Fix a nasty stack corruption due to a *ppwsz[cch] vs. (*ppwsz)[cch] case.
But actually, we don't even need this line for null-terminating the string at all, because we operate on zero-initialized buffers. Remove it in another location as well.

svn path=/branches/colins-printing-for-freedom/; revision=68510
2015-07-21 10:46:29 +00:00
Colin Finck
3c798d7107 [SPOOLSS]
Rewrite RevertToPrinterSelf and ImpersonatePrinterClient.
In contrast to what I first thought, they shall also work when the thread has no impersonation token. This occurs for example when spooler functions are called from a thread that doesn't originate from a RPC request.
The rewritten functions also provide proper error codes.

The native behaviour of these functions was verified through API Monitoring under Windows.

svn path=/branches/colins-printing-for-freedom/; revision=68472
2015-07-20 16:15:52 +00:00
Colin Finck
087c85a5d3 It's bugfixing time!
[LOCALSPL]
- A Print Job has more optional fields than I thought. Only do a wcslen on them if they are not NULL.
- Make the code for checking changed fields more robust. Add checks for NULL to the Find and Compare functions.
- Fix some wrong parameters given to CopyMemory.
- Set the pPort field of a LOCAL_PRINTER structure.

[WINSPOOL]
Only pass the datatype from the DOC_INFO_1W structure of StartDocPrinterW to SetJobW if it's not NULL.
For StartDocPrinterW, this means that the datatype shall not be changed while SetJobW would return ERROR_INVALID_DATATYPE if none was passed.

svn path=/branches/colins-printing-for-freedom/; revision=68471
2015-07-20 15:21:03 +00:00
Colin Finck
9995ecdc6c [WINSPOOL]
Bugfix: winspool.drv shall only do local connections for now.
Even if wszName may include a computer name that needs to be extracted in the future, it must in no way be directly passed as the NetworkAddr parameter.
Fixes problems when using the spooler components with the "ncacn_np" protocol or with Windows' rpcrt4.dll.

svn path=/branches/colins-printing-for-freedom/; revision=68417
2015-07-18 14:31:20 +00:00
Colin Finck
e00279af25 Merge r68232 to get Windows' rpcrt4.dll to work under ReactOS.
svn path=/branches/colins-printing-for-freedom/; revision=68416
2015-07-18 12:29:25 +00:00
Colin Finck
0cdf412093 [WINSPOOL]
Bugfix: hPrinter is a PSPOOLER_HANDLE for all winspool functions. The hPrinter member of a SPOOLER_HANDLE is only passed to RPC calls.

svn path=/branches/colins-printing-for-freedom/; revision=68414
2015-07-17 15:11:34 +00:00
Colin Finck
6b968b2143 [SPOOLSV, WINSPOOL]
Add MarshallUp/MarshallDown functions for ADDJOB_INFO_1W as well.

svn path=/branches/colins-printing-for-freedom/; revision=68413
2015-07-17 15:09:31 +00:00
Colin Finck
e50cdc21c6 [WINSPOOL]
The pDevModeContainer parameter of _RpcOpenPrinter is not optional, but its contents may be null.
You can see this in the IDL file (pDevModeContainer is not marked with the "unique" attribute) or refer to https://msdn.microsoft.com/en-us/library/cc244808.aspx

svn path=/branches/colins-printing-for-freedom/; revision=68412
2015-07-17 14:34:23 +00:00
Colin Finck
6c77426a71 [HIVESYS]
Add registry entries for all developed printing components along with a dummy printer on LPT1.
These entries are enough to boot up the spooler.

svn path=/branches/colins-printing-for-freedom/; revision=68411
2015-07-17 14:20:12 +00:00
Colin Finck
d42dc06719 [LOCALSPL]
- Bugfix: A cb value includes the terminating null-character, a cch value does not. Fix the conversion.
- Bugfix: Properly calculate the required buffer size in LocalGetPrintProcessorDirectory and properly copy the string.

svn path=/branches/colins-printing-for-freedom/; revision=68410
2015-07-17 14:18:22 +00:00
Colin Finck
c8574e64e1 [LOCALSPL]
Report any error that occured inside _OpenEnvironment.

svn path=/branches/colins-printing-for-freedom/; revision=68409
2015-07-17 13:00:49 +00:00
Colin Finck
a758d604df [SPOOLSV, WINSPOOL]
- Add RPC calls, proper marshalling and exports for all implemented functions.
- Move the spoolsv stubs into categories, so that future implementations in winspool, spoolsv, spoolss and localspl can follow a consistent naming scheme.

svn path=/branches/colins-printing-for-freedom/; revision=68408
2015-07-17 10:57:10 +00:00
Colin Finck
c3a6132e37 [FORMATTING]
Tabs -> Spaces

svn path=/branches/colins-printing-for-freedom/; revision=68407
2015-07-16 15:24:40 +00:00
Colin Finck
30af627761 Merge r67713 and r67936 (Eric's parport driver) from trunk
svn path=/branches/colins-printing-for-freedom/; revision=68406
2015-07-16 15:12:50 +00:00
Colin Finck
ba2134dd1e [LOCALSPL, WINSPOOL]
Partially implement the whole StartDocPrinter, StartPagePrinter, ReadPrinter, WritePrinter, EndPagePrinter, EndDocPrinter, ClosePrinter group of functions.
They behave very differently based on whether spooled printing is enabled, whether it's a local or remote call, etc. Most information was gained by observing callchains under Windows.

So far, only the spooled path is implemented, the others need more investigation first.
Many other TODOs remain as well, see the comments.

Also make some more comments Doxygen-aware :)

svn path=/branches/colins-printing-for-freedom/; revision=68405
2015-07-16 15:03:47 +00:00
Colin Finck
f848e96f26 [SPOOLSV]
Implement the RPC calls for EnumMonitors, EnumPorts, ClosePrinter, EndDocPrinter, EndPagePrinter, ReadPrinter, StartDocPrinter, StartPagePrinter and WritePrinter.

svn path=/branches/colins-printing-for-freedom/; revision=68404
2015-07-16 13:59:20 +00:00
Colin Finck
843622e20a [LOCALMON]
- Bugfix: Unset bStartedDoc in LocalmonEndDocPort so that new documents can be started again.
- Bugfix: Use CREATE_ALWAYS instead of OPEN_ALWAYS for CreateFileW to truncate any existing output file before writing a new document into it.

svn path=/branches/colins-printing-for-freedom/; revision=68403
2015-07-15 18:45:37 +00:00
Colin Finck
afb3ba35d8 [LOCALMON]
My idea to just care about COM, FILE: and LPT ports was too short-sighted.
Apart from selecting a FILE: port that prompts for the output filename at printing, you can also add a port "C:\bla.txt" to always output into that particular file.
Even shared network printers can be added as a local port "\\COMPUTERNAME\PrinterName" (and Windows even does that when auto-adding printers found on the network). Note that this is the exception though, shared network printers are normally handled by a different component.

Our localmon now handles all valid ports found in the registry.
Port name checks were modified to be extra-picky and not let any false positives happen (e.g. trying to print into a file starting with "LPT" shouldn't be treated as printing to an LPT port)

svn path=/branches/colins-printing-for-freedom/; revision=68402
2015-07-15 18:15:33 +00:00
Colin Finck
1f52401541 [WINPRINT]
Bugfix: The Printer Name with Port is given through the parameter pPrinterName, not the pPrinterName field of the pPrintProcessorOpenData structure.

svn path=/branches/colins-printing-for-freedom/; revision=68401
2015-07-15 15:53:04 +00:00
Colin Finck
2e94fb273d [LOCALSPL]
- Rewrite LocalOpenPrinter to also properly support opening Port and Xcv handles.
- Manage a list of Ports and their associated Print Monitors.
- const-ify some parameters.

svn path=/branches/colins-printing-for-freedom/; revision=68397
2015-07-13 10:18:07 +00:00
Colin Finck
7ed643eb9c [LOCALSPL]
Bugfix: Copy the full DevMode including the extra data by the driver.

svn path=/branches/colins-printing-for-freedom/; revision=68379
2015-07-08 12:35:35 +00:00
Colin Finck
b83f56253b [LOCALSPL]
- Initialize all Print Monitors on startup and keep a list of them.
- Implement LocalEnumMonitors and LocalEnumPorts.
- Check the result of the initialization functions.

[SPOOLSS]
- Implement support for multiple Print Providers.
  Initialize them on startup and keep a list here as well.
- Implement all functions that had simple stubs in the C code. This still needs to be done for the remaining functions stubbed in the .spec file.
  But generally spoken, this always boils down to 3 cases:
    * Forward the call to the Local Spooler (for general functions like GetPrintProcessorDirectory).
    * Forward the call to the Print Provider we used for OpenPrinter (for functions like SetJob).
    * Forward the call to all Print Providers and collect the results (for functions like EnumPrinters).

svn path=/branches/colins-printing-for-freedom/; revision=68375
2015-07-07 17:06:48 +00:00
Colin Finck
91eab8a77a [LOCALMON]
- Bugfix: LocalmonClosePort must only free the memory for virtual file ports. Other port entries are reused.
- Bugfix: Set the port type to PortType_OtherLPT in all conditions that ít's not a physical LPT port.
- Synchronize access to the port lists.
- Keep a list of open Xcv handles as well to properly close them on shutdown.
- Add traces to all monitor functions for easier debugging. (requires DEBUGCHANNEL=+localmon environment variable)

svn path=/branches/colins-printing-for-freedom/; revision=68364
2015-07-07 10:30:30 +00:00
Colin Finck
75f2cf5f6f [LOCALMON]
Implement a Local Port Monitor for COM, FILE: and LPT ports, usable as a drop-in replacement for the Windows original.
Fully implements opening, enumerating and closing ports, starting and ending documents as well as reading and writing to ports along with Xcv data transfer between Port Monitor and Port Monitor UI.
Does not support IrDA printers unlike the Windows original, sorry guys :-P

The Windows Local Port Monitor is partly documented in an ancient DDK sample.
Additional information was gathered through API monitoring.

TODO:
- AddPort, DeletePort and PortIsValid Xcv functions need to be implemented.
- A real privilege check needs to be added to LocalmonXcvOpenPort.
- TESTING TESTING TESTING (under Windows) and fixing bugs.

To test it under Windows:
- Copy the compiled "localmon.dll" to the system32 directory.
- Open regedit.exe and move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Local Port.
- Replace "localspl.dll" by "localmon.dll" for the "Driver" value.

[SPOOLSS]
- Properly stub EnumPortsW to let localmon compile.

svn path=/branches/colins-printing-for-freedom/; revision=68356
2015-07-06 12:41:06 +00:00
Colin Finck
d2c73472d0 [PSDK]
Source our winspool.h from MinGW-w64.
Our current version was still based on MinGW w32api from 2005 and missing lots of definitions added ages ago.

svn path=/branches/colins-printing-for-freedom/; revision=68355
2015-07-06 09:57:09 +00:00
Colin Finck
259a6572ae [LOCALSPL, WINPRINT]
Bugfix: All functions returning multiple elements must only set *pcReturned to the element count on success!
Currently, this was also done when querying the needed buffer size. But for this case, *pcReturned just has to be zeroed.

svn path=/branches/colins-printing-for-freedom/; revision=68335
2015-07-03 09:06:35 +00:00
Colin Finck
86dbf40cd1 [LOCALSPL]
Bugfix: The RegEnum* functions take the buffer size _including_ the terminating null character as input and only return the actual data length _without_ the terminating null character as output.

svn path=/branches/colins-printing-for-freedom/; revision=68324
2015-06-30 16:08:16 +00:00
Colin Finck
aef3b57f55 [LOCALSPL, WINPRINT]
Bugfix: I want to dereference the pointer and then increment its value, not increment the pointer address.

svn path=/branches/colins-printing-for-freedom/; revision=68323
2015-06-30 16:02:26 +00:00
Colin Finck
6574de04e3 [LOCALSPL]
Bugfix: The last entry in a doubly linked list (LIST_ENTRY structure) is actually the head element again, not NULL!

svn path=/branches/colins-printing-for-freedom/; revision=68322
2015-06-30 15:54:42 +00:00
Colin Finck
14711237a1 [LOCALSPL]
- Partly implement LocalScheduleJob.
- Set the default status to JOB_STATUS_SPOOLING in LocalAddJob.
- Fix file sharing flags in ReadJobShadowFile and WriteJobShadowFile.

[SPOOLSS, SPOOLSV, WINSPOOL]
- Forward the newly implemented ScheduleJob call all the way down to localspl.dll.
- Stub ReadPrinter.

[WINPRINT]
Implement a very simple RAW Print Processor that just takes the input and forwards it to the Print Monitor. This one doesn't even do pausing or multiple copies yet.
The implementation includes:
- Implemented ClosePrintProcessor, OpenPrintProcessor and PrintDocumentOnPrintProcessor (apart from the previously implemented EnumPrintProcessorDatatypesW).
- Stubbed ControlPrintProcessor and GetPrintProcessorCapabilities.

svn path=/branches/colins-printing-for-freedom/; revision=68304
2015-06-28 15:51:32 +00:00
Colin Finck
b0bc4bb807 [LOCALSPL]
- Write the shadow file after changing job details.
- dwUnknown2 in the shadow file header is actually the offset of the Print Processor Parameters.
- Process all known fields of the shadow file in ReadJobShadowFile and WriteJobShadowFile.

svn path=/branches/colins-printing-for-freedom/; revision=68292
2015-06-27 15:37:14 +00:00
Colin Finck
03bc6a133e [SPOOLSS, SPOOLSV, WINSPOOL]
Connect AddJobW, EnumJobsW, GetJobW and SetJobW from winspool.drv over spoolsv.exe and spoolss.dll to the implemented functions in localspl.dll (including marshalling the involved structures down and up).
I decided to not use my recently implemented MarshallDownStructure API here and rather do the pointer math in place as this is simpler and faster.

svn path=/branches/colins-printing-for-freedom/; revision=68288
2015-06-27 12:36:45 +00:00
Colin Finck
3218c2067a [LOCALSPL]
Implement LocalEnumJobs the easy way by using the new Skiplist function LookupNodeByIndexSkiplist and calling _LocalGetJobLevelX for each job.
This required changes in _LocalGetJobLevelX, so that the strings are now copied in reverse to the end of the buffer while the structure is copied to the start. By preserving the pointers after each call, the function can be called multiple times.

svn path=/branches/colins-printing-for-freedom/; revision=68264
2015-06-25 15:27:38 +00:00
Colin Finck
84416a465a [SKIPLIST]
- Add a LookupNodeByIndexSkiplist function and a small test for it in skiplist_test.
- Remove a redundant double-set in LookupElementSkiplist.

Yes, we now have one lookup function that accepts search criteria and returns an element and another one that accepts an index and returns a SKIPLIST_NODE.
It's simply because I have exactly these two cases :)
You're free to implement the two missing functions or refactor this code another way.

svn path=/branches/colins-printing-for-freedom/; revision=68262
2015-06-25 13:12:01 +00:00
Colin Finck
7aef841dea [LOCALSPL]
- Implement LocalSetJob for Level 1 and 2.
- Add pPrintProcessor, pwszPrintProcessorParameters and pwszStatus members to the LOCAL_JOB structure and use them in LocalAddJob, LocalGetJob and LocalSetJob.
- Fix naming of some LOCAL_JOB members.

svn path=/branches/colins-printing-for-freedom/; revision=68259
2015-06-25 12:29:18 +00:00
Colin Finck
fe48c72925 [SPOOLSS]
Halfplement and document the undocumented but exported MarshallDownStructure API.
Information about this API was exclusively gained by writing a custom XML file for rohitab.com's API Monitor and monitoring calls under Windows.

I could figure out the parameters passed to the function, but don't really know what most of them are for.
For me, the function does what it should and what I will soon need it for, but without making use of cbSize, cbPerElementSize, cbStructureSize and bSomeBoolean.
A Code Review and additional hints are highly appreciated! My XML file for the API Monitor is available on request.

svn path=/branches/colins-printing-for-freedom/; revision=68253
2015-06-24 16:26:33 +00:00
Colin Finck
587d83f1e3 Addendum to r68248
svn path=/branches/colins-printing-for-freedom/; revision=68252
2015-06-24 16:20:13 +00:00
Colin Finck
794f62a466 [SPOOLSV, WINSPOOL]
Local Communication between winspool.drv and spoolsv.exe happens using the ncalrpc protocol. The ncacn_np endpoint is only available when sharing a printer. It's then used for receiving a remote call from win32spl.dll.
Reference: http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_spoolss.html

This fixes e.g. testing a _RpcOpenPrinter call from our winspool.drv to a local printer under Windows.

svn path=/branches/colins-printing-for-freedom/; revision=68248
2015-06-24 09:51:29 +00:00
Colin Finck
7e4bcf78c4 [WINSPOOL]
Don't rely on pure magic to transmit the error code of the RPC call to the calling application. Instead use SetLastError on the return value of the call (this is what all these DWORD return values are for!)

[SPOOLSV]
For every RPC function, return the error code of the called Spooler Router function instead of the error code of RpcRevertToSelf.

[LOCALSPL, WINPRINT]
- Change the code structure in every function called from the Spooler Router to always set an error code, especially ERROR_SUCCESS on success.
- Store Attributes and Status values for a local printer.
- Fail in LocalAddJob if an invalid handle has been supplied or the printer is set to do direct printing.

svn path=/branches/colins-printing-for-freedom/; revision=68247
2015-06-23 13:46:14 +00:00
Colin Finck
5df5a009e2 [SPOOLSS] [SPOOLSV] [WINSPOOL]
- Add RPC calls in winspool, Router calls in spoolsv and Local Spooler calls in spoolss for most of the APIs I've implemented in localspl.
  This is still Work-In-Progress and missing some sanity checks, but a first step into something usable from the documented Spooler API side.
- Separate APIs into individual source files just like I did for localspl.

svn path=/branches/colins-printing-for-freedom/; revision=68237
2015-06-22 14:31:47 +00:00
Colin Finck
9be537abb7 [LOCALSPL]
- Get rid of the Generic Tables entirely and make use of the new Skiplist for the Global Job List, the Printer's Job List and the Printer List.
  Use a doubly linked-list for the Print Processors (there won't be many) and just save the information returned from the Print Processor's EnumPrintProcessorDatatypesW instead of putting it in another structure.
- Implement LocalAddJob and LocalGetJob (with full JOB_INFO_1W and JOB_INFO_2W support)
  This makes use of the element index in the new Skiplist implementation to retrieve the position of the job in the list.
- Do some changes to LocalStartDocPrinter, though this will make use of LocalAddJob in the future.
- Make some global variables static again.

svn path=/branches/colins-printing-for-freedom/; revision=68195
2015-06-19 15:21:30 +00:00
Colin Finck
a4d50f82ff [LOCALSPL_APITEST]
Put the calls that eventually give us the function pointers to localspl into a separate procedure GetLocalsplFuncs to enable further tests easily.

svn path=/branches/colins-printing-for-freedom/; revision=68194
2015-06-19 15:05:58 +00:00
Colin Finck
1793014ec3 [RPCRT4]
Add a lazy stub for RpcBindingServerFromClient to get my upcoming localspl changes to compile.
This needs further attention later.

svn path=/branches/colins-printing-for-freedom/; revision=68193
2015-06-19 15:00:41 +00:00
Colin Finck
f1377fcb7c [SKIPLIST]
Verify that SKIPLIST_LEVELS is in the required range using C_ASSERTs (thanks to Thomas for the hint!)

svn path=/branches/colins-printing-for-freedom/; revision=68192
2015-06-19 12:33:45 +00:00
Colin Finck
86ad9580b1 [SKIPLIST]
Add my implementation of an efficient Skiplist. A Skiplist can do insertion, deletion and lookups in O(log N) on average just like balanced trees.
It features simpler algorithms though due to purely relying on probabilistic balancing at insertion and not on rebalancing with every modification.

This simple structure allowed me to implement some additions on top of the standard algorithms:
* Storing distances between elements on each level to efficiently return the index of the element in the Skiplist when doing a lookup.
* InsertTailElementSkiplist to explicitly insert an element at the end of the Skiplist.
  This needs no comparisons and is useful when you can be sure that the new element would be inserted at the end (e.g. for a new print job in the queue with default priority).

More features are easily possible, but for now I limited features on those needed for my Local Spooler work.

Some references on Skiplists:
* ftp://ftp.cs.umd.edu/pub/skipLists/skiplists.pdf
* http://drum.lib.umd.edu/bitstream/1903/544/2/CS-TR-2286.1.pdf

svn path=/branches/colins-printing-for-freedom/; revision=68191
2015-06-19 10:27:46 +00:00
Colin Finck
888171ae18 [LOCALSPL_APITEST]
It's only the second disabled test, which is causing trouble for us, so reactivate the first one.
This also confirms that the problem is not related to SEH.

svn path=/branches/colins-printing-for-freedom/; revision=68104
2015-06-10 21:49:49 +00:00
Colin Finck
1e363204d6 [LOCALSPL_APITEST]
- Add more tests for fpEnumPrinters.
  For some reason, using SEH here works only once. We experience a hang in the testing process when you run the test again for a second time without restarting spoolsv. Needs more investigation.
- Ensure that the spooler service is running before starting any testing.
- Do proper cleanup in every case.

[LOCALSPL]
- Implement LocalEnumPrinters level 1 based on the API-Tests.
- Use DllAllocSplMem/DllFreeSplMem instead of HeapAlloc/HeapFree.
- Use AllocSplStr with DllFreeSplStr now that DuplicateStringW is gone.
- Use _countof where applicable.

[SPOOLSS]
- Found out that I was not the only one needing a wcsdup equivalent. My DuplicateStringW from localspl is actually exported as AllocSplStr in spoolss.
  This is actually part of a range of undocumented memory functions in spoolss, so implement and document AllocSplStr, DllAllocSplMem, DllFreeSplMem, DllFreeSplStr, ReallocSplMem and ReallocSplStr.
  Information about some of them was gathered through black box testing and DDK samples (down to Win95 DDK), which at least contained prototypes of them.
- Implement SplInitializeWinSpoolDrv based on the API-Test and simply return FALSE for SplIsUpgrade.

[SPOOLSS_APITEST]
- Add a test for ReallocSplStr, which was actually the most undocumented function of spoolss' memory functions.

[WINSPOOL]
SplInitializeWinSpoolDrv shows that we can't just auto-assign an ordinal to all winspool.drv functions. We even need to export some nameless functions by ordinal only.
Redo the whole .spec file based on the ordinals found in Windows Server 2003's winspool.drv. Trust WINE for the nameless stubs.

svn path=/branches/colins-printing-for-freedom/; revision=68089
2015-06-09 13:22:25 +00:00
Colin Finck
f2a66788f8 [LOCALSPL_APITEST]
Write an API-Test for localspl.dll. As the original localspl.dll from Windows Server 2003 relies on proper initialization inside spoolsv.exe, we cannot test it standalone as usual.
To make testing possible anyway, this program basically does four things:

  - Injecting our testing code into spoolsv.exe.
  - Registering and running us as a service in the SYSTEM security context like spoolsv.exe, so that injection is possible at all.
  - Sending the test name and receiving the console output over named pipes.
  - Redirecting the received console output to stdout again, so it looks and feels like a standard API-Test.

Nevertheless, the testing code in fpEnumPrinters.c is still written like a usual test. The known ok(), skip(), etc. macros can be used as usual, their output is just redirected through the named pipes.
Thanks to Thomas for giving me the tip about injecting code into spoolsv! :)

svn path=/branches/colins-printing-for-freedom/; revision=68080
2015-06-08 17:15:44 +00:00
Colin Finck
19839c646c [SPOOLSS_APITEST]
Add a test for SplInitializeWinSpoolDrv verifying that Wine's XP-compatible implementation of this function also works for 2003 (and that we're going to need some nameless exports by ordinals in winspool.drv...)

svn path=/branches/colins-printing-for-freedom/; revision=68035
2015-06-06 12:32:30 +00:00
Colin Finck
1e4d261c62 [PRINTING]
Add an include directory for all printing components containing definitions not found in the public headers.
For now, that's just PackStrings in spoolss.h.

[SPOOLSS_APITEST]
Use the new spoolss.h header.

[WINPRINT_APITEST]
Add an API-Test for the winprint Print Processor, so far for its EnumPrintProcessorDatatypesW function. Tests succeed in Windows Server 2003.
winspool.drv also provides functions that go into winprint.dll, but as these tests show, they behave slightly different in terms of error codes due to the involved RPC and routing.
Windows Server 2003 has winprint functions in localspl.dll, so you have to copy its localspl.dll to winprint.dll for testing.

[WINPRINT]
- Use PackStrings to simplify the code.
- Fix test failures.

svn path=/branches/colins-printing-for-freedom/; revision=68025
2015-06-05 18:16:51 +00:00
Colin Finck
ecd7f83ffb [SPOOLSS]
In an attempt to simplify the code for further functions that return information structures, implement and document the undocumented PackStrings function.
Hints were taken from an XP DDK sample and own testing.

[SPOOLSS_APITEST]
Add some tests for PackStrings that succeed under Windows Server 2003.

svn path=/branches/colins-printing-for-freedom/; revision=68023
2015-06-05 15:52:39 +00:00
Colin Finck
af0a3b64a9 [WINSPOOL_APITEST]
- Add tests for EnumPrinters
- Fix a test for EnumPrintProcessorDatatypes

svn path=/branches/colins-printing-for-freedom/; revision=68007
2015-06-04 12:19:06 +00:00
Colin Finck
99b62ed313 [WINSPOOL_APITEST]
Make the tests actually succeed under Windows Server 2003.

svn path=/branches/colins-printing-for-freedom/; revision=67884
2015-05-24 16:55:20 +00:00
Colin Finck
beaa69af38 Time to commit some Work-In-Progress stuff before my diff gets too large..
[LOCALSPL]
- Begin work on the Local Spooler. Return a structure with function pointers in InitializePrintProvidor.
- Design and document internal structures for managing LocalSpl Handles, Printer Handles, Printers, Print Jobs and Print Processors.
  Manage Printers and Print Processors in Generic Tables, with one Job Queue per Printer managed as a Doubly Linked List.
- Implement LocalOpenPrinter, LocalEnumPrintProcessorDatatypes, LocalEnumPrintProcessors, LocalGetPrintProcessorDirectory, with focus on catching all corner cases.
  Currently working on LocalStartDocPrinter.
- Build upon the documentation at http://www.undocprint.org/formats/winspool/shd to read and write .SHD files.

[WINPRINT]
Begin work on the Standard Print Processor. Implement EnumPrintProcessorDatatypesW.

[WINSPOOL_APITEST]
Add an API Test for winspool.drv, currently testing some corner cases of ClosePrinter, EnumPrintProcessorDatatypesW, GetPrintProcessorDirectoryW, OpenPrinterW, StartDocPrinterW.
TODO: Find a way to actually test the localspl.dll functions instead of only winspool.drv. This DLL doesn't like to be tested standalone under Windows, e.g. without being used through spoolsv/spoolss.

[SPOOLSS]
Implement InitializeRouter by calling the InitializePrintProvidor function of localspl there.
This function should later also initialize further Print Providers.

[SPOOLSV]
Call InitializeRouter when starting up the service.

[WINSPOOL]
Add dummy functions for EnumPrintProcessorDatatypesA/EnumPrintProcessorDatatypesW.

[All modules]
Fix printf format specifiers for errors (%lu) and statuses (%ld).

svn path=/branches/colins-printing-for-freedom/; revision=67847
2015-05-22 15:29:07 +00:00
Colin Finck
9a3f634ff7 [WINSPOOL]
- Use GdiConvertToDevmodeW instead of duplicating code.
- Fix the spec2def call here as well.

svn path=/branches/colins-printing-for-freedom/; revision=67816
2015-05-17 17:19:37 +00:00
Colin Finck
b6a75bda5d spec2def requires the DLL filename and not the module name in its parameters.
Fixes delay-importing spoolss.dll.

svn path=/branches/colins-printing-for-freedom/; revision=67705
2015-05-13 07:03:05 +00:00
Colin Finck
4510858390 - Fix the importlib order for the GNU linker according to Amine's suggestion.
- Add PSEH for winspool.

svn path=/branches/colins-printing-for-freedom/; revision=67694
2015-05-12 14:56:54 +00:00
Colin Finck
2ffd28325a - Add a dummy winspool.drv SpoolerInit doing an RPC call to a dummy RpcSpoolerInit, which itself passes the call to a dummy spoolss.dll SpoolerInit.
This serves as an example to show how I expect most spooler functions to work.
- Implement the publicly exported and fundamental RevertToPrinterSelf and ImpersonatePrinterClient spoolss.dll functions.
- Fix WINSPOOL_HANDLE_bind.
- Fix build with GCC.

svn path=/branches/colins-printing-for-freedom/; revision=67693
2015-05-12 14:43:25 +00:00
Colin Finck
26cb1650bc [SPOOLSV]
Add stubs for all RPC functions of the winspool interface.

svn path=/branches/colins-printing-for-freedom/; revision=67665
2015-05-11 14:14:50 +00:00
Colin Finck
3e53fe49e9 - Add all publicly available information about the spoolsv RPC interface of Windows Server 2003 to the winspool.idl file.
Another reference: http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_spoolss.html
- Put this file in the public domain as it's just collected interface information from various sources without any real code.

svn path=/branches/colins-printing-for-freedom/; revision=67662
2015-05-11 13:37:23 +00:00
Colin Finck
3551e3ab45 Fix copying of structure values in OpenPrinterA
svn path=/branches/colins-printing-for-freedom/; revision=67577
2015-05-06 13:00:08 +00:00
Colin Finck
1ea68e0e6d - Add the first bits of the winspool/spoolsv/spoolss interface in a WIDL-compatible format.
References:
     - https://git.samba.org/?p=samba.git;a=blob;f=librpc/idl/spoolss.idl;hb=618af83d1bd07b12a9acc88b0d2111cab7a8bb2b
     - https://msdn.microsoft.com/en-us/library/cc244649.aspx
- Replace our stubbed spoolsv by a new basic implementation that already creates a thread to serve RPC requests.
- Add stubbed versions of localmon, localspl, spoolss, winprint, winspool matching the exports of the Windows Server 2003 DLLs.
  localmon and winprint are part of localspl in Windows Server 2003. I took the freedom of putting these distinct components into separate DLLs (as it's done for localmon in NT4 and for winprint in Win7).
- Implement some stubs myself to fix the build (e.g. comdlg32 uses some functions).
- Implement OpenPrinterA and OpenPrinterW in winspool. This is just ANSI-to-Unicode conversion and a RPC call.
- Remove the Wine-imported ntprint, this one also needs a complete rewrite once we're at this point.

svn path=/branches/colins-printing-for-freedom/; revision=67576
2015-05-06 12:47:20 +00:00
Colin Finck
6635670794 Fix PRINTER_DEFAULTSA and PRINTER_DEFAULTSW structures
svn path=/branches/colins-printing-for-freedom/; revision=67575
2015-05-06 12:17:39 +00:00
Colin Finck
f67a62efe5 Add a little test program "winspool_print" that just prints a single line of unformatted text.
This line will arrive as RAW data in the printing stack, so it doesn't need any processing through GDI and serves as a good test for the very basic printing components.

svn path=/branches/colins-printing-for-freedom/; revision=67544
2015-05-04 13:39:07 +00:00
Colin Finck
d5fd7aaa19 - Add my proposed directory tree for the components involved in printing.
- Remove some Wine-imported components which are either entirely not usable for us or only implement so few functions that it's easier to completely reimplement them.
- Move "localui" (Wine-imported) and "spoolsv" (ReactOS stub) to the new directories.

svn path=/branches/colins-printing-for-freedom/; revision=67543
2015-05-04 13:21:13 +00:00
7808 changed files with 1419780 additions and 280821 deletions

View File

@@ -16,6 +16,11 @@ if(POLICY CMP0051)
cmake_policy(SET CMP0051 NEW)
endif()
if(POLICY CMP0058)
# Ninja requires custom command byproducts to be explicit
cmake_policy(SET CMP0058 OLD)
endif()
project(REACTOS)
# Versioning
@@ -35,7 +40,6 @@ 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)
set(CMAKE_SKIP_INSTALL_RULES ON)
if(NOT DEFINED NEW_STYLE_BUILD)
set(NEW_STYLE_BUILD TRUE)
@@ -53,15 +57,15 @@ string(TOLOWER ${ARCH} ARCH)
# Compile options
if(ARCH STREQUAL "i386")
include(cmake/config.cmake)
include(sdk/cmake/config.cmake)
elseif(ARCH STREQUAL "amd64")
include(cmake/config-amd64.cmake)
include(sdk/cmake/config-amd64.cmake)
elseif(ARCH STREQUAL "arm")
include(cmake/config-arm.cmake)
include(sdk/cmake/config-arm.cmake)
endif()
# Compiler flags handling
include(cmake/compilerflags.cmake)
include(sdk/cmake/compilerflags.cmake)
add_definitions(-D__REACTOS__)
@@ -76,7 +80,7 @@ if(NOT MSVC_IDE)
endif()
# Bison and Flex support
# include(cmake/bison-flex.cmake)
# include(sdk/cmake/bison-flex.cmake)
if(NOT CMAKE_CROSSCOMPILING)
@@ -94,8 +98,6 @@ if(NOT CMAKE_CROSSCOMPILING)
add_definitions(/D_ALLOW_KEYWORD_MACROS)
endif()
add_definitions(/Dinline=__inline)
else()
add_compile_flags("-fshort-wchar -Wno-multichar")
endif()
include_directories(sdk/include/host)
@@ -108,16 +110,16 @@ if(NOT CMAKE_CROSSCOMPILING)
if(NOT NEW_STYLE_BUILD)
if(NOT MSVC)
export(TARGETS bin2c widl gendib cabman cdmake fatten hpp mkhive obj2bin spec2def geninc rsym mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
export(TARGETS bin2c widl gendib cabman fatten hpp isohybrid mkhive mkisofs obj2bin spec2def geninc rsym mkshelllink utf16le xml2sdb FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
else()
export(TARGETS bin2c widl gendib cabman cdmake fatten hpp mkhive obj2bin spec2def geninc mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
export(TARGETS bin2c widl gendib cabman fatten hpp isohybrid mkhive mkisofs obj2bin spec2def geninc mkshelllink utf16le xml2sdb FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
endif()
endif()
else()
if(NEW_STYLE_BUILD)
include(cmake/host-tools.cmake)
include(sdk/cmake/host-tools.cmake)
endif()
# Print build type
@@ -207,24 +209,24 @@ else()
enable_language(RC)
# Localization definitions
include(cmake/localization.cmake)
include(sdk/cmake/localization.cmake)
set(I18N_DEFS "")
# This will set I18N_DEFS for later use
set_i18n_language(${I18N_LANG})
# Compiler specific definitions and macros
if(MSVC)
include(cmake/msvc.cmake)
include(sdk/cmake/msvc.cmake)
else()
include(cmake/gcc.cmake)
include(sdk/cmake/gcc.cmake)
endif()
# Generic macros
include(cmake/CMakeMacros.cmake)
include(sdk/cmake/CMakeMacros.cmake)
# IDL macros for widl/midl
# We're using widl now for both MSVC and GCC builds
include(cmake/widl-support.cmake)
include(sdk/cmake/widl-support.cmake)
include_directories(
sdk/include
@@ -235,6 +237,7 @@ else()
${REACTOS_BINARY_DIR}/sdk/include/dxsdk
${REACTOS_BINARY_DIR}/sdk/include/ddk
${REACTOS_BINARY_DIR}/sdk/include/reactos
${REACTOS_BINARY_DIR}/sdk/include/reactos/mc
sdk/include/crt
sdk/include/ddk
sdk/include/ndk
@@ -255,11 +258,11 @@ else()
add_subdirectory(sdk/include/asm)
if(NO_ROSSYM)
include(cmake/baseaddress_dwarf.cmake)
include(sdk/cmake/baseaddress_dwarf.cmake)
elseif(MSVC)
include(cmake/baseaddress_msvc.cmake)
include(sdk/cmake/baseaddress_msvc.cmake)
else()
include(cmake/baseaddress.cmake)
include(sdk/cmake/baseaddress.cmake)
endif()
# For MSVC builds, this puts all debug symbols file in the same directory.

View File

@@ -4,7 +4,7 @@ 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 "")
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/sdk/cmake" CACHE INTERNAL "")
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")

View File

@@ -14,7 +14,7 @@ The ReactOS project, although currently focused on Windows Server 2003
compatibility, is always keeping an eye toward compatibility with
Windows Vista and future Windows NT releases.
More information is available at: http://www.reactos.org
More information is available at: https://www.reactos.org
2. Building ReactOS
-------------------

View File

@@ -9,6 +9,7 @@ add_subdirectory(control)
add_subdirectory(dxdiag)
add_subdirectory(extrac32)
add_subdirectory(findstr)
add_subdirectory(fltmc)
add_subdirectory(fontview)
add_subdirectory(games)
add_subdirectory(hh)
@@ -27,7 +28,6 @@ add_subdirectory(network)
add_subdirectory(notepad)
add_subdirectory(osk)
add_subdirectory(rapps)
add_subdirectory(rapps_new)
add_subdirectory(regedit)
add_subdirectory(regedt32)
add_subdirectory(sc)

View File

@@ -91,14 +91,14 @@ void print_help() {
" will switch device at Scsi2, bus 1, taget_id 1 to UDMA0 mode\n"
" atactl -h -d 30 c1:b0:d0:l0 \n"
" will hide Master (d0:l0) device on secondary (c1:b0) IDE channel\n"
" and lock i/o on this channel for 30 seconds to ensure safity\n"
" and lock i/o on this channel for 30 seconds to ensure safety\n"
" of removal process"
"------\n"
"Device address format:\n"
"\n"
"s<controller id> number of controller in system. Is assigned during hardware\n"
" detection. Usually s0/s1 are ATA Pri/Sec.\n"
" Note, due do NT internal desing ATA controllers are represented\n"
" Note, due do NT internal design ATA controllers are represented\n"
" as SCSI controllers.\n"
"b<bus id> For ATA controllers it is channel number.\n"
" Note, usually onboard controller is represented as 2 legacy\n"
@@ -1283,7 +1283,7 @@ ata_scan(
to.WaitForPhysicalLink = lock;
to.Flags = unhide ? UNIATA_ADD_FLAGS_UNHIDE : 0;
printf("Scaning bus for new devices.\n");
printf("Scanning bus for new devices.\n");
if(lock) {
printf("You have %d seconds to connect device.\n", lock);
}

View File

@@ -1,6 +1,8 @@
list(APPEND SOURCE cacls.c cacls.rc)
add_executable(cacls ${SOURCE})
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(cacls cacls.c cacls.rc)
set_module_type(cacls win32cui UNICODE)
target_link_libraries(cacls conutils ${PSEH_LIB})
add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32)
add_cd_file(TARGET cacls DESTINATION reactos/system32 FOR all)

View File

@@ -33,155 +33,17 @@ static GENERIC_MAPPING FileGenericMapping =
};
static
INT
LengthOfStrResource(IN HINSTANCE hInst,
IN UINT uID)
static VOID
PrintError(DWORD dwError)
{
HRSRC hrSrc;
HGLOBAL hRes;
LPWSTR lpName, lpStr;
if (dwError == ERROR_SUCCESS)
return;
if (hInst == NULL)
{
hInst = GetModuleHandle(NULL);
}
/* There are always blocks of 16 strings */
lpName = (LPWSTR)MAKEINTRESOURCE((uID >> 4) + 1);
/* Find the string table block */
hrSrc = FindResourceW(hInst, lpName, (LPWSTR)RT_STRING);
if (hrSrc)
{
hRes = LoadResource(hInst, hrSrc);
if (hRes)
{
lpStr = LockResource(hRes);
if (lpStr)
{
UINT x;
/* Find the string we're looking for */
uID &= 0xF; /* position in the block, same as % 16 */
for (x = 0; x < uID; x++)
{
lpStr += (*lpStr) + 1;
}
/* Found the string */
return (int)(*lpStr);
}
}
}
return -1;
ConMsgPuts(StdErr, FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, LANG_USER_DEFAULT);
}
static
INT
AllocAndLoadString(OUT LPTSTR *lpTarget,
IN HINSTANCE hInst,
IN UINT uID)
{
INT ln;
ln = LengthOfStrResource(hInst,
uID);
if (ln++ > 0)
{
(*lpTarget) = (LPTSTR)HeapAlloc(GetProcessHeap(),
0,
ln * sizeof(TCHAR));
if ((*lpTarget) != NULL)
{
INT Ret;
Ret = LoadString(hInst,
uID,
*lpTarget,
ln);
if (!Ret)
{
HeapFree(GetProcessHeap(),
0,
*lpTarget);
}
return Ret;
}
}
return 0;
}
static
VOID
PrintHelp(VOID)
{
LPTSTR szHelp;
if (AllocAndLoadString(&szHelp,
NULL,
IDS_HELP) != 0)
{
_tprintf(_T("%s"),
szHelp);
HeapFree(GetProcessHeap(),
0,
szHelp);
}
}
static
VOID
PrintErrorMessage(IN DWORD dwError)
{
LPTSTR szError;
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_IGNORE_INSERTS |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
dwError,
MAKELANGID(LANG_NEUTRAL,
SUBLANG_DEFAULT),
(LPTSTR)&szError,
0,
NULL) != 0)
{
_tprintf(_T("%s"),
szError);
LocalFree((HLOCAL)szError);
}
}
static
DWORD
LoadAndPrintString(IN HINSTANCE hInst,
IN UINT uID)
{
TCHAR szTemp[255];
DWORD Len;
Len = (DWORD)LoadString(hInst,
uID,
szTemp,
sizeof(szTemp) / sizeof(szTemp[0]));
if (Len != 0)
{
_tprintf(_T("%s"),
szTemp);
}
return Len;
}
static
BOOL
static BOOL
PrintFileDacl(IN LPTSTR FilePath,
IN LPTSTR FileName)
{
@@ -199,10 +61,8 @@ PrintFileDacl(IN LPTSTR FilePath,
return FALSE;
}
_tcscpy(FullFileName,
FilePath);
_tcscat(FullFileName,
FileName);
_tcscpy(FullFileName, FilePath);
_tcscat(FullFileName, FileName);
/* find out how much memory we need */
if (!GetFileSecurity(FullFileName,
@@ -318,8 +178,7 @@ BuildSidString:
}
/* print the file name or space */
_tprintf(_T("%s "),
FullFileName);
ConPrintf(StdOut, L"%s ", FullFileName);
/* attempt to map the SID to a user name */
if (AceIndex == 0)
@@ -335,35 +194,29 @@ BuildSidString:
/* print the domain and/or user if possible, or the SID string */
if (Name != NULL && Domain[0] != _T('\0'))
{
_tprintf(_T("%s\\%s:"),
Domain,
Name);
ConPrintf(StdOut, L"%s\\%s:", Domain, Name);
IndentAccess = (DWORD)_tcslen(Domain) + _tcslen(Name);
}
else
{
LPTSTR DisplayString = (Name != NULL ? Name : SidString);
_tprintf(_T("%s:"),
DisplayString);
ConPrintf(StdOut, L"%s:", DisplayString);
IndentAccess = (DWORD)_tcslen(DisplayString);
}
/* print the ACE Flags */
if (Ace->Header.AceFlags & CONTAINER_INHERIT_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_CI);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_CI);
}
if (Ace->Header.AceFlags & OBJECT_INHERIT_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_OI);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_OI);
}
if (Ace->Header.AceFlags & INHERIT_ONLY_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_IO);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_IO);
}
IndentAccess += 2;
@@ -375,13 +228,11 @@ BuildSidString:
{
if (AccessMask == FILE_ALL_ACCESS)
{
LoadAndPrintString(NULL,
IDS_ABBR_NONE);
ConResPuts(StdOut, IDS_ABBR_NONE);
}
else
{
LoadAndPrintString(NULL,
IDS_DENY);
ConResPuts(StdOut, IDS_DENY);
goto PrintSpecialAccess;
}
}
@@ -389,24 +240,20 @@ BuildSidString:
{
if (AccessMask == FILE_ALL_ACCESS)
{
LoadAndPrintString(NULL,
IDS_ABBR_FULL);
ConResPuts(StdOut, IDS_ABBR_FULL);
}
else if (!(Ace->Mask & (GENERIC_READ | GENERIC_EXECUTE)) &&
AccessMask == (FILE_GENERIC_READ | FILE_EXECUTE))
{
LoadAndPrintString(NULL,
IDS_ABBR_READ);
ConResPuts(StdOut, IDS_ABBR_READ);
}
else if (AccessMask == (FILE_GENERIC_READ | FILE_GENERIC_WRITE | FILE_EXECUTE | DELETE))
{
LoadAndPrintString(NULL,
IDS_ABBR_CHANGE);
ConResPuts(StdOut, IDS_ABBR_CHANGE);
}
else if (AccessMask == FILE_GENERIC_WRITE)
{
LoadAndPrintString(NULL,
IDS_ABBR_WRITE);
ConResPuts(StdOut, IDS_ABBR_WRITE);
}
else
{
@@ -446,38 +293,32 @@ BuildSidString:
{STANDARD_RIGHTS_ALL, IDS_STANDARD_RIGHTS_ALL},
};
LoadAndPrintString(NULL,
IDS_ALLOW);
ConResPuts(StdOut, IDS_ALLOW);
PrintSpecialAccess:
LoadAndPrintString(NULL,
IDS_SPECIAL_ACCESS);
ConResPuts(StdOut, IDS_SPECIAL_ACCESS);
/* print the special access rights */
x = sizeof(AccessRights) / sizeof(AccessRights[0]);
x = ARRAYSIZE(AccessRights);
while (x-- != 0)
{
if ((Ace->Mask & AccessRights[x].Access) == AccessRights[x].Access)
{
_tprintf(_T("\n%s "),
FullFileName);
for (x2 = 0;
x2 < IndentAccess;
x2++)
ConPrintf(StdOut, L"\n%s ", FullFileName);
for (x2 = 0; x2 < IndentAccess; x2++)
{
_tprintf(_T(" "));
ConPuts(StdOut, L" ");
}
LoadAndPrintString(NULL,
AccessRights[x].uID);
ConResPuts(StdOut, AccessRights[x].uID);
}
}
_tprintf(_T("\n"));
ConPuts(StdOut, L"\n");
}
}
_tprintf(_T("\n"));
ConPuts(StdOut, L"\n");
/* free up all resources */
if (Name != NULL)
@@ -541,7 +382,7 @@ GetPathOfFile(LPTSTR FilePath, LPCTSTR pszFiles)
*pch = 0;
if (!GetFullPathName(FilePath, MAX_PATH, FullPath, NULL))
{
PrintErrorMessage(GetLastError());
PrintError(GetLastError());
return FALSE;
}
lstrcpyn(FilePath, FullPath, MAX_PATH);
@@ -549,7 +390,7 @@ GetPathOfFile(LPTSTR FilePath, LPCTSTR pszFiles)
attrs = GetFileAttributes(FilePath);
if (attrs == 0xFFFFFFFF || !(attrs & FILE_ATTRIBUTE_DIRECTORY))
{
PrintErrorMessage(ERROR_DIRECTORY);
PrintError(ERROR_DIRECTORY);
return FALSE;
}
}
@@ -591,7 +432,7 @@ PrintDaclsOfFiles(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -599,17 +440,21 @@ PrintDaclsOfFiles(LPCTSTR pszFiles)
}
}
else
{
break;
}
}
else
_tprintf(_T("\n"));
{
ConPuts(StdOut, L"\n");
}
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -771,7 +616,7 @@ ChangeACLsOfFiles(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -788,7 +633,7 @@ ChangeACLsOfFiles(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -826,7 +671,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -843,7 +688,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -872,7 +717,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -889,26 +734,29 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
return TRUE;
}
int
__cdecl
_tmain(int argc, const TCHAR *argv[])
int _tmain(int argc, const TCHAR *argv[])
{
INT i;
LPTSTR pch;
BOOL InvalidParameter = FALSE;
/* Initialize the Console Standard Streams */
ConInitStdStreams();
if (argc <= 1)
{
PrintHelp();
ConResPuts(StdOut, IDS_HELP);
return 0;
}
// FIXME: Convert to proper parsing, with support for /?
/*
* parse command line options
*/
@@ -991,8 +839,8 @@ _tmain(int argc, const TCHAR *argv[])
if (InvalidParameter)
{
PrintErrorMessage(ERROR_INVALID_PARAMETER);
PrintHelp();
PrintError(ERROR_INVALID_PARAMETER);
ConResPuts(StdOut, IDS_HELP);
return 1;
}

View File

@@ -23,7 +23,8 @@ CACLS όνομα_αρχείου [/T] [/E] [/C] [/G χρήστης:άδειες [
C Αλλαγή (εγγραφή)\n\
F Πλήρης έλεγχος\n\
/D user Αποτροπή χρήστη από προσπέλαση.\n\
Τα Wildcards μπορούν να χρησιμοποιηθούν για να προσδιορίσουν παραπαπάνω από ένα αρχεία στην εντολή.\n\
Τα Wildcards μπορούν να χρησιμοποιηθούν για να προσδιορίσουν παραπαπάνω από\n\
ένα αρχεία στην εντολή.\n\
Μπορείτε να προσδιορίσετε παρπαάνω από έναν χρήστη στην εντολή.\n\n\
Abbreviations:\n\
CI - Container Inherit.\n\

View File

@@ -18,7 +18,8 @@ CACLS archivo [/T] [/E] [/C] [/G user:perm [...]] [/R usuario [...]]\n\
W Escribir\n\
C Cambiar (escribir)\n\
F Control total\n\
/R usuario Revoca los derechos de acceso al usuario especificado (unicamente válido con /E).\n\
/R usuario Revoca los derechos de acceso al usuario especificado\n\
(unicamente válido con /E).\n\
/P user:perm Reemplaza los derechos de acceso del usuario especificado.\n\
Perm puede ser: N Ninguno\n\
R Leer\n\

View File

@@ -15,7 +15,8 @@ CACLS nomfichier [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
W Écriture\n\
C Modification (Écriture)\n\
F Contrôle total\n\
/R user Supprime les droits d'accès de l'utilisateur spécifié (valide uniquement avec /E).\n\
/R user Supprime les droits d'accès de l'utilisateur spécifié\n\
(valide uniquement avec /E).\n\
/P user:perm Remplace les droits d'accès de l'utilisateur spécifié.\n\
Perm peut valoir : N Aucun \n\
R Lecture\n\
@@ -23,7 +24,8 @@ CACLS nomfichier [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
C Modification (Écriture)\n\
F Contrôle total\n\
/D user Interdit l'accès à l'utilisateur spécifié.\n\
Il est possible d'utiliser des caractères joker pour sélectionner plus d'un fichier avec une commande.\n\
Il est possible d'utiliser des caractères joker pour sélectionner plus d'un\n\
fichier avec une commande.\n\
Il est possible de spécifier plus d'un utilisateur dans une commande.\n\n\
Abréviations:\n\
CI - Héritage du conteneur.\n\

View File

@@ -2,7 +2,9 @@ LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_HELP "ACL's (Access Control Lists, toegangslijsten) van bestanden weergeven\nof bewerken\n\nCACLS bestandsnaam [/T] [/E] [/C] [/G gebr:toeg] [/R gebruiker [...]]\n\
IDS_HELP "ACL's (Access Control Lists, toegangslijsten) van bestanden weergeven\n\
of bewerken\n\n\
CACLS bestandsnaam [/T] [/E] [/C] [/G gebr:toeg] [/R gebruiker [...]]\n\
[/P gebr:toeg [...]] [/D gebruiker [...]]\n\
bestandsnaam ACL's weergeven.\n\
/T ACL's wijzigen van opgegeven bestanden in\n\

View File

@@ -24,7 +24,8 @@ CACLS nazwa pliku [/T] [/E] [/C] [/G użytkownik:dostęp [...]] [/R użytkownik
W Zapis\n\
C Zmiana (zapis)\n\
F Pełny dostęp\n\
/R użytkownik Odwołuje prawa dostępu określonemu użytkownikowi (działa tylko z opcją /E).\n\
/R użytkownik Odwołuje prawa dostępu określonemu użytkownikowi\n\
(działa tylko z opcją /E).\n\
/P użytkownik:dostęp Edytuje prawa dostępu określonego użytkownika.\n\
Poziom dostępu:\n\
N Brak\n\
@@ -33,7 +34,8 @@ CACLS nazwa pliku [/T] [/E] [/C] [/G użytkownik:dostęp [...]] [/R użytkownik
C Zmiana (zapis)\n\
F Pełny dostęp\n\
/D użytkownik Odbiera prawa dostępu określonemu użytkownikowi.\n\
W jednym poleceniu można edytować prawa dostępu do wielu plików, używając symboli wieloznacznych.\n\
W jednym poleceniu można edytować prawa dostępu do wielu plików, używając\n\
symboli wieloznacznych.\n\
W jednym poleceniu można edytować prawa dostępu wielu użytkowników.\n\n\
Skróty:\n\
CI - Dziedziczenie kontenera.\n\

View File

@@ -1,11 +1,4 @@
/*
* FILE: base/applications/cacls/lang/ro-RO.rc
* ReactOS Project (http://www.reactos.org)
* TRANSLATOR: Fulea Ștefan (PM on ReactOS Forum at fulea.stefan)
* CHANGE LOG: 2011-08-20 initial translation
* 2011-10-17 diacritics change
*/
/* Translator: Ștefan Fulea (stefan dot fulea at mail dot md) */
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
STRINGTABLE
@@ -18,7 +11,7 @@ CACLS nume_fișier [/T] [/E] [/C] [/G utilizator:acces [...]]\n\
/T Modifică ACL pentru fișierele specificate în\n\
directorul curent și toate subdirectoarele sale.\n\
/E Editează ACL curentă evitând astfel înlocuirea ei.\n\
/C Continuă și la erori de acces interzis.\n\
/C Continuă și la erori de acces respins.\n\
/G utilizator:acces Acordă drepturile de acces specificate pentru utilizator.\n\
acces poate fi de: R Citire\n\
W Scriere\n\
@@ -33,8 +26,8 @@ CACLS nume_fișier [/T] [/E] [/C] [/G utilizator:acces [...]]\n\
C De modificare (scriere)\n\
F Deplin\n\
/D utilizator Interzice accesul pentru utilizatorul specificat.\n\
Se pot specifica mai multe fișiere utilizând metacaractere.\n\
Pot fi specificați mai mulți utilizatori în aceiași comandă.\n\n\
Utilizând metacaractere pot fi specificate mai multe fișiere.\n\
În aceiași comandă pot fi specificați mai mulți utilizatori.\n\n\
Abrevieri:\n\
CI - Moștenire container.\n\
ACE moștenită de directoare.\n\

View File

@@ -2,11 +2,14 @@
#define _CACLS_PRECOMP_H
#include <stdarg.h>
#include <tchar.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <winuser.h> // For CharPrev
#include <sddl.h>
#include <tchar.h>
#include <conutils.h>
#include "resource.h"

View File

@@ -2,7 +2,6 @@
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
list(APPEND SOURCE
about.c
convert.c
function.c
rpn.c
@@ -14,11 +13,9 @@ file(GLOB calc_rc_deps res/*.*)
add_rc_deps(resource.rc ${calc_rc_deps})
add_executable(calc ${SOURCE} resource.rc)
set_module_type(calc win32gui UNICODE)
add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
add_importlibs(calc advapi32 comctl32 user32 shell32 gdi32 msvcrt kernel32)
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_libraries(calc mingwex)
elseif(MSVC)
if(MSVC)
add_importlibs(calc ntdll)
endif()

View File

@@ -1,33 +0,0 @@
#include "calc.h"
#define MAX_LICENSE_SIZE 1000 // it's enought!
INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
{
TCHAR *license;
switch (msg) {
case WM_INITDIALOG:
license = (TCHAR *)alloca(MAX_LICENSE_SIZE*sizeof(TCHAR));
if (LoadString(calc.hInstance, IDS_STRING_LICENSE, license, MAX_LICENSE_SIZE))
SendDlgItemMessage(hWnd, IDC_EDIT_LICENSE, WM_SETTEXT, 0, (LPARAM)license);
/* Update software version */
SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_GETTEXT, (WPARAM)MAX_LICENSE_SIZE, (LPARAM)license);
_tcscat(license, CALC_VERSION);
SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_SETTEXT, 0, (LPARAM)license);
return TRUE;
case WM_COMMAND:
switch (LOWORD(wp)) {
case IDOK:
EndDialog(hWnd, 0);
return TRUE;
}
break;
case WM_CLOSE:
EndDialog(hWnd, 0);
return 0;
}
return FALSE;
}

View File

@@ -41,8 +41,6 @@
#define IDC_STATIC ((DWORD)-1)
#endif
#define CALC_VERSION TEXT("1.11")
#define MAX_CALC_SIZE 256
/*#define USE_KEYBOARD_HOOK*/

View File

@@ -144,15 +144,17 @@ static const conv_t conv_CURRENCY[] = {
DECLARE_CONV_UNIT(CURRENCY, AUSTRIAN_SCHILLING, "$/13,7603", "$*13,7603")
DECLARE_CONV_UNIT(CURRENCY, BELGIAN_FRANC, "$/40,3399", "$*40,3399")
DECLARE_CONV_UNIT(CURRENCY, CYPRIOT_POUND, "$/0,585274","$*0,585274")
DECLARE_CONV_UNIT(CURRENCY, CZECH_KORUNA, "$/27,9766", "$*27,9766")
DECLARE_CONV_UNIT(CURRENCY, DEUTSCHE_MARK, "$/1,9558", "$*1,9558")
DECLARE_CONV_UNIT(CURRENCY, DEUTSCHE_MARK, "$/1,95583", "$*1,95583")
DECLARE_CONV_UNIT(CURRENCY, DUTCH_GUILDER, "$/2,20371", "$*2,20371")
DECLARE_CONV_UNIT(CURRENCY, ESTONIAN_KROON, "$/15,6466", "$*15,6466")
DECLARE_CONV_UNIT(CURRENCY, EURO, "$", "$")
DECLARE_CONV_UNIT(CURRENCY, FINNISH_MARKKA, "$/5,9457", "$*5,9457")
DECLARE_CONV_UNIT(CURRENCY, FRENCH_FRANC, "$/6,5596", "$*6,5596")
DECLARE_CONV_UNIT(CURRENCY, GREEK_DRACHMA, "$/340,75", "$*340,75")
DECLARE_CONV_UNIT(CURRENCY, IRISH_POUND, "$/0,7876", "$*0,7876")
DECLARE_CONV_UNIT(CURRENCY, FINNISH_MARKKA, "$/5,94573", "$*5,94573")
DECLARE_CONV_UNIT(CURRENCY, FRENCH_FRANC, "$/6,55957", "$*6,55957")
DECLARE_CONV_UNIT(CURRENCY, GREEK_DRACHMA, "$/340,751", "$*340,751")
DECLARE_CONV_UNIT(CURRENCY, IRISH_POUND, "$/0,787564","$*0,787564")
DECLARE_CONV_UNIT(CURRENCY, ITALIAN_LIRA, "$/1936.27", "$*1936.27")
DECLARE_CONV_UNIT(CURRENCY, LATVIAN_LATS, "$/0,7028", "$*0,7028")
DECLARE_CONV_UNIT(CURRENCY, LITHUANIAN_LITAS, "$/3,45280", "$*3,45280")
DECLARE_CONV_UNIT(CURRENCY, LUXEMBOURG_FRANC, "$/40,3399", "$*40,3399")
DECLARE_CONV_UNIT(CURRENCY, MALTESE_LIRA, "$/0.42930", "$*0.42930")
DECLARE_CONV_UNIT(CURRENCY, PORTOGUESE_ESCUDO, "$/200,482", "$*200,482")

View File

@@ -331,7 +331,7 @@ It deletes the current calculation and all sub expressions.
Shortcut from keyboard: ESC
F-E
It enables or it disables the fixed scietific notation.
It enables or it disables the fixed scientific notation.
Shortcut from keyboard: V
0 1 2 3 4 5 6 7 8 9

View File

@@ -296,22 +296,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "За ReactOS Calc"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "Добре", 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 "Изчислителят на РеактОС", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Версия:", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Написано от Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Статистическа кутия"
@@ -419,11 +403,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Грешка"
IDS_QUICKHELP "Бърза помощ"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Изчислителят на РеактОС"
IDS_AUTHOR "Написано от Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -507,12 +497,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Чешка крона"
IDS_CURRENCY_DEUTSCHE_MARK "Германска марка"
IDS_CURRENCY_DUTCH_GUILDER "Холандски гулден"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Евро"
IDS_CURRENCY_FINNISH_MARKKA "Финска марка"
IDS_CURRENCY_FRENCH_FRANC "Френски франк"
IDS_CURRENCY_GREEK_DRACHMA "Гръцка драхма"
IDS_CURRENCY_IRISH_POUND "Ирландска лира"
IDS_CURRENCY_ITALIAN_LIRA "Италианска лира"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Люксембургски франк"
IDS_CURRENCY_MALTESE_LIRA "Малтийска лира"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Португалско ескудо"

View File

@@ -295,22 +295,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "O ReactOS Kalkulačce"
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 "ReactOS Kalkulačka", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Verze ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Autor: Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistické výpočty"
@@ -418,11 +402,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS kalkulačka je svobodný software vydaný pod licencí GNU GPL.\r\n\r\nZde najdete znění GNU GPL licence:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nZde také najdete překlad GNU GPL licence:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Chyba"
IDS_QUICKHELP "Rychlá nápověda"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Kalkulačka"
IDS_AUTHOR "Autor: Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -506,12 +496,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Česká koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Německá marka"
IDS_CURRENCY_DUTCH_GUILDER "Nizozemský gulden"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finská marka"
IDS_CURRENCY_FRENCH_FRANC "Francouzský frank"
IDS_CURRENCY_GREEK_DRACHMA "Řecká drachma"
IDS_CURRENCY_IRISH_POUND "Irská libra"
IDS_CURRENCY_ITALIAN_LIRA "Italská lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Lucemburský frank"
IDS_CURRENCY_MALTESE_LIRA "Maltská lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugalské escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Über ReactOS Rechner"
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 "ReactOS Rechner", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Version ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Geschrieben von Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistikbox"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Rechner ist freie Software, herausgegeben unter der GNU GPL Lizenz.\r\n\r\nSie können hier eine Kopie der GNU GPL Lizenz erhalten:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nSie können hier auch eine Übersetzung der GNU GPL Lizenz erhalten:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Fehler"
IDS_QUICKHELP "Schnellhilfe"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Rechner"
IDS_AUTHOR "Geschrieben von Carlo Bramini"
END
/* Konversionstypen */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Tschechische Krone"
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_DUTCH_GUILDER "Niederländische Guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finnische Mark"
IDS_CURRENCY_FRENCH_FRANC "Französchische Franc"
IDS_CURRENCY_GREEK_DRACHMA "Griechische Drachme"
IDS_CURRENCY_IRISH_POUND "Irische Pfund"
IDS_CURRENCY_ITALIAN_LIRA "Italienische Lire"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxemburgische Franc"
IDS_CURRENCY_MALTESE_LIRA "Maltesische Lire"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugiesische Escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Σχετικά..."
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 "Αριθμομηχανή", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Έκδοση ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Από τον Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistics box"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Σφάλμα"
IDS_QUICKHELP "Quick help"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Αριθμομηχανή"
IDS_AUTHOR "Από τον Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Czech koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Γερμανικό μάρκο"
IDS_CURRENCY_DUTCH_GUILDER "Dutch guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Ευρώ"
IDS_CURRENCY_FINNISH_MARKKA "Finnish markka"
IDS_CURRENCY_FRENCH_FRANC "Γαλλικό φράγκο"
IDS_CURRENCY_GREEK_DRACHMA "Δραχμή"
IDS_CURRENCY_IRISH_POUND "Irish pound"
IDS_CURRENCY_ITALIAN_LIRA "Ιταλική λίρα"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Μαλτέζικη λίρα"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Πορτογαλικό εσκούδο"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "About ReactOS Calc"
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 "ReactOS Calculator", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Version ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Written by Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistics box"
@@ -347,7 +331,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
@@ -380,7 +364,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
@@ -403,7 +387,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Error"
IDS_QUICKHELP "Quick help"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Calculator"
IDS_AUTHOR "Written by Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Czech koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_DUTCH_GUILDER "Dutch guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finnish markka"
IDS_CURRENCY_FRENCH_FRANC "French franc"
IDS_CURRENCY_GREEK_DRACHMA "Greek Drachma"
IDS_CURRENCY_IRISH_POUND "Irish pound"
IDS_CURRENCY_ITALIAN_LIRA "Italian lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltese lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portuguese escudo"

View File

@@ -296,22 +296,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Acerca de la Calculadora de ReactOS"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "Aceptar", 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 "Calculadora de ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versión ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Creada por Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Cuadro de estadísticas"
@@ -419,18 +403,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "La Calculadora de ReactOS es software libre realizado bajo licencia GNU GPL.\r\n\
\r\n\
Puedes obtener una copia de la licencia GNU GPL aquí:\r\n\
http://www.gnu.org/licenses/gpl.html\r\n\
\r\n\
También puedes obtener una traducción de la licencia GNU GPL aquí:\r\n\
http://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Error"
IDS_QUICKHELP "Ayuda rápida"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Calculadora de ReactOS"
IDS_AUTHOR "Creada por Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -514,12 +497,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Corona checa"
IDS_CURRENCY_DEUTSCHE_MARK "Marco alemán"
IDS_CURRENCY_DUTCH_GUILDER "Florín neerlandés"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marco finlandés"
IDS_CURRENCY_FRENCH_FRANC "Franco frances"
IDS_CURRENCY_GREEK_DRACHMA "Drachma griego"
IDS_CURRENCY_IRISH_POUND "Libra irlandesa"
IDS_CURRENCY_ITALIAN_LIRA "Lira italiana"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franco luxemburgués"
IDS_CURRENCY_MALTESE_LIRA "Lira maltesa"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portugués"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "À propos de la Calculatrice 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 "Calculatrice ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Version ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "par Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistiques"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Calculatrice ReactOS est un logiciel libre distribué sous licence GNU GPL.\r\n\r\nVous pouvez obtenir une copie de la licence GNU GPL ici:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nVous pouvez aussi obtenir une traduction de la licence GNU GPL ici:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Erreur"
IDS_QUICKHELP "Aide rapide"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Calculatrice ReactOS"
IDS_AUTHOR "par Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Couronne tchèque"
IDS_CURRENCY_DEUTSCHE_MARK "Mark allemand"
IDS_CURRENCY_DUTCH_GUILDER "Dutch guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marks finlandais"
IDS_CURRENCY_FRENCH_FRANC "Franc français"
IDS_CURRENCY_GREEK_DRACHMA "Drachmes grecques"
IDS_CURRENCY_IRISH_POUND "Livre irlandaise"
IDS_CURRENCY_ITALIAN_LIRA "Lire italienne"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franc luxembourgeois"
IDS_CURRENCY_MALTESE_LIRA "Lire maltaise"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portugaise"

View File

@@ -292,22 +292,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "אודות המחשבון ReactOS"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "אישור", 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 "מחשבון ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "גירסה ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "נכתבה על ידי Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "תיבת סטטיסטיקה"
@@ -415,11 +399,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "שגיאה"
IDS_QUICKHELP "עזרה מהירה"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "מחשבון ReactOS"
IDS_AUTHOR "נכתבה על ידי Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -503,12 +493,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "קורונה צ'כי"
IDS_CURRENCY_DEUTSCHE_MARK "מארק גרמני"
IDS_CURRENCY_DUTCH_GUILDER "גילדר הולנדי"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "אירו"
IDS_CURRENCY_FINNISH_MARKKA "מארקה פינית"
IDS_CURRENCY_FRENCH_FRANC "פרנק צרפתי"
IDS_CURRENCY_GREEK_DRACHMA "דרכמה יוונית"
IDS_CURRENCY_IRISH_POUND "לירה אירית"
IDS_CURRENCY_ITALIAN_LIRA "לירה איטלקית"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "פרנק לוקסמבורגי"
IDS_CURRENCY_MALTESE_LIRA "לירה מלטזי"
IDS_CURRENCY_PORTOGUESE_ESCUDO "אסקודו פורטגלי"

View File

@@ -298,22 +298,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "A ReactOS Számológépről"
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 "ReactOS Számológép", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Verzió ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Írta Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statisztika"
@@ -421,11 +405,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "A ReactOS Számológép a GNU GPL licenc alatt kiadott szabad szoftver.\r\n\r\nA GNU GPL licenc egy másolatát innen szerezheted be:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nValamint a GNU GPL licenc fordítását innen szerezheted be:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Hiba"
IDS_QUICKHELP "Gyors súgó"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Számológép"
IDS_AUTHOR "Írta Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -509,12 +499,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Cseh korona"
IDS_CURRENCY_DEUTSCHE_MARK "Német márka"
IDS_CURRENCY_DUTCH_GUILDER "Holland gulden"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euró"
IDS_CURRENCY_FINNISH_MARKKA "Finn márka"
IDS_CURRENCY_FRENCH_FRANC "Francia frank"
IDS_CURRENCY_GREEK_DRACHMA "Görög drachma"
IDS_CURRENCY_IRISH_POUND "Ír font"
IDS_CURRENCY_ITALIAN_LIRA "Olasz líra"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxemburgi frank"
IDS_CURRENCY_MALTESE_LIRA "Máltai líra"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugál escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Informazioni su ReactOS Calc"
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 "Calcolatrice ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versione ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Scritto da Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Finestra di statistica"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc e` software libero rilasciato sotto licenza GNU GPL.\r\n\r\nE` possibile ottenere una copia del testo della licenza GNU GPL all'indirizzo:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nE` possibile ottenere una traduzione del testo della licenza GNU GPL all'indirizzo:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Errore"
IDS_QUICKHELP "Guida rapida"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Calcolatrice ReactOS"
IDS_AUTHOR "Scritto da Carlo Bramini"
END
/* Categorie per le conversioni */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Corona ceca"
IDS_CURRENCY_DEUTSCHE_MARK "Marco tedesco"
IDS_CURRENCY_DUTCH_GUILDER "Fiorino olandese"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Markka finlandese"
IDS_CURRENCY_FRENCH_FRANC "Franco francese"
IDS_CURRENCY_GREEK_DRACHMA "Dracma greca"
IDS_CURRENCY_IRISH_POUND "Sterlina irlandese"
IDS_CURRENCY_ITALIAN_LIRA "Lira italiana"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franco Lussemburghese"
IDS_CURRENCY_MALTESE_LIRA "Lira maltese"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portoghese"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 電卓について"
FONT 9, "MS UI Gothic"
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 "ReactOS 電卓", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Version ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Written by Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistics box"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS 電卓はGNU GPLライセンスの元で提供されるフリーソフトウェアです。\r\n\r\nこちらでGNU GPLライセンスのコピーを得ることができます:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nこちらでGNU GPLライセンスの翻訳を得ることができます:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "エラー"
IDS_QUICKHELP "クイックヘルプ"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS 電卓"
IDS_AUTHOR "Written by Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "チェコ コルナ"
IDS_CURRENCY_DEUTSCHE_MARK "ドイツ マルク"
IDS_CURRENCY_DUTCH_GUILDER "オランダ ギルダー"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "ユーロ"
IDS_CURRENCY_FINNISH_MARKKA "フィンランド マルッカ"
IDS_CURRENCY_FRENCH_FRANC "フランス フラン"
IDS_CURRENCY_GREEK_DRACHMA "ギリシャ ドラクマ"
IDS_CURRENCY_IRISH_POUND "アイルランド ポンド"
IDS_CURRENCY_ITALIAN_LIRA "イタリア リラ"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "ルクセンブルク フラン"
IDS_CURRENCY_MALTESE_LIRA "マルタ リラ"
IDS_CURRENCY_PORTOGUESE_ESCUDO "ポルトガル エスクード"

View File

@@ -292,22 +292,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 계산기 정보"
FONT 9, "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 "ReactOS 계산기", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "버젼 ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Carlo Bramini에 의해 쓰여짐", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistics box"
@@ -415,11 +399,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "에러"
IDS_QUICKHELP "빠른 도움말"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS 계산기"
IDS_AUTHOR "Carlo Bramini에 의해 쓰여짐"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -503,12 +493,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Czech koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_DUTCH_GUILDER "Dutch guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finnish markka"
IDS_CURRENCY_FRENCH_FRANC "French franc"
IDS_CURRENCY_GREEK_DRACHMA "Greek Drachma"
IDS_CURRENCY_IRISH_POUND "Irish pound"
IDS_CURRENCY_ITALIAN_LIRA "Italian lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltese lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portoguese escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Over ReactOS Rekenmachine"
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 "ReactOS Rekenmachine", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versie", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Geschreven door: Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistiek-venster"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "De ReactOS Rekenmachine is free software gepubliceerd onder de GNU GPL licentie.\r\n\r\nU kan een kopie van GNU GPL licentie hier bezichtigen:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nU kan ook een vertaling van de GNU GPL licentie hier bezichtigen:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Fout"
IDS_QUICKHELP "Snelle hulp"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Rekenmachine"
IDS_AUTHOR "Geschreven door: Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Tsjechische kroon"
IDS_CURRENCY_DEUTSCHE_MARK "Duitse Mark"
IDS_CURRENCY_DUTCH_GUILDER "Nederlandse gulden"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finse markka"
IDS_CURRENCY_FRENCH_FRANC "Franse franc"
IDS_CURRENCY_GREEK_DRACHMA "Griekse Drachma"
IDS_CURRENCY_IRISH_POUND "Ierse pound"
IDS_CURRENCY_ITALIAN_LIRA "Italiaanse lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxemburgse franc"
IDS_CURRENCY_MALTESE_LIRA "Maltese lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugese escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Om ReactOS Kalkulator"
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 "ReactOS Kalkulator", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versjon ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Laget av Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "statistikk boks"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Kalkulator er gratis programvare utgitt under GNU GPL lisensen.\r\n\r\nDu kan få en kopi av GNU GPL lisensen her:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDu kan også få en oversettelse av GNU GPL lisensen her:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Feil"
IDS_QUICKHELP "Rask hjelp"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Kalkulator"
IDS_AUTHOR "Laget av Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Tsjekkisk koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Tusk Mark"
IDS_CURRENCY_DUTCH_GUILDER "Nederlansk guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finisk markka"
IDS_CURRENCY_FRENCH_FRANC "Fransk franc"
IDS_CURRENCY_GREEK_DRACHMA "Gresk Drachma"
IDS_CURRENCY_IRISH_POUND "Irisk pound"
IDS_CURRENCY_ITALIAN_LIRA "Italiask lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltesisk lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portogisisk escudo"

View File

@@ -299,22 +299,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 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, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statystyka"
@@ -422,11 +406,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Kalkulator ReactOS jest darmowym programem, publikowanym zgodnie z licencją GNU GPL.\r\n\r\nMożesz otrzymać kopię licencji GNU GPL tutaj:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nTłumaczenie licencji GNU GPL znajdziesz tutaj:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Błąd"
IDS_QUICKHELP "Szybka pomoc"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Kalkulator ReactOS"
IDS_AUTHOR "Autorstwa: Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -510,12 +500,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Czeska korona"
IDS_CURRENCY_DEUTSCHE_MARK "Niemiecka marka"
IDS_CURRENCY_DUTCH_GUILDER "Holenderki gulden"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Fiń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_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luksemburski frank"
IDS_CURRENCY_MALTESE_LIRA "Maltańskie liry"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugalskie escudo"

View File

@@ -292,22 +292,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sobre Calc 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 "Calcuadora ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versão ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Escrita por Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Caixa de estatísticas"
@@ -415,11 +399,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Calculadora ReactOS é um software livre lançado sobre a licença GNU GPL.\r\nVocê pode adquirir uma cópia da licença GNU GPL no endereço abaixo:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nVocê também pode adquirir uma tradução da licença GNU GPL no endereço abaixo:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Erro"
IDS_QUICKHELP "Ajuda rápida"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Calcuadora ReactOS"
IDS_AUTHOR "Escrita por Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -503,12 +493,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Coroa checa"
IDS_CURRENCY_DEUTSCHE_MARK "Marco alemão"
IDS_CURRENCY_DUTCH_GUILDER "Florim neerlandês"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marco finlandês"
IDS_CURRENCY_FRENCH_FRANC "Franco francês"
IDS_CURRENCY_GREEK_DRACHMA "Dracma"
IDS_CURRENCY_IRISH_POUND "Libra irlandesa"
IDS_CURRENCY_ITALIAN_LIRA "Lira italiana"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franco luxemburguês"
IDS_CURRENCY_MALTESE_LIRA "Lira maltesa"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo português"

View File

@@ -295,22 +295,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Despre Minicalculator"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "Î&nchide", 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 "Minicalculator ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versiune ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Scris de Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistici"
@@ -418,11 +402,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Această aplicație este publică; fiind permisă modificarea și/sau (re)distribuția sa în termenii Licenței Publice Generale GNU publicată de Free Software Foundation; sau versiunea 2 a Licenței, sau (la alegere) a oricărei versiuni ulterioare.\r\n\r\nAceastă aplicație este distribuită doar în speranța de a fi utilă, FĂRĂ însă NICI O GARANȚIE; nici măcar cu garanția implicită a VANDABILITĂȚII sau a UTILITĂȚII ÎNTR-UN SCOP ANUME. Pentru mai multe detalii consultați Licența Publică Generală GNU.\r\n\r\nPuteți vedea această licență aici:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDe asemenea puteți consulta traduceri neoficiale ale acestei licențe aici:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Eroare"
IDS_QUICKHELP "Manual"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Minicalculator ReactOS"
IDS_AUTHOR "Scris de Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -506,12 +496,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Coroană cehă"
IDS_CURRENCY_DEUTSCHE_MARK "Marcă nemțească"
IDS_CURRENCY_DUTCH_GUILDER "Guilder olandez"
IDS_CURRENCY_ESTONIAN_KROON "Coroană estoniană"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marcă finlandeză"
IDS_CURRENCY_FRENCH_FRANC "Franc framcez"
IDS_CURRENCY_GREEK_DRACHMA "Drahmă grecească"
IDS_CURRENCY_IRISH_POUND "Liră irlandeză"
IDS_CURRENCY_ITALIAN_LIRA "Liră italiană"
IDS_CURRENCY_LATVIAN_LATS "Lats leton"
IDS_CURRENCY_LITHUANIAN_LITAS "Litas lituanian"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franc luxemburghez"
IDS_CURRENCY_MALTESE_LIRA "Litră malteză"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portughez"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "О программе"
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 "Калькулятор ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Версия ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Автор: Карло Брамини", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Статистика"
@@ -323,89 +307,89 @@ END
IDR_MENU_SCIENTIFIC_1 MENU
BEGIN
POPUP "Правка"
POPUP "&Правка"
BEGIN
MENUITEM "Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вставить\tCTRL-V", IDM_EDIT_PASTE
MENUITEM "&Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вст&авить\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Вид"
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Десятичный\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "Восьмеричный\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Двоичный\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Десятичный\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Восьмеричный\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Двои&чный\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Градусы\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Радианы\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Грады\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM "&Градусы\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Радиа&ны\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Гр&ады\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "Справка"
POPUP "&Справка"
BEGIN
MENUITEM "Вызов справки", IDM_HELP_HELP
MENUITEM "&Вызов справки", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "О программе", IDM_HELP_ABOUT
MENUITEM "&О программе", IDM_HELP_ABOUT
END
END
IDR_MENU_SCIENTIFIC_2 MENU
BEGIN
POPUP "Правка"
POPUP "&Правка"
BEGIN
MENUITEM "Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вставить\tCTRL-V", IDM_EDIT_PASTE
MENUITEM "&Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вст&авить\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Вид"
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Десятичный\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "Восьмеричный\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Двоичный\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Десятичный\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Восьмеричный\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Двои&чный\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "8 байт\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "4 байт\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "2 байт\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "1 байт\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM "&8 байт\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "&4 байт\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "&2 байт\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "&1 байт\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "Справка"
POPUP "&Справка"
BEGIN
MENUITEM "Вызов справки", IDM_HELP_HELP
MENUITEM "&Вызов справки", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "О программе", IDM_HELP_ABOUT
MENUITEM "&О программе", IDM_HELP_ABOUT
END
END
IDR_MENU_STANDARD MENU
BEGIN
POPUP "Правка"
POPUP "&Правка"
BEGIN
MENUITEM "Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вставить\tCTRL-V", IDM_EDIT_PASTE
MENUITEM "&Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вст&авить\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "Вид"
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "Справка"
POPUP "&Справка"
BEGIN
MENUITEM "Вызов справки", IDM_HELP_HELP
MENUITEM "&Вызов справки", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "О программе", IDM_HELP_ABOUT
MENUITEM "&О программе", IDM_HELP_ABOUT
END
END
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Калькулятор ReactOS - свободное программное обеспечение, распространяющееся по лицензии GNU GPL.\r\n\r\nВы можете получить копию лицензии GNU GPL здесь:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nОзнакомиться c переводом лицензии GNU GPL можно здесь:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Ошибка"
IDS_QUICKHELP "Быстрая справка"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Калькулятор ReactOS"
IDS_AUTHOR "Автор: Карло Брамини"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Чешская крона"
IDS_CURRENCY_DEUTSCHE_MARK "Немецкая марка"
IDS_CURRENCY_DUTCH_GUILDER "Голландский гульден"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Евро"
IDS_CURRENCY_FINNISH_MARKKA "Финская марка"
IDS_CURRENCY_FRENCH_FRANC "Французский франк"
IDS_CURRENCY_GREEK_DRACHMA "Греческая драхма"
IDS_CURRENCY_IRISH_POUND "Ирландский фунт"
IDS_CURRENCY_ITALIAN_LIRA "Итальянская лира"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Люксембургский франк"
IDS_CURRENCY_MALTESE_LIRA "Мальтийская лира"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Португальское эскудо"

View File

@@ -297,22 +297,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Čo je kalkulačka systému 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 "Kalkulačka systému ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Verzia ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Napísal Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Štatistika"
@@ -420,11 +404,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Kalkulačka systému ReactOS je voľný softvér vydaný pod licenciou GNU GPL.\r\n\r\nKópiu licencie GNU GPL môžete získať tu:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nRovnako môžete získať preklad licencie GNU GPL tu:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Chyba"
IDS_QUICKHELP "Rýchla pomoc"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Kalkulačka systému ReactOS"
IDS_AUTHOR "Napísal Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -508,12 +498,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Česká koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Nemecká marka"
IDS_CURRENCY_DUTCH_GUILDER "Holandský gulden"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Fínska marka"
IDS_CURRENCY_FRENCH_FRANC "Francúzsky frank"
IDS_CURRENCY_GREEK_DRACHMA "Grécka drachma"
IDS_CURRENCY_IRISH_POUND "Írska libra"
IDS_CURRENCY_ITALIAN_LIRA "Talianská líra"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxemburský frank"
IDS_CURRENCY_MALTESE_LIRA "Maltská líra"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portugalské escudo"

View File

@@ -294,22 +294,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Informacione mbi Makine Llogaritje 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 "ReactOS Makine Llogaritje", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versioni ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "krijuar nga Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Kutia e Statistikave"
@@ -417,11 +401,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Makina Llogaritese ReactOS eshte program falas i lanquar nen liçensen GNU GPL.\r\n\r\nJu mund te merrni nje kopje te liçenses se GNU CPL ketu:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nJu gjithashtu mund te merrni e liçenses se GNU GPL ketu:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Error"
IDS_QUICKHELP "Ndihmë e shpejtë"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Makine Llogaritje"
IDS_AUTHOR "krijuar nga Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -505,12 +495,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Koruna Czech"
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_DUTCH_GUILDER "Deutsche Mark"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finnish marka"
IDS_CURRENCY_FRENCH_FRANC "Franga Franceze"
IDS_CURRENCY_GREEK_DRACHMA "Drachma Greeke"
IDS_CURRENCY_IRISH_POUND "Poundi irlandes"
IDS_CURRENCY_ITALIAN_LIRA "Lira Italiane"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Lira Maltese"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo Portugez"

View File

@@ -297,22 +297,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Om ReactOS Kalkylator"
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 "ReactOS Kalkylator", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Version ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Skriven av Carlo Bramini, Övers.: Jaix Bly", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistik box"
@@ -420,11 +404,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Kalkylator är gratis programvara utgivet under GNU GPL licensen.\r\n\r\nDu kan få en kopia av GNU GPL licensen här:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDu kan också få en översättning av GNU GPL lisensen här:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Fel"
IDS_QUICKHELP "Snabb hjälp"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS Kalkylator"
IDS_AUTHOR "Skriven av Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -508,12 +498,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Tjeckisk koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Tysk Mark"
IDS_CURRENCY_DUTCH_GUILDER "Nederlänsk guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Finisk mark"
IDS_CURRENCY_FRENCH_FRANC "Fransk franc"
IDS_CURRENCY_GREEK_DRACHMA "Gresk Drachma"
IDS_CURRENCY_IRISH_POUND "Irisk pound"
IDS_CURRENCY_ITALIAN_LIRA "Italiask lire"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltesisk lire"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portogisisk escudo"

View File

@@ -290,22 +290,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "เกี่ยวกับ ReactOS Calc"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "ตกลง", 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 "เครื่องคิดเลข ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "รุ่น ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Written by Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "กล่องสถานะ"
@@ -413,11 +397,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS Calc is free software released under GNU GPL license.\r\n\r\nYou can get a copy of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nYou can also get a translation of GNU GPL license here:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "ผิดพลาด"
IDS_QUICKHELP "สิ่งนี้คืออะไร ?"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "เครื่องคิดเลข ReactOS"
IDS_AUTHOR "Written by Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -501,12 +491,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Czech koruna"
IDS_CURRENCY_DEUTSCHE_MARK "Deutsche Mark"
IDS_CURRENCY_DUTCH_GUILDER "Dutch guilder"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "ยูโร"
IDS_CURRENCY_FINNISH_MARKKA "Finnish markka"
IDS_CURRENCY_FRENCH_FRANC "French franc"
IDS_CURRENCY_GREEK_DRACHMA "Greek Drachma"
IDS_CURRENCY_IRISH_POUND "Irish pound"
IDS_CURRENCY_ITALIAN_LIRA "Italian lira"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Luxembourg franc"
IDS_CURRENCY_MALTESE_LIRA "Maltese lira"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portoguese escudo"

View File

@@ -292,22 +292,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Hesap Makinesi Üzerine"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "Tamam", 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 "Hesap Makinesi", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Sürüm: ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Carlo Bramini eliyle yapılmıştır.", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sayımlama Penceresi"
@@ -336,14 +320,14 @@ BEGIN
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "D&erece\tİ2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tİ3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tİ4", IDM_VIEW_GRAD, CHECKED
MENUITEM "D&erece\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END
@@ -368,15 +352,15 @@ BEGIN
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Dö&rtlü Sözcük\tİ12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tİ2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tİ3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tİ4", IDM_VIEW_BYTE, CHECKED
MENUITEM "Dö&rtlü Sözcük\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END
@@ -415,11 +399,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Hesap Makinesi, GNU GPL ruhsatıyla yayımlanan bir özgür yazılımdır.\r\n\r\nGNU GPL ruhsatının bir kopyasını şuradan elde edebilirsiniz:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nBir de GNU GPL ruhsatının bir çevirisini şuradan elde edebilirsiniz:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Yanlışlık"
IDS_QUICKHELP "Hızlı Yardım"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Hesap Makinesi"
IDS_AUTHOR "Carlo Bramini eliyle yapılmıştır."
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -503,12 +493,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Çek Korunası"
IDS_CURRENCY_DEUTSCHE_MARK "Alman Markı"
IDS_CURRENCY_DUTCH_GUILDER "Hollanda Guilderi"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Avro"
IDS_CURRENCY_FINNISH_MARKKA "Fin Markkası"
IDS_CURRENCY_FRENCH_FRANC "Fransız Frangı"
IDS_CURRENCY_GREEK_DRACHMA "Yunan Drahmisi"
IDS_CURRENCY_IRISH_POUND "İrlanda Pondu"
IDS_CURRENCY_ITALIAN_LIRA "İtalyan Lirası"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Lüksemburg Frangı"
IDS_CURRENCY_MALTESE_LIRA "Malta Lirası"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Portekiz Esküdosu"

View File

@@ -298,22 +298,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Про Калькулятор 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 "Калькулятор ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Версія ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Написав Карло Браміні", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Статистика"
@@ -421,11 +405,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Калькулятор ReactOS - вільне програмне забезпечення, випущене за ліцензією GNU GPL.\r\n\r\nВи можете отримати копію ліцензії GNU GPL тут:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nВи можете також отримати переклад ліцензії GNU GPL тут:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Помилка"
IDS_QUICKHELP "Швидка довідка"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "Калькулятор ReactOS"
IDS_AUTHOR "Написав Карло Браміні"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -509,12 +499,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "Чешська крона"
IDS_CURRENCY_DEUTSCHE_MARK "Немецька марка"
IDS_CURRENCY_DUTCH_GUILDER "Голандський гульден"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "Євро"
IDS_CURRENCY_FINNISH_MARKKA "Фінська марка"
IDS_CURRENCY_FRENCH_FRANC "Французський франк"
IDS_CURRENCY_GREEK_DRACHMA "Грецька драхма"
IDS_CURRENCY_IRISH_POUND "Ірландський фунт"
IDS_CURRENCY_ITALIAN_LIRA "Італьянськая ліра"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "Люксембургський франк"
IDS_CURRENCY_MALTESE_LIRA "Мальтийськая ліра"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Португальське ескудо"

View File

@@ -292,22 +292,6 @@ BEGIN
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "关于 ReactOS 计算器"
FONT 9, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "确定", 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 "ReactOS 计算器", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "版本 ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "作者 Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "统计框"
@@ -415,11 +399,17 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "ReactOS 计算器是在 GNU GPL 协议下发行的自由软件。\r\n\r\n你可以从这儿取得一份 GNU GPL 协议的副本:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\n你也可以从这儿取得其翻译\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "错误"
IDS_QUICKHELP "快速帮助"
END
/* About */
STRINGTABLE
BEGIN
IDS_CALC_NAME "ReactOS 计算器"
IDS_AUTHOR "作者 Carlo Bramini"
END
/* Types of conversion */
STRINGTABLE
BEGIN
@@ -503,12 +493,15 @@ BEGIN
IDS_CURRENCY_CZECH_KORUNA "捷克克朗"
IDS_CURRENCY_DEUTSCHE_MARK "德国马克"
IDS_CURRENCY_DUTCH_GUILDER "荷兰盾"
IDS_CURRENCY_ESTONIAN_KROON "Estonian kroon"
IDS_CURRENCY_EURO "欧元"
IDS_CURRENCY_FINNISH_MARKKA "芬兰马克"
IDS_CURRENCY_FRENCH_FRANC "法郎"
IDS_CURRENCY_GREEK_DRACHMA "希腊德拉克马"
IDS_CURRENCY_IRISH_POUND "爱尔兰镑"
IDS_CURRENCY_ITALIAN_LIRA "意大利里拉"
IDS_CURRENCY_LATVIAN_LATS "Latvian lats"
IDS_CURRENCY_LITHUANIAN_LITAS "Lithuanian litas"
IDS_CURRENCY_LUXEMBOURG_FRANC "卢森堡法郎"
IDS_CURRENCY_MALTESE_LIRA "马耳他里拉"
IDS_CURRENCY_PORTOGUESE_ESCUDO "葡萄牙埃斯库多"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -1,17 +1,16 @@
#pragma once
#define IDS_STRING_LICENSE 1
#define IDS_CALC_NAME 1
#define IDS_MATH_ERROR 2
#define IDS_QUICKHELP 3
#define IDS_AUTHOR 4
#define IDD_DIALOG_SCIENTIFIC 101
#define IDD_DIALOG_STANDARD 102
#define IDD_DIALOG_ABOUT 103
#define IDD_DIALOG_STAT 104
#define IDD_DIALOG_CONVERSION 105
#define IDR_MENU_SCIENTIFIC_1 106
#define IDR_MENU_SCIENTIFIC_2 107
#define IDR_MENU_STANDARD 108
#define IDB_BITMAP_ROS 109
#define IDI_CALC_BIG 110
#define IDI_CALC_SMALL 111
#define IDC_RADIO_HEX 1002
@@ -88,7 +87,6 @@
#define IDC_TEXT_OUTPUT 1074
#define IDC_TEXT_PARENT 1075
#define IDC_TEXT_MEMORY 1076
#define IDC_EDIT_LICENSE 1078
#define IDC_LIST_STAT 1079
#define IDC_BUTTON_RET 1080
#define IDC_BUTTON_LOAD 1081
@@ -98,7 +96,6 @@
#define IDC_BUTTON_SQRT 1085
#define IDC_BUTTON_PERCENT 1086
#define IDC_BUTTON_CONVERT 1087
#define IDC_TEXT_VERSION 1088
#define IDC_BUTTON_FOCUS 1089
#define IDC_COMBO_CATEGORY 1090
#define IDC_COMBO_FROM 1091
@@ -174,18 +171,21 @@
#define IDS_CURRENCY_CZECH_KORUNA 2403
#define IDS_CURRENCY_DEUTSCHE_MARK 2404
#define IDS_CURRENCY_DUTCH_GUILDER 2405
#define IDS_CURRENCY_EURO 2406
#define IDS_CURRENCY_FINNISH_MARKKA 2407
#define IDS_CURRENCY_FRENCH_FRANC 2408
#define IDS_CURRENCY_GREEK_DRACHMA 2409
#define IDS_CURRENCY_IRISH_POUND 2410
#define IDS_CURRENCY_ITALIAN_LIRA 2411
#define IDS_CURRENCY_LUXEMBOURG_FRANC 2412
#define IDS_CURRENCY_MALTESE_LIRA 2413
#define IDS_CURRENCY_PORTOGUESE_ESCUDO 2414
#define IDS_CURRENCY_SLOVAK_KORUNA 2415
#define IDS_CURRENCY_SLOVENIAN_TOLAR 2416
#define IDS_CURRENCY_SPANISH_PESETA 2417
#define IDS_CURRENCY_ESTONIAN_KROON 2406
#define IDS_CURRENCY_EURO 2407
#define IDS_CURRENCY_FINNISH_MARKKA 2408
#define IDS_CURRENCY_FRENCH_FRANC 2409
#define IDS_CURRENCY_GREEK_DRACHMA 2410
#define IDS_CURRENCY_IRISH_POUND 2411
#define IDS_CURRENCY_ITALIAN_LIRA 2412
#define IDS_CURRENCY_LATVIAN_LATS 2413
#define IDS_CURRENCY_LITHUANIAN_LITAS 2414
#define IDS_CURRENCY_LUXEMBOURG_FRANC 2415
#define IDS_CURRENCY_MALTESE_LIRA 2416
#define IDS_CURRENCY_PORTOGUESE_ESCUDO 2417
#define IDS_CURRENCY_SLOVAK_KORUNA 2418
#define IDS_CURRENCY_SLOVENIAN_TOLAR 2419
#define IDS_CURRENCY_SPANISH_PESETA 2420
/* TYPES OF ENERGIES */
#define IDS_ENERGY_15_C_CALORIES 2500

View File

@@ -22,9 +22,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDI_CALC_BIG ICON "res/calc.ico"
IDI_CALC_SMALL ICON "res/calc_sm.ico"
/* Bitmaps */
IDB_BITMAP_ROS BITMAP "res/ROS_logo.bmp"
#include <reactos/manifest_exe.rc>
/* UTF-8 */

View File

@@ -314,7 +314,7 @@ void run_operator(calc_node_t *result,
calc.is_nan = TRUE;
} else {
operator_list[operation].op_i(&dc, &da, &db);
/* apply final limitator to result */
/* apply final limiter to result */
apply_int_mask(&dc);
}

View File

@@ -300,7 +300,7 @@ void run_operator(calc_node_t *result,
operator_list[operation].op_f(&result->number, &a->number, &b->number);
} else {
operator_list[operation].op_i(&result->number, &a->number, &b->number);
/* apply final limitator to result */
/* apply final limiter to result */
apply_int_mask(&result->number);
}
}

View File

@@ -11,7 +11,7 @@ void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
break;
case IDC_RADIO_DEC:
/*
* Modifed from 17 to 16 for fixing this bug:
* Modified from 17 to 16 for fixing this bug:
* 14+14+6.3+6.3= 40.5999999 instead of 40.6
* So, it's probably better to leave the least
* significant digit out of the display.
@@ -25,7 +25,7 @@ void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
TCHAR *ptr, *dst;
ptr = buffer + _stprintf(buffer, TEXT("%#*.*f"), width, ((MAX_LD_WIDTH-width-1)>=0) ? MAX_LD_WIDTH-width-1 : 0, rpn->f);
/* format sring ensures there is a '.': */
/* format string ensures there is a '.': */
dst = _tcschr(buffer, TEXT('.'));
while (--ptr > dst)
if (*ptr != TEXT('0'))

View File

@@ -34,7 +34,7 @@
* Corrected precision underflow/overflow when working with trigonometric functions.
* cbrt() function is not used if compiling into ReactOS build system.
* Resources are moved into /res directory.
* Added new (partial) support for other languages: bulgarian, spanish, german, dutch, polish, russian, slovak, ukraianian.
* Added new (partial) support for other languages: bulgarian, spanish, german, dutch, polish, russian, slovak, ukrainian.
* Decimal precision of number with standard layout has been limited to 16 digits because the output display is smaller here (GMP version only).
* Fixed buffer overflow with function update_lcd_display().
* The decimal point is now preserved when switching to temporary scientific notation.

View File

@@ -3,6 +3,8 @@
#include <winbase.h>
#include <wingdi.h>
#include <winreg.h>
#include <shellapi.h>
#include <commctrl.h>
#define HTMLHELP_PATH(_pt) TEXT("%systemroot%\\Help\\calc.chm::") TEXT(_pt)
@@ -211,8 +213,8 @@ static const function_table_t function_table[] = {
{ IDC_BUTTON_DMS, MODIFIER_INV, 1, rpn_dec2dms, rpn_dms2dec, NULL, NULL },
{ IDC_BUTTON_FE, 0, 1, run_fe, NULL, NULL, NULL },
{ IDC_BUTTON_DAT, 0, 1, run_dat_sta, NULL, NULL, NULL, },
{ IDC_BUTTON_MP, MODIFIER_INV, 1, run_mp, run_mm, NULL, NULL, },
{ IDC_BUTTON_MS, MODIFIER_INV, 1, run_ms, run_mw, NULL, NULL, },
{ IDC_BUTTON_MP, MODIFIER_INV|NO_CHAIN, 1, run_mp, run_mm, NULL, NULL, },
{ IDC_BUTTON_MS, MODIFIER_INV|NO_CHAIN, 1, run_ms, run_mw, NULL, NULL, },
{ IDC_BUTTON_CANC, NO_CHAIN, 0, run_canc, NULL, NULL, NULL, },
{ IDC_BUTTON_RIGHTPAR, NO_CHAIN, 1, run_rpar, NULL, NULL, NULL, },
{ IDC_BUTTON_LEFTPAR, NO_CHAIN, 0, run_lpar, NULL, NULL, NULL, },
@@ -434,7 +436,7 @@ KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
static void update_lcd_display(HWND hwnd)
{
/*
* muliply size of calc.buffer by 2 because it may
* multiply size of calc.buffer by 2 because it may
* happen that separator is used between each digit.
* Also added little additional space for dot and '\0'.
*/
@@ -932,15 +934,18 @@ static INT_PTR CALLBACK DlgStatProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
return FALSE;
}
static WPARAM idm_2_idc(int idm)
static BOOL idm_2_idc(int idm, WPARAM *pIdc)
{
int x;
for (x=0; x<SIZEOF(upd); x++) {
if (upd[x].idm == idm)
break;
{
*pIdc = (WPARAM)(upd[x].idc);
return TRUE;
}
}
return (WPARAM)(upd[x].idc);
return FALSE;
}
static void CopyMemToClipboard(void *ptr)
@@ -1338,8 +1343,14 @@ static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
SetFocus(GetDlgItem(hWnd, IDC_BUTTON_FOCUS));
switch (LOWORD(wp)) {
case IDM_HELP_ABOUT:
DialogBox(calc.hInstance,MAKEINTRESOURCE(IDD_DIALOG_ABOUT), hWnd, AboutDlgProc);
{
TCHAR infotitle[100];
TCHAR infotext[200];
LoadString(calc.hInstance, IDS_CALC_NAME, infotitle, SIZEOF(infotitle));
LoadString(calc.hInstance, IDS_AUTHOR, infotext, SIZEOF(infotext));
ShellAbout(hWnd, infotitle, infotext, (HICON)LoadIcon(calc.hInstance, MAKEINTRESOURCE(IDI_CALC_BIG)));
return TRUE;
}
case IDM_HELP_HELP:
#ifndef DISABLE_HTMLHELP_SUPPORT
HtmlHelp(hWnd, HTMLHELP_PATH("/general_information.htm"), HH_DISPLAY_TOPIC, (DWORD_PTR)NULL);
@@ -1401,8 +1412,15 @@ static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
case IDM_VIEW_DWORD:
case IDM_VIEW_WORD:
case IDM_VIEW_BYTE:
SendMessage(hWnd, WM_COMMAND, idm_2_idc(LOWORD(wp)), 0);
return TRUE;
{
WPARAM idc;
if(idm_2_idc(LOWORD(wp), &idc))
{
SendMessage(hWnd, WM_COMMAND, idc, 0);
return TRUE;
}
return FALSE;
}
case IDM_EDIT_COPY:
handle_copy_command(hWnd);
return TRUE;
@@ -1768,6 +1786,8 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
MSG msg;
DWORD dwLayout;
InitCommonControls();
calc.hInstance = hInstance;
calc.x_coord = -1;

View File

@@ -6,18 +6,18 @@ IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE
BEGIN
LTEXT "Шрифт:", IDC_STATIC, 6, 7, 27, 9
LTEXT "&Шрифт:", IDC_STATIC, 6, 7, 27, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE |
WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "Справка", IDC_CMHELP, 249, 5, 35, 13
PUSHBUTTON "&Справка", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP |
WS_VSCROLL, 20, 22, 266, 156
LTEXT "Для копирования:", IDC_STATIC, 6, 188, 95, 9
LTEXT "Д&ля копирования:", IDC_STATIC, 6, 188, 95, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Выбрать", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Копировать", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
CONTROL "Дополнительные параметры", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
DEFPUSHBUTTON "&Выбрать", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "&Копировать", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
CONTROL "&Дополнительные параметры", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 8, 208, 110, 10
END
@@ -25,14 +25,14 @@ IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Набор символов:", IDC_STATIC, 8, 8, 55, 8
LTEXT "&Набор символов:", IDC_STATIC, 8, 8, 55, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Группировка:", IDC_STATIC, 8, 28, 50, 8
LTEXT "&Группировка:", IDC_STATIC, 8, 28, 50, 8
COMBOBOX IDC_COMBO_GROUPBY, 72, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Найти", IDC_BUTTON_SEARCH, 200, 44, 50, 14
EDITTEXT IDC_EDIT_SEARCH, 72, 44, 116, 14, ES_AUTOHSCROLL
LTEXT "Поиск:", IDC_STATIC, 8, 48, 42, 8
LTEXT "Юникод:", IDC_STATIC, 200, 8, 30, 8
LTEXT "П&оиск:", IDC_STATIC, 8, 48, 42, 8
LTEXT "&Юникод:", IDC_STATIC, 200, 8, 30, 8
EDITTEXT IDC_EDIT_UNICODE, 236, 4, 28, 12, ES_AUTOHSCROLL
END
@@ -42,7 +42,7 @@ FONT 8, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Таблица символов v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "Закрыть", IDOK, 75, 162, 44, 15
PUSHBUTTON "&Закрыть", 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

View File

@@ -107,8 +107,9 @@ FillGrid(PMAP infoPtr,
i = XCELLS * infoPtr->iYStart;
added = 0;
x = y = 0;
while ((y <= YCELLS) && (x <= XCELLS))
for (y = 0; y < YCELLS; y++)
for (x = 0; x < XCELLS; x++)
{
ch = (WCHAR)infoPtr->ValidGlyphs[i];
@@ -131,14 +132,6 @@ FillGrid(PMAP infoPtr,
i++;
ch = (WCHAR)i;
// move to the next cell
x++;
if (x > XCELLS - 1)
{
x = 0;
y++;
}
}
SelectObject(ps->hdc,
hOldFont);

View File

@@ -58,7 +58,7 @@ extern void LoadSettings(void)
if (RegOpenKeyEx(HKEY_CURRENT_USER, g_szGeneralRegKey, 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
TCHAR szBuffer[MAX_PATH];
DWORD dwAdvanChecked;
DWORD dwAdvancedChecked;
unsigned long type = REG_DWORD, size = 1024;
/* Restore last selected font */
@@ -89,9 +89,9 @@ extern void LoadSettings(void)
}
}
RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size);
RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvancedChecked, &size);
if(dwAdvanChecked == TRUE)
if(dwAdvancedChecked == TRUE)
SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, MF_CHECKED, 0);
RegCloseKey(hKey);

View File

@@ -69,7 +69,7 @@ CGridView::SetFont(
)
{
// Create a temperary container for the new font
// Create a temporary container for the new font
CurrentFont NewFont = { 0 };
NewFont.FontName = FontName;
@@ -224,7 +224,7 @@ CGridView::OnSize(
SWP_NOZORDER | SWP_SHOWWINDOW);
// Get the client area we can draw on. The position we set above includes
// a scrollbar which we obvioulsy can't draw on. GetClientRect gives us
// a scrollbar which we obviously can't draw on. GetClientRect gives us
// the size without the scroll, and it's more efficient than getting the
// scroll metrics and calculating the size from that
RECT ClientRect;

View File

@@ -1,8 +1,7 @@
/*
* PROJECT: ReactOS Device Managment
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/mscutils/devmgmt/devmgmt.c
* PURPOSE: Bootstrap for the device manager
* FILE: base/applications/charmap/charmap.cpp
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*/

View File

@@ -256,12 +256,12 @@ static int ClipboardCommandHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l
case CMD_ABOUT:
{
WCHAR szTitle[MAX_STRING_LEN];
HICON hIcon;
WCHAR szTitle[MAX_STRING_LEN];
hIcon = LoadIconW(Globals.hInstance, MAKEINTRESOURCE(CLIPBRD_ICON));
LoadStringW(Globals.hInstance, STRING_CLIPBOARD, szTitle, ARRAYSIZE(szTitle));
ShellAboutW(Globals.hMainWnd, szTitle, 0, hIcon);
ShellAboutW(Globals.hMainWnd, szTitle, NULL, hIcon);
DeleteObject(hIcon);
break;
}

View File

@@ -16,6 +16,9 @@ CLPFILE_ICON ICON "res/clpfile.ico"
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_CS_CZ
#include "lang/cs-CZ.rc"
#endif
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
@@ -31,6 +34,9 @@ CLPFILE_ICON ICON "res/clpfile.ico"
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif

View File

@@ -0,0 +1,65 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Soubor"
BEGIN
MENUITEM "&Otevřít...", CMD_OPEN
MENUITEM "&Uložit jako...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "&Konec", CMD_EXIT
END
POPUP "&Upravit"
BEGIN
MENUITEM "&Smazat\tDel", CMD_DELETE
END
POPUP "&Zobrazení"
BEGIN
MENUITEM "&Automaticky", CMD_AUTOMATIC
END
POPUP "&Nápověda"
BEGIN
MENUITEM "&Zobrazit nápovědu", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&O programu", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Prohlížeč schránky"
STRING_CLIPFILE "Prvek schránky"
STRING_DELETE_MSG "Vymazat obsah stránky?"
STRING_DELETE_TITLE "Vymazat schránku"
STRING_FORMAT_NT "Soubory schránky systému ReactOS (*.clp)"
STRING_FORMAT_GEN "Soubory schránky (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Neznámý formát"
STRING_CF_TEXT "Text"
STRING_CF_BITMAP "Bitmapa"
STRING_CF_OEMTEXT "Text OEM"
STRING_CF_UNICODETEXT "Text Unicode"
STRING_CF_DIB "DIB bitmapa"
STRING_CF_LOCALE "Data znakové sady"
STRING_CF_ENHMETAFILE "Rožířený soubor Metafile"
STRING_CF_METAFILEPICT "Metafile"
STRING_CF_PALETTE "Barevná paleta"
STRING_CF_DIBV5 "DIB bitmapa (Verze 5)"
STRING_CF_SYLK "Symbolický odkaz"
STRING_CF_DIF "Formát výměny dat"
STRING_CF_HDROP "Data přetažení"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "Schránka obsahuje data ve formátu, který není možné zobrazit."
ERROR_INVALID_FILE_FORMAT "Vybraný soubor není platný soubor schránky."
END

View File

@@ -10,7 +10,7 @@ BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open...", CMD_OPEN
MENUITEM "Save &as...", CMD_SAVE_AS
MENUITEM "Save &As...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "E&xit", CMD_EXIT
END

View File

@@ -0,0 +1,65 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Файл"
BEGIN
MENUITEM "&Открыть...", CMD_OPEN
MENUITEM "Сохранить &как...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "В&ыход", CMD_EXIT
END
POPUP "&Правка"
BEGIN
MENUITEM "&Удалить\tDel", CMD_DELETE
END
POPUP "&Вид"
BEGIN
MENUITEM "&Автоматически", CMD_AUTOMATIC
END
POPUP "&Справка"
BEGIN
MENUITEM "&Вызов справки", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&О программе", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Просмотр буфера обмена"
STRING_CLIPFILE "Элемент буфера обмена"
STRING_DELETE_MSG "Очистить содержимое буфера обмена?"
STRING_DELETE_TITLE "Очистить буфер обмена"
STRING_FORMAT_NT "Файлы буфера обмена ReactOS (*.clp)"
STRING_FORMAT_GEN "Файлы буфера обмена (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Неизвестный формат"
STRING_CF_TEXT "Текст"
STRING_CF_BITMAP "Точечный рисунок"
STRING_CF_OEMTEXT "Текст в кодировке OEM"
STRING_CF_UNICODETEXT "Текст в кодировке Юникод"
STRING_CF_DIB "Аппаратно-независимый точечный рисунок (DIB)"
STRING_CF_LOCALE "Языковые данные"
STRING_CF_ENHMETAFILE "Расширенный метафайл"
STRING_CF_METAFILEPICT "Метафайл"
STRING_CF_PALETTE "Цветовая палитра"
STRING_CF_DIBV5 "Аппаратно-независимый точечный рисунок (DIB) (Версия 5)"
STRING_CF_SYLK "Формат символических ссылок"
STRING_CF_DIF "Формат обмена данными"
STRING_CF_HDROP "Очистить данные"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "Буфер обмена содержит данные, которые невозможно отобразить."
ERROR_INVALID_FILE_FORMAT "Выбранный файл не является файлом буфера обмена."
END

View File

@@ -35,7 +35,7 @@ END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Pano Görüntüleyicisi"
STRING_CLIPFILE "Pano Öğesi"
STRING_CLIPFILE "Pano Ögesi"
STRING_DELETE_MSG "Pano içeriğini sil?"
STRING_DELETE_TITLE "Pano Sil"
STRING_FORMAT_NT "ReactOS İçin Pano Kütükleri (*.clp)"

View File

@@ -2,7 +2,7 @@
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/scrollutils.c
* PURPOSE: Scrolling releated helper functions.
* PURPOSE: Scrolling related helper functions.
* PROGRAMMERS: Ricardo Hanke
*/

View File

@@ -2,7 +2,7 @@
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/scrollutils.h
* PURPOSE: Scrolling releated helper functions.
* PURPOSE: Scrolling related helper functions.
* PROGRAMMERS: Ricardo Hanke
*/

View File

@@ -14,9 +14,21 @@ void ShowLastWin32Error(HWND hwndParent)
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
if (dwError == ERROR_SUCCESS)
return;
if (!FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dwError,
LANG_USER_DEFAULT,
(LPWSTR)&lpMsgBuf,
0, NULL))
{
return;
}
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
MessageBoxW(hwndParent, lpMsgBuf, NULL, MB_OK | MB_ICONERROR);
LocalFree(lpMsgBuf);
}

View File

@@ -1,15 +1,20 @@
add_subdirectory(at)
add_subdirectory(clip)
add_subdirectory(comp)
add_subdirectory(cscript)
add_subdirectory(dbgprint)
add_subdirectory(doskey)
add_subdirectory(eventcreate)
add_subdirectory(find)
add_subdirectory(fsutil)
add_subdirectory(help)
add_subdirectory(hostname)
add_subdirectory(lodctr)
add_subdirectory(mode)
add_subdirectory(mofcomp)
add_subdirectory(more)
add_subdirectory(reg)
add_subdirectory(schtasks)
add_subdirectory(sort)
add_subdirectory(taskkill)
add_subdirectory(tree)

View File

@@ -0,0 +1,8 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(at at.c at.rc)
set_module_type(at win32cui UNICODE)
target_link_libraries(at conutils ${PSEH_LIB})
add_importlibs(at msvcrt kernel32 user32 netapi32)
add_cd_file(TARGET at DESTINATION reactos/system32 FOR all)

View File

@@ -0,0 +1,936 @@
/*
* PROJECT: ReactOS AT utility
* COPYRIGHT: See COPYING in the top level directory
* FILE: base/applications/cmdutils/at/at.c
* PURPOSE: ReactOS AT utility
* PROGRAMMERS: Eric Kohl <eric.kohl@reactos.org>
*/
#include <stdlib.h>
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wincon.h>
#include <winnls.h>
#include <lm.h>
#include <conutils.h>
#include "resource.h"
PWSTR pszDaysOfWeekArray[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL};
static
VOID
FreeDaysOfWeekArray(VOID)
{
INT i;
for (i = 0; i < 7; i++)
{
if (pszDaysOfWeekArray[i] != NULL)
HeapFree(GetProcessHeap(), 0, pszDaysOfWeekArray[i]);
}
}
static
BOOL
InitDaysOfWeekArray(VOID)
{
INT i, nLength;
for (i = 0; i < 7; i++)
{
nLength = GetLocaleInfo(LOCALE_USER_DEFAULT,
LOCALE_SABBREVDAYNAME1 + i,
NULL,
0);
pszDaysOfWeekArray[i] = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
nLength * sizeof(WCHAR));
if (pszDaysOfWeekArray[i] == NULL)
{
FreeDaysOfWeekArray();
return FALSE;
}
GetLocaleInfo(LOCALE_USER_DEFAULT,
LOCALE_SABBREVDAYNAME1 + i,
pszDaysOfWeekArray[i],
nLength);
}
return TRUE;
}
static
BOOL
ParseTime(
PWSTR pszTime,
PULONG pulJobHour,
PULONG pulJobMinute)
{
WCHAR szHour[3], szMinute[3], szAmPm[5];
PWSTR startPtr, endPtr;
ULONG ulHour = 0, ulMinute = 0;
INT nLength;
if (pszTime == NULL)
return FALSE;
startPtr = pszTime;
/* Extract the hour string */
nLength = 0;
while (*startPtr != L'\0' && iswdigit(*startPtr))
{
if (nLength >= 2)
return FALSE;
szHour[nLength] = *startPtr;
nLength++;
startPtr++;
}
szHour[nLength] = L'\0';
/* Check for a valid time separator */
if (*startPtr != L':')
return FALSE;
/* Skip the time separator */
startPtr++;
/* Extract the minute string */
nLength = 0;
while (*startPtr != L'\0' && iswdigit(*startPtr))
{
if (nLength >= 2)
return FALSE;
szMinute[nLength] = *startPtr;
nLength++;
startPtr++;
}
szMinute[nLength] = L'\0';
/* Extract the optional AM/PM indicator string */
nLength = 0;
while (*startPtr != L'\0')
{
if (nLength >= 4)
return FALSE;
if (!iswspace(*startPtr))
{
szAmPm[nLength] = *startPtr;
nLength++;
}
startPtr++;
}
szAmPm[nLength] = L'\0';
/* Convert the hour string */
ulHour = wcstoul(szHour, &endPtr, 10);
if (ulHour == 0 && *endPtr != UNICODE_NULL)
return FALSE;
/* Convert the minute string */
ulMinute = wcstoul(szMinute, &endPtr, 10);
if (ulMinute == 0 && *endPtr != UNICODE_NULL)
return FALSE;
/* Check for valid AM/PM indicator */
if (wcslen(szAmPm) > 0 &&
_wcsicmp(szAmPm, L"a") != 0 &&
_wcsicmp(szAmPm, L"am") != 0 &&
_wcsicmp(szAmPm, L"p") != 0 &&
_wcsicmp(szAmPm, L"pm") != 0)
return FALSE;
/* Check for the valid minute range [0-59] */
if (ulMinute > 59)
return FALSE;
if (wcslen(szAmPm) > 0)
{
/* 12 hour time format */
/* Check for the valid hour range [1-12] */
if (ulHour == 0 || ulHour > 12)
return FALSE;
/* Convert 12 hour format to 24 hour format */
if (_wcsicmp(szAmPm, L"a") == 0 ||
_wcsicmp(szAmPm, L"am") == 0)
{
if (ulHour == 12)
ulHour = 0;
}
else
{
if (ulHour >= 1 && ulHour <= 11)
ulHour += 12;
}
}
else
{
/* 24 hour time format */
/* Check for the valid hour range [0-23] */
if (ulHour > 23)
return FALSE;
}
if (pulJobHour != NULL)
*pulJobHour = ulHour;
if (pulJobMinute != NULL)
*pulJobMinute = ulMinute;
return TRUE;
}
static
BOOL
ParseId(
PWSTR pszId,
PULONG pulId)
{
PWSTR startPtr, endPtr;
ULONG ulId = 0;
BOOL bResult = FALSE;
startPtr = pszId;
endPtr = NULL;
ulId = wcstoul(startPtr, &endPtr, 10);
if (endPtr != NULL && *endPtr == UNICODE_NULL)
{
bResult = TRUE;
if (pulId != NULL)
*pulId = ulId;
}
return bResult;
}
static
BOOL
ParseDaysOfMonth(
PWSTR pszBuffer,
PULONG pulDaysOfMonth)
{
PWSTR startPtr, endPtr;
ULONG ulValue;
if (wcslen(pszBuffer) == 0)
return FALSE;
startPtr = pszBuffer;
endPtr = NULL;
for (;;)
{
ulValue = wcstoul(startPtr, &endPtr, 10);
if (ulValue == 0)
return FALSE;
if (ulValue > 0 && ulValue <= 31)
*pulDaysOfMonth |= (1 << (ulValue - 1));
if (endPtr != NULL && *endPtr == UNICODE_NULL)
return TRUE;
startPtr = endPtr + 1;
endPtr = NULL;
}
return FALSE;
}
static
BOOL
ParseDaysOfWeek(
PWSTR pszBuffer,
PUCHAR pucDaysOfWeek)
{
PWSTR startPtr, endPtr;
INT nLength, i;
if (wcslen(pszBuffer) == 0)
return FALSE;
startPtr = pszBuffer;
endPtr = NULL;
for (;;)
{
endPtr = wcschr(startPtr, L',');
if (endPtr == NULL)
nLength = wcslen(startPtr);
else
nLength = (INT)((ULONG_PTR)endPtr - (ULONG_PTR)startPtr) / sizeof(WCHAR);
for (i = 0; i < 7; i++)
{
if (nLength == wcslen(pszDaysOfWeekArray[i]) &&
_wcsnicmp(startPtr, pszDaysOfWeekArray[i], nLength) == 0)
{
*pucDaysOfWeek |= (1 << i);
break;
}
}
if (endPtr == NULL)
return TRUE;
startPtr = endPtr + 1;
endPtr = NULL;
}
return FALSE;
}
static
VOID
PrintErrorMessage(
DWORD dwError)
{
PWSTR pszBuffer = NULL;
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
dwError,
0,
(PWSTR)&pszBuffer,
0,
NULL);
ConPrintf(StdErr, L"%s\n", pszBuffer);
LocalFree(pszBuffer);
}
static
VOID
PrintHorizontalLine(VOID)
{
WCHAR szBuffer[80];
INT i;
for (i = 0; i < 79; i++)
szBuffer[i] = L'-';
szBuffer[79] = UNICODE_NULL;
ConPrintf(StdOut, L"%s\n", szBuffer);
}
static
BOOL
Confirm(VOID)
{
HINSTANCE hInstance;
WCHAR szYesBuffer[8];
WCHAR szNoBuffer[8];
WCHAR szInput[80];
DWORD dwOldMode;
DWORD dwRead = 0;
BOOL ret = FALSE;
HANDLE hFile;
hInstance = GetModuleHandleW(NULL);
LoadStringW(hInstance, IDS_CONFIRM_YES, szYesBuffer, _countof(szYesBuffer));
LoadStringW(hInstance, IDS_CONFIRM_NO, szNoBuffer, _countof(szNoBuffer));
ZeroMemory(szInput, sizeof(szInput));
hFile = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hFile, &dwOldMode);
SetConsoleMode(hFile, ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
for (;;)
{
ConResPrintf(StdOut, IDS_CONFIRM_QUESTION);
ReadConsoleW(hFile, szInput, _countof(szInput), &dwRead, NULL);
szInput[0] = towupper(szInput[0]);
if (szInput[0] == szYesBuffer[0])
{
ret = TRUE;
break;
}
else if (szInput[0] == 13 || szInput[0] == szNoBuffer[0])
{
ret = FALSE;
break;
}
ConResPrintf(StdOut, IDS_CONFIRM_INVALID);
}
SetConsoleMode(hFile, dwOldMode);
return ret;
}
static
DWORD_PTR
GetTimeAsJobTime(VOID)
{
SYSTEMTIME Time;
DWORD_PTR JobTime;
GetLocalTime(&Time);
JobTime = (DWORD_PTR)Time.wHour * 3600000 +
(DWORD_PTR)Time.wMinute * 60000;
return JobTime;
}
static
ULONG
GetCurrentDayOfMonth(VOID)
{
SYSTEMTIME Time;
GetLocalTime(&Time);
return 1UL << (Time.wDay - 1);
}
static
VOID
JobTimeToTimeString(
PWSTR pszBuffer,
INT cchBuffer,
WORD wHour,
WORD wMinute)
{
SYSTEMTIME Time = {0, 0, 0, 0, 0, 0, 0, 0};
Time.wHour = wHour;
Time.wMinute = wMinute;
GetTimeFormat(LOCALE_USER_DEFAULT,
TIME_NOSECONDS,
&Time,
NULL,
pszBuffer,
cchBuffer);
}
static
INT
PrintJobDetails(
PWSTR pszComputerName,
ULONG ulJobId)
{
PAT_INFO pBuffer = NULL;
DWORD_PTR CurrentTime;
WCHAR szStatusBuffer[16];
WCHAR szScheduleBuffer[60];
WCHAR szTimeBuffer[16];
WCHAR szInteractiveBuffer[16];
WCHAR szDateBuffer[8];
INT i, nDateLength, nScheduleLength;
HINSTANCE hInstance;
NET_API_STATUS Status;
Status = NetScheduleJobGetInfo(pszComputerName,
ulJobId,
(PBYTE *)&pBuffer);
if (Status != NERR_Success)
{
PrintErrorMessage(Status);
return 1;
}
hInstance = GetModuleHandle(NULL);
if (pBuffer->Flags & JOB_EXEC_ERROR)
LoadStringW(hInstance, IDS_ERROR, szStatusBuffer, _countof(szStatusBuffer));
else
LoadStringW(hInstance, IDS_OK, szStatusBuffer, _countof(szStatusBuffer));
if (pBuffer->DaysOfMonth != 0)
{
if (pBuffer->Flags & JOB_RUN_PERIODICALLY)
LoadStringW(hInstance, IDS_EVERY, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_NEXT, szScheduleBuffer, _countof(szScheduleBuffer));
nScheduleLength = wcslen(szScheduleBuffer);
for (i = 0; i < 31; i++)
{
if (pBuffer->DaysOfMonth & (1 << i))
{
swprintf(szDateBuffer, L" %d", i + 1);
nDateLength = wcslen(szDateBuffer);
if (nScheduleLength + nDateLength <= 55)
{
wcscat(szScheduleBuffer, szDateBuffer);
nScheduleLength += nDateLength;
}
else
{
wcscat(szScheduleBuffer, L"...");
break;
}
}
}
}
else if (pBuffer->DaysOfWeek != 0)
{
if (pBuffer->Flags & JOB_RUN_PERIODICALLY)
LoadStringW(hInstance, IDS_EVERY, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_NEXT, szScheduleBuffer, _countof(szScheduleBuffer));
nScheduleLength = wcslen(szScheduleBuffer);
for (i = 0; i < 7; i++)
{
if (pBuffer->DaysOfWeek & (1 << i))
{
swprintf(szDateBuffer, L" %s", pszDaysOfWeekArray[i]);
nDateLength = wcslen(szDateBuffer);
if (nScheduleLength + nDateLength <= 55)
{
wcscat(szScheduleBuffer, szDateBuffer);
nScheduleLength += nDateLength;
}
else
{
wcscat(szScheduleBuffer, L"...");
break;
}
}
}
}
else
{
CurrentTime = GetTimeAsJobTime();
if (CurrentTime > pBuffer->JobTime)
LoadStringW(hInstance, IDS_TOMORROW, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_TODAY, szScheduleBuffer, _countof(szScheduleBuffer));
}
JobTimeToTimeString(szTimeBuffer,
_countof(szTimeBuffer),
(WORD)(pBuffer->JobTime / 3600000),
(WORD)((pBuffer->JobTime % 3600000) / 60000));
if (pBuffer->Flags & JOB_NONINTERACTIVE)
LoadStringW(hInstance, IDS_NO, szInteractiveBuffer, _countof(szInteractiveBuffer));
else
LoadStringW(hInstance, IDS_YES, szInteractiveBuffer, _countof(szInteractiveBuffer));
ConResPrintf(StdOut, IDS_TASKID, ulJobId);
ConResPrintf(StdOut, IDS_STATUS, szStatusBuffer);
ConResPrintf(StdOut, IDS_SCHEDULE, szScheduleBuffer);
ConResPrintf(StdOut, IDS_TIME, szTimeBuffer);
ConResPrintf(StdOut, IDS_INTERACTIVE, szInteractiveBuffer);
ConResPrintf(StdOut, IDS_COMMAND, pBuffer->Command);
NetApiBufferFree(pBuffer);
return 0;
}
static
INT
PrintAllJobs(
PWSTR pszComputerName)
{
PAT_ENUM pBuffer = NULL;
DWORD dwRead = 0, dwTotal = 0;
DWORD dwResume = 0, i;
DWORD_PTR CurrentTime;
NET_API_STATUS Status;
WCHAR szScheduleBuffer[32];
WCHAR szTimeBuffer[16];
WCHAR szDateBuffer[8];
HINSTANCE hInstance;
INT j, nDateLength, nScheduleLength;
Status = NetScheduleJobEnum(pszComputerName,
(PBYTE *)&pBuffer,
MAX_PREFERRED_LENGTH,
&dwRead,
&dwTotal,
&dwResume);
if (Status != NERR_Success)
{
PrintErrorMessage(Status);
return 1;
}
if (dwTotal == 0)
{
ConResPrintf(StdOut, IDS_NO_ENTRIES);
return 0;
}
ConResPrintf(StdOut, IDS_JOBS_LIST);
PrintHorizontalLine();
hInstance = GetModuleHandle(NULL);
for (i = 0; i < dwRead; i++)
{
if (pBuffer[i].DaysOfMonth != 0)
{
if (pBuffer[i].Flags & JOB_RUN_PERIODICALLY)
LoadStringW(hInstance, IDS_EVERY, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_NEXT, szScheduleBuffer, _countof(szScheduleBuffer));
nScheduleLength = wcslen(szScheduleBuffer);
for (j = 0; j < 31; j++)
{
if (pBuffer[i].DaysOfMonth & (1 << j))
{
swprintf(szDateBuffer, L" %d", j + 1);
nDateLength = wcslen(szDateBuffer);
if (nScheduleLength + nDateLength <= 19)
{
wcscat(szScheduleBuffer, szDateBuffer);
nScheduleLength += nDateLength;
}
else
{
wcscat(szScheduleBuffer, L"...");
break;
}
}
}
}
else if (pBuffer[i].DaysOfWeek != 0)
{
if (pBuffer[i].Flags & JOB_RUN_PERIODICALLY)
LoadStringW(hInstance, IDS_EVERY, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_NEXT, szScheduleBuffer, _countof(szScheduleBuffer));
nScheduleLength = wcslen(szScheduleBuffer);
for (j = 0; j < 7; j++)
{
if (pBuffer[i].DaysOfWeek & (1 << j))
{
swprintf(szDateBuffer, L" %s", pszDaysOfWeekArray[j]);
nDateLength = wcslen(szDateBuffer);
if (nScheduleLength + nDateLength <= 55)
{
wcscat(szScheduleBuffer, szDateBuffer);
nScheduleLength += nDateLength;
}
else
{
wcscat(szScheduleBuffer, L"...");
break;
}
}
}
}
else
{
CurrentTime = GetTimeAsJobTime();
if (CurrentTime > pBuffer[i].JobTime)
LoadStringW(hInstance, IDS_TOMORROW, szScheduleBuffer, _countof(szScheduleBuffer));
else
LoadStringW(hInstance, IDS_TODAY, szScheduleBuffer, _countof(szScheduleBuffer));
}
JobTimeToTimeString(szTimeBuffer,
_countof(szTimeBuffer),
(WORD)(pBuffer[i].JobTime / 3600000),
(WORD)((pBuffer[i].JobTime % 3600000) / 60000));
ConPrintf(StdOut,
L" %6lu %-21s %-11s %s\n",
pBuffer[i].JobId,
szScheduleBuffer,
szTimeBuffer,
pBuffer[i].Command);
}
NetApiBufferFree(pBuffer);
return 0;
}
static
INT
AddJob(
PWSTR pszComputerName,
ULONG ulJobHour,
ULONG ulJobMinute,
ULONG ulDaysOfMonth,
UCHAR ucDaysOfWeek,
BOOL bInteractiveJob,
BOOL bPeriodicJob,
PWSTR pszCommand)
{
AT_INFO InfoBuffer;
ULONG ulJobId = 0;
NET_API_STATUS Status;
InfoBuffer.JobTime = (DWORD_PTR)ulJobHour * 3600000 +
(DWORD_PTR)ulJobMinute * 60000;
InfoBuffer.DaysOfMonth = ulDaysOfMonth;
InfoBuffer.DaysOfWeek = ucDaysOfWeek;
InfoBuffer.Flags = (bInteractiveJob ? 0 : JOB_NONINTERACTIVE) |
(bPeriodicJob ? JOB_RUN_PERIODICALLY : 0);
InfoBuffer.Command = pszCommand;
Status = NetScheduleJobAdd(pszComputerName,
(PBYTE)&InfoBuffer,
&ulJobId);
if (Status != NERR_Success)
{
PrintErrorMessage(Status);
return 1;
}
ConResPrintf(StdOut, IDS_NEW_JOB, ulJobId);
return 0;
}
static
INT
DeleteJob(
PWSTR pszComputerName,
ULONG ulJobId,
BOOL bForceDelete)
{
NET_API_STATUS Status;
if (ulJobId == (ULONG)-1 && bForceDelete == FALSE)
{
ConResPrintf(StdOut, IDS_DELETE_ALL);
if (!Confirm())
return 0;
}
Status = NetScheduleJobDel(pszComputerName,
(ulJobId == (ULONG)-1) ? 0 : ulJobId,
(ulJobId == (ULONG)-1) ? -1 : ulJobId);
if (Status != NERR_Success)
{
PrintErrorMessage(Status);
return 1;
}
return 0;
}
int wmain(int argc, WCHAR **argv)
{
PWSTR pszComputerName = NULL;
PWSTR pszCommand = NULL;
ULONG ulJobId = (ULONG)-1;
ULONG ulJobHour = (ULONG)-1;
ULONG ulJobMinute = (ULONG)-1;
BOOL bDeleteJob = FALSE, bForceDelete = FALSE;
BOOL bInteractiveJob = FALSE, bPeriodicJob = FALSE;
BOOL bPrintUsage = FALSE;
ULONG ulDaysOfMonth = 0;
UCHAR ucDaysOfWeek = 0;
INT nResult = 0;
INT i, minIdx;
/* Initialize the Console Standard Streams */
ConInitStdStreams();
if (!InitDaysOfWeekArray())
return 1;
/* Parse the computer name */
i = 1;
minIdx = 1;
if (i < argc &&
argv[i][0] == L'\\' &&
argv[i][1] == L'\\')
{
pszComputerName = argv[i];
i++;
minIdx++;
}
/* Parse the time or job id */
if (i < argc && argv[i][0] != L'/')
{
if (ParseTime(argv[i], &ulJobHour, &ulJobMinute))
{
i++;
minIdx++;
}
else if (ParseId(argv[i], &ulJobId))
{
i++;
minIdx++;
}
}
/* Parse the options */
for (; i < argc; i++)
{
if (argv[i][0] == L'/')
{
if (_wcsicmp(argv[i], L"/?") == 0)
{
bPrintUsage = TRUE;
goto done;
}
else if (_wcsicmp(argv[i], L"/delete") == 0)
{
bDeleteJob = TRUE;
}
else if (_wcsicmp(argv[i], L"/yes") == 0)
{
bForceDelete = TRUE;
}
else if (_wcsicmp(argv[i], L"/interactive") == 0)
{
bInteractiveJob = TRUE;
}
else if (_wcsnicmp(argv[i], L"/every:", 7) == 0)
{
bPeriodicJob = TRUE;
if (ParseDaysOfMonth(&(argv[i][7]), &ulDaysOfMonth) == FALSE)
{
if (ParseDaysOfWeek(&(argv[i][7]), &ucDaysOfWeek) == FALSE)
{
ulDaysOfMonth = GetCurrentDayOfMonth();
}
}
}
else if (_wcsnicmp(argv[i], L"/next:", 6) == 0)
{
bPeriodicJob = FALSE;
if (ParseDaysOfMonth(&(argv[i][6]), &ulDaysOfMonth) == FALSE)
{
if (ParseDaysOfWeek(&(argv[i][6]), &ucDaysOfWeek) == FALSE)
{
ulDaysOfMonth = GetCurrentDayOfMonth();
}
}
}
else
{
bPrintUsage = TRUE;
nResult = 1;
goto done;
}
}
}
/* Parse the command */
if (argc > minIdx && argv[argc - 1][0] != L'/')
{
pszCommand = argv[argc - 1];
}
if (bDeleteJob == TRUE)
{
/* Check for invalid options or arguments */
if (bInteractiveJob == TRUE ||
ulJobHour != (ULONG)-1 ||
ulJobMinute != (ULONG)-1 ||
ulDaysOfMonth != 0 ||
ucDaysOfWeek != 0 ||
pszCommand != NULL)
{
bPrintUsage = TRUE;
nResult = 1;
goto done;
}
nResult = DeleteJob(pszComputerName,
ulJobId,
bForceDelete);
}
else
{
if (ulJobHour != (ULONG)-1 && ulJobMinute != (ULONG)-1)
{
/* Check for invalid options or arguments */
if (bForceDelete == TRUE ||
pszCommand == NULL)
{
bPrintUsage = TRUE;
nResult = 1;
goto done;
}
nResult = AddJob(pszComputerName,
ulJobHour,
ulJobMinute,
ulDaysOfMonth,
ucDaysOfWeek,
bInteractiveJob,
bPeriodicJob,
pszCommand);
}
else
{
/* Check for invalid options or arguments */
if (bForceDelete == TRUE ||
bInteractiveJob == TRUE ||
ulDaysOfMonth != 0 ||
ucDaysOfWeek != 0 ||
pszCommand != NULL)
{
bPrintUsage = TRUE;
nResult = 1;
goto done;
}
if (ulJobId == (ULONG)-1)
{
nResult = PrintAllJobs(pszComputerName);
}
else
{
nResult = PrintJobDetails(pszComputerName,
ulJobId);
}
}
}
done:
FreeDaysOfWeekArray();
if (bPrintUsage == TRUE)
ConResPuts(StdOut, IDS_USAGE);
return nResult;
}
/* EOF */

View File

@@ -0,0 +1,26 @@
#include <windef.h>
#include "resource.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS AT Command"
#define REACTOS_STR_INTERNAL_NAME "at"
#define REACTOS_STR_ORIGINAL_FILENAME "at.exe"
#include <reactos/version.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif

View File

@@ -0,0 +1,57 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Mit dem AT Befehl können Befehle und Programme zu einem vorbestimmten\n\
Termin gestartet werden. Der Zeitplandienst muss gestartet sein, um den\n\
Befehl AT zu verwenden.\n\n\
AT [\\\\Computername] [ [Kennung] [/DELETE] | /DELETE [/YES]]\n\
AT [\\\\Computername] Zeit [/INTERACTIVE]\n\
[ /EVERY:Datum[,...] | /NEXT:Datum[,...]] ""Befehl""\n\n\
\\\\Computername Gibt einen Remotecomputer an. Ohne diesen Parameter werden\n\
die Befehle auf dem lokalen Computer ausgeführt.\n\
Kennung Eine Identifikationsnummer, die dem geplanten Befehl\n\
zugeteilt wird.\n\
/DELETE Löscht geplante Befehle. Ohne Kennung werden alle geplanten\n\
Befehle auf dem Computer gelöscht.\n\
/YES In Verbindung mit /DELETE werden die geplanten Befehle ohne\n\
weitere Bestätiging gelöscht.\n\
Zeit Gibt die Zeit an, zu der ein Befehl ausgeführt werden soll.\n\
/INTERACTIVE Ermöglicht dem Aufrag, Eingaben von dem Benutzer\n\
anzunehmen, der angemeldet ist, wenn der Auftrag ausgeführt\n\
wird.\n\
/EVERY:Datum[,...] Führt den Befehl zu jedem der angegebenen Tage der Woche\n\
oder des Monats aus. Ohne Angabe eines Datums wird der\n\
aktuelle Tag des Monats angenommen.\n\
/NEXT:Datum[,...] Führt den Befehl am nächsten angegebenen Tage der Woche\n\
oder des Monats (z.B. nächsten Montag) aus. Ohne Angabe\n\
eines Datums wird der aktuelle Tag des Monats angenommen.\n\
""Befehl"" Ist der auszuführende Befehl oder das Stapelprogramm.\n"
IDS_DELETE_ALL "Dieser Vorgang wird alle geplanten Aufträge löschen.\n"
IDS_NEW_JOB "Neuer Auftrag hinzugefügt. Kennung = %lu\n"
IDS_JOBS_LIST "Statuskenn. Tag Zeit Befehlszeile\n"
IDS_NO_ENTRIES "Es sind keine Einträge in der Liste.\n"
IDS_CONFIRM_QUESTION "Möchten Sie diesen Vorgang fortsetzen? (J/N) [N]: "
IDS_CONFIRM_INVALID "\nDies ist eine ungültige Antwort.\n"
IDS_CONFIRM_YES "J"
IDS_CONFIRM_NO "N"
IDS_TODAY "Heute"
IDS_TOMORROW "Morgen"
IDS_EVERY "Jeden"
IDS_NEXT "Kommenden"
IDS_YES "Ja"
IDS_NO "Nein"
IDS_ERROR "ERROR"
IDS_OK "OK"
IDS_TASKID "Taskkennung: %lu\n"
IDS_STATUS "Status: %s\n"
IDS_SCHEDULE "Zeitplan: %s\n"
IDS_TIME "Zeit: %s\n"
IDS_INTERACTIVE "Interaktiv: %s\n"
IDS_COMMAND "Befehl: %s\n"
END

View File

@@ -0,0 +1,56 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_USAGE "The AT command schedules commands and programs to run on a computer at\n\
a specified time and date. The Schedule service must be running to use\n\
the AT command.\n\n\
AT [\\\\computername] [ [id] [/DELETE] | /DELETE [/YES]]\n\
AT [\\\\computername] time [/INTERACTIVE]\n\
[ /EVERY:date[,...] | /NEXT:date[,...]] ""command""\n\n\
\\\\computername Specifies a remote computer. Commands are scheduled on the \n\
local computer if this parameter is omitted.\n\
id Is an identification number assigned to a scheduled\n\
command.\n\
/DELETE Cancels a scheduled command. If id is omitted, all the\n\
scheduled commands on the computer are canceled.\n\
/YES Used with cancel all jobs command when no further\n\
confirmation is desired.\n\
time Specifies the time when command is to run.\n\
/INTERACTIVE Allows the job to interact with the desktop of the user\n\
who is logged on at the time the job runs.\n\
/EVERY:date[,...] Runs the command on each specified day(s) of the week or\n\
month. If date is omitted, the current day of the month\n\
is assumed.\n\
/NEXT:date[,...] Runs the specified command on the next occurrence of the\n\
day (for example, next Thursday). If date is omitted, the \n\
current day of the month is assumed.\n\
""command"" Is the command or batch program to be run.\n"
IDS_DELETE_ALL "This operation will delete all scheduled jobs.\n"
IDS_NEW_JOB "Added a new job with job ID = %lu\n"
IDS_JOBS_LIST "Status ID Day Time Command Line\n"
IDS_NO_ENTRIES "There are no entries in the list.\n"
IDS_CONFIRM_QUESTION "Do you want to continue this operation? (Y/N) [N]: "
IDS_CONFIRM_INVALID "\nThis is an invalid response.\n"
IDS_CONFIRM_YES "Y"
IDS_CONFIRM_NO "N"
IDS_TODAY "Today"
IDS_TOMORROW "Tomorrow"
IDS_EVERY "Every"
IDS_NEXT "Next"
IDS_YES "Yes"
IDS_NO "No"
IDS_ERROR "ERROR"
IDS_OK "OK"
IDS_TASKID "Task ID: %lu\n"
IDS_STATUS "Status: %s\n"
IDS_SCHEDULE "Schedule: %s\n"
IDS_TIME "Time of day: %s\n"
IDS_INTERACTIVE "Interactive: %s\n"
IDS_COMMAND "Command: %s\n"
END

View File

@@ -0,0 +1,56 @@
/* Ștefan Fulea (stefan dot fulea at mail dot md) */
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Comanda AT planifică comenzi și programe pentru fi executate într-un\n\
calculator la o anumită dată și oră. Serviciul «Schedule» trebuie să fie\n\
pornit pentru a utiliza această comandă.\n\n\
AT [\\\\numecalculator] [ [id] [/DELETE] | /DELETE [/YES]]\n\
AT [\\\\numecalculator] timp [/INTERACTIVE]\n\
[ /EVERY:dată[,...] | /NEXT:dată[,...]] ""comandă""\n\n\
\\\\numecalculator Specifică un calculator la distanță. Fără acest\n\
parametru, planificarea va fi pentru calculatorul local.\n\
id Un număr de identificare atribuit comenzii planificate.\n\
/DELETE Anulează o comandă planificată. Fără acest parametru,\n\
vor fi anulate toate comenzile planificate.\n\
/YES Utilizat cu opțiunea «DELETE», pentru suprimarea cerințelor\n\
de confirmare a eliminărilor de comenzi planificate.\n\
timp Specifică timpul de lansare a comenzii.\n\
/INTERACTIVE Permite programelor să interacționeze cu utilizatorul\n\
autentificat la momentul execuției planificate.\n\
/EVERY:dată[,...] Execută comanda la ziua sau zilele specificate din fiecare\n\
săptămână sau lună. Dacă data este omisă, este considerată\n\
ziua curentă a lunii.\n\
/NEXT:dată[,...] Execută comanda în următoarea zi (spre exemplu marțea\n\
viitoare). Dacă data este omisă, e considerată ziua\n\
curentă a lunii.\n\
""comandă"" Numele comenzii sau programului pentru execuție.\n"
IDS_DELETE_ALL "Această operație va elimina planificarea pentru toate comenzile.\n"
IDS_NEW_JOB "A fost planificată o nouă activitate cu ID = %lu\n"
IDS_JOBS_LIST "ID stare Zi Oră Comanda\n"
IDS_NO_ENTRIES "Nu există comenzi planificate.\n"
IDS_CONFIRM_QUESTION "Sigur doriți continuarea acestei operații? (D|N) [N]: "
IDS_CONFIRM_INVALID "\nAcesta nu este un răspuns valid.\n"
IDS_CONFIRM_YES "D"
IDS_CONFIRM_NO "N"
IDS_TODAY "Astăzi"
IDS_TOMORROW "Mâine"
IDS_EVERY "În fiecare"
IDS_NEXT "În următoarea"
IDS_YES "Da"
IDS_NO "Nu"
IDS_ERROR "EROARE"
IDS_OK "OK"
IDS_TASKID "ID sarcină: %lu\n"
IDS_STATUS "Stare: %s\n"
IDS_SCHEDULE "Pentru: %s\n"
IDS_TIME "La ora: %s\n"
IDS_INTERACTIVE "Interactiv: %s\n"
IDS_COMMAND "Comandă: %s\n"
END

View File

@@ -0,0 +1,54 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Команда AT предназначена для запуска команд и программ\n\
в указанное время по определенным дням. Для работы команды необходимо, чтобы\n\
была запущена служба планировщика (Schedule service).\n\n\
AT [\\\\имя_компьютера] [ [id] [/DELETE] | /DELETE [/YES]]\n\
AT [\\\\имя_компьютера] время [/INTERACTIVE]\n\
[ /EVERY:день[,...] | /NEXT:день[,...]] ""команда""\n\n\
\\\\имя_компьютера Имя удаленного компьютера. Если этот параметр не указан, \n\
используется локальный компьютер.\n\
id Порядковый номер запланированной задачи.\n\
/DELETE Отменяет запланированную команду. Если параметр id не указан, то\n\
все команды, запланированные на данном компьютере, будут отменены.\n\
/YES Отмена запроса на подтверждение при отмене всех\n\
запланированных задач.\n\
время Время запуска команды.\n\
/INTERACTIVE Разрешает взаимодействие задачи с пользователем,\n\
работающим на компьютере во время запуска задачи.\n\
/EVERY:день[,...] Задача будет выполняться каждый указанный день (дни) или\n\
месяц. Если дата не указана, используется текущий день \n\
месяца.\n\
/NEXT:день[,...] Задача будет запущена в следующий указанный день недели\n\
(например, в следующий четверг). Если дата не указана, то \n\
используется текущий день месяца.\n\
""команда"" Команда или имя пакетного файла для запуска.\n"
IDS_CONFIRM_QUESTION "Продолжить выполнение операции? (Y-да/N-нет) [N] "
IDS_CONFIRM_INVALID "\nНедопустимый ответ.\n"
IDS_CONFIRM_YES "Y"
IDS_CONFIRM_NO "N"
IDS_NEW_JOB "Добавлено новое задание с ID = %lu\n"
IDS_JOBS_LIST "Статус ID День Время Команда\n"
IDS_NO_ENTRIES "В списке нет запланированных задач.\n"
IDS_TODAY "Сегодня"
IDS_TOMORROW "Завтра"
IDS_EVERY "Каждый"
IDS_NEXT "Следующий"
IDS_YES "Да"
IDS_NO "Нет"
IDS_ERROR "ОШИБКА"
IDS_OK "ОК"
IDS_TASKID "ID задачи: %lu\n"
IDS_STATUS "Состояние: %s\n"
IDS_SCHEDULE "Расписание: %s\n"
IDS_TIME "Время суток: %s\n"
IDS_INTERACTIVE "Интерактивный: %s\n"
IDS_COMMAND "Команда: %s\n"
END

View File

@@ -0,0 +1,56 @@
/* TRANSLATOR: 2017 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "AT komutu, belirlenen bir zamanda bilgisayarda çalıştırmak için komutları\n\
ve izlenceleri zamanlar. AT komutunu çalıştırmak için Zamanlayıcı hizmeti \n\
çalıştırılmalıdır.\n\n\
AT [\\\\bilgisayar adı] [ [kimlik] [/DELETE] | /DELETE [/YES]]\n\
AT [\\\\bilgisayar adı] saat [/INTERACTIVE]\n\
[ /EVERY:târih[,...] | /NEXT:târih[,...]] ""komut""\n\n\
\\\\bilgisayar adı Bir uzak bilgisayarı belirtir. Bu değişken yazılmazsa\n\
komutlar yerli bilgisayarda zamanlanır.\n\
kimlik Zamanlanan bir komuta atanan bir kimlik numarasıdır.\n\
/DELETE Zamanlanan bir komutu iptâl eder. Kimlik yazılmadığında\n\
bilgisayardaki tüm zamanlanan komutlar iptâl edilir.\n\
/YES Sonraki onaylamalar istenilmediğinde tüm işleri iptâl etme\n\
komutuyla birlikte kullanılır.\n\
saat Komutun çalıştırılma saatini belirtir.\n\
/INTERACTIVE İşe, çalıştırılacağı saatte oturum açmış kullanıcının\n\
masaüstüyle etkileşmesine izin verir.\n\
/EVERY:târih[,...] Haftanın ya da ayın belirtilen tüm günlerinde komutu çalıştırır.\n\
month. Târih yazılmadığında ayın şimdiki gününü varsayar.\n\
/NEXT:târih[,...] Günün bir sonraki oluşunda (örneğin bir sonraki perşembede)\n\
belirtilen komutu çalıştırır. Târih yazılmadığında ayın\n\
şimdiki gününü varsayar.\n\
""komut"" Çalıştırılacak komut ya da toplu iş kütüğü.\n"
IDS_DELETE_ALL "Bu işlem tüm zamanlanan işleri silecek.\n"
IDS_NEW_JOB "%lu iş kimliğiyle yeni bir iş eklendi.\n"
IDS_JOBS_LIST "Durum Km. Gün Saat Komut Yatacı\n"
IDS_NO_ENTRIES "Dizelgede bir giriş yok.\n"
IDS_CONFIRM_QUESTION "Bu işlemi sürdürmek ister misiniz? (E/H) [H]: "
IDS_CONFIRM_INVALID "\nBu geçersiz bir yanıttır.\n"
IDS_CONFIRM_YES "E"
IDS_CONFIRM_NO "H"
IDS_TODAY "Bugün"
IDS_TOMORROW "Yarın"
IDS_EVERY "Her"
IDS_NEXT "Bir sonraki"
IDS_YES "Evet"
IDS_NO "Hayır"
IDS_ERROR "YANLIŞLIK"
IDS_OK "Tamam"
IDS_TASKID "Görev kimliği: %lu\n"
IDS_STATUS "Durum: %s\n"
IDS_SCHEDULE "Zamanlama: %s\n"
IDS_TIME "Günün saati: %s\n"
IDS_INTERACTIVE "Etkileşme: %s\n"
IDS_COMMAND "Komut: %s\n"
END

View File

@@ -0,0 +1,31 @@
#pragma once
#define IDS_USAGE 100
#define IDS_DELETE_ALL 105
#define IDS_NEW_JOB 106
#define IDS_JOBS_LIST 107
#define IDS_NO_ENTRIES 108
#define IDS_TODAY 109
#define IDS_TOMORROW 110
#define IDS_EVERY 111
#define IDS_NEXT 112
#define IDS_YES 101
#define IDS_NO 102
#define IDS_ERROR 103
#define IDS_OK 104
#define IDS_TASKID 122
#define IDS_STATUS 123
#define IDS_SCHEDULE 124
#define IDS_TIME 125
#define IDS_INTERACTIVE 126
#define IDS_COMMAND 127
#define IDS_CONFIRM_QUESTION 130
#define IDS_CONFIRM_INVALID 131
#define IDS_CONFIRM_YES 132
#define IDS_CONFIRM_NO 133

View File

@@ -1,5 +1,8 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(clip clip.c clip.rc)
set_module_type(clip win32cui UNICODE)
add_importlibs(clip user32 msvcrt kernel32 advapi32)
target_link_libraries(clip conutils ${PSEH_LIB})
add_importlibs(clip advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET clip DESTINATION reactos/system32 FOR all)

View File

@@ -12,31 +12,17 @@
#include <winbase.h>
#include <winuser.h>
#include <conutils.h>
#include "resource.h"
static void PrintError(void)
VOID PrintError(DWORD dwError)
{
DWORD dwError;
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
if (dwError == NO_ERROR)
if (dwError == ERROR_SUCCESS)
return;
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
wprintf(L"%s", lpMsgBuf);
LocalFree(lpMsgBuf);
}
static void PrintResourceString(UINT uID)
{
WCHAR buff[500];
if (LoadStringW(GetModuleHandle(NULL), uID, buff, ARRAYSIZE(buff)))
{
wprintf(L"%s", buff);
}
ConMsgPuts(StdErr, FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, LANG_USER_DEFAULT);
}
static BOOL IsDataUnicode(HGLOBAL hGlobal)
@@ -61,28 +47,27 @@ int wmain(int argc, wchar_t** argv)
LPBYTE lpBuffer;
SIZE_T dwSize = 0;
/* Initialize the Console Standard Streams */
hInput = GetStdHandle(STD_INPUT_HANDLE);
ConInitStdStreams();
/* Check for usage */
if (argc > 1 && wcsncmp(argv[1], L"/?", 2) == 0)
{
PrintResourceString(IDS_HELP);
ConResPuts(StdOut, IDS_HELP);
return 0;
}
if (GetFileType(hInput) == FILE_TYPE_CHAR)
{
PrintResourceString(IDS_USAGE);
ConResPuts(StdOut, IDS_USAGE);
return 0;
}
/* Initialize a growable buffer for holding clipboard data */
hBuffer = GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, 4096);
if (!hBuffer)
{
PrintError();
return -1;
}
goto Failure;
/*
* Read data from the input stream by chunks of 4096 bytes
@@ -92,7 +77,7 @@ int wmain(int argc, wchar_t** argv)
{
lpBuffer = GlobalLock(hBuffer);
if (!lpBuffer)
goto cleanup;
goto Failure;
bStatus = ReadFile(hInput, lpBuffer + dwSize, 4096, &dwBytesRead, NULL);
dwSize += dwBytesRead;
@@ -100,11 +85,11 @@ int wmain(int argc, wchar_t** argv)
hTemp = GlobalReAlloc(hBuffer, GlobalSize(hBuffer) + 4096, GMEM_ZEROINIT);
if (!hTemp)
goto cleanup;
goto Failure;
hBuffer = hTemp;
}
while (dwBytesRead > 0 && bStatus);
while (bStatus && dwBytesRead > 0);
/*
* Resize the buffer to the total size of data read.
@@ -118,7 +103,7 @@ int wmain(int argc, wchar_t** argv)
/* Attempt to open the clipboard */
if (!OpenClipboard(NULL))
goto cleanup;
goto Failure;
/* Empty it, copy our data, then close it */
@@ -138,8 +123,8 @@ int wmain(int argc, wchar_t** argv)
CloseClipboard();
return 0;
cleanup:
GlobalFree(hBuffer);
PrintError();
Failure:
if (hBuffer) GlobalFree(hBuffer);
PrintError(GetLastError());
return -1;
}

View File

@@ -2,9 +2,11 @@
#include "resource.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Clip Command"
#define REACTOS_STR_INTERNAL_NAME "clip"
#define REACTOS_STR_ORIGINAL_FILENAME "clip.exe"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Clip Command"
#define REACTOS_STR_INTERNAL_NAME "clip"
#define REACTOS_STR_ORIGINAL_FILENAME "clip.exe"
#include <reactos/version.rc>
/* UTF-8 */

View File

@@ -7,5 +7,5 @@ BEGIN
IDS_USAGE "\nВведите ""CLIP /?"" для получения справки по использованию.\n"
IDS_HELP "\nПеренаправляет вывод от утилит командной строки в буфер обмена.\n\n\
CLIP [/?]\n\n\
/? Вывод справки по использованию..\n"
/? Вывод справки по использованию.\n"
END

View File

@@ -1,5 +1,8 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(comp comp.c comp.rc)
set_module_type(comp win32cui)
set_module_type(comp win32cui UNICODE)
target_link_libraries(comp conutils ${PSEH_LIB})
add_importlibs(comp msvcrt kernel32)
add_cd_file(TARGET comp DESTINATION reactos/system32 FOR all)

View File

@@ -1,255 +1,245 @@
/*
* ReactOS Win32 Applications
* Copyright (C) 2005 ReactOS Team
*
* 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.
*
* This 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS comp utility
* FILE: base/applications/cmdutils/comp/comp.c
* PURPOSE: Compares the contents of two files
* PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
* REVISIONS:
* GM 25/09/05 Created
*
*/
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#define STRBUF 1024
/* getline: read a line, return length */
INT GetBuff(char *buff, FILE *in)
{
return fread(buff, 1, STRBUF, in);
}
INT FileSize(FILE * fd)
{
INT result = -1;
if (fseek(fd, 0, SEEK_END) == 0 && (result = ftell(fd)) != -1)
{
/* Restoring file pointer */
rewind(fd);
}
return result;
}
/* Print program usage */
VOID Usage(VOID)
{
_tprintf(_T("\nCompares the contents of two files or sets of files.\n\n"
"COMP [/L] [/A] [data1] [data2]\n\n"
" data1 Specifies location and name of first file to compare.\n"
" data2 Specifies location and name of second file to compare.\n"
" /A Display differences in ASCII characters.\n"
" /L Display line numbers for differences.\n"));
}
int _tmain (int argc, TCHAR *argv[])
{
INT i;
/* File pointers */
FILE *fp1 = NULL;
FILE *fp2 = NULL;
INT BufLen1, BufLen2;
PTCHAR Buff1 = NULL;
PTCHAR Buff2 = NULL;
TCHAR File1[_MAX_PATH + 1], // File paths
File2[_MAX_PATH + 1];
BOOL bAscii = FALSE, // /A switch
bLineNos = FALSE; // /L switch
UINT LineNumber;
UINT Offset;
INT FileSizeFile1;
INT FileSizeFile2;
INT NumberOfOptions = 0;
INT FilesOK = 1;
INT Status = EXIT_SUCCESS;
/* Parse command line for options */
for (i = 1; i < argc; i++)
{
if (argv[i][0] == '/')
{
switch (argv[i][1])
{
case 'A':
bAscii = TRUE;
NumberOfOptions++;
break;
case 'L':
bLineNos = TRUE;
NumberOfOptions++;
break;
case '?':
Usage();
return EXIT_SUCCESS;
default:
_tprintf(_T("Invalid switch - /%c\n"), argv[i][1]);
Usage();
return EXIT_FAILURE;
}
}
}
if (argc - NumberOfOptions == 3)
{
_tcsncpy(File1, argv[1 + NumberOfOptions], _MAX_PATH);
_tcsncpy(File2, argv[2 + NumberOfOptions], _MAX_PATH);
}
else
{
_tprintf(_T("Bad command line syntax\n"));
return EXIT_FAILURE;
}
Buff1 = (TCHAR *)malloc(STRBUF * sizeof(TCHAR));
if (Buff1 == NULL)
{
_tprintf(_T("Can't get free memory for Buff1\n"));
return EXIT_FAILURE;
}
Buff2 = (TCHAR *)malloc(STRBUF * sizeof(TCHAR));
if (Buff2 == NULL)
{
_tprintf(_T("Can't get free memory for Buff2\n"));
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp1 = fopen(File1, "rb")) == NULL)
{
_tprintf(_T("Can't find/open file: %s\n"), File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp2 = fopen(File2, "rb")) == NULL)
{
_tprintf(_T("Can't find/open file: %s\n"), File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
_tprintf(_T("Comparing %s and %s...\n"), File1, File2);
FileSizeFile1 = FileSize(fp1);
if (FileSizeFile1 == -1)
{
_tprintf(_T("Can't determine size of file: %s\n"), File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
FileSizeFile2 = FileSize(fp2);
if (FileSizeFile2 == -1)
{
_tprintf(_T("Can't determine size of file: %s\n"), File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
if (FileSizeFile1 != FileSizeFile2)
{
_tprintf(_T("Files are different sizes.\n"));
Status = EXIT_FAILURE;
goto Cleanup;
}
LineNumber = 1;
Offset = 0;
while (1)
{
BufLen1 = GetBuff(Buff1, fp1);
BufLen2 = GetBuff(Buff2, fp2);
if (ferror(fp1) || ferror(fp2))
{
_tprintf(_T("Files read error.\n"));
Status = EXIT_FAILURE;
goto Cleanup;
}
if (!BufLen1 && !BufLen2)
break;
assert(BufLen1 == BufLen2);
for (i = 0; i < BufLen1; i++)
{
if (Buff1[i] != Buff2[i])
{
FilesOK = 0;
/* Reporting here a mismatch */
if (bLineNos)
{
_tprintf(_T("Compare error at LINE %d\n"), LineNumber);
}
else
{
_tprintf(_T("Compare error at OFFSET %d\n"), Offset);
}
if (bAscii)
{
_tprintf(_T("file1 = %c\n"), Buff1[i]);
_tprintf(_T("file2 = %c\n"), Buff2[i]);
}
else
{
_tprintf(_T("file1 = %X\n"), Buff1[i]);
_tprintf(_T("file2 = %X\n"), Buff2[i]);
}
Offset++;
if (Buff1[i] == '\n')
LineNumber++;
}
}
}
if (FilesOK)
_tprintf(_T("Files compare OK\n"));
Cleanup:
if (fp1)
fclose(fp1);
if (fp2)
fclose(fp2);
if (Buff1)
free(Buff1);
if (Buff2)
free(Buff2);
return Status;
}
/* EOF */
/*
* ReactOS Win32 Applications
* Copyright (C) 2005 ReactOS Team
*
* 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.
*
* This 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* PROJECT: ReactOS Comp utility
* COPYRIGHT: See COPYING in the top level directory
* FILE: base/applications/cmdutils/comp/comp.c
* PURPOSE: Compares the contents of two files
* PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define WIN32_NO_STATUS
#include <windef.h>
#include <winbase.h>
#include <conutils.h>
#include "resource.h"
#define STRBUF 1024
/* getline: read a line, return length */
INT GetBuff(PBYTE buff, FILE* in)
{
return fread(buff, sizeof(BYTE), STRBUF, in);
}
INT FileSize(FILE* fd)
{
INT result = -1;
if (fseek(fd, 0, SEEK_END) == 0 && (result = ftell(fd)) != -1)
{
/* Restoring file pointer */
rewind(fd);
}
return result;
}
int wmain(int argc, WCHAR* argv[])
{
INT i;
/* File pointers */
FILE *fp1 = NULL;
FILE *fp2 = NULL;
INT BufLen1, BufLen2;
PBYTE Buff1 = NULL;
PBYTE Buff2 = NULL;
WCHAR File1[_MAX_PATH + 1], // File paths
File2[_MAX_PATH + 1];
BOOL bAscii = FALSE, // /A switch
bLineNos = FALSE; // /L switch
UINT LineNumber;
UINT Offset;
INT FileSizeFile1;
INT FileSizeFile2;
INT NumberOfOptions = 0;
INT FilesOK = 1;
INT Status = EXIT_SUCCESS;
/* Initialize the Console Standard Streams */
ConInitStdStreams();
/* Parse command line for options */
for (i = 1; i < argc; i++)
{
if (argv[i][0] == L'/')
{
switch (towlower(argv[i][1]))
{
case L'a':
bAscii = TRUE;
NumberOfOptions++;
break;
case L'l':
bLineNos = TRUE;
NumberOfOptions++;
break;
case L'?':
ConResPuts(StdOut, IDS_HELP);
return EXIT_SUCCESS;
default:
ConResPrintf(StdErr, IDS_INVALIDSWITCH, argv[i][1]);
ConResPuts(StdOut, IDS_HELP);
return EXIT_FAILURE;
}
}
}
if (argc - NumberOfOptions == 3)
{
wcsncpy(File1, argv[1 + NumberOfOptions], _MAX_PATH);
wcsncpy(File2, argv[2 + NumberOfOptions], _MAX_PATH);
}
else
{
ConResPuts(StdErr, IDS_BADSYNTAX);
return EXIT_FAILURE;
}
Buff1 = (PBYTE)malloc(STRBUF);
if (Buff1 == NULL)
{
ConPuts(StdErr, L"Can't get free memory for Buff1\n");
Status = EXIT_FAILURE;
goto Cleanup;
}
Buff2 = (PBYTE)malloc(STRBUF);
if (Buff2 == NULL)
{
ConPuts(StdErr, L"Can't get free memory for Buff2\n");
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp1 = _wfopen(File1, L"rb")) == NULL)
{
ConResPrintf(StdErr, IDS_FILEERROR, File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp2 = _wfopen(File2, L"rb")) == NULL)
{
ConResPrintf(StdErr, IDS_FILEERROR, File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
ConResPrintf(StdOut, IDS_COMPARING, File1, File2);
FileSizeFile1 = FileSize(fp1);
if (FileSizeFile1 == -1)
{
ConResPrintf(StdErr, IDS_FILESIZEERROR, File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
FileSizeFile2 = FileSize(fp2);
if (FileSizeFile2 == -1)
{
ConResPrintf(StdErr, IDS_FILESIZEERROR, File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
if (FileSizeFile1 != FileSizeFile2)
{
ConResPuts(StdOut, IDS_SIZEDIFFERS);
Status = EXIT_FAILURE;
goto Cleanup;
}
LineNumber = 1;
Offset = 0;
while (1)
{
BufLen1 = GetBuff(Buff1, fp1);
BufLen2 = GetBuff(Buff2, fp2);
if (ferror(fp1) || ferror(fp2))
{
ConResPuts(StdErr, IDS_READERROR);
Status = EXIT_FAILURE;
goto Cleanup;
}
if (!BufLen1 && !BufLen2)
break;
assert(BufLen1 == BufLen2);
for (i = 0; i < BufLen1; i++)
{
if (Buff1[i] != Buff2[i])
{
FilesOK = 0;
/* Reporting here a mismatch */
if (bLineNos)
ConResPrintf(StdOut, IDS_MISMATCHLINE, LineNumber);
else
ConResPrintf(StdOut, IDS_MISMATCHOFFSET, Offset);
if (bAscii)
{
ConResPrintf(StdOut, IDS_ASCIIDIFF, 1, Buff1[i]);
ConResPrintf(StdOut, IDS_ASCIIDIFF, 2, Buff2[i]);
}
else
{
ConResPrintf(StdOut, IDS_HEXADECIMALDIFF, 1, Buff1[i]);
ConResPrintf(StdOut, IDS_HEXADECIMALDIFF, 2, Buff2[i]);
}
}
Offset++;
if (Buff1[i] == '\n')
LineNumber++;
}
}
if (FilesOK)
ConResPuts(StdOut, IDS_MATCH);
Cleanup:
if (fp2)
fclose(fp2);
if (fp1)
fclose(fp1);
if (Buff2)
free(Buff2);
if (Buff1)
free(Buff1);
return Status;
}
/* EOF */

View File

@@ -1,5 +1,29 @@
#include <windef.h>
#define REACTOS_STR_FILE_DESCRIPTION "File Compare Utility"
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS File Compare Utility"
#define REACTOS_STR_INTERNAL_NAME "comp"
#define REACTOS_STR_ORIGINAL_FILENAME "comp.exe"
#include <reactos/version.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif

View File

@@ -0,0 +1,23 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_HELP "Compares the contents of two files or sets of files.\n\n\
COMP [/L] [/A] [data1] [data2]\n\n\
data1 Specifies location and name of first file to compare.\n\
data2 Specifies location and name of second file to compare.\n\
/A Display differences in ASCII characters (default: hexadecimal).\n\
/L Display line numbers for differences.\n"
IDS_INVALIDSWITCH "Invalid switch - /%c\n"
IDS_BADSYNTAX "Bad command line syntax\n"
IDS_FILEERROR "Cannot find/open file: %s\n"
IDS_COMPARING "Comparing %s and %s...\n"
IDS_FILESIZEERROR "Cannot determine size of file: %s\n"
IDS_SIZEDIFFERS "Files are different sizes.\n"
IDS_READERROR "Files read error.\n"
IDS_MISMATCHLINE "Compare error at LINE %d\n"
IDS_MISMATCHOFFSET "Compare error at OFFSET 0x%X\n"
IDS_ASCIIDIFF "file%d = %c\n"
IDS_HEXADECIMALDIFF "file%d = %X\n"
IDS_MATCH "Files compare OK\n"
END

View File

@@ -0,0 +1,23 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_HELP "Compare le contenu de deux fichiers ou ensembles de fichiers.\n\n\
COMP [/L] [/A] [data1] [data2]\n\n\
data1 Spécifie l'emplacement et le nom du premier fichier à comparer.\n\
data2 Spécifie l'emplacement et le nom du second fichier à comparer.\n\
/A Affiche les différences en caractères ASCII (défaut: hexadécimal).\n\
/L Affiche les numéros de ligne des différences.\n"
IDS_INVALIDSWITCH "Paramètre invalide - /%c\n"
IDS_BADSYNTAX "Syntaxe incorrecte\n"
IDS_FILEERROR "Impossible de trouver/ouvrir le fichier : %s\n"
IDS_COMPARING "Comparaison de %s et %s...\n"
IDS_FILESIZEERROR "Ne peut pas déterminer la taille du fichier : %s\n"
IDS_SIZEDIFFERS "Les fichiers sont de taille différente.\n"
IDS_READERROR "Erreur lors de la lecture des fichiers.\n"
IDS_MISMATCHLINE "Erreur de comparaison à LIGNE %d\n"
IDS_MISMATCHOFFSET "Erreur de comparaison à OFFSET 0x%X\n"
IDS_ASCIIDIFF "fichier%d = %c\n"
IDS_HEXADECIMALDIFF "fichier%d = %X\n"
IDS_MATCH "Comparaison des fichiers OK\n"
END

View File

@@ -0,0 +1,24 @@
/* Translator: Ștefan Fulea (stefan dot fulea at mail dot md) */
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "Compară conținuturile a două fișiere sau grupuri de fișiere.\n\n\
COMP [/L] [/A] [data1] [data2]\n\n\
data1 Calea și numele primului fișier de comparat.\n\
data2 Calea și numele celui de-al doilea fișier de comparat.\n\
/A Afișează diferențele în caractere ASCII (implicit: hexazecimal).\n\
/L Afișează numărul liniei pentru diferențe.\n"
IDS_INVALIDSWITCH "Parametru nevalid - /%c\n"
IDS_BADSYNTAX "Sintaxă eronată\n"
IDS_FILEERROR "Nu poate fi găsit/deschis fișierul: %s\n"
IDS_COMPARING "%s este comparat cu %s...\n"
IDS_FILESIZEERROR "Eroare la determinarea dimensiunii fișierului: %s\n"
IDS_SIZEDIFFERS "Fișierele au dimensiuni diferite.\n"
IDS_READERROR "Eroare la citirea fișierelor.\n"
IDS_MISMATCHLINE "Diferență identificată la linia %d\n"
IDS_MISMATCHOFFSET "Diferență identificată la poziția 0x%X\n"
IDS_ASCIIDIFF "fișier%d = %c\n"
IDS_HEXADECIMALDIFF "fișier%d = %X\n"
IDS_MATCH "Fișierele sunt identice\n"
END

View File

@@ -0,0 +1,23 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "Сравнение содержимого двух файлов или наборов файлов.\n\n\
COMP [/L] [/A] [данные1] [данные2]\n\n\
данные1 Расположение и имя первого файла для сравнения.\n\
данные2 Расположение и имя второго файла для сравнения.\n\
/A Вывод различий в формате ASCII (по умолчанию: шестнадцатиричный).\n\
/L Вывод номеров строк, в которых обнаружены различия.\n"
IDS_INVALIDSWITCH "Недопустимый ключ - /%c\n"
IDS_BADSYNTAX "Не верный формат командной строки\n"
IDS_FILEERROR "Не удалось найти/открыть файл: %s\n"
IDS_COMPARING "Сравнение %s и %s...\n"
IDS_FILESIZEERROR "Не удалось определить размер файла: %s\n"
IDS_SIZEDIFFERS "Файлы разных размеров.\n"
IDS_READERROR "Ошибка чтения файлов.\n"
IDS_MISMATCHLINE "Ошибка сравнения в СТРОКЕ %d\n"
IDS_MISMATCHOFFSET "Ошибка сравнения в ПОЗИЦИИ 0x%X\n"
IDS_ASCIIDIFF "файл%d = %c\n"
IDS_HEXADECIMALDIFF "файл%d = %X\n"
IDS_MATCH "Различия не найдены\n"
END

View File

@@ -0,0 +1,25 @@
/* TRANSLATOR: 2016 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "İki kütüğün ya da iki kütük öbeğinin içeriklerini karşılaştırır.\n\n\
COMP [/L] [/A] [veri1] [veri2]\n\n\
veri1 Karşılaştırılacak birinci kütüğün adını ve konumunu belirtir.\n\
veri2 Karşılaştırılacak ikinci kütüğün adını ve konumunu belirtir.\n\
/A ASCII damgalarındaki ayrımları görüntüle. (Ön tanımlı: On altılık.)\n\
/L Ayrımlar için yataç numaraları görüntüle.\n"
IDS_INVALIDSWITCH "Geçersiz seçenek - /%c\n"
IDS_BADSYNTAX "Geçersiz komut yatacı söz dizimi.\n"
IDS_FILEERROR "Kütük açılamıyor ya da aranamıyor: %s\n"
IDS_COMPARING "%s ve %s karşılaştırılıyor...\n"
IDS_FILESIZEERROR "Kütüğün büyüklüğü saptanamıyor: %s\n"
IDS_SIZEDIFFERS "Kütükler ayrı büyüklüklerde.\n"
IDS_READERROR "Kütükleri okuma yanlışlığı.\n"
IDS_MISMATCHLINE "%d. yataçta karşılaştırma yanlışlığı.\n"
IDS_MISMATCHOFFSET "0x%X ofsetinde karşılaştırma yanlışlığı.\n"
IDS_ASCIIDIFF "kütük%d = %c\n"
IDS_HEXADECIMALDIFF "kütük%d = %X\n"
IDS_MATCH "Kütükleri karşılaştırma bitti.\n"
END

View File

@@ -0,0 +1,15 @@
#pragma once
#define IDS_HELP 100
#define IDS_INVALIDSWITCH 101
#define IDS_BADSYNTAX 102
#define IDS_FILEERROR 103
#define IDS_COMPARING 104
#define IDS_FILESIZEERROR 105
#define IDS_SIZEDIFFERS 106
#define IDS_READERROR 107
#define IDS_MISMATCHLINE 108
#define IDS_MISMATCHOFFSET 109
#define IDS_ASCIIDIFF 110
#define IDS_HEXADECIMALDIFF 111
#define IDS_MATCH 112

View File

@@ -44,7 +44,7 @@ int _tmain(int argc, TCHAR ** argv)
/* get available tests */
strcpy(cmd, argv[2]);
strcat(cmd, " --list");
strcat(cmd, " --list");
pPipe = _tpopen(cmd, "r");
if (pPipe != NULL)
{
@@ -68,6 +68,8 @@ int _tmain(int argc, TCHAR ** argv)
if (nlptr2)
*nlptr2 = '\0';
puts(psBuffer2);
if (nlptr2)
*nlptr2 = '\n';
OutputDebugStringA(psBuffer2);
}
_pclose(pPipe2);

View File

@@ -1,12 +1,31 @@
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wincon.h>
#include <stdio.h>
#include <wchar.h>
#include <assert.h>
#include <locale.h>
/* Console API functions which are absent from wincon.h */
VOID
WINAPI
ExpungeConsoleCommandHistoryW(LPCWSTR lpExeName);
DWORD
WINAPI
GetConsoleCommandHistoryW(LPWSTR lpHistory,
DWORD cbHistory,
LPCWSTR lpExeName);
DWORD
WINAPI
GetConsoleCommandHistoryLengthW(LPCWSTR lpExeName);
BOOL
WINAPI
SetConsoleNumberOfCommandsW(DWORD dwNumCommands,
LPCWSTR lpExeName);
#include "doskey.h"
@@ -14,19 +33,12 @@
WCHAR szStringBuf[MAX_STRING];
LPWSTR pszExeName = L"cmd.exe";
/* Function pointers */
typedef DWORD (WINAPI *GetConsoleCommandHistoryW_t) (LPWSTR sCommands, DWORD nBufferLength, LPWSTR sExeName);
typedef DWORD (WINAPI *GetConsoleCommandHistoryLengthW_t) (LPWSTR sExeName);
typedef BOOL (WINAPI *SetConsoleNumberOfCommandsW_t)(DWORD nNumber, LPWSTR sExeName);
typedef VOID (WINAPI *ExpungeConsoleCommandHistoryW_t)(LPWSTR sExeName);
GetConsoleCommandHistoryW_t pGetConsoleCommandHistoryW;
GetConsoleCommandHistoryLengthW_t pGetConsoleCommandHistoryLengthW;
SetConsoleNumberOfCommandsW_t pSetConsoleNumberOfCommandsW;
ExpungeConsoleCommandHistoryW_t pExpungeConsoleCommandHistoryW;
static VOID SetInsert(DWORD dwFlag)
{
/*
* NOTE: Enabling the ENABLE_INSERT_MODE mode can also be done by calling
* kernel32:SetConsoleCommandHistoryMode(CONSOLE_OVERSTRIKE) .
*/
DWORD dwMode;
HANDLE hConsole = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hConsole, &dwMode);
@@ -36,7 +48,7 @@ static VOID SetInsert(DWORD dwFlag)
static VOID PrintHistory(VOID)
{
DWORD Length = pGetConsoleCommandHistoryLengthW(pszExeName);
DWORD Length = GetConsoleCommandHistoryLengthW(pszExeName);
PBYTE HistBuf;
WCHAR *Hist;
WCHAR *HistEnd;
@@ -48,9 +60,13 @@ static VOID PrintHistory(VOID)
Hist = (WCHAR *)HistBuf;
HistEnd = (WCHAR *)&HistBuf[Length];
if (pGetConsoleCommandHistoryW(Hist, Length, pszExeName))
if (GetConsoleCommandHistoryW(Hist, Length, pszExeName))
{
for (; Hist < HistEnd; Hist += wcslen(Hist) + 1)
{
wprintf(L"%s\n", Hist);
}
}
HeapFree(GetProcessHeap(), 0, HistBuf);
}
@@ -102,8 +118,12 @@ static VOID PrintMacros(LPWSTR pszExeName, LPWSTR Indent)
AliasEnd = (WCHAR *)&AliasBuf[Length];
if (GetConsoleAliasesW(Alias, Length * sizeof(BYTE), pszExeName))
{
for (; Alias < AliasEnd; Alias += wcslen(Alias) + 1)
{
wprintf(L"%s%s\n", Indent, Alias);
}
}
HeapFree(GetProcessHeap(), 0, AliasBuf);
}
@@ -198,23 +218,12 @@ wmain(VOID)
{
WCHAR *pArgStart;
WCHAR *pArgEnd;
HMODULE hKernel32;
setlocale(LC_ALL, "");
/* Get the full command line using GetCommandLine(). We can't just use argv,
* because then a parameter like "gotoroot=cd \" wouldn't be passed completely. */
pArgEnd = GetCommandLineW();
hKernel32 = LoadLibraryW(L"kernel32.dll");
/* Get function pointers */
pGetConsoleCommandHistoryW = (GetConsoleCommandHistoryW_t)GetProcAddress( hKernel32, "GetConsoleCommandHistoryW");
pGetConsoleCommandHistoryLengthW = (GetConsoleCommandHistoryLengthW_t)GetProcAddress( hKernel32, "GetConsoleCommandHistoryLengthW");
pSetConsoleNumberOfCommandsW = (SetConsoleNumberOfCommandsW_t)GetProcAddress( hKernel32, "SetConsoleNumberOfCommandsW");
pExpungeConsoleCommandHistoryW = (ExpungeConsoleCommandHistoryW_t)GetProcAddress( hKernel32, "ExpungeConsoleCommandHistoryW");
assert(pGetConsoleCommandHistoryW && pGetConsoleCommandHistoryLengthW &&
pSetConsoleNumberOfCommandsW && pExpungeConsoleCommandHistoryW);
/* Skip the application name */
GetArg(&pArgStart, &pArgEnd);
@@ -242,11 +251,11 @@ wmain(VOID)
}
else if (!_wcsnicmp(pArgStart, L"/LISTSIZE=", 10))
{
pSetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName);
SetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName);
}
else if (!wcsicmp(pArgStart, L"/REINSTALL"))
{
pExpungeConsoleCommandHistoryW(pszExeName);
ExpungeConsoleCommandHistoryW(pszExeName);
}
else if (!wcsicmp(pArgStart, L"/INSERT"))
{

View File

@@ -0,0 +1,12 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
## The message string templates are in ANSI to reduce binary size
add_message_headers(ANSI evtmsgstr.mc)
add_executable(eventcreate eventcreate.c eventcreate.rc)
set_module_type(eventcreate win32cui UNICODE)
add_dependencies(eventcreate evtmsgstr)
target_link_libraries(eventcreate conutils ${PSEH_LIB})
add_importlibs(eventcreate advapi32 msvcrt kernel32)
add_cd_file(TARGET eventcreate DESTINATION reactos/system32 FOR all)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
#include <windef.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS EventCreate Command"
#define REACTOS_STR_INTERNAL_NAME "eventcreate"
#define REACTOS_STR_ORIGINAL_FILENAME "eventcreate.exe"
#include <reactos/version.rc>
/* Message Table resource for the message string templates */
#include <evtmsgstr.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif

View File

@@ -0,0 +1,105 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS EventCreate Command
* FILE: base/applications/cmdutils/eventcreate/evtmsggen.c
* PURPOSE: Generator for the event message string templates file.
* Creates the message string file in the current directory.
* PROGRAMMER: Hermes Belusca-Maito
*
* You can compile this generator:
* with GCC : $ gcc -o evtmsggen.exe evtmsggen.c
* with MSVC: $ cl evtmsggen.c (or: $ cl /Fe"evtmsggen.exe" evtmsggen.c)
*/
#include <stdio.h>
/*
* Enable/disable this option to use "English" for the message table language.
* The default behaviour when the option is disabled selects "Neutral" language.
*/
// #define ENGLISH
/* The default End-Of-Line control for the message file */
#define EOL "\r\n"
static void usage(char* name)
{
fprintf(stdout, "Usage: %s ID_min ID_max outfile.mc\n", name);
}
int main(int argc, char* argv[])
{
FILE* outFile;
unsigned int id_min, id_max;
unsigned int i;
/* Validate the arguments */
if (argc != 4)
{
usage(argv[0]);
return -1;
}
id_min = (unsigned int)atoi(argv[1]);
id_max = (unsigned int)atoi(argv[2]);
if (id_min > id_max)
{
fprintf(stderr, "ERROR: Min ID %u cannot be strictly greater than Max ID %u !\n", id_min, id_max);
return -1;
}
/* Open the file */
outFile = fopen(argv[3], "wb");
if (!outFile)
{
fprintf(stderr, "ERROR: Could not create output file '%s'.\n", argv[3]);
return -1;
}
/* Generate the file */
/* Write the header */
fprintf(outFile,
";/*" EOL
"; * %s" EOL
"; * Contains event message string templates for the EventCreate Command." EOL
"; *" EOL
"; * This file is autogenerated, do not edit." EOL
"; * Generated with:" EOL
"; * %s %u %u %s" EOL
"; */" EOL
EOL
#ifdef ENGLISH
"LanguageNames=(English=0x409:MSG00409)" EOL
#else
"LanguageNames=(Neutral=0x0000:MSG00000)" EOL
#endif
"MessageIdTypedef=DWORD" EOL
EOL,
argv[3],
argv[0], id_min /* argv[1] */, id_max /* argv[2] */, argv[3]);
/* Write the message string templates */
for (i = id_min; i <= id_max; ++i)
{
fprintf(outFile,
"MessageId=0x%X" EOL
#ifdef ENGLISH
"Language=English" EOL
#else
"Language=Neutral" EOL
#endif
"%%1" EOL
"." EOL
EOL,
i);
}
/* Close the file */
fclose(outFile);
return 0;
}
/* EOF */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_USAGE "Type ""EVENTCREATE /?"" for usage information.\n"
IDS_HELP "\n\
EVENTCREATE [/S computer [/U [domain\\]user [/P password]]] /ID EventID\n\
{[/L logname] | [/SO source]} /T type /C category /D description\n\
\n\
Description:\n\
This tool enables an administrator to create a custom event in\n\
a specified event log.\n\
\n\
Parameters:\n\
/S computer Specifies the remote computer where to connect.\n\
\n\
/U [domain\\]user Specifies the user account under which the command\n\
should execute.\n\
\n\
/P [password] Specifies the password of the user account.\n\
Prompts for input if omitted.\n\
\n\
/L logname Specifies the name of the log where the event will be\n\
created. The valid names are:\n\
Application, System, Security\n\
(the latter is reserved only for the SYSTEM account).\n\
\n\
/SO source Specifies the source name to use for the event\n\
(if not specified, the default source name\n\
will be 'eventcreate').\n\
A valid source can be any string and should represent\n\
the application or the component that is generating\n\
the event.\n\
\n\
/T type Specifies the type of event to create.\n\
The valid types are: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C category Specifies the event category (integer) for the event.\n\
\n\
/ID EventID Specifies the event ID for the event. This must be\n\
an integer between 0 and 65535.\n\
\n\
/D description Specifies the description to use for the newly\n\
created event.\n\
\n\
/? Displays this help screen.\n\
"
IDS_INVALIDSWITCH "Invalid switch - '%s'.\n"
IDS_BADSYNTAX_0 "Bad command line syntax.\n"
IDS_BADSYNTAX_1 "Bad command line syntax. The option '%s' requires a value.\n"
IDS_BADSYNTAX_2 "Bad command line syntax. The value for the option '%s' cannot be empty.\n"
IDS_BADSYNTAX_3 "Bad command line syntax. The value '%s' is not allowed for the option '%s'.\n"
IDS_BADSYNTAX_4 "Bad command line syntax. The value cannot be specified for the option '%s'.\n"
IDS_BADSYNTAX_5 "Bad command line syntax. The option '%s' is not allowed more than %lu times.\n"
IDS_BADSYNTAX_6 "Bad command line syntax. The mandatory option '%s' is absent.\n"
// IDS_BADSYNTAX_7 "Bad command line syntax. The value for the option '%s' is outside the allowed range.\n"
IDS_BADSYNTAX_7 "Bad command line syntax. The value for the option '%s' must be between %d and %d.\n"
IDS_LOG_NOT_FOUND "The log '%s' does not exist. Cannot create the event.\n"
IDS_SOURCE_NOCREATE "The new source cannot be created because the log name is not specified.\nPlease use the /L switch to specify the log name.\n"
IDS_SOURCE_EXISTS "The source already exists in the log '%s' and cannot be duplicated.\n"
IDS_SOURCE_NOT_CUSTOM "The Source parameter is used to identify the custom scripts/applications\n(not the installed applications).\n"
IDS_SUCCESS_1 "Operation successful: an event of type '%s' has been created in the log '%s'.\n"
IDS_SUCCESS_2 "Operation successful: an event of type '%s' has been created with the source '%s'.\n"
IDS_SUCCESS_3 "Operation successful: an event of type '%s' has been created\nin the log '%s' with the source '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "The option '%s' is not currently supported, sorry for the inconvenience!\n"
END

View File

@@ -0,0 +1,70 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Entrez ""EVENTCREATE /?"" pour afficher la syntaxe.\n"
IDS_HELP "\n\
EVENTCREATE [/S système [/U utilisateur [/P mot_de_passe]]] /ID id_événement\n\
{[/L journal] | [/SO source]} /T type /C catégorie /D description\n\
\n\
Description :\n\
Cet outil permet à un administrateur de créer un événement ayant un\n\
message et un identificateur personnalisés dans un journal d'événements\n\
spécifié.\n\
\n\
Liste de paramètres :\n\
/S système Spécifie le système distant auquel se connecter.\n\
\n\
/U [domaine\\]utili. Spécifie le contexte de l'utilisateur\n\
sous lequel la commande doit s'exécuter.\n\
\n\
/P [mot_de_passe] Spécifie le mot de passe du contexte\n\
utilisateur donné. Il est demandé s'il est omis.\n\
\n\
/L journal Spécifie le journal d'événement dans lequel\n\
l'événementest créé. Les noms valides sont :\n\
Application, System, Security\n\
(le dernier est réservé seulement pour le compte\n\
SYSTEM).\n\
\n\
/SO source Spécifie la source devant être utilisée pour\n\
l'événement (s'il n'est pas spécifié, la valeur\n\
par défaut de la source sera 'eventcreate').\n\
Une source valide peut être une chaîne et doit\n\
représenter l'application ou le composant qui génère\n\
l'événement.\n\
\n\
/T type Spécifie le type d'événement à créer.\n\
Les types autorisés sont : SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C catégorie Spécifie la catégorie de l'événement (nombre entier).\n\
\n\
/ID identificateur Spécifie l'ID de l'événement. Un identificateur\n\
peut être un nombre entier compris entre 0 et 65535.\n\
\n\
/D description Spécifie la description du nouvel événement.\n\
\n\
/? Affiche cet écran d'aide.\n\
"
IDS_INVALIDSWITCH "Option invalide - '%s'.\n"
IDS_BADSYNTAX_0 "Syntaxe incorrecte.\n"
IDS_BADSYNTAX_1 "Syntaxe incorrecte. L'option '%s' requiert une valeur.\n"
IDS_BADSYNTAX_2 "Syntaxe incorrecte. La valeur pour l'option '%s' ne peut pas être vide.\n"
IDS_BADSYNTAX_3 "Syntaxe incorrecte. La valeur '%s' n'est pas autorisée pour l'option '%s'.\n"
IDS_BADSYNTAX_4 "Syntaxe incorrecte. La valeur ne peut pas être spécifiée pour l'option '%s'.\n"
IDS_BADSYNTAX_5 "Syntaxe incorrecte. L'option '%s' n'est pas autorisée plus de %lu fois.\n"
IDS_BADSYNTAX_6 "Syntaxe incorrecte. L'option obligatoire '%s' est absente.\n"
// IDS_BADSYNTAX_7 "Syntaxe incorrecte. La valeur pour l'option '%s' est en dehors de la plage autorisée.\n"
IDS_BADSYNTAX_7 "Syntaxe incorrecte. La valeur pour l'option '%s' doit être comprise entre %d et %d.\n"
IDS_LOG_NOT_FOUND "Le journal '%s' n'existe pas. Impossible de créer l'événement.\n"
IDS_SOURCE_NOCREATE "La nouvelle source ne peut être créée car le nom du journal n'est pas spécifié.\nUtilisez le commutateur /L pour spécifier le nom du journal.\n"
IDS_SOURCE_EXISTS "La source existe déjà dans le journal '%s' et ne peut pas être dupliquée.\n"
IDS_SOURCE_NOT_CUSTOM "Le paramètre Source est utilisé pour identifier les scripts/applications\npersonnalisées (pas les applications installées).\n"
IDS_SUCCESS_1 "Opération réussie : un événement de type '%s' a été créé dans le journal '%s'.\n"
IDS_SUCCESS_2 "Opération réussie : un événement de type '%s' a été créé avec la source '%s'.\n"
IDS_SUCCESS_3 "Opération réussie : un événement de type '%s' a été créé\ndans le journal '%s' avec la source '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "L'option '%s' n'est pas supporté pour le moment, désolé pour le désagrément!\n"
END

View File

@@ -0,0 +1,71 @@
/* Translator: Ștefan Fulea (stefan dot fulea at mail dot md) */
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Tastați «EVENTCREATE /?» pentru informații de utilizare.\n"
IDS_HELP "\n\
EVENTCREATE [/S calculator [/U [domeniu\\]nume [/P parolă]]]\n\
/ID id_eveniment {[/L nume_jurnal] | [/SO sursă]}\n\
/T tip /C categorie /D descriere\n\
\n\
Descriere:\n\
Acest instrument oferă unui administrator crearea unui eveniment\n\
particular într-un jurnal de evenimente specificat.\n\
\n\
Parametri:\n\
/S calculator Specifică sistemul la care se face conectarea.\n\
\n\
/U [domeniu\\]nume Numele contului de utilizator sub care va fi\n\
executată comanda.\n\
\n\
/P [parolă] Specifică parola contului de utilizator.\n\
Va fi cerută la prompt în cazul omiterii.\n\
\n\
/L nume_jurnal Specifică numele jurnalului în care evenimentul va fi\n\
creat. Numele valide sunt:\n\
Application, System, Security\n\
(ultimul este rezervat doar pentru contul SYSTEM).\n\
\n\
/SO sursă Specifică numele sursei utilizate pentru eveniment.\n\
(Dacă nu e specificat, numele implicit al sursei va\n\
fi «eventcreate».)\n\
O sursă validă poate fi orice șir de caractere și ar\n\
trebui să reprezinte aplicația sau evenimentul care\n\
generează evenimentul.\n\
\n\
/T tip Specifică tipul de eveniment creat.\n\
Tipurile valide sunt: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C categorie Specifică categoria de eveniment (ca număr întreg).\n\
\n\
/ID id_eveniment Specifică numărul de identificare pentru eveniment.\n\
Acesta trebuie să fie un număr între 0 și 65535.\n\
\n\
/D descriere Specifică o descriere pentru evenimentul nou creat.\n\
\n\
/? Afișează acest manual de utilizare.\n\
"
IDS_INVALIDSWITCH "Parametru eronat - «%s».\n"
IDS_BADSYNTAX_0 "Comandă cu sintaxă eronată.\n"
IDS_BADSYNTAX_1 "Comandă cu sintaxă eronată. Opțiunea «%s» necesită o valoare.\n"
IDS_BADSYNTAX_2 "Comandă cu sintaxă eronată. Valoarea pentru opțiunea «%s» nu poate fi omisă.\n"
IDS_BADSYNTAX_3 "Comandă cu sintaxă eronată. Valoarea «%s» nu este permisă pentru opțiunea «%s».\n"
IDS_BADSYNTAX_4 "Comandă cu sintaxă eronată. Valoarea dată nu poate fi specificată pentru opțiunea «%s».\n"
IDS_BADSYNTAX_5 "Comandă cu sintaxă eronată. Opțiunea «%s» nu este permisă mai mult de %lu ori.\n"
IDS_BADSYNTAX_6 "Comandă cu sintaxă eronată. Opțiunea obligatorie «%s» a fost omisă.\n"
// IDS_BADSYNTAX_7 "Comandă cu sintaxă eronată. Valoarea pentru opțiunea «%s» este în afara domeniului permis.\n"
IDS_BADSYNTAX_7 "Comandă cu sintaxă eronată. Valoarea pentru opțiunea «%s» trebuie să fie între %d și %d.\n"
IDS_LOG_NOT_FOUND "Jurnalul «%s» nu există. Evenimentul nu poate fi creat.\n"
IDS_SOURCE_NOCREATE "Sursa nu poate fi creată deoarece numele de jurnal nu este specificat.\nUtilizați parametrul /L pentru a specifica un nume de jurnal.\n"
IDS_SOURCE_EXISTS "Sursa deja există în jurnalul «%s» și nu poate fi duplicată.\n"
IDS_SOURCE_NOT_CUSTOM "Parametrul de sursă este utilizat pentru a identifica scripturi/aplicații particularizate (nicidecum aplicații instalate).\n"
IDS_SUCCESS_1 "Operație realizată: un eveniment de tip «%s» a fost creat în jurnalul «%s».\n"
IDS_SUCCESS_2 "Operație realizată: un eveniment de tip «%s» a fost creat cu sursa «%s».\n"
IDS_SUCCESS_3 "Operație realizată: un eveniment de tip «%s» a fost creat în jurnalul «%s» cu sursa «%s».\n"
IDS_SWITCH_UNIMPLEMENTED "Opțiunea «%s» nu este acceptată deocamdată!\n"
END

View File

@@ -0,0 +1,68 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Введите ""EVENTCREATE /?"" для получения справки по использованию.\n"
IDS_HELP "\n\
EVENTCREATE [/S система [/U [домен\\]пользователь [/P пароль]]] /ID код_события\n\
{[/L имя_журнала] | [/SO источник]} /T тип /C категория /D описание\n\
\n\
Описание:\n\
Эта команда позволяет администратору создать запись об особом событии \n\
в указанном журнале событий.\n\
\n\
Список параметров:\n\
/S система Определяет удаленную систему для подключения.\n\
\n\
/U [домен\\]польз. Определяет контекст пользователя, под которым\n\
выполняется данная команда.\n\
\n\
/P [пароль] Задает пароль для данного контекста пользователя.\n\
Запрашивает ввод пароля, если он не был задан.\n\
\n\
/L журнал Журнал в котором будет создано событие.\n\
Доступными именами являются:\n\
Application, System, Security\n\
(последний зарезервирован только для учетной записи SYSTEM).\n\
\n\
/SO источник Задает имя источника, используемого для события\n\
(если не указано, то по умолчанию имя источника\n\
будет 'eventcreate').\n\
Допустимым источником является любая строка, представляющая\n\
приложение или компонент, который генерирует\n\
событие.\n\
\n\
/T тип Тип создаваемого события.\n\
Допустимыми типами являются: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C категория Определяет категорию события (число) для события.\n\
\n\
/ID код_события Код события для этого события. Допустимым кодом\n\
является число в диапазоне от 0 до 65535.\n\
\n\
/D описание Описание для создаваемого события.\n\
\n\
/? Показать эту справку.\n\
"
IDS_INVALIDSWITCH "Неправильный параметр или аргумент - '%s'.\n"
IDS_BADSYNTAX_0 "Синтаксическая ошибка.\n"
IDS_BADSYNTAX_1 "Синтаксическая ошибка. Для параметра '%s' должно быть указано значение.\n"
IDS_BADSYNTAX_2 "Синтаксическая ошибка. Значение опции '%s' не может быть пустым.\n"
IDS_BADSYNTAX_3 "Синтаксическая ошибка. Значение '%s' является недопустимым для опции '%s'.\n"
IDS_BADSYNTAX_4 "Синтаксическая ошибка. Для опции '%s' не может быть указано значение.\n"
IDS_BADSYNTAX_5 "Синтаксическая ошибка. Опция '%s' не допускается более чем %lu раз.\n"
IDS_BADSYNTAX_6 "Синтаксическая ошибка. Отсутствует обязательный параметр '%s'.\n"
// IDS_BADSYNTAX_7 "Синтаксическая ошибка. Значение для опции '%s' за пределами разрешенного диапазона.\n"
IDS_BADSYNTAX_7 "Синтаксическая ошибка. Значение для опции '%s' должно быть в диапазоне от %d до %d.\n"
IDS_LOG_NOT_FOUND "Журнал '%s' не существует. Не удалось создать событие.\n"
IDS_SOURCE_NOCREATE "Новый источник не может быть создан, поскольку имя журнала не указано.\nИспользуйте параметр /L чтобы указать имя журнала.\n"
IDS_SOURCE_EXISTS "Источник уже существует в журнале '%s' и не может быть продублирован.\n"
IDS_SOURCE_NOT_CUSTOM "Параметр Источник используется для идентификации сценариев/программ\nпользовательских приложений (не установленных приложений).\n"
IDS_SUCCESS_1 "Операция выполнена успешно: событие с типом '%s' было успешно создано в журнале '%s'.\n"
IDS_SUCCESS_2 "Операция выполнена успешно: событие с типом '%s' было успешно создано с источником '%s'.\n"
IDS_SUCCESS_3 "Операция выполнена успешно: событие с типом '%s' было успешно создано\nв журнале '%s' с источником '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "Опция '%s' не поддерживается, приносим извинения за возможное неудобство!\n"
END

Some files were not shown because too many files have changed in this diff Show More