On STATUS_PENDING, use capacity instead of OUT size for syscall writes.
On STATUS_PENDING, use capacity instead of OUT size for syscall writes.

Fixes issue 798.

The actual write occurs sometime between the syscall and the event
completion, but for now we model it as occurring at the point of the
syscall.  i#410 covers intercepting the event completion to accurately
model async writes.

git-svn-id: fe3cd4388a6e5a968b09397a3d721fe124e8117a@772 5b54908e-ead4-fc18-b48a-0285e6dbc711

rnk/drmemory,rnk/drmemory,rnk/drmemory,rnk/drmemory