Commit graph

5040 commits

Author SHA1 Message Date
winesync ed312cfd56
[WINESYNC] setupapi: Only cleanup fake dlls once the whole section has been executed.
wine commit id 6836990e0b1143cad40d6f9cf54d85483e353cf5 by Alexandre Julliard <julliard@winehq.org>
2024-02-20 16:45:23 +01:00
Hermès Bélusca-Maïto 055142badb
[SETUPAPI] Prepare for wine sync -- FIXME: Move at the bottom position 2024-02-20 16:45:21 +01:00
winesync e669113b13
[WINESYNC] setupapi: Add support for creating registry symlinks from a .inf file.
wine commit id f6b3dba7a08a718f633804da508e4586ae72e6f5 by Alexandre Julliard <julliard@winehq.org>

SYNC NOTE: This is Wine-specific functionality, placed in __WINESRC__
REG_LINK is _NOT_ supported by (official) Windows INF AddReg section.
See the WDK ChkInf.pm tool (from Win2003 up to Win10), for example at:
https://github.com/skycipher/CNGProvider/blob/master/Windows%20Kits/10/Tools/x86/ChkInf/chkinf.pm#L3870
2024-02-20 16:45:20 +01:00
Hermès Bélusca-Maïto 082862f673
[SETUPAPI] registry_callback: Surround ReactOS-specific code in __REACTOS__
This code was added in commit 3dce4b048 (r24493).
2024-02-20 16:45:19 +01:00
winesync 3438acb6ab
[WINESYNC] setupapi: Add stub for SetupLogFile{A,W}.
wine commit id c7d4b0c69fb8de9a2344c7d9d4bcda6e3feef094 by Vitaly Perov <vitperov@etersoft.ru>
2024-02-20 16:45:18 +01:00
winesync 41039c3daf
[WINESYNC] setupapi: Create fake dlls before performing dll registration.
wine commit id 4ae262df8efbcf4cd2e213a1899801c09d6b5047 by Alexandre Julliard <julliard@winehq.org>
2024-02-20 16:45:12 +01:00
winesync 076b4ec9ad
[WINESYNC] setupapi: Use a global buffer to read fake dll files and free it only once we are done with all the fake dlls.
wine commit id 11d66a87887d6155850c1f5f0c889bfefe6add87 by Alexandre Julliard <julliard@winehq.org>
2024-02-20 16:45:11 +01:00
Hermès Bélusca-Maïto a5db8c36c8
[SETUPAPI] SetupCopyOEMInfW: Simplify by directly calling pSetupInstallCatalog. 2024-02-20 16:45:09 +01:00
Hermès Bélusca-Maïto 33a90b5a09
[SETUPAPI] pSetupInstallCatalog: Ensure the last error is reset, before relying on it as return value. 2024-02-20 16:45:08 +01:00
Hermès Bélusca-Maïto f6879cd3e1
[SETUPAPI] pSetupInstallCatalog: Call CryptCATAdminAcquireContext with DRIVER_ACTION_VERIFY GUID.
For compatibility with Windows' setupapi.
https://learn.microsoft.com/en-us/windows/win32/api/mscat/nf-mscat-cryptcatadminacquirecontext
> A pointer to the GUID that identifies the subsystem. DRIVER_ACTION_VERIFY
> represents the subsystem for operating system components and third party
> drivers. This is the subsystem used by most implementations.

This is also what SetupCopyOEMInfW uses too.
2024-02-20 16:45:07 +01:00
winesync e58a7ca526
****** ROS-specific code sync too
[WINESYNC] setupapi: Remove superfluous pointer casts.

wine commit id ffae0123ac46ba6dfac74d7c84422073fd53b580 by Michael Stefaniuc <mstefani@redhat.de>

SYNC NOTE: Applied to ReactOS-specific code.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2024-02-20 16:45:05 +01:00
winesync 01211c2016
[WINESYNC] setupapi: Remove some superfluous casts.
wine commit id 02d1154bab37c1cc6915c0a657189bf4153acd22 by Michael Stefaniuc <mstefani@redhat.de>
2024-02-20 16:45:03 +01:00
winesync 29da75098f
**** NOTE: A lstrlenW -> strlenW change done in SetupDiGetDeviceInstanceIdW
[WINESYNC] setupapi: Sign-compare warnings fix.

