~ubuntu-branches/ubuntu/precise/wine1.4/precise

« back to all changes in this revision

Viewing changes to dlls/rpcrt4/rpc_server.c

  • Committer: Package Import Robot
  • Author(s): Scott Ritchie
  • Date: 2012-02-15 23:48:21 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120215234821-1uy0h2zvj27oyfjr
Tags: 1.4~rc4-0ubuntu1
* New upstream release
  - Bug fixes only, we are in code freeze.
* debian/control:
  - On amd64, depend on wine1.4-i386 | wine1.4-dev
    This is a compromise to allow the build daemons to use wine1.4-dev on amd64
  - On amd64, recommend wine1.4-i386.  This should make it installed except
    in exceptional circumstances (eg installation during archive skew)

Show diffs side-by-side

added added

removed removed

Lines of Context:
539
539
  RpcPacket *pkt = the_arg;
540
540
  RPCRT4_process_packet(pkt->conn, pkt->hdr, pkt->msg, pkt->auth_data,
541
541
                        pkt->auth_length);
 
542
  RPCRT4_ReleaseConnection(pkt->conn);
542
543
  HeapFree(GetProcessHeap(), 0, pkt);
543
544
  return 0;
544
545
}
585
586
        HeapFree(GetProcessHeap(), 0, auth_data);
586
587
        goto exit;
587
588
      }
588
 
      packet->conn = conn;
 
589
      packet->conn = RPCRT4_GrabConnection( conn );
589
590
      packet->hdr = hdr;
590
591
      packet->msg = msg;
591
592
      packet->auth_data = auth_data;
621
622
    }
622
623
  }
623
624
exit:
624
 
  RPCRT4_DestroyConnection(conn);
 
625
  RPCRT4_ReleaseConnection(conn);
625
626
  return 0;
626
627
}
627
628
 
631
632
  if (!thread) {
632
633
    DWORD err = GetLastError();
633
634
    ERR("failed to create thread, error=%08x\n", err);
634
 
    RPCRT4_DestroyConnection(conn);
 
635
    RPCRT4_ReleaseConnection(conn);
635
636
  }
636
637
  /* we could set conn->thread, but then we'd have to make the io_thread wait
637
638
   * for that, otherwise the thread might finish, destroy the connection, and