mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:35:40 +00:00
[REACTOS] Fix misc 64 bit issues (#783)
* [WIN32K] Fix handle calculation in DbgGdiHTIntegrityCheck * [NOTEPAD] Fix MSVC warnings * [PSDK] Simplify *PROC definitions in windef.h * [VIDEOPRT] Don't try to use NtVdmControl on x64 * [FREELDR] Fix some macros * [CRT] Make qsort 64 bit compatible * [NTOS] Use #ifndef _WIN64 instead of #ifdef _M_IX86 around C_ASSERTs * [FAST486] Fix 64 bit warnings and change DWORD to ULONG, so it can be used in kernel mode * [APPHELP_APITEST] Fix 64 bit issue
This commit is contained in:
parent
d67156fa98
commit
cfd1647914
16 changed files with 54 additions and 42 deletions
|
@ -342,10 +342,10 @@ ViewTree_LoadTree(HKEY hKey, LPCWSTR pszKeyName, DWORD dwParentID)
|
|||
else
|
||||
{
|
||||
// HKeyRoot
|
||||
Value = DWORD(HKEY_CURRENT_USER);
|
||||
Size = sizeof(Value);
|
||||
RegQueryValueExW(hKey, L"HKeyRoot", NULL, NULL, LPBYTE(&Value), &Size);
|
||||
pEntry->hkeyRoot = HKEY(Value);
|
||||
HKEY HKeyRoot = HKEY_CURRENT_USER;
|
||||
Size = sizeof(HKeyRoot);
|
||||
RegQueryValueExW(hKey, L"HKeyRoot", NULL, NULL, LPBYTE(&HKeyRoot), &Size);
|
||||
pEntry->hkeyRoot = HKeyRoot;
|
||||
|
||||
// RegPath
|
||||
pEntry->szRegPath[0] = 0;
|
||||
|
@ -782,7 +782,7 @@ ViewDlg_RestoreDefaults(HWND hwndDlg)
|
|||
continue;
|
||||
}
|
||||
RegSetValueExW(hKey, pEntry->szValueName, 0, REG_DWORD,
|
||||
LPBYTE(pEntry->dwDefaultValue), sizeof(DWORD));
|
||||
LPBYTE(&pEntry->dwDefaultValue), sizeof(DWORD));
|
||||
RegCloseKey(hKey);
|
||||
|
||||
// update check status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue