Closed Bug 493253 Opened 17 years ago Closed 17 years ago

VMPI/SpyUtilsWin/WriteOnNamedSignal incorrect cast

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tharwood, Unassigned)

Details

Attachments

(1 file)

Subject routine casts the buffer passed to FormatMessageA as LPTSTR. This fails when the compiler's set to use Unicode types for TCHAR. Since the call is explicitly to FormatMessageA, the cast should be a corresponding cast to LPSTR. (From quick inspection, call to FormatMessageA looks appropriate for the input data, but a comment that the is specifically processing ASCII data would not be amiss).
Is this in current redux tip? I thought a fix for this was pushed recently.
Yep, just pulled it.
Attached patch Proposed patch — — Splinter Review
Changes the cast to be ASCII-specific.
Attachment #377727 - Flags: review?(rishah)
Attachment #377727 - Flags: review?(rishah) → review+
pushed 1894:df2640659d34
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Resolved fixed engineering / work item that has been pushed. Setting status to verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: