Changeset 7085 for trunk/src/shell32/shellord.c
- Timestamp:
- Oct 17, 2001, 11:15:22 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/shell32/shellord.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shellord.c
r7014 r7085 481 481 "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", 482 482 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); 484 485 *len = 0; 485 486 return ERROR_FILE_NOT_FOUND; … … 655 656 * key is stored in the DLL global data. 656 657 */ 657 RegOpenKeyExA(HKEY_CURRENT_USER,658 if (RegCreateKeyExA(HKEY_CURRENT_USER, 658 659 "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 } 662 664 663 665 /* Get path to user's "Recent" directory … … 669 671 IMalloc_Free(ppM, pidl); 670 672 } 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); 672 679 } 673 680 else { 674 681 /* serious issues */ 675 682 link_dir[0] = 0; 676 ERR("serious issues \n");683 ERR("serious issues 2\n"); 677 684 } 678 685 TRACE("Users Recent dir %s\n", link_dir); … … 1007 1014 /* launch a document by fileclass like 'Wordpad.Document.1' */ 1008 1015 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! */ 1010 1018 /* 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)); 1012 1020 /* fixme: get the extension of lpFile, check if it fits to the lpClass */ 1013 1021 TRACE("SEE_MASK_CLASSNAME->'%s'\n", szCommandline); … … 1462 1470 return 0; 1463 1471 } 1472 1473 /************************************************************************* 1474 * CIDLData_CreateFromIDArray[SHELL32.83] 1475 * 1476 * Create IDataObject from PIDLs?? 1477 */ 1478 HRESULT 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.
