Fixed some minor issues (NULL --> FALSE).

svn path=/trunk/; revision=661
This commit is contained in:
Eric Kohl 1999-09-12 20:44:22 +00:00
parent bbcc7f9179
commit 40f81ce970
2 changed files with 5 additions and 11 deletions

View file

@ -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(

View file

@ -33,7 +33,7 @@ VOID STDCALL SetFileApisToOEM(VOID)
}
WINBASEAPI VOID WINAPI SetFileApisToANSI(VOID)
VOID STDCALL SetFileApisToANSI(VOID)
{
bIsFileApiAnsi = TRUE;
}