Commit 553dd723 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Small indentation fixes.

parent 99faf747
...@@ -599,8 +599,9 @@ static LPSTR escape(LPCWSTR arg) ...@@ -599,8 +599,9 @@ static LPSTR escape(LPCWSTR arg)
len += WideCharToMultiByte(CP_UNIXCP, 0, arg, -1, NULL, 0, NULL, NULL); len += WideCharToMultiByte(CP_UNIXCP, 0, arg, -1, NULL, 0, NULL, NULL);
narg = HeapAlloc(GetProcessHeap(), 0, len); narg = HeapAlloc(GetProcessHeap(), 0, len);
x = narg; x = narg;
while (*arg) { while (*arg)
{
n = WideCharToMultiByte(CP_UNIXCP, 0, arg, 1, x, len, NULL, NULL); n = WideCharToMultiByte(CP_UNIXCP, 0, arg, 1, x, len, NULL, NULL);
x += n; x += n;
len -= n; len -= n;
...@@ -742,7 +743,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link ) ...@@ -742,7 +743,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
char *escaped_path = NULL, *escaped_args = NULL, *escaped_description = NULL; char *escaped_path = NULL, *escaped_args = NULL, *escaped_description = NULL;
WCHAR szDescription[INFOTIPSIZE], szPath[MAX_PATH], szWorkDir[MAX_PATH]; WCHAR szDescription[INFOTIPSIZE], szPath[MAX_PATH], szWorkDir[MAX_PATH];
WCHAR szArgs[INFOTIPSIZE], szIconPath[MAX_PATH]; WCHAR szArgs[INFOTIPSIZE], szIconPath[MAX_PATH];
int iIconId = 0, r; int iIconId = 0, r = -1;
DWORD csidl = -1; DWORD csidl = -1;
if ( !link ) if ( !link )
...@@ -763,7 +764,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link ) ...@@ -763,7 +764,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
} }
szWorkDir[0] = 0; szWorkDir[0] = 0;
IShellLinkW_GetWorkingDirectory(sl, szWorkDir, MAX_PATH); IShellLinkW_GetWorkingDirectory( sl, szWorkDir, MAX_PATH );
WINE_TRACE("workdir : %s\n", wine_dbgstr_w(szWorkDir)); WINE_TRACE("workdir : %s\n", wine_dbgstr_w(szWorkDir));
szDescription[0] = 0; szDescription[0] = 0;
...@@ -808,6 +809,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link ) ...@@ -808,6 +809,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
{ {
static const WCHAR exeW[] = {'.','e','x','e',0}; static const WCHAR exeW[] = {'.','e','x','e',0};
WCHAR *p; WCHAR *p;
/* check for .exe extension */ /* check for .exe extension */
if (!(p = strrchrW( szPath, '.' ))) return FALSE; if (!(p = strrchrW( szPath, '.' ))) return FALSE;
if (strchrW( p, '\\' ) || strchrW( p, '/' )) return FALSE; if (strchrW( p, '\\' ) || strchrW( p, '/' )) return FALSE;
...@@ -819,7 +821,10 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link ) ...@@ -819,7 +821,10 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
} }
else else
{ {
static const WCHAR startW[] = {'\\','c','o','m','m','a','n','d','\\','s','t','a','r','t','.','e','x','e',0}; static const WCHAR startW[] = {
'\\','c','o','m','m','a','n','d',
'\\','s','t','a','r','t','.','e','x','e',0};
/* if there's no path... try run the link itself */ /* if there's no path... try run the link itself */
lstrcpynW(szArgs, link, MAX_PATH); lstrcpynW(szArgs, link, MAX_PATH);
GetWindowsDirectoryW(szPath, MAX_PATH); GetWindowsDirectoryW(szPath, MAX_PATH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment