mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 01:55:46 -04:00
Common/FileSystem: Fix misspelling of 'separator'
This commit is contained in:

committed by
Connor McLaughlin

parent
d0398c8a83
commit
7a40a843d4
@ -112,7 +112,7 @@ void CanonicalizePath(char* Destination, u32 cbDestination, const char* Path, bo
|
||||
|
||||
// fix ospath
|
||||
if (OSPath && (currentCh == '\\' || currentCh == '/'))
|
||||
currentCh = FS_OSPATH_SEPERATOR_CHARACTER;
|
||||
currentCh = FS_OSPATH_SEPARATOR_CHARACTER;
|
||||
|
||||
// copy character
|
||||
if (destinationLength < cbDestination)
|
||||
@ -547,7 +547,7 @@ void BuildOSPath(char* Destination, u32 cbDestination, const char* Path)
|
||||
for (i = 0; i < pathLength; i++)
|
||||
{
|
||||
if (Destination[i] == '/')
|
||||
Destination[i] = FS_OSPATH_SEPERATOR_CHARACTER;
|
||||
Destination[i] = FS_OSPATH_SEPARATOR_CHARACTER;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -556,7 +556,7 @@ void BuildOSPath(char* Destination, u32 cbDestination, const char* Path)
|
||||
pathLength = std::max(pathLength, cbDestination - 1);
|
||||
for (i = 0; i < pathLength; i++)
|
||||
{
|
||||
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPERATOR_CHARACTER : Path[i];
|
||||
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPARATOR_CHARACTER : Path[i];
|
||||
}
|
||||
|
||||
Destination[pathLength] = '\0';
|
||||
@ -576,7 +576,7 @@ void BuildOSPath(String& Destination, const char* Path)
|
||||
for (i = 0; i < pathLength; i++)
|
||||
{
|
||||
if (Destination[i] == '/')
|
||||
Destination[i] = FS_OSPATH_SEPERATOR_CHARACTER;
|
||||
Destination[i] = FS_OSPATH_SEPARATOR_CHARACTER;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -586,7 +586,7 @@ void BuildOSPath(String& Destination, const char* Path)
|
||||
Destination.Resize(pathLength);
|
||||
for (i = 0; i < pathLength; i++)
|
||||
{
|
||||
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPERATOR_CHARACTER : Path[i];
|
||||
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPARATOR_CHARACTER : Path[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,10 +10,10 @@
|
||||
class ByteStream;
|
||||
|
||||
#ifdef WIN32
|
||||
#define FS_OSPATH_SEPERATOR_CHARACTER '\\'
|
||||
#define FS_OSPATH_SEPARATOR_CHARACTER '\\'
|
||||
#define FS_OSPATH_SEPARATOR_STR "\\"
|
||||
#else
|
||||
#define FS_OSPATH_SEPERATOR_CHARACTER '/'
|
||||
#define FS_OSPATH_SEPARATOR_CHARACTER '/'
|
||||
#define FS_OSPATH_SEPARATOR_STR "/"
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user