Changeset 10172 for trunk/src


Ignore:
Timestamp:
Jul 16, 2003, 1:03:53 PM (22 years ago)
Author:
sandervl
Message:

KOM: DragQueryFileW; allocate more for unicode conversion (DBCS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shellole.c

    r8614 r10172  
    656656 
    657657            if(lpszwFile) {
     658#ifdef __WIN32OS2__
     659                lpszFileA = (LPSTR) HeapAlloc(GetProcessHeap(), 0, lLength * sizeof( WCHAR ));
     660#else
    658661                lpszFileA = (LPSTR) HeapAlloc(GetProcessHeap(), 0, lLength);
     662#endif
    659663                if(lpszFileA == NULL) {
    660664                    goto end;
    661665                }
    662666            }
     667#ifdef __WIN32OS2__
     668            i = DragQueryFileA(hDrop, lFile, lpszFileA, lLength * sizeof( WCHAR ));
     669#else
    663670            i = DragQueryFileA(hDrop, lFile, lpszFileA, lLength);
     671#endif
    664672
    665673            if(lpszFileA) {
Note: See TracChangeset for help on using the changeset viewer.