wine commit id 1c64c934db07bf9e6431ee43c6e9a53e58c78120 by Andrew Talbot <andrew.talbot@talbotville.com>
2024-02-20 16:45:00 +01:00
winesync f659a4edb8
[WINESYNC] setupapi: Implement installing catalog files.
wine commit id c19b967cd8561357ee7a519a937454e703a10bd8 by Maarten Lankhorst <maarten@codeweavers.com>
2024-02-20 16:44:57 +01:00
winesync f3ca28edff
[WINESYNC] setupapi: Constify a variable.
wine commit id 581a0e091cc87e027e48b835011b024a34506854 by Andrew Talbot <andrew.talbot@talbotville.com>
2024-02-20 16:44:56 +01:00
winesync a3a815aca7
****** ROS-specific code sync too
[WINESYNC] setupapi: Install services in InstallHinfSection.

wine commit id c7e661b8e5a0c339ef09e89cc759dc6620e14541 by Alexandre Julliard <julliard@winehq.org>

SYNC NOTE: Adapted to ReactOS-specific code.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2024-02-20 16:44:54 +01:00
winesync ca354ef614
****** FIXME: INSPECT: The ROS-equivalent of SetupInstallServicesFromInfSection(Ex)W is missing the DelService case! Not implemented
[WINESYNC] setupapi: Implemented SetupInstallServicesFromInfSectionW.

wine commit id cf78e6c38c6815cc9ef805b791414bd67acbb992 by Alexandre Julliard <julliard@winehq.org>
2024-02-20 16:44:53 +01:00
winesync 924a321a1c
****** ROS-specific code sync too
[WINESYNC] setupapi: Assign to structs instead of using memcpy.

wine commit id bd0fec2511cc33fe1bbbc311d5c48f83a909a7fc by Andrew Talbot <andrew.talbot@talbotville.com>

SYNC NOTE: Applied to ReactOS-specific code.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2024-02-20 16:44:51 +01:00
winesync 52a86e2daf
****** ROS-specific code sync too
[WINESYNC] setupapi: Remove unneeded casts.

wine commit id e48bbc23e40ddb05d1b4205b7793abe38297058d by Andrew Talbot <andrew.talbot@talbotville.com>

SYNC NOTE: Applied to ReactOS-specific code.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2024-02-20 16:44:49 +01:00
winesync db4dab577e
*********** SYNC ALTERNATIVE FOR WINE SYNC
[WINESYNC] setupapi: Implement SetupDiGetClassDevsW.

wine commit id f841667cac1558d2131543c5dc9baba1c6418b01 by Juan Lang <juan.lang@gmail.com>

