Background
I am taking a look at walking a buffer of change journal records so I can work with the change journal in my application. After running into some issues I used this stackoverflow question to figure out some build issues and get things building for windows 10.
Now that I have things running, I noticed I was getting blank filenames as output in my vscode debug console. Everything else is printing out with a value except the filename. Additionally, there are many change records showing up, It's not reporting bad information from what I can tell.
I have seen the blank filename issue before when working with FILE_DIRECTORY_INFORMATION structures, so I figured it was something as simple as a wide string not showing up properly. I have gone through it and it seems like everything is being used properly.
I tried constructing a wstring using the filename buffer and taking a substring from 0 to filenameLength, but that resulted in the same blank strings.
When I look at it with a debugger, I see a '\0' in the first wchar position of the Filename variable, but cannot see anything after that. And the FilenameOffset is 0, so it should be showing up right at the beginning of the buffer I would think.
Any ideas on why I am getting blank filenames? All code I am using is contained in the "Walking a Buffer of Change Journal Records" example above. I am running on windows 10.
More Information
Here is a sample screenshot of my output after stepping through and getting things building. The min and max major version is set to 16x which seems right I would think.