Skip to content

FontCharsClass::Store_GDI_Char() crashes if pointersize is 0. #1790

@Skyaero42

Description

@Skyaero42

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

If PointerSize = 0 it causes a division by zero further on.

Recommended solution: catch the division by zero and add an assert.

Reproduction Steps

n/a

Additional Context

No response

Metadata

Metadata

Assignees

Labels

BugSomething is not working right, typically is user facingMinorSeverity: Minor < Major < Critical < Blocker

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions