#61 Error code 0x16 opening file from command line

open
nobody
5
2013-02-20
2013-02-20
Anonymous
No

Windows XP (32-bit) SP3 fully patched. frhed 1.6.0.

Suppose frhed.exe is used to open a file with the Windows Explorer "Open With>" context menu item, or by another method (command line, Start>Run dialog) that launches frhed with a command line like this:

"C:\Program Files\frhed\FRHED.exe" C:\Documents and Settings\user\somewhere\somefile

Then frhed opens and displays an error message (x icon) like this:

Error code 0x16 occurred while opening file C:\Documents and Settings\user\somewhere\somefile.

Using Sysinternals Process Explorer you can see that the same type of command line is generated from "Open With".

Using Sysinternals Process Monitor you can see that frhed is trying to open a file named "C:\Documents and Settings\user\somewhere\C:\Documents and Settings\user\somewhere\somefile".

Perhaps this is a problem with the ResolveIt() function?

Discussion