SYNC NOTE: The functions added there (and still existing in Wine's code up to now)
have our own equivalent (see comments):

SETUPDI_EnumerateDevices    --> SETUP_CreateDevicesList
SETUPDI_EnumerateInterfaces --> SETUP_CreateInterfaceList

The other SETUPDI_* are internal helpers for the previous ones:
SETUPDI_EnumerateMatchingDevices
SETUPDI_EnumerateMatchingInterfaces

TODO: Sync the name and functionality?
2024-02-20 16:44:32 +01:00
Hermès Bélusca-Maïto a6594545e0
************ [SETUPAPI] Re-estimate the section name buffer size in InstallHinfSectionW
This follows a similar change by Wine commit:
```
Added support for optional section.ntx86 and section.nt in
InstallHinfSection when current version is set to NT.

wine commit id 4f128fa874dc632ebc83da94afa9fd15ba9269ca by Alexandre Julliard <julliard@winehq.org>
```
2024-02-20 16:44:30 +01:00
winesync 7b1daaeca6
[WINESYNC] setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file.
wine commit id 34556854eda0de9d098968e8d948090d44030d25 by Rob Shearman <rob@codeweavers.com>

SYNC NOTE: Adapted for ReactOS code.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2024-02-20 16:44:27 +01:00
Hermès Bélusca-Maïto 0abf7e0ed3
********** SetupCopyOEMInfW: Close the opened dest_file (fix handle leak) 2024-02-20 16:44:25 +01:00
Hermès Bélusca-Maïto 6399c1525b
********** Wine-ify parts of SetupCopyOEMInfW to make it closer to Wine counterpart 2024-02-20 16:44:24 +01:00
Hermès Bélusca-Maïto 14375f7877
********* [SETUPAPI] Use OEM_INDEX_LIMIT instead of hardcoding the maximum index in SetupCopyOEMInfW, as done in Wine (but our value is compatible with Windows') 2024-02-20 16:44:21 +01:00
winesync 7c83e1230c
[WINESYNC] setupapi: Remove debug traces from allocation routines.
wine commit id c26a816f199a27dec5fa2b18c97c155933f5fe19 by Hans Leidekker <hans@it.vu.nl>
2024-02-20 16:44:18 +01:00
winesync ff6849353b
[WINESYNC] setupapi: Win64 printf format warning fixes.
wine commit id 79ecfaf52f1c552c9f43c636e0133fe0b4d5e6c5 by Michael Stefaniuc <mstefani@redhat.de>
2024-02-20 16:44:16 +01:00
Hermès Bélusca-Maïto 73618b80a2
Revert wine-staging patch 2024-02-20 16:44:14 +01:00
Hermès Bélusca-Maïto 8422291724
******** Partially revert commit 66feb11cfe
[SETUPAPI]
Rename functions according to the new naming scheme:
  CaptureAndConvertAnsiArg --> pSetupCaptureAndConvertAnsiArg
  CenterWindowRelativeToParent --> pSetupCenterWindowRelativeToParent
  ConcatenatePaths --> pSetupConcatenatePaths
  DuplicateString --> pSetupDuplicateString
  EnablePrivilege --> pSetupEnablePrivilege
  GetVersionInfoFromImage --> pSetupGetVersionInfoFromImage
  IsUserAdmin --> pSetupIsUserAdmin
  MultiByteToUnicode --> pSetupMultiByteToUnicode
  MyGetFileTitle --> pSetupGetFileTitle
  OpenAndMapForRead --> pSetupOpenAndMapForRead
  RegistryDelnode --> pSetupRegistryDelnode
  UnicodeToMultiByte --> pSetupUnicodeToMultiByte
  UnmapAndCloseFile --> pSetupUnmapAndCloseFile

svn path=/trunk/; revision=50915
2024-02-20 16:44:11 +01:00
Katayama Hirofumi MZ b2ec78673d
[MSCTFIME] Restructuring (#6505)
Improve code flexibility. 3700+
lines of msctfime.cpp was too long.
JIRA issue: CORE-19360
- Split msctfime.cpp code to some
  source files and header files.
2024-02-20 21:11:08 +09:00
Jérôme Gardou 0610bcb3f9 [DBGHELP] Avoid call of wine_get_dos_file_name
CORE-19444
2024-02-20 08:56:53 +01:00
Katayama Hirofumi MZ 6bc40d36f8
[CTFMON][MSCTFIME][MSCTF][MSUTB][CICERO] Fix TFUninitLib (#6504)
Supporting the Language bar...
JIRA issue: CORE-19363
- Delete TFInitLib and TFUninitLib
  calls from ctfmon.exe.
- Delete TFUninitLib from Cicero
  library.
- Implement InitDisplayAttrbuteLib
  in msctfime.ime.
- Improve CIC_LIBTHREAD structure.
2024-02-20 14:36:24 +09:00
Joachim Henze 6f91b6c0fe [SHELL32] Tweak formatting and logging
Some style-improvements I wanted to apply before a planned backport.
E.g. The biggest source-file CDefView.cpp in [SHELL32] can be shrinked considerably by stripping some outdated
comments from 10 and more years ago, when this class was still non-OOP and named ShellView.
Less excessive line-lengths also here and there.

In case it is not obvious when reviewing: In the beginning of CDevView.cpp in the declaration-part I just
reduced the indentation-level by 4 spaces for a big block.

Some shell classes were touched during 0.4.15-dev'ing for fixes like the 'unkown'-typo in
0.4.15-dev-6323-g 3854a5d8e9 for example
or missing \n were added to dbgprints like in
0.4.15-dev-4492-g 03422451b3
Touched again here, because I want to port those improvements back,
but don't intend to increase the size in older releases.

The commit looks big, but does consist solely of trivialities.
There is no functional change in this commit, aside the logging ofc.
2024-02-20 02:08:56 +01:00
Katayama Hirofumi MZ fc3eeb61f3
[SDK:LIB] Introduce Cicero static library (#6492)
Refactoring and reduce binary size.
JIRA issue: CORE-19268
- Add cicero static library in sdk/lib/cicero folder.
- Delete sdk/include/reactos/cicero folder.
- Adapt the dependencies to these changes.
- Make ctfmon, msutb, and msctf modules UNICODE.
2024-02-17 09:53:50 +09:00
Oleg Dubinskiy 21e139d1d1
[UXTHEME] Add Ukrainian (uk-UA) translation (#6502)
Addendum to d11582f0e. CORE-5991
2024-02-16 22:50:13 +03:00
Stanislav Motylkov d8adb84641 [UXTHEME] Add Russian (ru-RU) translation
Addendum to d11582f0e. CORE-5991
2024-02-16 21:10:32 +03:00
Stanislav Motylkov d11582f0e2 [UXTHEME] Localize string resources
- Adapt SetWindowResourceText() function from
  `msconfig_new/utils.c` LoadResourceStringEx() function.
- Drop `version.rc` in favor of `uxtheme.rc` since we have forked uxtheme.

Addendum to 118869f69. CORE-5991
2024-02-16 21:10:21 +03:00
Katayama Hirofumi MZ e0b67a2990
[MSVIDC32] Keep using CRAM_MAGIC for info structure validation (#6498)
CRAM_MAGIC is being used to validate the info context structure contents
when the driver routines are being called, so partially revert 8be912147.

Just report "MSVC" as the main FourCC handler in CRAM_GetInfo() instead.

CORE-19453 CORE-15382
2024-02-15 17:08:47 +04:00
Stanislav Motylkov fa29a61271 [UXTHEME] nonclient.c: Formatting only 2024-02-15 14:22:02 +03:00
Ethan Rodensky 118869f69c
[UXTHEME] Implement the rest of DrawNCPreview 2024-02-13 21:20:49 +01:00
Katayama Hirofumi MZ 8ea93d2ab2
[REACTOS] Standardize <imm.h> and <immdev.h> (#6493)
Improve header compatibility and
code quality.
JIRA issue: CORE-19268
- Improve <imm.h> and <immdev.h>
  compatibility by correctly choosing
  the items.
- Use <immdev.h> instead of
  <ddk/immdev.h>.
- Move INPUTCONTEXTDX, IMEINFOEX,
  IMEDPI, and CLIENTIMC into
  <imm32_undoc.h>.
- Adapt to these changes.
2024-02-13 20:33:14 +09:00
Andrei Miloiu bdcfc6bc8e
[CRYPTUI] Update Romanian (ro-RO) translation (#6487) 2024-02-12 18:10:25 +01:00
Andrei Miloiu 64f0423904
[RASDLG] Update Romanian (ro-RO) translation (#6483) 2024-02-12 17:58:22 +01:00
Katayama Hirofumi MZ 0ac79d7c45
[MSUTB] Improve English (#6473)
Follow-up to #6472. Improve UI/UX.
JIRA issue: CORE-19363
- Improve English text in resource.
- Reduce earth.ico icon file size.
2024-02-12 17:40:57 +09:00
Andrei Miloiu a7ef18303a
[COMDLG32] Update Romanian (ro-RO) translation (#6485) 2024-02-11 23:30:42 +01:00
Andrei Miloiu b4217c1db4
[BROWSEUI] Update Romanian (ro-RO) translation (#6480) 2024-02-11 23:20:29 +01:00
Andrei Miloiu 0a4ed87751
[SYSSETUP] Update Romanian (ro-RO) translation (#6475) 2024-02-11 23:15:44 +01:00
Andrei Miloiu 07ec501d69
[NEWDEV] Update Romanian (ro-RO) translation (#6457) 2024-02-11 23:12:49 +01:00
Andrei Miloiu 2f1c6c02c1
[INTL] Update Romanian (ro-RO) translation (#6455) 2024-02-11 23:12:31 +01:00
Andrei Miloiu 9caa57b81c
[MAIN] Update Romanian (ro-RO) translation (#6454) 2024-02-11 23:12:02 +01:00