Skip to content

Commit a4ebad1

Browse files
Removed useless check.
1 parent 09c18d7 commit a4ebad1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

GetDriverFiles/Source/Main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ int main(int argc, char** argv) {
6969
}
7070

7171
char* FullInfPath = malloc(FullInfPathLength * sizeof(*FullInfPath));
72-
if (GetFullPathNameA(argv[1], FullInfPathLength, FullInfPath, NULL) == 0)
73-
abort(); // WTF? Nah, I prefer less code.
72+
GetFullPathNameA(argv[1], (uint32_t)FullInfPathLength, FullInfPath, NULL);
7473

7574
unsigned int ErrorLine; // Currently unused
7675
HINF hInf = SetupOpenInfFileA(

0 commit comments

Comments
 (0)