Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't save correctly #1

Open
everedit opened this issue Oct 17, 2012 · 2 comments
Open

Couldn't save correctly #1

everedit opened this issue Oct 17, 2012 · 2 comments
Assignees

Comments

@everedit
Copy link

HexView/sequence.cpp 334 line:

MoveFileEx(newname, origfile_name, MOVEFILE_REPLACE_EXISTING|MOVEFILE_COPY_ALLOWED);

This function will always be unsuccessful. Because you didn't close the handle of current file.

@ghost ghost assigned strobejb Oct 17, 2012
@strobejb
Copy link
Owner

Thanks, I'll do some testing on this and make a fix

@everedit
Copy link
Author

HexView\sequence.cpp\Line 300:

// has a new filename been specified?
if(filename)
{
// open the new file?
hFile = allocfile(filename, sequence_length);
}


If current file was opened as HVOF_QUICKLOAD, allocfile will return an invalid handle and then this method faild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants