Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
Description
Created an attachment (id=7570)
write enhancements
What I found out with the original code is that it used the WCHAR variable 'path' to not only be used for finding the path for the wordpad program, but if there was an error, it used the same exact variable. In hindsight, it used less memory since only one variable was used, but it actually made the code harder to read.
Also, I have removed the 'goto failure' code and replaced it with a function since the error message code is used twice and should be just as memory efficient.