Mercurial > hg > xemacs-beta
comparison src/nt.c @ 4638:5bbff3553494
mswindows_link had off-by-one error. <1vq2brxz.wl_Ron.Isaacson@morganstanley.com>
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Fri, 05 Jun 2009 21:48:41 +0900 |
parents | 866b84b7c97e |
children | 6e6f7b79c1fc |
comparison
equal
deleted
inserted
replaced
4637:00dca3ddee6d | 4638:5bbff3553494 |
---|---|
1125 DWORD wbytes = 0; | 1125 DWORD wbytes = 0; |
1126 | 1126 |
1127 wcscpy (data.wid.cStreamName, newuni); | 1127 wcscpy (data.wid.cStreamName, newuni); |
1128 data.wid.dwStreamId = BACKUP_LINK; | 1128 data.wid.dwStreamId = BACKUP_LINK; |
1129 data.wid.dwStreamAttributes = 0; | 1129 data.wid.dwStreamAttributes = 0; |
1130 data.wid.Size.LowPart = wlen; /* in bytes, not chars! */ | 1130 /* Include the trailing null. In bytes, not chars! */ |
1131 data.wid.Size.LowPart = wlen + sizeof (WCHAR); | |
1131 data.wid.Size.HighPart = 0; | 1132 data.wid.Size.HighPart = 0; |
1132 data.wid.dwStreamNameSize = 0; | 1133 data.wid.dwStreamNameSize = 0; |
1133 | 1134 |
1134 if (BackupWrite (fileh, (LPBYTE)&data, | 1135 if (BackupWrite (fileh, (LPBYTE)&data, |
1135 offsetof (WIN32_STREAM_ID, cStreamName) | 1136 offsetof (WIN32_STREAM_ID, cStreamName) |