Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-07-23
06:50 • Ticket [775976ffff] registry tests fail when built with VC7 status still Clo... artifact: 94698c8846 user: patthoyts
06:43 • Closed ticket [775976ffff]. artifact: 48de1fe4f2 user: patthoyts
2003-07-22
23:39 • New ticket [775976ffff]. artifact: a21e2f4d3a user: patthoyts

registry tests fail when built with VC7

Closed / Fixed775976ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-22 23:39:49
The registry package fails in 'registry set' when built
with the VC7 compiler.

The problem comes down to the lpClass parameter to
RegCreateKeyEx. Currently this is "" which is a const
literal string. However, the parameter is passed as a
LPTSTR which isn't const. With this compiler, this
causes an invalid memory access fault.

Using NULL fixes the problem.
patthoytsplain2003-07-23 06:43:16
Logged In: YES 
user_id=202636

I've checked this with VC6 and VC7 and committed the 4 char
fix to the head.
patthoytsplain2003-07-23 06:50:50
Logged In: YES 
user_id=202636

Backported the fix into the core-8-4-branch.
Log in (anonymous is fine) to add a comment.