Ignore:
Timestamp:
Oct 17, 2001, 11:15:22 AM (24 years ago)
Author:
phaller
Message:

SHELL32 WINE resync

File:
1 edited

Legend:

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

    r7014 r7085  
    481481                          "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
    482482                          0, KEY_READ, &Policy_basekey)) {
    483             ERR("No Explorer Policies location\n");
     483            TRACE("No Explorer Policies location exists. Policy wanted=%s\n",
     484                  policy);
    484485            *len = 0;
    485486            return ERROR_FILE_NOT_FOUND;
     
    655656     *        key is stored in the DLL global data.
    656657     */
    657     RegOpenKeyExA(HKEY_CURRENT_USER,
     658    if (RegCreateKeyExA(HKEY_CURRENT_USER,
    658659                  "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer",
    659                   0,
    660                   KEY_READ,
    661                   &HCUbasekey);
     660                  0, 0, 0, KEY_READ, 0, &HCUbasekey ,0)) {
     661      ERR("Failed to create 'Software\\Microsoft\\Windows\\CurrentVersion\\Explorer'\n");
     662      return 0;
     663    }
    662664
    663665    /* Get path to user's "Recent" directory
     
    669671            IMalloc_Free(ppM, pidl);
    670672        }
    671         IMalloc_Release(ppM);
     673        else {
     674            /* serious issues */
     675            link_dir[0] = 0;
     676            ERR("serious issues 1\n");
     677        }
     678        IMalloc_Release(ppM);
    672679    }
    673680    else {
    674681        /* serious issues */
    675682        link_dir[0] = 0;
    676         ERR("serious issues\n");
     683        ERR("serious issues 2\n");
    677684    }
    678685    TRACE("Users Recent dir %s\n", link_dir);
     
    10071014        /* launch a document by fileclass like 'Wordpad.Document.1' */
    10081015        if (sei->fMask & SEE_MASK_CLASSNAME)
    1009         {
     1016        {
     1017        /* FIXME: szCommandline should not be of a fixed size. Plus MAX_PATH is way too short! */
    10101018          /* the commandline contains 'c:\Path\wordpad.exe "%1"' */
    1011           HCR_GetExecuteCommand(sei->lpClass, (sei->lpVerb) ? sei->lpVerb : "open", szCommandline, 256);
     1019          HCR_GetExecuteCommand(sei->lpClass, (sei->lpVerb) ? sei->lpVerb : "open", szCommandline, sizeof(szCommandline));
    10121020          /* fixme: get the extension of lpFile, check if it fits to the lpClass */
    10131021          TRACE("SEE_MASK_CLASSNAME->'%s'\n", szCommandline);
     
    14621470        return 0;
    14631471}
     1472
     1473/*************************************************************************
     1474*      CIDLData_CreateFromIDArray[SHELL32.83]
     1475*
     1476*  Create IDataObject from PIDLs??
     1477*/
     1478HRESULT WINAPI CIDLData_CreateFromIDArray(
     1479                                          LPCITEMIDLIST pidlFolder,
     1480                                          DWORD cpidlFiles,
     1481                                          LPCITEMIDLIST *lppidlFiles,
     1482                                          LPDATAOBJECT *ppdataObject)
     1483{
     1484  INT i;
     1485  HWND hwnd = 0;   /*FIXME: who should be hwnd of owner? set to desktop */
     1486  BOOL boldpidl;
     1487 
     1488  if (TRACE_ON(shell)) {
     1489    TRACE("(%p, %ld, %p, %p)\n", pidlFolder, cpidlFiles,
     1490          lppidlFiles, ppdataObject);
     1491    boldpidl = TRACE_ON(pidl);
     1492    __SET_DEBUGGING(__DBCL_TRACE, __wine_dbch_shell, FALSE);
     1493    __SET_DEBUGGING(__DBCL_TRACE, __wine_dbch_pidl, TRUE);
     1494    pdump (pidlFolder);
     1495    for (i=0; i<cpidlFiles; i++){
     1496      pdump (lppidlFiles[i]);
     1497    }
     1498    __SET_DEBUGGING(__DBCL_TRACE, __wine_dbch_shell, TRUE);
     1499    __SET_DEBUGGING(__DBCL_TRACE, __wine_dbch_pidl, boldpidl);
     1500  }
     1501  *ppdataObject = IDataObject_Constructor( hwnd, pidlFolder,
     1502                                          lppidlFiles, cpidlFiles);
     1503  if (*ppdataObject) return S_OK;
     1504  return E_OUTOFMEMORY;
     1505}
Note: See TracChangeset for help on using the changeset viewer.