STRTOWSTR Truncation | developer.brewmp.com STRTOWSTR Truncation | developer.brewmp.com

Developer

STRTOWSTR Truncation

Forums:

K, I'm copying AEEFS_CARD0_DIR ("fs:/card0/") to a 'path' variable.

Such that
AECHAR path[25];
STRTOWSTR( AEEFS_CARD0_DIR, path, 11);

results in path containing "fs:/"

What gives?

Change 11 to 50. All sizes of WSTR conversion functions are in bytes, not AECHARs. I've made this error enough times, I should know...
.

Change 11 to 50. All sizes of WSTR conversion functions are in bytes, not AECHARs. I've made this error enough times, I should know...
.

Oh, fantastic! Your solution worked! Thanks

Oh, fantastic! Your solution worked! Thanks