Opened 17 years ago

Closed 17 years ago

#228 closed defect (fixed)

Resetting INI file attributes causes trap

Reported by: John Small Owned by: John Small
Priority: minor Milestone: Release_3.10
Component: fm/2 base Version:
Keywords: Cc:

Description

FM/2 traps when it tries to reset attributes of the FM3.INI file.

Change History (6)

comment:1 by John Small, 17 years ago

Status: newassigned

comment:2 by John Small, 17 years ago

Milestone: Release_3.10

Running the debugger I found that the buffer being passed to xDosSetPathInfo crossed a 64K boundary (0x000bfff4).

After reading the comments preceding the function, figured that the traps were due to this fact. Changing the code to ALWAYS copy the buffer to a local (stack) buffer stopped the traps.

comment:3 by John Small, 17 years ago

Summary: Restting INI file attributes causes trapResetting INI file attributes causes trap

comment:4 by John Small, 17 years ago

A change has been committed which seems to fix this.

The fix depends on the fact that the buffer passed to xDosSetPathInfo has been allocated on the stack and that the stack has not grown by nearly 64K since then.

comment:5 by John Small, 17 years ago

Changes have been committed which fix the immediate problem. This ticket will be closed soon unless bugs are found.

comment:6 by John Small, 17 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.