fixed x64 weakness when using CreateFileMapping

This commit is contained in:
spacy51 2008-01-13 12:55:18 +00:00
parent ce88534871
commit b0c0ea1a5b
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ int InitLink(void){
setsockopt(lanlink.tcpsocket, IPPROTO_TCP, TCP_NODELAY, (char*)&disable, sizeof(BOOL));
if((mmf=CreateFileMapping((HANDLE)0xffffffff, NULL, PAGE_READWRITE, 0, sizeof(LINKDATA), "VBA link memory"))==NULL){
if((mmf=CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(LINKDATA), "VBA link memory"))==NULL){
closesocket(lanlink.tcpsocket);
WSACleanup();
MessageBox(NULL, "Error creating file mapping", "Error", MB_OK|MB_ICONEXCLAMATION);