Răsfoiți Sursa

NvOsGetConfigU32 should return null instead of 0 for default output

David Marcec 8 ani în urmă
părinte
comite
6138075df0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp

+ 1 - 1
src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp

@@ -36,7 +36,7 @@ u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>&
         } else if (!strcmp(params.param_str.data(), "NVRM_GPU_PREVENT_USE")) {
             params.config_str[0] = '0';
         } else {
-            params.config_str[0] = '0';
+            params.config_str[0] = '\0';
         }
     } else {
         UNIMPLEMENTED(); // unknown domain? Only nv has been seen so far on hardware