Cast the pointer to LONG_PTR instead of just long

Based on TortoiseSVN revision #23862.

(fixes issue #1607)

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Revert "If running on Win XP or Vista, use a smaller command line max length"

This reverts commit 9f1bf6e9976e12cc11720462845dfe63a414fd5b.

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Use more LONG_PTR instead of LONG

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>