mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed some minor issues (NULL --> FALSE).
svn path=/trunk/; revision=661
This commit is contained in:
parent
bbcc7f9179
commit
40f81ce970
2 changed files with 5 additions and 11 deletions
|
@ -127,7 +127,7 @@ WINBOOL STDCALL CreateDirectoryExW(LPCWSTR lpTemplateDirectory,
|
|||
{
|
||||
Len = GetCurrentDirectoryW(MAX_PATH,PathNameW);
|
||||
if ( Len == 0 )
|
||||
return NULL;
|
||||
return FALSE;
|
||||
if ( PathNameW[Len-1] != L'\\' ) {
|
||||
PathNameW[Len] = L'\\';
|
||||
PathNameW[Len+1] = 0;
|
||||
|
@ -145,10 +145,10 @@ WINBOOL STDCALL CreateDirectoryExW(LPCWSTR lpTemplateDirectory,
|
|||
DirectoryNameString.Length = wcslen (DirectoryNameW)*sizeof(WCHAR);
|
||||
|
||||
if ( DirectoryNameString.Length == 0 )
|
||||
return NULL;
|
||||
return FALSE;
|
||||
|
||||
if ( DirectoryNameString.Length > MAX_PATH*sizeof(WCHAR) )
|
||||
return NULL;
|
||||
return FALSE;
|
||||
|
||||
DirectoryNameString.Buffer = (WCHAR *)DirectoryNameW;
|
||||
DirectoryNameString.MaximumLength = DirectoryNameString.Length + sizeof(WCHAR);
|
||||
|
@ -235,7 +235,7 @@ WINBOOL STDCALL RemoveDirectoryW(LPCWSTR lpPathName)
|
|||
{
|
||||
Len = GetCurrentDirectoryW(MAX_PATH,PathNameW);
|
||||
if ( Len == 0 )
|
||||
return NULL;
|
||||
return FALSE;
|
||||
if ( PathNameW[Len-1] != L'\\' ) {
|
||||
PathNameW[Len] = L'\\';
|
||||
PathNameW[Len+1] = 0;
|
||||
|
@ -591,12 +591,6 @@ DWORD STDCALL GetFullPathNameW(LPCWSTR lpFileName,
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
DWORD
|
||||
STDCALL
|
||||
GetShortPathNameA(
|
||||
|
|
|
@ -33,7 +33,7 @@ VOID STDCALL SetFileApisToOEM(VOID)
|
|||
}
|
||||
|
||||
|
||||
WINBASEAPI VOID WINAPI SetFileApisToANSI(VOID)
|
||||
VOID STDCALL SetFileApisToANSI(VOID)
|
||||
{
|
||||
bIsFileApiAnsi = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue