OSDN Git Service
(root)
/
hos
/
hos-v4a.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(none)
[hos/hos-v4a.git]
/
aplfw
/
system
/
file
/
sysvol_removedevice.c
diff --git
a/aplfw/system/file/sysvol_removedevice.c
b/aplfw/system/file/sysvol_removedevice.c
index
c69bca9
..
7ff7ab2
100755
(executable)
--- a/
aplfw/system/file/sysvol_removedevice.c
+++ b/
aplfw/system/file/sysvol_removedevice.c
@@
-15,23
+15,17
@@
/* システムボリュームに登録されたデバイスを取り外し */
FILE_ERR SysVol_RemoveDevice(HANDLE hSysVol, const char *pszName)
{
/* システムボリュームに登録されたデバイスを取り外し */
FILE_ERR SysVol_RemoveDevice(HANDLE hSysVol, const char *pszName)
{
- C_SYSVOL *self;
- int i;
+ C_SYSVOL *self;
self = (C_SYSVOL *)hSysVol;
self = (C_SYSVOL *)hSysVol;
-
-
- /* テーブルを検索 */
- for ( i = 0; i < DEVVOL_MAX_DEVICE; i++ )
+
+ /* 登録解除 */
+ if ( Assoc_Remove(&self->asDevice, pszName) != ASSOC_ERR_OK )
{
{
- if ( strcmp(self->DevTable[i].szName, pszName) == 0 )
- {
- self->DevTable[i].hDriver = HANDLE_NULL;
- return FILE_ERR_OK;
- }
+ return FILE_ERR_NG;
}
}
-
- return FILE_ERR_
NG;
+
+ return FILE_ERR_
OK;
}
}