mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
[SETUPLIB][USETUP] Use NT RTL String Safe functions instead of Win32-oriented ones (and remove usage of HRESULT too).
Based on: svn path=/branches/setup_improvements/; revision=75755 svn path=/branches/setup_improvements/; revision=75757
This commit is contained in:
parent
254aa472e8
commit
48aab0fb20
10 changed files with 69 additions and 70 deletions
|
@ -34,9 +34,6 @@
|
|||
|
||||
#include "registry.h"
|
||||
|
||||
// HACK!
|
||||
#include <strsafe.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
@ -1098,8 +1095,8 @@ RegCleanupRegistry(
|
|||
|
||||
CombinePaths(SrcPath, ARRAYSIZE(SrcPath), 3,
|
||||
InstallPath->Buffer, L"System32\\config", RegistryHives[i].HiveName);
|
||||
StringCchCopyW(DstPath, ARRAYSIZE(DstPath), SrcPath);
|
||||
StringCchCatW(DstPath, ARRAYSIZE(DstPath), L".sav");
|
||||
RtlStringCchCopyW(DstPath, ARRAYSIZE(DstPath), SrcPath);
|
||||
RtlStringCchCatW(DstPath, ARRAYSIZE(DstPath), L".sav");
|
||||
|
||||
DPRINT1("Copy hive: %S ==> %S\n", SrcPath, DstPath);
|
||||
Status = SetupCopyFile(SrcPath, DstPath, FALSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue