Ignore:
Timestamp:
Aug 30, 2000, 3:54:57 PM (25 years ago)
Author:
sandervl
Message:

complete merge with shell32 from wine 20000801

File:
1 edited

Legend:

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

    r4088 r4121  
    1 /* $Id: shellpath.c,v 1.1 2000-08-24 12:01:42 sandervl Exp $ */
    2 
     1/* $Id: shellpath.c,v 1.2 2000-08-30 13:51:02 sandervl Exp $ */
    32/*
    4  * Win32 SHELL32 for OS/2
    5  *
    6  * Copyright 1997 Marcus Meissner
    7  * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
    8  * Project Odin Software License can be found in LICENSE.TXT
    9  *
    103 * Path Functions
    11  *
    12  * NOTE: SHGetSpecialFolderPathA: StartMenu changed in 'Start Menu'
    13  *       Odin changes in #ifdef __WIN32OS2__ statements!
    144 *
    155 * Many of this functions are in SHLWAPI.DLL also
    166 *
    17  * Corel WINE 20000324 level (without CRTDLL_* calls)
    18  */
    19 
    20 
    21 /*****************************************************************************
    22  * Includes                                                                  *
    23  *****************************************************************************/
    24 
     7 */
     8#ifdef __WIN32OS2__
     9#define ICOM_CINTERFACE 1
    2510#include <odin.h>
    26 #include <odinwrap.h>
    27 #include <os2sel.h>
    28 
     11#endif
    2912#include <string.h>
    3013#include <ctype.h>
    31 #include <wctype.h>
    32 #define HAVE_WCTYPE_H
    33 #include <odin.h>
    34 
    35 #define ICOM_CINTERFACE 1
    36 #define CINTERFACE 1
    37 
    3814#include "debugtools.h"
    3915#include "winnls.h"
    40 #include "winversion.h"
    4116#include "winreg.h"
    42 #include "crtdll.h"
    4317
    4418#include "shlobj.h"
    4519#include "shell32_main.h"
    46 #include <shlwapi.h>
    47 #include <wine/undocshell.h>
    48 
    49 #include <heapstring.h>
    50 #include <misc.h>
    51 
    52 
    53 ODINDEBUGCHANNEL(SHELL32-SHELLPATH)
    54 
     20#include "windef.h"
     21#include "options.h"
     22#include "wine/undocshell.h"
     23#include "wine/unicode.h"
     24#include "shlwapi.h"
     25
     26DEFAULT_DEBUG_CHANNEL(shell);
    5527
    5628#define isSlash(x) ((x)=='\\' || (x)=='/')
     
    509481    return TRUE;
    510482}
    511 
     483#ifdef __WIN32OS2__
    512484/*************************************************************************
    513485 * PathYetAnotherMakeUniqueNameA [SHELL32.75]
     
    537509        return PathYetAnotherMakeUniqueNameA(lpszBuffer, lpszPathName, lpszShortName,lpszLongName);
    538510}
    539 
     511#endif
    540512
    541513/*
     
    554526
    555527/*************************************************************************
    556  * PathCleanupSpecA     [SHELL32.171]
    557  */
    558 DWORD WINAPI PathCleanupSpecA(LPSTR x, LPSTR y)
    559 {
    560         FIXME("(%p %s, %p %s) stub\n",x,debugstr_a(x),y,debugstr_a(y));
    561         return TRUE;
    562 }
    563 
    564 /*************************************************************************
    565  * PathCleanupSpecA     [SHELL32]
    566  */
    567 DWORD WINAPI PathCleanupSpecW(LPWSTR x, LPWSTR y)
    568 {
    569         FIXME("(%p %s, %p %s) stub\n",x,debugstr_w(x),y,debugstr_w(y));
    570         return TRUE;
    571 }
    572 
    573 /*************************************************************************
    574528 * PathCleanupSpecAW    [SHELL32]
    575529 */
    576530DWORD WINAPI PathCleanupSpecAW (LPVOID x, LPVOID y)
    577531{
    578         if (VERSION_OsIsUnicode())
    579           return PathCleanupSpecW(x,y);
    580         return PathCleanupSpecA(x,y);
     532    FIXME("(%p, %p) stub\n",x,y);
     533    return TRUE;
    581534}
    582535
     
    674627        FIXME("(%s, %p, 0x%04lx, 0x%04lx) stub\n",
    675628        debugstr_w(lpszPath), lpszBuff, dwBuffSize, dwFlags);
    676         lstrcpyW(lpszBuff, lpszPath);
     629        strcpyW(lpszBuff, lpszPath);
    677630        return 0;
    678631}
     
    705658}
    706659
     660
    707661/*************************************************************************
    708662 * SHGetSpecialFolderPathA [SHELL32.175]
     
    804758            hRootKey = HKEY_CURRENT_USER;
    805759            strcpy(szValueName, "Programs");
    806             strcpy(szDefaultPath, "Start Menu\\Programs");
     760            strcpy(szDefaultPath, "StartMenu\\Programs");
    807761            break;
    808762
     
    827781          case CSIDL_STARTMENU:
    828782            hRootKey = HKEY_CURRENT_USER;
    829 #ifdef __WIN32OS2__
    830             strcpy(szValueName, "Start Menu");
    831             strcpy(szDefaultPath, "Start Menu");
    832 #else
    833783            strcpy(szValueName, "StartMenu");
    834784            strcpy(szDefaultPath, "StartMenu");
    835 #endif
    836785            break;
    837786
    838787          case CSIDL_COMMON_STARTMENU:
    839788            hRootKey = HKEY_LOCAL_MACHINE;
    840             strcpy(szValueName, "Common StartMenu"); //TODO: Start Menu?
    841 #ifdef __WIN32OS2__
     789            strcpy(szValueName, "Common StartMenu");
    842790            strcpy(szDefaultPath, "StartMenu");
    843 #else
    844             strcpy(szDefaultPath, "Start Menu");
    845 #endif
    846791            break;
    847792
Note: See TracChangeset for help on using the changeset viewer.