CheckWPS: set screen to SCREEN_MAIN when not a r{sb,wp}s.
This fixes the potential bug of mislabeling an {sb,wp}s as remote while it's not. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23668 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d236af05a0
commit
c28752b1af
1 changed files with 2 additions and 0 deletions
|
@ -274,6 +274,8 @@ int main(int argc, char **argv)
|
|||
if((strcmp(&argv[filearg][strlen(argv[filearg])-4], "rwps") == 0) ||
|
||||
(strcmp(&argv[filearg][strlen(argv[filearg])-4], "rsbs") == 0))
|
||||
screen = SCREEN_REMOTE;
|
||||
else
|
||||
screen = SCREEN_MAIN;
|
||||
#endif
|
||||
wps_screen = &screens[screen];
|
||||
|
||||
|
|
Loading…
Reference in a new issue