You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(StatusBlockWrapper.Tag != CBWTag) returnmsProcessError(MS_CSW_TAG_ERROR); // Tag mismatch error
The is probably a compiler optimization issue. Sometimes StatusBlockWrapper.Tag will evalute to 0 eventhough it's been updated in the background. Surpisingly declaring StatusBlockWrapper as volatile doesn't resolve the issue. I used the following hack just before the reference line of code to force the program to reread the value of StatusBlockWrapper.Tag.
USBHost_t36/MassStorageDriver.cpp
Line 429 in 69b9072
The is probably a compiler optimization issue. Sometimes StatusBlockWrapper.Tag will evalute to 0 eventhough it's been updated in the background. Surpisingly declaring StatusBlockWrapper as volatile doesn't resolve the issue. I used the following hack just before the reference line of code to force the program to reread the value of StatusBlockWrapper.Tag.
char str[50];
sprintf(str, "%d", (int)StatusBlockWrapper.Tag);
The text was updated successfully, but these errors were encountered: