Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvain Joubert
KWSys
Commits
d4bdcac7
Commit
d4bdcac7
authored
19 years ago
by
Andy Cedilnik
Browse files
Options
Downloads
Patches
Plain Diff
COMP: Remove problem on borland
parent
0d264b5f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Registry.cxx
+4
-7
4 additions, 7 deletions
Registry.cxx
with
4 additions
and
7 deletions
Registry.cxx
+
4
−
7
View file @
d4bdcac7
...
...
@@ -88,13 +88,10 @@ protected:
bool
m_SubKeySpecified
;
Registry
::
RegistryType
m_RegistryType
;
static
const
int
BUFFER_SIZE
;
};
//----------------------------------------------------------------------------
const
in
t
Registry
Helper
::
BUFFER_SIZE
=
8192
;
#def
in
e
Registry
_
BUFFER_SIZE 8192
//----------------------------------------------------------------------------
Registry
::
Registry
(
Registry
::
RegistryType
registryType
)
...
...
@@ -427,11 +424,11 @@ bool RegistryHelper::Open(const char *toplevel, const char *subkey,
}
res
=
true
;
char
buffer
[
BUFFER_SIZE
];
char
buffer
[
Registry_
BUFFER_SIZE
];
while
(
!
ifs
->
fail
()
)
{
int
found
=
0
;
ifs
->
getline
(
buffer
,
BUFFER_SIZE
);
ifs
->
getline
(
buffer
,
Registry_
BUFFER_SIZE
);
if
(
ifs
->
fail
()
||
ifs
->
eof
()
)
{
break
;
...
...
@@ -547,7 +544,7 @@ bool RegistryHelper::ReadValue(const char *skey, char *value)
int
res
=
1
;
DWORD
dwType
,
dwSize
;
dwType
=
REG_SZ
;
dwSize
=
BUFFER_SIZE
;
dwSize
=
Registry_
BUFFER_SIZE
;
res
=
(
RegQueryValueEx
(
this
->
HKey
,
skey
,
NULL
,
&
dwType
,
(
BYTE
*
)
value
,
&
dwSize
)
==
ERROR_SUCCESS
);
return
(
res
!=
0
);
...
...
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