jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

if i pass the short name for the path to crash report, it failed to create the directory #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got this error, when the path for crpData.pszErrorReportSaveDir 
paramter contains the unicode letters. 
pszErrorReportSaveDir = %tmp%/Folder 
And %tmp% contains unicode letter. 

I install the crash report for 4 exes, they share the same path, only 
two of them have the problem, the others work fine. 

Found problems, I think. 
1. refer to here: 
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#shor... 
windows have short name, if i pass the short name for the path to 
crash report, it failed to create the directory. 
Solution: i try the GetLongPathName, it works then. 
2. if the base path is not existed, it failed to create the directory, 
etc. D:\tmp\test\crash 
if D:\tmp\test doesn't exist, it will fail. 

Original issue reported on code.google.com by zexspect...@gmail.com on 4 Mar 2011 at 4:56

GoogleCodeExporter commented 9 years ago
Fixed in v.1.2.9

Original comment by zexspect...@gmail.com on 2 Apr 2011 at 7:00