Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
a134b760
Commit
a134b760
authored
9 years ago
by
Brian Carrier
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of github.com:sleuthkit/sleuthkit into develop
parents
6dc17399
323c3ae4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
rejistry++/src/VKRecord.cpp
+5
-1
5 additions, 1 deletion
rejistry++/src/VKRecord.cpp
rejistry++/src/VKRecord.h
+3
-1
3 additions, 1 deletion
rejistry++/src/VKRecord.h
rejistry++/src/ValueListRecord.cpp
+4
-1
4 additions, 1 deletion
rejistry++/src/ValueListRecord.cpp
with
12 additions
and
3 deletions
rejistry++/src/VKRecord.cpp
+
5
−
1
View file @
a134b760
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
namespace
Rejistry
{
namespace
Rejistry
{
const
std
::
string
VKRecord
::
MAGIC
=
"vk"
;
const
std
::
string
VKRecord
::
MAGIC
=
"vk"
;
const
std
::
wstring
VKRecord
::
DEFAULT_VALUE_NAME
=
L"(Default)"
;
VKRecord
::
VKRecord
(
RegistryByteBuffer
*
buf
,
uint32_t
offset
)
:
Record
(
buf
,
offset
)
{
VKRecord
::
VKRecord
(
RegistryByteBuffer
*
buf
,
uint32_t
offset
)
:
Record
(
buf
,
offset
)
{
if
(
!
(
getMagic
()
==
MAGIC
))
{
if
(
!
(
getMagic
()
==
MAGIC
))
{
...
@@ -41,6 +42,9 @@ namespace Rejistry {
...
@@ -41,6 +42,9 @@ namespace Rejistry {
}
}
}
}
VKRecord
::
VKRecord
(
const
VKRecord
&
sourceRecord
)
:
Record
(
sourceRecord
.
_buf
,
sourceRecord
.
_offset
)
{
}
bool
VKRecord
::
hasName
()
const
{
bool
VKRecord
::
hasName
()
const
{
return
(
getWord
(
NAME_LENGTH_OFFSET
)
!=
0x0
);
return
(
getWord
(
NAME_LENGTH_OFFSET
)
!=
0x0
);
}
}
...
@@ -51,7 +55,7 @@ namespace Rejistry {
...
@@ -51,7 +55,7 @@ namespace Rejistry {
std
::
wstring
VKRecord
::
getName
()
const
{
std
::
wstring
VKRecord
::
getName
()
const
{
if
(
!
hasName
())
{
if
(
!
hasName
())
{
return
L""
;
return
VKRecord
::
DEFAULT_VALUE_NAME
;
}
}
uint32_t
nameLength
=
getWord
(
NAME_LENGTH_OFFSET
);
uint32_t
nameLength
=
getWord
(
NAME_LENGTH_OFFSET
);
...
...
This diff is collapsed.
Click to expand it.
rejistry++/src/VKRecord.h
+
3
−
1
View file @
a134b760
...
@@ -43,6 +43,8 @@ namespace Rejistry {
...
@@ -43,6 +43,8 @@ namespace Rejistry {
*/
*/
class
VKRecord
:
public
Record
{
class
VKRecord
:
public
Record
{
public:
public:
static
const
std
::
wstring
DEFAULT_VALUE_NAME
;
typedef
VKRecord
*
VKRecordPtr
;
typedef
VKRecord
*
VKRecordPtr
;
typedef
std
::
vector
<
VKRecordPtr
>
VKRecordPtrList
;
typedef
std
::
vector
<
VKRecordPtr
>
VKRecordPtrList
;
...
@@ -81,7 +83,7 @@ namespace Rejistry {
...
@@ -81,7 +83,7 @@ namespace Rejistry {
};
};
VKRecord
(
RegistryByteBuffer
*
buf
,
uint32_t
offset
);
VKRecord
(
RegistryByteBuffer
*
buf
,
uint32_t
offset
);
VKRecord
(
const
VKRecord
&
);
virtual
~
VKRecord
()
{}
virtual
~
VKRecord
()
{}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
rejistry++/src/ValueListRecord.cpp
+
4
−
1
View file @
a134b760
...
@@ -61,7 +61,10 @@ namespace Rejistry {
...
@@ -61,7 +61,10 @@ namespace Rejistry {
VKRecord
::
VKRecordPtrList
::
iterator
it
=
recordList
.
begin
();
VKRecord
::
VKRecordPtrList
::
iterator
it
=
recordList
.
begin
();
for
(;
it
!=
recordList
.
end
();
++
it
)
{
for
(;
it
!=
recordList
.
end
();
++
it
)
{
if
(
_wcsicmp
(
name
.
c_str
(),
(
*
it
)
->
getName
().
c_str
())
==
0
)
{
// If we have a name match or we are searching for the "default" entry
// (which matches a record with no name) we are done.
if
((
!
(
*
it
)
->
hasName
()
&&
name
==
VKRecord
::
DEFAULT_VALUE_NAME
)
||
(
_wcsicmp
(
name
.
c_str
(),
(
*
it
)
->
getName
().
c_str
())
==
0
))
{
// Create a copy of the record to return as the records
// Create a copy of the record to return as the records
// in the list will be deleted.
// in the list will be deleted.
foundRecord
=
new
VKRecord
(
*
(
*
it
));
foundRecord
=
new
VKRecord
(
*
(
*
it
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment