Changeset 16173


Ignore:
Timestamp:
Apr 27, 2001, 10:19:56 PM (24 years ago)
Author:
sandervl
Message:

compile fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/ole32/regsvr32.cpp

    r11583 r16173  
    1 /* $Id: regsvr32.cpp,v 1.3 1999-09-20 20:38:20 davidr Exp $ */
     1/* $Id: regsvr32.cpp,v 1.4 2001-04-27 20:19:56 sandervl Exp $ */
    22/*
    33 *
     
    2020#include <string.h>
    2121#include <ctype.h>
    22 
     22#include <heapstring.h>
    2323
    2424// ======================================================================
     
    184184static  HRESULT load_object(void)
    185185{
    186     hdlObject = CoLoadLibrary(szFile, 1);
     186    LPOLESTR libnameW = (LPOLESTR)HEAP_strdupAtoW(GetProcessHeap(), 0, szFile);
     187    hdlObject = CoLoadLibrary(libnameW, TRUE);
     188    HeapFree(GetProcessHeap(), 0, libnameW);
    187189    if (hdlObject == 0)
    188190        return report_err(S_FALSE, "Failed to load '%s'", szFile);
Note: See TracChangeset for help on using the changeset viewer.