if (shortname)
-            lstrcpynA(pfd->cAlternateFileName, shortname, MAX_PATH);
+            lstrcpynA(pfd->cAlternateFileName, shortname, 14);

sizeof(*pfd->cAlternateFileName) would be better than the magic 14 here.

-- 
Francois Gouget <[EMAIL PROTECTED]>              http://fgouget.free.fr/
     You can have my guns when you pry them from my kids cold, dead hands.


Reply via email to