forked from KolibriOS/kolibrios
fix rev. 8919
git-svn-id: svn://kolibrios.org@8925 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b3305a4764
commit
cbb59ad9b4
Binary file not shown.
@ -199,6 +199,10 @@ bool init_block(){
|
|||||||
k = strlen(CurrentDirectoryPath);
|
k = strlen(CurrentDirectoryPath);
|
||||||
while(CurrentDirectoryPath[k] != '\\' && CurrentDirectoryPath[k] != '/' && k) {k--;};
|
while(CurrentDirectoryPath[k] != '\\' && CurrentDirectoryPath[k] != '/' && k) {k--;};
|
||||||
memcpy(library_path,CurrentDirectoryPath,k);
|
memcpy(library_path,CurrentDirectoryPath,k);
|
||||||
|
if(library_path[k-1] != '/'){
|
||||||
|
library_path[k] = '/';
|
||||||
|
k++;
|
||||||
|
}
|
||||||
strcpy(library_path+k,"block.bin");
|
strcpy(library_path+k,"block.bin");
|
||||||
|
|
||||||
file = FileOpen(library_path);
|
file = FileOpen(library_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user