projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SHELL32]
[reactos.git]
/
reactos
/
dll
/
win32
/
shell32
/
shelllink.c
diff --git
a/reactos/dll/win32/shell32/shelllink.c
b/reactos/dll/win32/shell32/shelllink.c
index
53441ba
..
fb60fab
100644
(file)
--- a/
reactos/dll/win32/shell32/shelllink.c
+++ b/
reactos/dll/win32/shell32/shelllink.c
@@
-443,14
+443,14
@@
static HRESULT WINAPI IPersistFile_fnSave(IPersistFile* iface, LPCOLESTR pszFile
if( SUCCEEDED( r ) )
{
if( SUCCEEDED( r ) )
{
- if ( This->s
CurFile
)
+ if ( This->s
LinkPath
)
{
{
- HeapFree(GetProcessHeap(), 0, This->s
CurFile
);
+ HeapFree(GetProcessHeap(), 0, This->s
LinkPath
);
}
}
- This->s
CurFile
= HeapAlloc(GetProcessHeap(), 0, (wcslen(pszFileName)+1) * sizeof(WCHAR));
- if ( This->s
CurFile
)
+ This->s
LinkPath
= HeapAlloc(GetProcessHeap(), 0, (wcslen(pszFileName)+1) * sizeof(WCHAR));
+ if ( This->s
LinkPath
)
{
{
- wcscpy(This->s
CurFile
, pszFileName);
+ wcscpy(This->s
LinkPath
, pszFileName);
}
StartLinkProcessor( pszFileName );
}
StartLinkProcessor( pszFileName );
@@
-480,13
+480,13
@@
static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile* iface, LPOLESTR *p
*ppszFileName = NULL;
*ppszFileName = NULL;
- if ( !This->s
CurFile
)
+ if ( !This->s
LinkPath
)
{
/* IPersistFile::GetCurFile called before IPersistFile::Save */
return S_FALSE;
}
{
/* IPersistFile::GetCurFile called before IPersistFile::Save */
return S_FALSE;
}
- *ppszFileName = CoTaskMemAlloc((wcslen(This->s
CurFile
)+1) * sizeof(WCHAR));
+ *ppszFileName = CoTaskMemAlloc((wcslen(This->s
LinkPath
)+1) * sizeof(WCHAR));
if (!*ppszFileName)
{
/* out of memory */
if (!*ppszFileName)
{
/* out of memory */
@@
-494,7
+494,7
@@
static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile* iface, LPOLESTR *p
}
/* copy last saved filename */
}
/* copy last saved filename */
- wcscpy(*ppszFileName, This->s
CurFile
);
+ wcscpy(*ppszFileName, This->s
LinkPath
);
return NOERROR;
}
return NOERROR;
}