Commit graph

68446 commits

Author SHA1 Message Date
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