mirror of
https://gitee.com/openharmony/third_party_cups
synced 2024-11-23 01:49:57 +00:00
usb crash修复 Signed-off-by:baozewei@huawei.com
Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
parent
cc080ba814
commit
6aae6de768
@ -1,9 +1,9 @@
|
||||
diff --git a/backend/usb-oh.c b/backend/usb-oh.c
|
||||
new file mode 100644
|
||||
index 0000000..668ea73
|
||||
index 0000000..6268f77
|
||||
--- /dev/null
|
||||
+++ b/backend/usb-oh.c
|
||||
@@ -0,0 +1,1818 @@
|
||||
@@ -0,0 +1,1817 @@
|
||||
+/*
|
||||
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
+ * Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -892,8 +892,7 @@ index 0000000..668ea73
|
||||
+ }
|
||||
+
|
||||
+ printer->origconf = current;
|
||||
+ fprintf(stderr, "DEBUG: open_device OH_ControlTransferRead current = %c, printer->origconf = %d\n",
|
||||
+ current, printer->origconf);
|
||||
+ fprintf(stderr, "DEBUG: open_device OH_ControlTransferRead current = %c\n", current);
|
||||
+
|
||||
+ confptr = printer->device->config[printer->conf];
|
||||
+ number1 = confptr.iConfiguration;
|
||||
|
Loading…
Reference in New Issue
Block a user