[REGEDIT] Partially sync Regedit to Wine-7.17 (#4717)

* [REGEDIT] Partially Sync to Wine 7.17

- regproc.c and regedit.c are now in sync.
- some other mostly depending fixes for the remaining files

* [REGEDIT_WINETEST] Sync to Wine-7.0
This commit is contained in:
Robert Naumann 2022-11-02 19:02:14 +01:00 committed by GitHub
parent 66030257b1
commit 36a7f0dc7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 3473 additions and 1869 deletions

View file

@ -20,7 +20,12 @@
#include "regedit.h"
BOOL ProcessCmdLine(LPWSTR lpCmdLine);
BOOL ProcessCmdLine(WCHAR *cmdline);
const WCHAR *reg_class_namesW[] = {L"HKEY_LOCAL_MACHINE", L"HKEY_USERS",
L"HKEY_CLASSES_ROOT", L"HKEY_CURRENT_CONFIG",
L"HKEY_CURRENT_USER", L"HKEY_DYN_DATA"
};
/*******************************************************************************
* Global Variables:
@ -190,7 +195,7 @@ BOOL TranslateChildTabMessage(PMSG msg)
return TRUE;
}
int APIENTRY wWinMain(HINSTANCE hInstance,
int WINAPI wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,
int nCmdShow)
@ -201,11 +206,11 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance);
/* Initialize global strings */
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, COUNT_OF(szTitle));
LoadStringW(hInstance, IDC_REGEDIT_FRAME, szFrameClass, COUNT_OF(szFrameClass));
LoadStringW(hInstance, IDC_REGEDIT, szChildClass, COUNT_OF(szChildClass));
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, ARRAY_SIZE(szTitle));
LoadStringW(hInstance, IDC_REGEDIT_FRAME, szFrameClass, ARRAY_SIZE(szFrameClass));
LoadStringW(hInstance, IDC_REGEDIT, szChildClass, ARRAY_SIZE(szChildClass));
if (ProcessCmdLine(lpCmdLine))
if (ProcessCmdLine(GetCommandLineW()))
{
return 0;
}