microsoft / microsoft/Windows-classic-samples

[Win7Sample.OleDb.RowsetViewer] SafeArrayToString does not append wEOL symbol.

Open
#291 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

When I was using the debug build of RowsetViewer I noticed that it displayed the strange data of Array column:

image

As I understand, SafeArrayToString must append wEOL symbol in result string but does not do it:

https://github.com/microsoft/Windows-classic-samples/blob/7cbd99ac1d2b4a0beffbaba29ea63d024ceff700/Samples/Win7Samples/dataaccess/oledb/rowsetviewer/common.cpp#L1051

This function is called from here:
https://github.com/microsoft/Windows-classic-samples/blob/7cbd99ac1d2b4a0beffbaba29ea63d024ceff700/Samples/Win7Samples/dataaccess/oledb/rowsetviewer/common.cpp#L563-L571

If SafeArrayToString adds wEOL symbol in the result string, it works well:

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect SafeArrayToString in Samples/Win7Samples/dataaccess/oledb/rowsetviewer/common.cpp around line 1051, then follow its caller around lines 563-571. Reproduce the reported array-column display in the RowsetViewer debug build and verify that the resulting output includes the requested line-ending behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
database, desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.