Changeset 7343 for trunk/src/ole32
- Timestamp:
- Nov 14, 2001, 7:50:18 PM (24 years ago)
- Location:
- trunk/src/ole32
- Files:
-
- 2 edited
-
compobj.c (modified) (4 diffs)
-
storage32.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/compobj.c
r7335 r7343 539 539 CLSID *id /* [out] GUID represented by above string */ 540 540 ) { 541 #ifdef __WIN32OS2__542 HRESULT ret;543 LPOLESTR16 xid;544 STACK_strdupWtoA(idstr, xid)545 ret = CLSIDFromString16( (LPOLESTR16)xid,id);546 if(ret != S_OK) { /* It appears a ProgID is also valid */547 ret = CLSIDFromProgID(idstr, id);548 }549 return ret;550 #else551 541 LPOLESTR16 xid = HEAP_strdupWtoA(GetProcessHeap(),0,idstr); 552 542 HRESULT ret = CLSIDFromString16(xid,id); 543 553 544 HeapFree(GetProcessHeap(),0,xid); 554 545 if(ret != S_OK) { /* It appears a ProgID is also valid */ … … 556 547 } 557 548 return ret; 558 #endif559 549 } 560 550 … … 789 779 LPCLSID riid /* [out] associated CLSID */ 790 780 ) { 791 #ifdef __WIN32OS2__792 LPOLESTR16 pid;793 STACK_strdupWtoA(progid, pid)794 return CLSIDFromProgID16((LPOLESTR16)pid,riid);795 #else796 781 LPOLESTR16 pid = HEAP_strdupWtoA(GetProcessHeap(),0,progid); 797 782 HRESULT ret = CLSIDFromProgID16(pid,riid); … … 799 784 HeapFree(GetProcessHeap(),0,pid); 800 785 return ret; 801 #endif802 786 } 803 787 -
trunk/src/ole32/storage32.c
r7335 r7343 1178 1178 ULONG propertyIndex; 1179 1179 ULONG lastProperty = 0; 1180 1181 1180 ULONG blockCount = 0; 1182 1181 … … 7049 7048 StgIsStorageFile(LPCOLESTR fn) 7050 7049 { 7051 #ifdef __WIN32OS2__7052 LPOLESTR16 xfn;7053 STACK_strdupWtoA(fn, xfn)7054 return StgIsStorageFile16((LPOLESTR16)xfn);7055 #else7056 7050 LPOLESTR16 xfn = HEAP_strdupWtoA(GetProcessHeap(),0,fn); 7057 7051 HRESULT ret = StgIsStorageFile16(xfn); 7052 7058 7053 HeapFree(GetProcessHeap(),0,xfn); 7059 7054 return ret; 7055 } 7060 7056 #endif 7061 }7062 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
