Skip to content

DECIMAL to decimal conversion #1626

@harborsiem

Description

@harborsiem

Actual behavior

When using DECIMAL to decimal conversion from a stored DECIMAL inside a VARIANT or PROPVARIANT than Visual Studio Debugger can not show the converted decimal value.
I think this problem comes with optimization of conversion in issue #1512.

Expected behavior

The Debugger should show the correct decimal value.

Repro steps

  1. NativeMethods.txt content:
VARIANT
PROPVARIANT
VARENUM
DECIMAL
  1. NativeMethods.json content (if present):
  1. Any of your own code that should be shared?
    See project

ConsoleApp1.zip
Set a breakpoint at the end of Program.Main and have a look with the debugger to the variables result and correct.

Context

  • CsWin32 version: [0.3.264]
  • Win32Metadata version (if explicitly set by project):
  • Target Framework: [net8.0]
  • LangVersion (if explicitly set by project): [e.g. 9]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions